summaryrefslogtreecommitdiff
path: root/test/ns-afl-svg
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-09-11 16:08:17 +0100
committerVincent Sanders <vince@kyllikki.org>2016-09-11 16:08:17 +0100
commit29874def63e8c02159516327a7393fdd1da455d1 (patch)
tree8556a4248c18c61f2011d509133be4d82d652fa0 /test/ns-afl-svg
parent988e0d0819c7e6b068b1c1741a50b547f8414cf7 (diff)
downloadlibsvgtiny-29874def63e8c02159516327a7393fdd1da455d1.tar.gz
libsvgtiny-29874def63e8c02159516327a7393fdd1da455d1.tar.bz2
Add test set derived from AFL
Generated with AFL using custom dictionary then minimised with cmin and tmin tools to be the smallest test set possible The run used two thousand processor hours on a 24way xeon 2.3GHz system
Diffstat (limited to 'test/ns-afl-svg')
-rw-r--r--test/ns-afl-svg/0001.svg15
-rw-r--r--test/ns-afl-svg/0002.svg8
-rw-r--r--test/ns-afl-svg/0003.svg4
-rw-r--r--test/ns-afl-svg/0004.svg5
-rw-r--r--test/ns-afl-svg/0005.svg13
-rw-r--r--test/ns-afl-svg/0006.svg53
-rw-r--r--test/ns-afl-svg/0007.svg74
-rw-r--r--test/ns-afl-svg/0008.svg12
-rw-r--r--test/ns-afl-svg/0009.svg372
-rw-r--r--test/ns-afl-svg/0010.svg15
-rw-r--r--test/ns-afl-svg/0011.svg7
-rw-r--r--test/ns-afl-svg/0012.svg26
-rw-r--r--test/ns-afl-svg/0013.svg24
-rw-r--r--test/ns-afl-svg/0014.svg32
-rw-r--r--test/ns-afl-svg/0015.svg5
-rw-r--r--test/ns-afl-svg/0016.svg12
-rw-r--r--test/ns-afl-svg/0017.svg360
-rw-r--r--test/ns-afl-svg/0018.svg21
-rw-r--r--test/ns-afl-svg/0019.svg39
-rw-r--r--test/ns-afl-svg/0020.svgbin0 -> 2808 bytes
-rw-r--r--test/ns-afl-svg/0021.svg33
-rw-r--r--test/ns-afl-svg/0022.svg80
-rw-r--r--test/ns-afl-svg/0023.svg1
-rw-r--r--test/ns-afl-svg/0024.svg25
-rw-r--r--test/ns-afl-svg/0025.svg65
-rw-r--r--test/ns-afl-svg/0026.svg27
-rw-r--r--test/ns-afl-svg/0027.svg13
-rw-r--r--test/ns-afl-svg/0028.svg24
-rw-r--r--test/ns-afl-svg/0029.svg59
-rw-r--r--test/ns-afl-svg/0030.svg80
-rw-r--r--test/ns-afl-svg/0031.svg14
-rw-r--r--test/ns-afl-svg/0032.svg19
-rw-r--r--test/ns-afl-svg/0033.svg5
-rw-r--r--test/ns-afl-svg/0034.svg209
-rw-r--r--test/ns-afl-svg/0035.svg16
-rw-r--r--test/ns-afl-svg/0036.svg46
-rw-r--r--test/ns-afl-svg/0037.svg146
-rw-r--r--test/ns-afl-svg/0038.svg24
-rw-r--r--test/ns-afl-svg/0039.svg3
-rw-r--r--test/ns-afl-svg/0040.svg24
-rw-r--r--test/ns-afl-svg/0041.svg32
-rw-r--r--test/ns-afl-svg/0042.svg101
-rw-r--r--test/ns-afl-svg/0043.svg19
-rw-r--r--test/ns-afl-svg/0044.svg8
-rw-r--r--test/ns-afl-svg/0045.svg146
-rw-r--r--test/ns-afl-svg/0046.svg20
-rw-r--r--test/ns-afl-svg/0047.svg7
-rw-r--r--test/ns-afl-svg/0048.svg11
-rw-r--r--test/ns-afl-svg/0049.svg67
-rw-r--r--test/ns-afl-svg/0050.svg303
-rw-r--r--test/ns-afl-svg/0051.svg33
-rw-r--r--test/ns-afl-svg/0052.svg21
-rw-r--r--test/ns-afl-svg/0053.svg72
-rw-r--r--test/ns-afl-svg/0054.svg46
-rw-r--r--test/ns-afl-svg/0055.svg299
-rw-r--r--test/ns-afl-svg/0056.svg140
-rw-r--r--test/ns-afl-svg/0057.svg7
-rw-r--r--test/ns-afl-svg/0058.svg123
-rw-r--r--test/ns-afl-svg/0059.svg24
-rw-r--r--test/ns-afl-svg/0060.svg178
-rw-r--r--test/ns-afl-svg/0061.svg56
-rw-r--r--test/ns-afl-svg/0062.svg11
-rw-r--r--test/ns-afl-svg/0063.svg7
-rw-r--r--test/ns-afl-svg/0064.svg173
-rw-r--r--test/ns-afl-svg/0065.svg13
-rw-r--r--test/ns-afl-svg/0066.svg6
-rw-r--r--test/ns-afl-svg/0067.svg65
-rw-r--r--test/ns-afl-svg/0068.svg121
-rw-r--r--test/ns-afl-svg/0069.svg20
-rw-r--r--test/ns-afl-svg/0070.svg44
-rw-r--r--test/ns-afl-svg/0071.svg337
-rw-r--r--test/ns-afl-svg/0072.svg18
-rw-r--r--test/ns-afl-svg/0073.svg10
-rw-r--r--test/ns-afl-svg/0074.svg69
-rw-r--r--test/ns-afl-svg/0075.svg143
-rw-r--r--test/ns-afl-svg/0076.svg5
-rw-r--r--test/ns-afl-svg/0077.svg7
-rw-r--r--test/ns-afl-svg/0078.svg12
-rw-r--r--test/ns-afl-svg/0079.svg13
-rw-r--r--test/ns-afl-svg/0080.svg7
-rw-r--r--test/ns-afl-svg/0081.svg145
-rw-r--r--test/ns-afl-svg/0082.svg14
-rw-r--r--test/ns-afl-svg/0083.svg19
-rw-r--r--test/ns-afl-svg/0084.svg31
-rw-r--r--test/ns-afl-svg/0085.svg385
-rw-r--r--test/ns-afl-svg/0086.svg73
-rw-r--r--test/ns-afl-svg/0087.svg358
-rw-r--r--test/ns-afl-svg/0088.svg4
-rw-r--r--test/ns-afl-svg/0089.svg795
-rw-r--r--test/ns-afl-svg/0090.svg69
-rw-r--r--test/ns-afl-svg/0091.svg89
-rw-r--r--test/ns-afl-svg/0092.svg115
-rw-r--r--test/ns-afl-svg/0093.svg34
-rw-r--r--test/ns-afl-svg/0094.svg12
-rw-r--r--test/ns-afl-svg/0095.svg51
-rw-r--r--test/ns-afl-svg/0096.svg19
-rw-r--r--test/ns-afl-svg/0097.svg49
-rw-r--r--test/ns-afl-svg/0098.svg39
-rw-r--r--test/ns-afl-svg/0099.svg17
-rw-r--r--test/ns-afl-svg/0100.svg378
-rw-r--r--test/ns-afl-svg/0101.svg37
-rw-r--r--test/ns-afl-svg/0102.svg16
-rw-r--r--test/ns-afl-svg/0103.svg136
-rw-r--r--test/ns-afl-svg/0104.svg47
-rw-r--r--test/ns-afl-svg/0105.svgbin0 -> 957 bytes
-rw-r--r--test/ns-afl-svg/0106.svg284
-rw-r--r--test/ns-afl-svg/0107.svg17
-rw-r--r--test/ns-afl-svg/0108.svg205
-rw-r--r--test/ns-afl-svg/0109.svg6
-rw-r--r--test/ns-afl-svg/0110.svg4
-rw-r--r--test/ns-afl-svg/0111.svg27
-rw-r--r--test/ns-afl-svg/0112.svg25
-rw-r--r--test/ns-afl-svg/0113.svg7
-rw-r--r--test/ns-afl-svg/0114.svg14
-rw-r--r--test/ns-afl-svg/0115.svg56
-rw-r--r--test/ns-afl-svg/0116.svg27
-rw-r--r--test/ns-afl-svg/0117.svg70
-rw-r--r--test/ns-afl-svg/0118.svg11
-rw-r--r--test/ns-afl-svg/0119.svg204
-rw-r--r--test/ns-afl-svg/0120.svg24
-rw-r--r--test/ns-afl-svg/0121.svg108
-rw-r--r--test/ns-afl-svg/0122.svg17
-rw-r--r--test/ns-afl-svg/0123.svg112
-rw-r--r--test/ns-afl-svg/0124.svg13
-rw-r--r--test/ns-afl-svg/0125.svg15
-rw-r--r--test/ns-afl-svg/0126.svg21
-rw-r--r--test/ns-afl-svg/0127.svg385
-rw-r--r--test/ns-afl-svg/0128.svg63
-rw-r--r--test/ns-afl-svg/0129.svg29
-rw-r--r--test/ns-afl-svg/0130.svg210
-rw-r--r--test/ns-afl-svg/0131.svg4
-rw-r--r--test/ns-afl-svg/0132.svg12
-rw-r--r--test/ns-afl-svg/0133.svg358
-rw-r--r--test/ns-afl-svg/0134.svg6
-rw-r--r--test/ns-afl-svg/0135.svg104
-rw-r--r--test/ns-afl-svg/0136.svg11
-rw-r--r--test/ns-afl-svg/0137.svg79
-rw-r--r--test/ns-afl-svg/0138.svg35
-rw-r--r--test/ns-afl-svg/0139.svg2
-rw-r--r--test/ns-afl-svg/0140.svg33
-rw-r--r--test/ns-afl-svg/0141.svg5
-rw-r--r--test/ns-afl-svg/0142.svg27
-rw-r--r--test/ns-afl-svg/0143.svg321
-rw-r--r--test/ns-afl-svg/0144.svg5
-rw-r--r--test/ns-afl-svg/0145.svg167
-rw-r--r--test/ns-afl-svg/0146.svg5
-rw-r--r--test/ns-afl-svg/0147.svg8
-rw-r--r--test/ns-afl-svg/0148.svg78
-rw-r--r--test/ns-afl-svg/0149.svg24
-rw-r--r--test/ns-afl-svg/0150.svgbin0 -> 116 bytes
-rw-r--r--test/ns-afl-svg/0151.svg361
-rw-r--r--test/ns-afl-svg/0152.svg15
-rw-r--r--test/ns-afl-svg/0153.svg92
-rw-r--r--test/ns-afl-svg/0154.svg35
-rw-r--r--test/ns-afl-svg/0155.svg23
-rw-r--r--test/ns-afl-svg/0156.svg8
-rw-r--r--test/ns-afl-svg/0157.svg27
-rw-r--r--test/ns-afl-svg/0158.svg12
-rw-r--r--test/ns-afl-svg/0159.svg31
-rw-r--r--test/ns-afl-svg/0160.svg40
-rw-r--r--test/ns-afl-svg/0161.svg133
-rw-r--r--test/ns-afl-svg/0162.svg7
-rw-r--r--test/ns-afl-svg/0163.svg30
-rw-r--r--test/ns-afl-svg/0164.svg9
-rw-r--r--test/ns-afl-svg/0165.svg117
-rw-r--r--test/ns-afl-svg/0166.svg4
-rw-r--r--test/ns-afl-svg/0167.svg246
-rw-r--r--test/ns-afl-svg/0168.svg273
-rw-r--r--test/ns-afl-svg/0169.svg371
-rw-r--r--test/ns-afl-svg/0170.svg92
-rw-r--r--test/ns-afl-svg/0171.svg27
-rw-r--r--test/ns-afl-svg/0172.svg12
-rw-r--r--test/ns-afl-svg/0173.svg57
-rw-r--r--test/ns-afl-svg/0174.svg117
-rw-r--r--test/ns-afl-svg/0175.svg24
-rw-r--r--test/ns-afl-svg/0176.svg28
-rw-r--r--test/ns-afl-svg/0177.svg19
-rw-r--r--test/ns-afl-svg/0178.svg11
-rw-r--r--test/ns-afl-svg/0179.svg35
-rw-r--r--test/ns-afl-svg/0180.svg98
-rw-r--r--test/ns-afl-svg/0181.svg45
-rw-r--r--test/ns-afl-svg/0182.svg379
-rw-r--r--test/ns-afl-svg/0183.svg9
-rw-r--r--test/ns-afl-svg/0184.svg47
-rw-r--r--test/ns-afl-svg/0185.svg14
-rw-r--r--test/ns-afl-svg/0186.svg6
-rw-r--r--test/ns-afl-svg/0187.svg4
-rw-r--r--test/ns-afl-svg/0188.svg57
-rw-r--r--test/ns-afl-svg/0189.svg380
-rw-r--r--test/ns-afl-svg/0190.svg14
-rw-r--r--test/ns-afl-svg/0191.svg9
-rw-r--r--test/ns-afl-svg/0192.svg37
-rw-r--r--test/ns-afl-svg/0193.svg18
-rw-r--r--test/ns-afl-svg/0194.svg47
-rw-r--r--test/ns-afl-svg/0195.svg49
-rw-r--r--test/ns-afl-svg/0196.svg25
-rw-r--r--test/ns-afl-svg/0197.svg15
-rw-r--r--test/ns-afl-svg/0198.svg4
-rw-r--r--test/ns-afl-svg/0199.svg119
-rw-r--r--test/ns-afl-svg/0200.svg13
-rw-r--r--test/ns-afl-svg/0201.svg9
-rw-r--r--test/ns-afl-svg/0202.svg72
-rw-r--r--test/ns-afl-svg/0203.svg15
-rw-r--r--test/ns-afl-svg/0204.svg20
-rw-r--r--test/ns-afl-svg/0205.svg212
-rw-r--r--test/ns-afl-svg/0206.svg79
-rw-r--r--test/ns-afl-svg/0207.svg7
-rw-r--r--test/ns-afl-svg/0208.svg139
-rw-r--r--test/ns-afl-svg/0209.svg65
-rw-r--r--test/ns-afl-svg/0210.svg386
-rw-r--r--test/ns-afl-svg/0211.svg11
-rw-r--r--test/ns-afl-svg/0212.svg117
-rw-r--r--test/ns-afl-svg/0213.svg139
-rw-r--r--test/ns-afl-svg/0214.svg66
-rw-r--r--test/ns-afl-svg/0215.svgbin0 -> 8 bytes
-rw-r--r--test/ns-afl-svg/0216.svg43
-rw-r--r--test/ns-afl-svg/0217.svg34
-rw-r--r--test/ns-afl-svg/0218.svg52
-rw-r--r--test/ns-afl-svg/0219.svg12
-rw-r--r--test/ns-afl-svg/0220.svg37
-rw-r--r--test/ns-afl-svg/0221.svg36
-rw-r--r--test/ns-afl-svg/0222.svgbin0 -> 62 bytes
-rw-r--r--test/ns-afl-svg/0223.svg12
-rw-r--r--test/ns-afl-svg/0224.svg7
-rw-r--r--test/ns-afl-svg/0225.svgbin0 -> 35 bytes
-rw-r--r--test/ns-afl-svg/0226.svg61
-rw-r--r--test/ns-afl-svg/0227.svg16
-rw-r--r--test/ns-afl-svg/0228.svg7
-rw-r--r--test/ns-afl-svg/0229.svg34
-rw-r--r--test/ns-afl-svg/0230.svg11
-rw-r--r--test/ns-afl-svg/0231.svg32
-rw-r--r--test/ns-afl-svg/0232.svg4
-rw-r--r--test/ns-afl-svg/0233.svgbin0 -> 310 bytes
-rw-r--r--test/ns-afl-svg/0234.svg11
-rw-r--r--test/ns-afl-svg/0235.svg87
-rw-r--r--test/ns-afl-svg/0236.svg376
-rw-r--r--test/ns-afl-svg/0237.svg140
-rw-r--r--test/ns-afl-svg/0238.svg1
-rw-r--r--test/ns-afl-svg/0239.svg379
-rw-r--r--test/ns-afl-svg/0240.svg14
-rw-r--r--test/ns-afl-svg/0241.svg92
-rw-r--r--test/ns-afl-svg/0242.svg15
-rw-r--r--test/ns-afl-svg/0243.svg44
-rw-r--r--test/ns-afl-svg/0244.svg13
-rw-r--r--test/ns-afl-svg/0245.svg38
-rw-r--r--test/ns-afl-svg/0246.svgbin0 -> 3918 bytes
-rw-r--r--test/ns-afl-svg/0247.svg8
-rw-r--r--test/ns-afl-svg/0248.svg5
-rw-r--r--test/ns-afl-svg/0249.svg50
-rw-r--r--test/ns-afl-svg/0250.svg5
-rw-r--r--test/ns-afl-svg/0251.svg5
-rw-r--r--test/ns-afl-svg/0252.svg14
-rw-r--r--test/ns-afl-svg/0253.svg8
-rw-r--r--test/ns-afl-svg/0254.svgbin0 -> 1276 bytes
-rw-r--r--test/ns-afl-svg/0255.svg31
-rw-r--r--test/ns-afl-svg/0256.svg10
-rw-r--r--test/ns-afl-svg/0257.svg5
-rw-r--r--test/ns-afl-svg/0258.svg16
-rw-r--r--test/ns-afl-svg/0259.svg242
-rw-r--r--test/ns-afl-svg/0260.svg390
-rw-r--r--test/ns-afl-svg/0261.svg50
-rw-r--r--test/ns-afl-svg/0262.svg358
-rw-r--r--test/ns-afl-svg/0263.svg1
-rw-r--r--test/ns-afl-svg/0264.svg8
-rw-r--r--test/ns-afl-svg/0265.svg24
-rw-r--r--test/ns-afl-svg/0266.svg30
-rw-r--r--test/ns-afl-svg/0267.svg12
-rw-r--r--test/ns-afl-svg/0268.svg16
-rw-r--r--test/ns-afl-svg/0269.svg15
-rw-r--r--test/ns-afl-svg/0270.svg31
-rw-r--r--test/ns-afl-svg/0271.svg6
-rw-r--r--test/ns-afl-svg/0272.svg27
-rw-r--r--test/ns-afl-svg/0273.svg95
-rw-r--r--test/ns-afl-svg/0274.svg21
-rw-r--r--test/ns-afl-svg/0275.svg64
-rw-r--r--test/ns-afl-svg/0276.svg21
-rw-r--r--test/ns-afl-svg/0277.svg5
-rw-r--r--test/ns-afl-svg/0278.svg92
-rw-r--r--test/ns-afl-svg/0279.svg41
-rw-r--r--test/ns-afl-svg/0280.svg32
-rw-r--r--test/ns-afl-svg/0281.svg81
-rw-r--r--test/ns-afl-svg/0282.svg14
-rw-r--r--test/ns-afl-svg/0283.svg9
-rw-r--r--test/ns-afl-svg/0284.svg54
-rw-r--r--test/ns-afl-svg/0285.svg42
-rw-r--r--test/ns-afl-svg/0286.svg31
-rw-r--r--test/ns-afl-svg/0287.svg367
-rw-r--r--test/ns-afl-svg/0288.svg78
-rw-r--r--test/ns-afl-svg/0289.svg101
-rw-r--r--test/ns-afl-svg/0290.svg71
-rw-r--r--test/ns-afl-svg/0291.svg346
-rw-r--r--test/ns-afl-svg/0292.svg98
-rw-r--r--test/ns-afl-svg/0293.svg5
-rw-r--r--test/ns-afl-svg/0294.svg7
-rw-r--r--test/ns-afl-svg/0295.svgbin0 -> 24 bytes
-rw-r--r--test/ns-afl-svg/0296.svg10
-rw-r--r--test/ns-afl-svg/0297.svg6
-rw-r--r--test/ns-afl-svg/0298.svg10
-rw-r--r--test/ns-afl-svg/0299.svg32
-rw-r--r--test/ns-afl-svg/0300.svg13
-rw-r--r--test/ns-afl-svg/0301.svg30
-rw-r--r--test/ns-afl-svg/0302.svg19
-rw-r--r--test/ns-afl-svg/0303.svg26
-rw-r--r--test/ns-afl-svg/0304.svg359
-rw-r--r--test/ns-afl-svg/0305.svg55
-rw-r--r--test/ns-afl-svg/0306.svg19
-rw-r--r--test/ns-afl-svg/0307.svg4
-rw-r--r--test/ns-afl-svg/0308.svg13
-rw-r--r--test/ns-afl-svg/0309.svg364
-rw-r--r--test/ns-afl-svg/0310.svg37
-rw-r--r--test/ns-afl-svg/0311.svg15
-rw-r--r--test/ns-afl-svg/0312.svg46
-rw-r--r--test/ns-afl-svg/0313.svgbin0 -> 60 bytes
-rw-r--r--test/ns-afl-svg/0314.svg5
-rw-r--r--test/ns-afl-svg/0315.svg12
-rw-r--r--test/ns-afl-svg/0316.svg19
-rw-r--r--test/ns-afl-svg/0317.svg3
-rw-r--r--test/ns-afl-svg/0318.svg103
-rw-r--r--test/ns-afl-svg/0319.svg63
-rw-r--r--test/ns-afl-svg/0320.svg8
-rw-r--r--test/ns-afl-svg/0321.svg74
-rw-r--r--test/ns-afl-svg/0322.svg32
-rw-r--r--test/ns-afl-svg/0323.svg1
-rw-r--r--test/ns-afl-svg/0324.svg12
-rw-r--r--test/ns-afl-svg/0325.svg117
-rw-r--r--test/ns-afl-svg/0326.svg380
-rw-r--r--test/ns-afl-svg/0327.svg65
-rw-r--r--test/ns-afl-svg/0328.svg40
-rw-r--r--test/ns-afl-svg/0329.svg28
-rw-r--r--test/ns-afl-svg/0330.svg4
-rw-r--r--test/ns-afl-svg/0331.svg9
-rw-r--r--test/ns-afl-svg/0332.svg100
-rw-r--r--test/ns-afl-svg/0333.svg9
-rw-r--r--test/ns-afl-svg/0334.svg380
-rw-r--r--test/ns-afl-svg/0335.svg76
-rw-r--r--test/ns-afl-svg/0336.svg364
-rw-r--r--test/ns-afl-svg/0337.svg6
-rw-r--r--test/ns-afl-svg/0338.svg22
-rw-r--r--test/ns-afl-svg/0339.svg4
-rw-r--r--test/ns-afl-svg/0340.svg7
-rw-r--r--test/ns-afl-svg/0341.svg16
-rw-r--r--test/ns-afl-svg/0342.svg35
-rw-r--r--test/ns-afl-svg/0343.svg8
-rw-r--r--test/ns-afl-svg/0344.svg4
-rw-r--r--test/ns-afl-svg/0345.svg4
-rw-r--r--test/ns-afl-svg/0346.svgbin0 -> 32 bytes
-rw-r--r--test/ns-afl-svg/0347.svg16
-rw-r--r--test/ns-afl-svg/0348.svg26
-rw-r--r--test/ns-afl-svg/0349.svg12
-rw-r--r--test/ns-afl-svg/0350.svg5
-rw-r--r--test/ns-afl-svg/0351.svg12
-rw-r--r--test/ns-afl-svg/0352.svg48
-rw-r--r--test/ns-afl-svg/0353.svg62
-rw-r--r--test/ns-afl-svg/0354.svg105
-rw-r--r--test/ns-afl-svg/0355.svg32
-rw-r--r--test/ns-afl-svg/0356.svg16
-rw-r--r--test/ns-afl-svg/0357.svg12
-rw-r--r--test/ns-afl-svg/0358.svg763
-rw-r--r--test/ns-afl-svg/0359.svg42
-rw-r--r--test/ns-afl-svg/0360.svg24
-rw-r--r--test/ns-afl-svg/0361.svg17
-rw-r--r--test/ns-afl-svg/0362.svg6
-rw-r--r--test/ns-afl-svg/0363.svg18
-rw-r--r--test/ns-afl-svg/0364.svg24
-rw-r--r--test/ns-afl-svg/0365.svg40
-rw-r--r--test/ns-afl-svg/0366.svg34
-rw-r--r--test/ns-afl-svg/0367.svg4
-rw-r--r--test/ns-afl-svg/0368.svg16
-rw-r--r--test/ns-afl-svg/0369.svg4
-rw-r--r--test/ns-afl-svg/0370.svg15
-rw-r--r--test/ns-afl-svg/0371.svg103
-rw-r--r--test/ns-afl-svg/0372.svg209
-rw-r--r--test/ns-afl-svg/0373.svg11
-rw-r--r--test/ns-afl-svg/0374.svg49
-rw-r--r--test/ns-afl-svg/0375.svg17
-rw-r--r--test/ns-afl-svg/0376.svg35
-rw-r--r--test/ns-afl-svg/0377.svg24
-rw-r--r--test/ns-afl-svg/0378.svg23
-rw-r--r--test/ns-afl-svg/0379.svg3
-rw-r--r--test/ns-afl-svg/0380.svg35
-rw-r--r--test/ns-afl-svg/0381.svg165
-rw-r--r--test/ns-afl-svg/0382.svg12
-rw-r--r--test/ns-afl-svg/0383.svg50
-rw-r--r--test/ns-afl-svg/0384.svg52
-rw-r--r--test/ns-afl-svg/0385.svg53
-rw-r--r--test/ns-afl-svg/0386.svg90
-rw-r--r--test/ns-afl-svg/0387.svg89
-rw-r--r--test/ns-afl-svg/0388.svg3
-rw-r--r--test/ns-afl-svg/0389.svg385
-rw-r--r--test/ns-afl-svg/0390.svg65
-rw-r--r--test/ns-afl-svg/0391.svg63
-rw-r--r--test/ns-afl-svg/0392.svg155
-rw-r--r--test/ns-afl-svg/0393.svg12
-rw-r--r--test/ns-afl-svg/0394.svg11
-rw-r--r--test/ns-afl-svg/0395.svg74
-rw-r--r--test/ns-afl-svg/0396.svg19
-rw-r--r--test/ns-afl-svg/0397.svg95
-rw-r--r--test/ns-afl-svg/0398.svg4
-rw-r--r--test/ns-afl-svg/0399.svg139
-rw-r--r--test/ns-afl-svg/0400.svg4
-rw-r--r--test/ns-afl-svg/0401.svg9
-rw-r--r--test/ns-afl-svg/0402.svg18
-rw-r--r--test/ns-afl-svg/0403.svg231
-rw-r--r--test/ns-afl-svg/0404.svg26
-rw-r--r--test/ns-afl-svg/0405.svg80
-rw-r--r--test/ns-afl-svg/0406.svg124
-rw-r--r--test/ns-afl-svg/0407.svg102
-rw-r--r--test/ns-afl-svg/0408.svg29
-rw-r--r--test/ns-afl-svg/0409.svg25
-rw-r--r--test/ns-afl-svg/0410.svg15
-rw-r--r--test/ns-afl-svg/0411.svg14
-rw-r--r--test/ns-afl-svg/0412.svg385
-rw-r--r--test/ns-afl-svg/0413.svg6
-rw-r--r--test/ns-afl-svg/0414.svg378
-rw-r--r--test/ns-afl-svg/0415.svg47
-rw-r--r--test/ns-afl-svg/0416.svg20
-rw-r--r--test/ns-afl-svg/0417.svg9
-rw-r--r--test/ns-afl-svg/0418.svg15
-rw-r--r--test/ns-afl-svg/0419.svg70
-rw-r--r--test/ns-afl-svg/0420.svg24
-rw-r--r--test/ns-afl-svg/0421.svg75
-rw-r--r--test/ns-afl-svg/0422.svg47
-rw-r--r--test/ns-afl-svg/0423.svg7
-rw-r--r--test/ns-afl-svg/0424.svg36
-rw-r--r--test/ns-afl-svg/0425.svg16
-rw-r--r--test/ns-afl-svg/0426.svg5
-rw-r--r--test/ns-afl-svg/0427.svg7
-rw-r--r--test/ns-afl-svg/0428.svg24
-rw-r--r--test/ns-afl-svg/0429.svg15
-rw-r--r--test/ns-afl-svg/0430.svg6
-rw-r--r--test/ns-afl-svg/0431.svg153
-rw-r--r--test/ns-afl-svg/0432.svg96
-rw-r--r--test/ns-afl-svg/0433.svg62
-rw-r--r--test/ns-afl-svg/0434.svg56
-rw-r--r--test/ns-afl-svg/0435.svg15
-rw-r--r--test/ns-afl-svg/0436.svg5
-rw-r--r--test/ns-afl-svg/0437.svg24
-rw-r--r--test/ns-afl-svg/0438.svg12
-rw-r--r--test/ns-afl-svg/0439.svg55
-rw-r--r--test/ns-afl-svg/0440.svg4
-rw-r--r--test/ns-afl-svg/0441.svg8
-rw-r--r--test/ns-afl-svg/0442.svg15
-rw-r--r--test/ns-afl-svg/0443.svg24
-rw-r--r--test/ns-afl-svg/0444.svg4
-rw-r--r--test/ns-afl-svg/0445.svg72
-rw-r--r--test/ns-afl-svg/0446.svg22
-rw-r--r--test/ns-afl-svg/0447.svg37
-rw-r--r--test/ns-afl-svg/0448.svg21
-rw-r--r--test/ns-afl-svg/0449.svg79
-rw-r--r--test/ns-afl-svg/0450.svg24
-rw-r--r--test/ns-afl-svg/0451.svg3
-rw-r--r--test/ns-afl-svg/0452.svg80
-rw-r--r--test/ns-afl-svg/0453.svg34
-rw-r--r--test/ns-afl-svg/0454.svg4
-rw-r--r--test/ns-afl-svg/0455.svg123
-rw-r--r--test/ns-afl-svg/0456.svg43
-rw-r--r--test/ns-afl-svg/0457.svg5
-rw-r--r--test/ns-afl-svg/0458.svg42
-rw-r--r--test/ns-afl-svg/0459.svg36
-rw-r--r--test/ns-afl-svg/0460.svg17
-rw-r--r--test/ns-afl-svg/0461.svg24
-rw-r--r--test/ns-afl-svg/0462.svg364
-rw-r--r--test/ns-afl-svg/0463.svg49
-rw-r--r--test/ns-afl-svg/0464.svg24
-rw-r--r--test/ns-afl-svg/0465.svg32
-rw-r--r--test/ns-afl-svg/0466.svg92
-rw-r--r--test/ns-afl-svg/0467.svg4
-rw-r--r--test/ns-afl-svg/0468.svg22
-rw-r--r--test/ns-afl-svg/0469.svg15
-rw-r--r--test/ns-afl-svg/0470.svg16
-rw-r--r--test/ns-afl-svg/0471.svg86
-rw-r--r--test/ns-afl-svg/0472.svg153
-rw-r--r--test/ns-afl-svg/0473.svg115
-rw-r--r--test/ns-afl-svg/0474.svg1
-rw-r--r--test/ns-afl-svg/0475.svg38
-rw-r--r--test/ns-afl-svg/0476.svg42
-rw-r--r--test/ns-afl-svg/0477.svg149
-rw-r--r--test/ns-afl-svg/0478.svg12
-rw-r--r--test/ns-afl-svg/0479.svg54
-rw-r--r--test/ns-afl-svg/0480.svg5
-rw-r--r--test/ns-afl-svg/0481.svg378
-rw-r--r--test/ns-afl-svg/0482.svg47
-rw-r--r--test/ns-afl-svg/0483.svg133
-rw-r--r--test/ns-afl-svg/0484.svg6
-rw-r--r--test/ns-afl-svg/0485.svg54
-rw-r--r--test/ns-afl-svg/0486.svg20
-rw-r--r--test/ns-afl-svg/0487.svg26
-rw-r--r--test/ns-afl-svg/0488.svg117
-rw-r--r--test/ns-afl-svg/0489.svg17
-rw-r--r--test/ns-afl-svg/0490.svg12
-rw-r--r--test/ns-afl-svg/0491.svg12
-rw-r--r--test/ns-afl-svg/0492.svg5
-rw-r--r--test/ns-afl-svg/0493.svg111
-rw-r--r--test/ns-afl-svg/0494.svg74
-rw-r--r--test/ns-afl-svg/0495.svg13
-rw-r--r--test/ns-afl-svg/0496.svg5
-rw-r--r--test/ns-afl-svg/0497.svg79
-rw-r--r--test/ns-afl-svg/0498.svg62
-rw-r--r--test/ns-afl-svg/0499.svg4
-rw-r--r--test/ns-afl-svg/0500.svg380
-rw-r--r--test/ns-afl-svg/0501.svg114
-rw-r--r--test/ns-afl-svg/0502.svg5
-rw-r--r--test/ns-afl-svg/0503.svg82
-rw-r--r--test/ns-afl-svg/0504.svg20
-rw-r--r--test/ns-afl-svg/0505.svg82
-rw-r--r--test/ns-afl-svg/0506.svg22
-rw-r--r--test/ns-afl-svg/0507.svg354
-rw-r--r--test/ns-afl-svg/0508.svg16
-rw-r--r--test/ns-afl-svg/0509.svg47
-rw-r--r--test/ns-afl-svg/0510.svg92
-rw-r--r--test/ns-afl-svg/0511.svg150
-rw-r--r--test/ns-afl-svg/0512.svg351
-rw-r--r--test/ns-afl-svg/0513.svg4
-rw-r--r--test/ns-afl-svg/0514.svg1
-rw-r--r--test/ns-afl-svg/0515.svg347
-rw-r--r--test/ns-afl-svg/0516.svg7
-rw-r--r--test/ns-afl-svg/0517.svg15
-rw-r--r--test/ns-afl-svg/0518.svg37
-rw-r--r--test/ns-afl-svg/0519.svg24
-rw-r--r--test/ns-afl-svg/0520.svg2
-rw-r--r--test/ns-afl-svg/0521.svg15
-rw-r--r--test/ns-afl-svg/0522.svgbin0 -> 430 bytes
-rw-r--r--test/ns-afl-svg/0523.svg18
-rw-r--r--test/ns-afl-svg/0524.svg16
-rw-r--r--test/ns-afl-svg/0525.svg7
-rw-r--r--test/ns-afl-svg/0526.svg5
-rw-r--r--test/ns-afl-svg/0527.svg377
-rw-r--r--test/ns-afl-svg/0528.svg6
-rw-r--r--test/ns-afl-svg/0529.svg2
-rw-r--r--test/ns-afl-svg/0530.svg18
-rw-r--r--test/ns-afl-svg/0531.svg48
-rw-r--r--test/ns-afl-svg/0532.svg285
-rw-r--r--test/ns-afl-svg/0533.svg5
-rw-r--r--test/ns-afl-svg/0534.svg7
-rw-r--r--test/ns-afl-svg/0535.svg123
-rw-r--r--test/ns-afl-svg/0536.svg79
-rw-r--r--test/ns-afl-svg/0537.svg4
-rw-r--r--test/ns-afl-svg/0538.svg3
-rw-r--r--test/ns-afl-svg/0539.svg7
-rw-r--r--test/ns-afl-svg/0540.svg37
-rw-r--r--test/ns-afl-svg/0541.svg14
-rw-r--r--test/ns-afl-svg/0542.svg27
-rw-r--r--test/ns-afl-svg/0543.svg24
-rw-r--r--test/ns-afl-svg/0544.svg5
-rw-r--r--test/ns-afl-svg/0545.svg28
-rw-r--r--test/ns-afl-svg/0546.svg21
-rw-r--r--test/ns-afl-svg/0547.svg116
-rw-r--r--test/ns-afl-svg/0548.svg52
-rw-r--r--test/ns-afl-svg/0549.svg19
-rw-r--r--test/ns-afl-svg/0550.svg17
-rw-r--r--test/ns-afl-svg/0551.svg16
-rw-r--r--test/ns-afl-svg/0552.svg360
-rw-r--r--test/ns-afl-svg/0553.svgbin0 -> 222 bytes
-rw-r--r--test/ns-afl-svg/0554.svg141
-rw-r--r--test/ns-afl-svg/0555.svg1
-rw-r--r--test/ns-afl-svg/0556.svg103
-rw-r--r--test/ns-afl-svg/0557.svg9
-rw-r--r--test/ns-afl-svg/0558.svg95
-rw-r--r--test/ns-afl-svg/0559.svg34
-rw-r--r--test/ns-afl-svg/0560.svg93
-rw-r--r--test/ns-afl-svg/0561.svg30
-rw-r--r--test/ns-afl-svg/0562.svg2
-rw-r--r--test/ns-afl-svg/0563.svg6
-rw-r--r--test/ns-afl-svg/0564.svg44
-rw-r--r--test/ns-afl-svg/0565.svg102
-rw-r--r--test/ns-afl-svg/0566.svg206
-rw-r--r--test/ns-afl-svg/0567.svg52
-rw-r--r--test/ns-afl-svg/0568.svg2
-rw-r--r--test/ns-afl-svg/0569.svg117
-rw-r--r--test/ns-afl-svg/0570.svg3
-rw-r--r--test/ns-afl-svg/0571.svg46
-rw-r--r--test/ns-afl-svg/0572.svg10
-rw-r--r--test/ns-afl-svg/0573.svg60
-rw-r--r--test/ns-afl-svg/0574.svg5
-rw-r--r--test/ns-afl-svg/0575.svg78
-rw-r--r--test/ns-afl-svg/0576.svg1
-rw-r--r--test/ns-afl-svg/0577.svg12
-rw-r--r--test/ns-afl-svg/0578.svg41
-rw-r--r--test/ns-afl-svg/0579.svg1
-rw-r--r--test/ns-afl-svg/0580.svg70
-rw-r--r--test/ns-afl-svg/0581.svg35
-rw-r--r--test/ns-afl-svg/0582.svg25
-rw-r--r--test/ns-afl-svg/0583.svg12
-rw-r--r--test/ns-afl-svg/0584.svg10
-rw-r--r--test/ns-afl-svg/0585.svg381
-rw-r--r--test/ns-afl-svg/0586.svg13
-rw-r--r--test/ns-afl-svg/0587.svg2
-rw-r--r--test/ns-afl-svg/0588.svg7
-rw-r--r--test/ns-afl-svg/0589.svg349
-rw-r--r--test/ns-afl-svg/0590.svg101
-rw-r--r--test/ns-afl-svg/0591.svg1
-rw-r--r--test/ns-afl-svg/0592.svg304
-rw-r--r--test/ns-afl-svg/0593.svg116
-rw-r--r--test/ns-afl-svg/0594.svg170
-rw-r--r--test/ns-afl-svg/0595.svgbin0 -> 456 bytes
-rw-r--r--test/ns-afl-svg/0596.svg70
-rw-r--r--test/ns-afl-svg/0597.svg7
-rw-r--r--test/ns-afl-svg/0598.svg25
-rw-r--r--test/ns-afl-svg/0599.svg50
-rw-r--r--test/ns-afl-svg/0600.svg22
-rw-r--r--test/ns-afl-svg/0601.svg12
-rw-r--r--test/ns-afl-svg/0602.svg19
-rw-r--r--test/ns-afl-svg/0603.svg40
-rw-r--r--test/ns-afl-svg/0604.svg140
-rw-r--r--test/ns-afl-svg/0605.svg42
-rw-r--r--test/ns-afl-svg/0606.svg14
-rw-r--r--test/ns-afl-svg/0607.svg13
-rw-r--r--test/ns-afl-svg/0608.svg23
-rw-r--r--test/ns-afl-svg/0609.svg11
-rw-r--r--test/ns-afl-svg/0610.svg29
-rw-r--r--test/ns-afl-svg/0611.svg5
-rw-r--r--test/ns-afl-svg/0612.svg390
-rw-r--r--test/ns-afl-svg/0613.svg55
-rw-r--r--test/ns-afl-svg/0614.svg74
-rw-r--r--test/ns-afl-svg/0615.svg7
-rw-r--r--test/ns-afl-svg/0616.svg3
-rw-r--r--test/ns-afl-svg/0617.svg16
-rw-r--r--test/ns-afl-svg/0618.svg17
-rw-r--r--test/ns-afl-svg/0619.svgbin0 -> 14 bytes
-rw-r--r--test/ns-afl-svg/0620.svg16
-rw-r--r--test/ns-afl-svg/0621.svg24
-rw-r--r--test/ns-afl-svg/0622.svg9
-rw-r--r--test/ns-afl-svg/0623.svg277
-rw-r--r--test/ns-afl-svg/0624.svg172
-rw-r--r--test/ns-afl-svg/0625.svg11
-rw-r--r--test/ns-afl-svg/0626.svg3
-rw-r--r--test/ns-afl-svg/0627.svg3
-rw-r--r--test/ns-afl-svg/0628.svg13
-rw-r--r--test/ns-afl-svg/0629.svg36
-rw-r--r--test/ns-afl-svg/0630.svg45
-rw-r--r--test/ns-afl-svg/0631.svg97
-rw-r--r--test/ns-afl-svg/0632.svg71
-rw-r--r--test/ns-afl-svg/0633.svg17
-rw-r--r--test/ns-afl-svg/0634.svg18
-rw-r--r--test/ns-afl-svg/0635.svg4
-rw-r--r--test/ns-afl-svg/0636.svg2
-rw-r--r--test/ns-afl-svg/0637.svg173
-rw-r--r--test/ns-afl-svg/0638.svg18
-rw-r--r--test/ns-afl-svg/0639.svg11
-rw-r--r--test/ns-afl-svg/0640.svg38
-rw-r--r--test/ns-afl-svg/0641.svg8
-rw-r--r--test/ns-afl-svg/0642.svg143
-rw-r--r--test/ns-afl-svg/0643.svg3
-rw-r--r--test/ns-afl-svg/0644.svg359
-rw-r--r--test/ns-afl-svg/0645.svg25
-rw-r--r--test/ns-afl-svg/0646.svg67
-rw-r--r--test/ns-afl-svg/0647.svg116
-rw-r--r--test/ns-afl-svg/0648.svg116
-rw-r--r--test/ns-afl-svg/0649.svg12
-rw-r--r--test/ns-afl-svg/0650.svg16
-rw-r--r--test/ns-afl-svg/0651.svg20
-rw-r--r--test/ns-afl-svg/0652.svg22
-rw-r--r--test/ns-afl-svg/0653.svg375
-rw-r--r--test/ns-afl-svg/0654.svg277
-rw-r--r--test/ns-afl-svg/0655.svg15
-rw-r--r--test/ns-afl-svg/0656.svg37
-rw-r--r--test/ns-afl-svg/0657.svg19
-rw-r--r--test/ns-afl-svg/0658.svg6
-rw-r--r--test/ns-afl-svg/0659.svg91
-rw-r--r--test/ns-afl-svg/0660.svg5
-rw-r--r--test/ns-afl-svg/0661.svg18
-rw-r--r--test/ns-afl-svg/0662.svg5
-rw-r--r--test/ns-afl-svg/0663.svg5
-rw-r--r--test/ns-afl-svg/0664.svg165
-rw-r--r--test/ns-afl-svg/0665.svg31
-rw-r--r--test/ns-afl-svg/0666.svg93
-rw-r--r--test/ns-afl-svg/0667.svg24
-rw-r--r--test/ns-afl-svg/0668.svg11
-rw-r--r--test/ns-afl-svg/0669.svg11
-rw-r--r--test/ns-afl-svg/0670.svg10
-rw-r--r--test/ns-afl-svg/0671.svg59
-rw-r--r--test/ns-afl-svg/0672.svg275
-rw-r--r--test/ns-afl-svg/0673.svg56
-rw-r--r--test/ns-afl-svg/0674.svg29
-rw-r--r--test/ns-afl-svg/0675.svg6
-rw-r--r--test/ns-afl-svg/0676.svg24
-rw-r--r--test/ns-afl-svg/0677.svg24
-rw-r--r--test/ns-afl-svg/0678.svg4
-rw-r--r--test/ns-afl-svg/0679.svg74
-rw-r--r--test/ns-afl-svg/0680.svg6
-rw-r--r--test/ns-afl-svg/0681.svg17
-rw-r--r--test/ns-afl-svg/0682.svg15
-rw-r--r--test/ns-afl-svg/0683.svg449
-rw-r--r--test/ns-afl-svg/0684.svg11
-rw-r--r--test/ns-afl-svg/0685.svg42
-rw-r--r--test/ns-afl-svg/0686.svg47
-rw-r--r--test/ns-afl-svg/0687.svg40
-rw-r--r--test/ns-afl-svg/0688.svg284
-rw-r--r--test/ns-afl-svg/0689.svg42
-rw-r--r--test/ns-afl-svg/0690.svg4
-rw-r--r--test/ns-afl-svg/0691.svg4
-rw-r--r--test/ns-afl-svg/0692.svg7
-rw-r--r--test/ns-afl-svg/0693.svg11
-rw-r--r--test/ns-afl-svg/0694.svg7
-rw-r--r--test/ns-afl-svg/0695.svg6
-rw-r--r--test/ns-afl-svg/0696.svg10
-rw-r--r--test/ns-afl-svg/0697.svg4
-rw-r--r--test/ns-afl-svg/0698.svg37
-rw-r--r--test/ns-afl-svg/0699.svg81
-rw-r--r--test/ns-afl-svg/0700.svg78
-rw-r--r--test/ns-afl-svg/0701.svg125
-rw-r--r--test/ns-afl-svg/0702.svg55
-rw-r--r--test/ns-afl-svg/0703.svg11
-rw-r--r--test/ns-afl-svg/0704.svg13
-rw-r--r--test/ns-afl-svg/0705.svg24
-rw-r--r--test/ns-afl-svg/0706.svg19
-rw-r--r--test/ns-afl-svg/0707.svg269
-rw-r--r--test/ns-afl-svg/0708.svg13
-rw-r--r--test/ns-afl-svg/0709.svg6
-rw-r--r--test/ns-afl-svg/0710.svg87
-rw-r--r--test/ns-afl-svg/0711.svg3
-rw-r--r--test/ns-afl-svg/0712.svg4
-rw-r--r--test/ns-afl-svg/0713.svg11
-rw-r--r--test/ns-afl-svg/0714.svg174
-rw-r--r--test/ns-afl-svg/0715.svg11
-rw-r--r--test/ns-afl-svg/0716.svg25
-rw-r--r--test/ns-afl-svg/0717.svg380
-rw-r--r--test/ns-afl-svg/0718.svg23
-rw-r--r--test/ns-afl-svg/0719.svg23
-rw-r--r--test/ns-afl-svg/0720.svg4
-rw-r--r--test/ns-afl-svg/0721.svg368
-rw-r--r--test/ns-afl-svg/0722.svg24
-rw-r--r--test/ns-afl-svg/0723.svg12
-rw-r--r--test/ns-afl-svg/0724.svg2
-rw-r--r--test/ns-afl-svg/0725.svg1
-rw-r--r--test/ns-afl-svg/0726.svg12
-rw-r--r--test/ns-afl-svg/0727.svg32
-rw-r--r--test/ns-afl-svg/0728.svg15
-rw-r--r--test/ns-afl-svg/0729.svg62
-rw-r--r--test/ns-afl-svg/0730.svg4
-rw-r--r--test/ns-afl-svg/0731.svg95
-rw-r--r--test/ns-afl-svg/0732.svg11
-rw-r--r--test/ns-afl-svg/0733.svg121
-rw-r--r--test/ns-afl-svg/0734.svg28
-rw-r--r--test/ns-afl-svg/0735.svg16
-rw-r--r--test/ns-afl-svg/0736.svg10
-rw-r--r--test/ns-afl-svg/0737.svg50
-rw-r--r--test/ns-afl-svg/0738.svg23
-rw-r--r--test/ns-afl-svg/0739.svg28
-rw-r--r--test/ns-afl-svg/0740.svg278
-rw-r--r--test/ns-afl-svg/0741.svg51
-rw-r--r--test/ns-afl-svg/0742.svg385
-rw-r--r--test/ns-afl-svg/0743.svg4
-rw-r--r--test/ns-afl-svg/0744.svg45
-rw-r--r--test/ns-afl-svg/0745.svg8
-rw-r--r--test/ns-afl-svg/0746.svg7
-rw-r--r--test/ns-afl-svg/0747.svg27
-rw-r--r--test/ns-afl-svg/0748.svg28
-rw-r--r--test/ns-afl-svg/0749.svg1
-rw-r--r--test/ns-afl-svg/0750.svgbin0 -> 28 bytes
-rw-r--r--test/ns-afl-svg/0751.svg354
-rw-r--r--test/ns-afl-svg/0752.svg72
-rw-r--r--test/ns-afl-svg/0753.svg19
-rw-r--r--test/ns-afl-svg/0754.svg68
-rw-r--r--test/ns-afl-svg/0755.svg11
-rw-r--r--test/ns-afl-svg/0756.svg19
-rw-r--r--test/ns-afl-svg/0757.svg11
-rw-r--r--test/ns-afl-svg/0758.svg57
-rw-r--r--test/ns-afl-svg/0759.svg12
-rw-r--r--test/ns-afl-svg/0760.svg2
-rw-r--r--test/ns-afl-svg/0761.svg84
-rw-r--r--test/ns-afl-svg/0762.svg24
-rw-r--r--test/ns-afl-svg/0763.svg13
-rw-r--r--test/ns-afl-svg/0764.svg37
-rw-r--r--test/ns-afl-svg/0765.svg17
-rw-r--r--test/ns-afl-svg/0766.svg76
-rw-r--r--test/ns-afl-svg/0767.svg54
-rw-r--r--test/ns-afl-svg/0768.svgbin0 -> 54 bytes
-rw-r--r--test/ns-afl-svg/0769.svg10
-rw-r--r--test/ns-afl-svg/0770.svg13
-rw-r--r--test/ns-afl-svg/0771.svg14
-rw-r--r--test/ns-afl-svg/0772.svg145
-rw-r--r--test/ns-afl-svg/0773.svg15
-rw-r--r--test/ns-afl-svg/0774.svg52
-rw-r--r--test/ns-afl-svg/0775.svg12
-rw-r--r--test/ns-afl-svg/0776.svg11
-rw-r--r--test/ns-afl-svg/0777.svg26
-rw-r--r--test/ns-afl-svg/0778.svg20
-rw-r--r--test/ns-afl-svg/0779.svg12
-rw-r--r--test/ns-afl-svg/0780.svg29
-rw-r--r--test/ns-afl-svg/0781.svg127
-rw-r--r--test/ns-afl-svg/0782.svg31
-rw-r--r--test/ns-afl-svg/0783.svg15
-rw-r--r--test/ns-afl-svg/0784.svg117
-rw-r--r--test/ns-afl-svg/0785.svg25
-rw-r--r--test/ns-afl-svg/0786.svg1
-rw-r--r--test/ns-afl-svg/0787.svg72
-rw-r--r--test/ns-afl-svg/0788.svg6
-rw-r--r--test/ns-afl-svg/0789.svg4
-rw-r--r--test/ns-afl-svg/0790.svg101
-rw-r--r--test/ns-afl-svg/0791.svg381
-rw-r--r--test/ns-afl-svg/0792.svg25
-rw-r--r--test/ns-afl-svg/0793.svg7
-rw-r--r--test/ns-afl-svg/0794.svg376
-rw-r--r--test/ns-afl-svg/0795.svg4
-rw-r--r--test/ns-afl-svg/0796.svg46
-rw-r--r--test/ns-afl-svg/0797.svg106
-rw-r--r--test/ns-afl-svg/0798.svg204
-rw-r--r--test/ns-afl-svg/0799.svg64
-rw-r--r--test/ns-afl-svg/0800.svg148
-rw-r--r--test/ns-afl-svg/0801.svg5
-rw-r--r--test/ns-afl-svg/0802.svg78
-rw-r--r--test/ns-afl-svg/0803.svg56
-rw-r--r--test/ns-afl-svg/0804.svg387
-rw-r--r--test/ns-afl-svg/0805.svg16
-rw-r--r--test/ns-afl-svg/0806.svg50
-rw-r--r--test/ns-afl-svg/0807.svg4
-rw-r--r--test/ns-afl-svg/0808.svg275
-rw-r--r--test/ns-afl-svg/0809.svg76
-rw-r--r--test/ns-afl-svg/0810.svg48
-rw-r--r--test/ns-afl-svg/0811.svg175
-rw-r--r--test/ns-afl-svg/0812.svg158
-rw-r--r--test/ns-afl-svg/0813.svg46
-rw-r--r--test/ns-afl-svg/0814.svg15
-rw-r--r--test/ns-afl-svg/0815.svg54
-rw-r--r--test/ns-afl-svg/0816.svg14
-rw-r--r--test/ns-afl-svg/0817.svg12
-rw-r--r--test/ns-afl-svg/0818.svg32
-rw-r--r--test/ns-afl-svg/0819.svg78
-rw-r--r--test/ns-afl-svg/0820.svg42
-rw-r--r--test/ns-afl-svg/0821.svg87
-rw-r--r--test/ns-afl-svg/0822.svg275
-rw-r--r--test/ns-afl-svg/0823.svg10
-rw-r--r--test/ns-afl-svg/0824.svg115
-rw-r--r--test/ns-afl-svg/0825.svg16
-rw-r--r--test/ns-afl-svg/0826.svg11
-rw-r--r--test/ns-afl-svg/0827.svg15
-rw-r--r--test/ns-afl-svg/0828.svg55
-rw-r--r--test/ns-afl-svg/0829.svg25
-rw-r--r--test/ns-afl-svg/0830.svg4
-rw-r--r--test/ns-afl-svg/0831.svg1
-rw-r--r--test/ns-afl-svg/0832.svg79
-rw-r--r--test/ns-afl-svg/0833.svg21
-rw-r--r--test/ns-afl-svg/0834.svg31
-rw-r--r--test/ns-afl-svg/0835.svg12
-rw-r--r--test/ns-afl-svg/0836.svg385
-rw-r--r--test/ns-afl-svg/0837.svg16
-rw-r--r--test/ns-afl-svg/0838.svg10
-rw-r--r--test/ns-afl-svg/0839.svg360
-rw-r--r--test/ns-afl-svg/0840.svgbin0 -> 176 bytes
-rw-r--r--test/ns-afl-svg/0841.svg61
-rw-r--r--test/ns-afl-svg/0842.svg18
-rw-r--r--test/ns-afl-svg/0843.svg7
-rw-r--r--test/ns-afl-svg/0844.svg58
-rw-r--r--test/ns-afl-svg/0845.svg6
-rw-r--r--test/ns-afl-svg/0846.svg133
-rw-r--r--test/ns-afl-svg/0847.svg27
-rw-r--r--test/ns-afl-svg/0848.svg4
-rw-r--r--test/ns-afl-svg/0849.svg113
-rw-r--r--test/ns-afl-svg/0850.svg33
-rw-r--r--test/ns-afl-svg/0851.svg70
-rw-r--r--test/ns-afl-svg/0852.svg81
-rw-r--r--test/ns-afl-svg/0853.svg46
-rw-r--r--test/ns-afl-svg/0854.svg43
-rw-r--r--test/ns-afl-svg/0855.svg43
-rw-r--r--test/ns-afl-svg/0856.svg11
-rw-r--r--test/ns-afl-svg/0857.svg8
-rw-r--r--test/ns-afl-svg/0858.svg15
-rw-r--r--test/ns-afl-svg/0859.svg69
-rw-r--r--test/ns-afl-svg/0860.svg12
-rw-r--r--test/ns-afl-svg/0861.svg12
-rw-r--r--test/ns-afl-svg/0862.svg79
-rw-r--r--test/ns-afl-svg/0863.svg14
-rw-r--r--test/ns-afl-svg/0864.svg4
-rw-r--r--test/ns-afl-svg/0865.svg12
-rw-r--r--test/ns-afl-svg/0866.svg19
-rw-r--r--test/ns-afl-svg/0867.svg30
-rw-r--r--test/ns-afl-svg/0868.svg19
-rw-r--r--test/ns-afl-svg/0869.svg11
-rw-r--r--test/ns-afl-svg/0870.svg3
-rw-r--r--test/ns-afl-svg/0871.svg38
-rw-r--r--test/ns-afl-svg/0872.svg51
-rw-r--r--test/ns-afl-svg/0873.svg10
-rw-r--r--test/ns-afl-svg/0874.svg8
-rw-r--r--test/ns-afl-svg/0875.svg31
-rw-r--r--test/ns-afl-svg/0876.svg5
-rw-r--r--test/ns-afl-svg/0877.svg49
-rw-r--r--test/ns-afl-svg/0878.svg24
-rw-r--r--test/ns-afl-svg/0879.svg138
-rw-r--r--test/ns-afl-svg/0880.svg18
-rw-r--r--test/ns-afl-svg/0881.svg31
-rw-r--r--test/ns-afl-svg/0882.svg39
-rw-r--r--test/ns-afl-svg/0883.svg7
-rw-r--r--test/ns-afl-svg/0884.svg12
-rw-r--r--test/ns-afl-svg/0885.svg87
-rw-r--r--test/ns-afl-svg/0886.svg115
-rw-r--r--test/ns-afl-svg/0887.svg15
-rw-r--r--test/ns-afl-svg/0888.svg6
-rw-r--r--test/ns-afl-svg/0889.svg4
-rw-r--r--test/ns-afl-svg/0890.svg162
-rw-r--r--test/ns-afl-svg/0891.svg13
-rw-r--r--test/ns-afl-svg/0892.svg129
-rw-r--r--test/ns-afl-svg/0893.svg40
-rw-r--r--test/ns-afl-svg/0894.svg72
-rw-r--r--test/ns-afl-svg/0895.svg4
-rw-r--r--test/ns-afl-svg/0896.svg19
-rw-r--r--test/ns-afl-svg/0897.svg18
-rw-r--r--test/ns-afl-svg/0898.svg7
-rw-r--r--test/ns-afl-svg/0899.svg24
-rw-r--r--test/ns-afl-svg/0900.svg18
-rw-r--r--test/ns-afl-svg/0901.svg72
-rw-r--r--test/ns-afl-svg/0902.svg387
-rw-r--r--test/ns-afl-svg/0903.svg14
-rw-r--r--test/ns-afl-svg/0904.svg67
-rw-r--r--test/ns-afl-svg/0905.svg18
-rw-r--r--test/ns-afl-svg/0906.svg42
-rw-r--r--test/ns-afl-svg/0907.svg7
-rw-r--r--test/ns-afl-svg/0908.svg20
-rw-r--r--test/ns-afl-svg/0909.svg1
-rw-r--r--test/ns-afl-svg/0910.svg55
-rw-r--r--test/ns-afl-svg/0911.svg33
-rw-r--r--test/ns-afl-svg/0912.svg16
-rw-r--r--test/ns-afl-svg/0913.svg3
-rw-r--r--test/ns-afl-svg/0914.svg15
-rw-r--r--test/ns-afl-svg/0915.svg47
-rw-r--r--test/ns-afl-svg/0916.svg25
-rw-r--r--test/ns-afl-svg/0917.svg28
-rw-r--r--test/ns-afl-svg/0918.svg13
-rw-r--r--test/ns-afl-svg/0919.svg81
-rw-r--r--test/ns-afl-svg/0920.svg258
-rw-r--r--test/ns-afl-svg/0921.svg16
-rw-r--r--test/ns-afl-svg/0922.svg24
-rw-r--r--test/ns-afl-svg/0923.svg45
-rw-r--r--test/ns-afl-svg/0924.svg11
-rw-r--r--test/ns-afl-svg/0925.svg215
-rw-r--r--test/ns-afl-svg/0926.svg117
-rw-r--r--test/ns-afl-svg/0927.svg22
-rw-r--r--test/ns-afl-svg/0928.svg130
-rw-r--r--test/ns-afl-svg/0929.svg879
-rw-r--r--test/ns-afl-svg/0930.svg76
-rw-r--r--test/ns-afl-svg/0931.svg19
-rw-r--r--test/ns-afl-svg/0932.svg93
-rw-r--r--test/ns-afl-svg/0933.svg32
-rw-r--r--test/ns-afl-svg/0934.svg1
-rw-r--r--test/ns-afl-svg/0935.svg140
-rw-r--r--test/ns-afl-svg/0936.svg13
-rw-r--r--test/ns-afl-svg/0937.svg30
-rw-r--r--test/ns-afl-svg/0938.svg4
-rw-r--r--test/ns-afl-svg/0939.svg7
-rw-r--r--test/ns-afl-svg/0940.svg115
-rw-r--r--test/ns-afl-svg/0941.svg91
-rw-r--r--test/ns-afl-svg/0942.svg391
-rw-r--r--test/ns-afl-svg/0943.svg46
-rw-r--r--test/ns-afl-svg/0944.svg354
-rw-r--r--test/ns-afl-svg/0945.svg43
-rw-r--r--test/ns-afl-svg/0946.svg354
-rw-r--r--test/ns-afl-svg/0947.svg112
-rw-r--r--test/ns-afl-svg/0948.svg13
-rw-r--r--test/ns-afl-svg/0949.svg80
-rw-r--r--test/ns-afl-svg/0950.svg15
-rw-r--r--test/ns-afl-svg/0951.svg380
-rw-r--r--test/ns-afl-svg/0952.svg148
-rw-r--r--test/ns-afl-svg/0953.svg48
-rw-r--r--test/ns-afl-svg/0954.svg26
-rw-r--r--test/ns-afl-svg/0955.svg6
-rw-r--r--test/ns-afl-svg/0956.svg64
-rw-r--r--test/ns-afl-svg/0957.svg64
-rw-r--r--test/ns-afl-svg/0958.svg380
-rw-r--r--test/ns-afl-svg/0959.svg37
-rw-r--r--test/ns-afl-svg/0960.svg398
-rw-r--r--test/ns-afl-svg/0961.svg8
-rw-r--r--test/ns-afl-svg/0962.svg135
-rw-r--r--test/ns-afl-svg/0963.svgbin0 -> 2414 bytes
-rw-r--r--test/ns-afl-svg/0964.svg14
-rw-r--r--test/ns-afl-svg/0965.svg12
-rw-r--r--test/ns-afl-svg/0966.svg4
-rw-r--r--test/ns-afl-svg/0967.svg16
-rw-r--r--test/ns-afl-svg/0968.svg51
-rw-r--r--test/ns-afl-svg/0969.svg23
-rw-r--r--test/ns-afl-svg/0970.svg7
-rw-r--r--test/ns-afl-svg/0971.svg25
-rw-r--r--test/ns-afl-svg/0972.svg15
-rw-r--r--test/ns-afl-svg/0973.svg15
-rw-r--r--test/ns-afl-svg/0974.svg26
-rw-r--r--test/ns-afl-svg/0975.svg366
-rw-r--r--test/ns-afl-svg/0976.svg364
-rw-r--r--test/ns-afl-svg/0977.svg114
-rw-r--r--test/ns-afl-svg/0978.svg1
-rw-r--r--test/ns-afl-svg/0979.svg32
-rw-r--r--test/ns-afl-svg/0980.svg24
-rw-r--r--test/ns-afl-svg/0981.svg269
-rw-r--r--test/ns-afl-svg/0982.svg6
-rw-r--r--test/ns-afl-svg/0983.svg118
-rw-r--r--test/ns-afl-svg/0984.svg116
-rw-r--r--test/ns-afl-svg/0985.svg140
-rw-r--r--test/ns-afl-svg/0986.svg25
-rw-r--r--test/ns-afl-svg/0987.svg1
-rw-r--r--test/ns-afl-svg/0988.svg12
-rw-r--r--test/ns-afl-svg/0989.svg11
-rw-r--r--test/ns-afl-svg/0990.svg40
-rw-r--r--test/ns-afl-svg/0991.svg19
-rw-r--r--test/ns-afl-svg/0992.svg20
-rw-r--r--test/ns-afl-svg/0993.svg33
-rw-r--r--test/ns-afl-svg/0994.svg23
-rw-r--r--test/ns-afl-svg/0995.svg14
-rw-r--r--test/ns-afl-svg/0996.svg41
-rw-r--r--test/ns-afl-svg/0997.svg65
-rw-r--r--test/ns-afl-svg/0998.svg59
-rw-r--r--test/ns-afl-svg/0999.svg4
-rw-r--r--test/ns-afl-svg/1000.svg21
-rw-r--r--test/ns-afl-svg/1001.svg39
-rw-r--r--test/ns-afl-svg/1002.svg24
-rw-r--r--test/ns-afl-svg/1003.svg13
-rw-r--r--test/ns-afl-svg/1004.svg413
-rw-r--r--test/ns-afl-svg/1005.svg4
-rw-r--r--test/ns-afl-svg/1006.svg16
-rw-r--r--test/ns-afl-svg/1007.svg80
-rw-r--r--test/ns-afl-svg/1008.svg6
-rw-r--r--test/ns-afl-svg/1009.svg53
-rw-r--r--test/ns-afl-svg/1010.svg158
-rw-r--r--test/ns-afl-svg/1011.svg13
-rw-r--r--test/ns-afl-svg/1012.svg125
-rw-r--r--test/ns-afl-svg/1013.svg5
-rw-r--r--test/ns-afl-svg/1014.svg5
-rw-r--r--test/ns-afl-svg/1015.svg370
-rw-r--r--test/ns-afl-svg/1016.svgbin0 -> 184 bytes
-rw-r--r--test/ns-afl-svg/1017.svg8
-rw-r--r--test/ns-afl-svg/1018.svg61
-rw-r--r--test/ns-afl-svg/1019.svg39
-rw-r--r--test/ns-afl-svg/1020.svg56
-rw-r--r--test/ns-afl-svg/1021.svg395
-rw-r--r--test/ns-afl-svg/1022.svg60
-rw-r--r--test/ns-afl-svg/1023.svg48
-rw-r--r--test/ns-afl-svg/1024.svg9
-rw-r--r--test/ns-afl-svg/1025.svg29
-rw-r--r--test/ns-afl-svg/1026.svg32
-rw-r--r--test/ns-afl-svg/1027.svg21
-rw-r--r--test/ns-afl-svg/1028.svg425
-rw-r--r--test/ns-afl-svg/1029.svg16
-rw-r--r--test/ns-afl-svg/1030.svg2
-rw-r--r--test/ns-afl-svg/1031.svg3
-rw-r--r--test/ns-afl-svg/1032.svg78
-rw-r--r--test/ns-afl-svg/1033.svg15
-rw-r--r--test/ns-afl-svg/1034.svg27
-rw-r--r--test/ns-afl-svg/1035.svg24
-rw-r--r--test/ns-afl-svg/1036.svg54
-rw-r--r--test/ns-afl-svg/1037.svg16
-rw-r--r--test/ns-afl-svg/1038.svg39
-rw-r--r--test/ns-afl-svg/1039.svg43
-rw-r--r--test/ns-afl-svg/1040.svg24
-rw-r--r--test/ns-afl-svg/1041.svg6
-rw-r--r--test/ns-afl-svg/1042.svg15
-rw-r--r--test/ns-afl-svg/1043.svg23
-rw-r--r--test/ns-afl-svg/1044.svg115
-rw-r--r--test/ns-afl-svg/1045.svg614
-rw-r--r--test/ns-afl-svg/1046.svg114
-rw-r--r--test/ns-afl-svg/1047.svg10
-rw-r--r--test/ns-afl-svg/1048.svg115
-rw-r--r--test/ns-afl-svg/1049.svgbin0 -> 136 bytes
-rw-r--r--test/ns-afl-svg/1050.svg375
-rw-r--r--test/ns-afl-svg/1051.svg4
-rw-r--r--test/ns-afl-svg/1052.svg54
-rw-r--r--test/ns-afl-svg/1053.svg25
-rw-r--r--test/ns-afl-svg/1054.svg20
-rw-r--r--test/ns-afl-svg/1055.svg56
-rw-r--r--test/ns-afl-svg/1056.svg20
-rw-r--r--test/ns-afl-svg/1057.svg25
-rw-r--r--test/ns-afl-svg/1058.svg376
-rw-r--r--test/ns-afl-svg/1059.svg21
-rw-r--r--test/ns-afl-svg/1060.svg6
-rw-r--r--test/ns-afl-svg/1061.svg30
-rw-r--r--test/ns-afl-svg/1062.svg3
-rw-r--r--test/ns-afl-svg/1063.svg385
-rw-r--r--test/ns-afl-svg/1064.svg12
-rw-r--r--test/ns-afl-svg/1065.svg2
-rw-r--r--test/ns-afl-svg/1066.svg365
-rw-r--r--test/ns-afl-svg/1067.svg8
-rw-r--r--test/ns-afl-svg/1068.svg375
-rw-r--r--test/ns-afl-svg/1069.svg16
-rw-r--r--test/ns-afl-svg/1070.svg5
-rw-r--r--test/ns-afl-svg/1071.svg3
-rw-r--r--test/ns-afl-svg/1072.svg25
-rw-r--r--test/ns-afl-svg/1073.svg33
-rw-r--r--test/ns-afl-svg/1074.svg10
-rw-r--r--test/ns-afl-svg/1075.svg12
-rw-r--r--test/ns-afl-svg/1076.svgbin0 -> 14 bytes
-rw-r--r--test/ns-afl-svg/1077.svg42
-rw-r--r--test/ns-afl-svg/1078.svg24
-rw-r--r--test/ns-afl-svg/1079.svg52
-rw-r--r--test/ns-afl-svg/1080.svg116
-rw-r--r--test/ns-afl-svg/1081.svg112
-rw-r--r--test/ns-afl-svg/1082.svg83
-rw-r--r--test/ns-afl-svg/1083.svgbin0 -> 4415 bytes
-rw-r--r--test/ns-afl-svg/1084.svgbin0 -> 270 bytes
-rw-r--r--test/ns-afl-svg/1085.svg8
-rw-r--r--test/ns-afl-svg/1086.svg2
-rw-r--r--test/ns-afl-svg/1087.svg14
-rw-r--r--test/ns-afl-svg/1088.svg4
-rw-r--r--test/ns-afl-svg/1089.svg18
-rw-r--r--test/ns-afl-svg/1090.svg3
-rw-r--r--test/ns-afl-svg/1091.svg1
-rw-r--r--test/ns-afl-svg/1092.svg69
-rw-r--r--test/ns-afl-svg/1093.svg17
-rw-r--r--test/ns-afl-svg/1094.svg28
-rw-r--r--test/ns-afl-svg/1095.svg68
-rw-r--r--test/ns-afl-svg/1096.svg28
-rw-r--r--test/ns-afl-svg/1097.svg5
-rw-r--r--test/ns-afl-svg/1098.svg19
-rw-r--r--test/ns-afl-svg/1099.svg13
-rw-r--r--test/ns-afl-svg/1100.svg32
-rw-r--r--test/ns-afl-svg/1101.svg4
-rw-r--r--test/ns-afl-svg/1102.svg18
-rw-r--r--test/ns-afl-svg/1103.svg4
-rw-r--r--test/ns-afl-svg/1104.svg398
-rw-r--r--test/ns-afl-svg/1105.svg14
-rw-r--r--test/ns-afl-svg/1106.svg42
-rw-r--r--test/ns-afl-svg/1107.svg25
-rw-r--r--test/ns-afl-svg/1108.svg67
-rw-r--r--test/ns-afl-svg/1109.svg22
-rw-r--r--test/ns-afl-svg/1110.svg6
-rw-r--r--test/ns-afl-svg/1111.svg16
-rw-r--r--test/ns-afl-svg/1112.svg17
-rw-r--r--test/ns-afl-svg/1113.svg6
-rw-r--r--test/ns-afl-svg/1114.svg4
-rw-r--r--test/ns-afl-svg/1115.svg11
-rw-r--r--test/ns-afl-svg/1116.svg1
-rw-r--r--test/ns-afl-svg/1117.svg53
-rw-r--r--test/ns-afl-svg/1118.svg2
-rw-r--r--test/ns-afl-svg/1119.svg11
-rw-r--r--test/ns-afl-svg/1120.svg1
-rw-r--r--test/ns-afl-svg/1121.svg84
-rw-r--r--test/ns-afl-svg/1122.svg59
-rw-r--r--test/ns-afl-svg/1123.svg73
-rw-r--r--test/ns-afl-svg/1124.svg44
-rw-r--r--test/ns-afl-svg/1125.svg145
-rw-r--r--test/ns-afl-svg/1126.svg370
-rw-r--r--test/ns-afl-svg/1127.svg380
-rw-r--r--test/ns-afl-svg/1128.svg26
-rw-r--r--test/ns-afl-svg/1129.svg49
-rw-r--r--test/ns-afl-svg/1130.svg18
-rw-r--r--test/ns-afl-svg/1131.svg17
-rw-r--r--test/ns-afl-svg/1132.svg48
-rw-r--r--test/ns-afl-svg/1133.svg13
-rw-r--r--test/ns-afl-svg/1134.svg396
-rw-r--r--test/ns-afl-svg/1135.svg24
-rw-r--r--test/ns-afl-svg/1136.svg20
-rw-r--r--test/ns-afl-svg/1137.svg58
-rw-r--r--test/ns-afl-svg/1138.svg13
-rw-r--r--test/ns-afl-svg/1139.svg11
-rw-r--r--test/ns-afl-svg/1140.svg90
-rw-r--r--test/ns-afl-svg/1141.svgbin0 -> 241 bytes
-rw-r--r--test/ns-afl-svg/1142.svg94
-rw-r--r--test/ns-afl-svg/1143.svg120
-rw-r--r--test/ns-afl-svg/1144.svg114
-rw-r--r--test/ns-afl-svg/1145.svg39
-rw-r--r--test/ns-afl-svg/1146.svg8
-rw-r--r--test/ns-afl-svg/1147.svg11
-rw-r--r--test/ns-afl-svg/1148.svg61
-rw-r--r--test/ns-afl-svg/1149.svg11
-rw-r--r--test/ns-afl-svg/1150.svg9
-rw-r--r--test/ns-afl-svg/1151.svg10
-rw-r--r--test/ns-afl-svg/1152.svg13
-rw-r--r--test/ns-afl-svg/1153.svg13
-rw-r--r--test/ns-afl-svg/1154.svg120
-rw-r--r--test/ns-afl-svg/1155.svgbin0 -> 3137 bytes
-rw-r--r--test/ns-afl-svg/1156.svg50
-rw-r--r--test/ns-afl-svg/1157.svg1
-rw-r--r--test/ns-afl-svg/1158.svg44
-rw-r--r--test/ns-afl-svg/1159.svg114
-rw-r--r--test/ns-afl-svg/1160.svg13
-rw-r--r--test/ns-afl-svg/1161.svg25
-rw-r--r--test/ns-afl-svg/1162.svg5
-rw-r--r--test/ns-afl-svg/1163.svg7
-rw-r--r--test/ns-afl-svg/1164.svg10
-rw-r--r--test/ns-afl-svg/1165.svg39
-rw-r--r--test/ns-afl-svg/1166.svgbin0 -> 10 bytes
-rw-r--r--test/ns-afl-svg/1167.svg116
-rw-r--r--test/ns-afl-svg/1168.svgbin0 -> 49 bytes
-rw-r--r--test/ns-afl-svg/1169.svg2
-rw-r--r--test/ns-afl-svg/1170.svg35
-rw-r--r--test/ns-afl-svg/1171.svg4
-rw-r--r--test/ns-afl-svg/1172.svg14
-rw-r--r--test/ns-afl-svg/1173.svg13
-rw-r--r--test/ns-afl-svg/1174.svg126
-rw-r--r--test/ns-afl-svg/1175.svgbin0 -> 40 bytes
-rw-r--r--test/ns-afl-svg/1176.svg65
-rw-r--r--test/ns-afl-svg/1177.svg1878
-rw-r--r--test/ns-afl-svg/1178.svg375
-rw-r--r--test/ns-afl-svg/1179.svg86
-rw-r--r--test/ns-afl-svg/1180.svg439
-rw-r--r--test/ns-afl-svg/1181.svg4
-rw-r--r--test/ns-afl-svg/1182.svg392
-rw-r--r--test/ns-afl-svg/1183.svg208
-rw-r--r--test/ns-afl-svg/1184.svg39
-rw-r--r--test/ns-afl-svg/1185.svg140
-rw-r--r--test/ns-afl-svg/1186.svg22
-rw-r--r--test/ns-afl-svg/1187.svg26
-rw-r--r--test/ns-afl-svg/1188.svg7
-rw-r--r--test/ns-afl-svg/1189.svg4
-rw-r--r--test/ns-afl-svg/1190.svg31
-rw-r--r--test/ns-afl-svg/1191.svg57
-rw-r--r--test/ns-afl-svg/1192.svg3
-rw-r--r--test/ns-afl-svg/1193.svg53
-rw-r--r--test/ns-afl-svg/1194.svg29
-rw-r--r--test/ns-afl-svg/1195.svg6
-rw-r--r--test/ns-afl-svg/1196.svg4
-rw-r--r--test/ns-afl-svg/1197.svg5
-rw-r--r--test/ns-afl-svg/1198.svg29
-rw-r--r--test/ns-afl-svg/1199.svg69
-rw-r--r--test/ns-afl-svg/1200.svg12
-rw-r--r--test/ns-afl-svg/1201.svg59
-rw-r--r--test/ns-afl-svg/1202.svg50
-rw-r--r--test/ns-afl-svg/1203.svg16
-rw-r--r--test/ns-afl-svg/1204.svg15
-rw-r--r--test/ns-afl-svg/1205.svg96
-rw-r--r--test/ns-afl-svg/1206.svg14
-rw-r--r--test/ns-afl-svg/1207.svg40
-rw-r--r--test/ns-afl-svg/1208.svg118
-rw-r--r--test/ns-afl-svg/1209.svg1
-rw-r--r--test/ns-afl-svg/1210.svg17
-rw-r--r--test/ns-afl-svg/1211.svg18
-rw-r--r--test/ns-afl-svg/1212.svg11
-rw-r--r--test/ns-afl-svg/1213.svg250
-rw-r--r--test/ns-afl-svg/1214.svg1
-rw-r--r--test/ns-afl-svg/1215.svg37
-rw-r--r--test/ns-afl-svg/1216.svg6
-rw-r--r--test/ns-afl-svg/1217.svg56
-rw-r--r--test/ns-afl-svg/1218.svg9
-rw-r--r--test/ns-afl-svg/1219.svg210
-rw-r--r--test/ns-afl-svg/1220.svg66
-rw-r--r--test/ns-afl-svg/1221.svg108
-rw-r--r--test/ns-afl-svg/1222.svg6
-rw-r--r--test/ns-afl-svg/1223.svg107
-rw-r--r--test/ns-afl-svg/1224.svg16
-rw-r--r--test/ns-afl-svg/1225.svg22
-rw-r--r--test/ns-afl-svg/1226.svg2
-rw-r--r--test/ns-afl-svg/1227.svg53
-rw-r--r--test/ns-afl-svg/1228.svg24
-rw-r--r--test/ns-afl-svg/1229.svg13
-rw-r--r--test/ns-afl-svg/1230.svg48
-rw-r--r--test/ns-afl-svg/1231.svg7
-rw-r--r--test/ns-afl-svg/1232.svg42
-rw-r--r--test/ns-afl-svg/1233.svg48
-rw-r--r--test/ns-afl-svg/1234.svg2
-rw-r--r--test/ns-afl-svg/1235.svg380
-rw-r--r--test/ns-afl-svg/1236.svg32
-rw-r--r--test/ns-afl-svg/1237.svg7
-rw-r--r--test/ns-afl-svg/1238.svg379
-rw-r--r--test/ns-afl-svg/1239.svg140
-rw-r--r--test/ns-afl-svg/1240.svg8
-rw-r--r--test/ns-afl-svg/1241.svg27
-rw-r--r--test/ns-afl-svg/1242.svg15
-rw-r--r--test/ns-afl-svg/1243.svg49
-rw-r--r--test/ns-afl-svg/1244.svgbin0 -> 8 bytes
-rw-r--r--test/ns-afl-svg/1245.svg3
-rw-r--r--test/ns-afl-svg/1246.svg4
-rw-r--r--test/ns-afl-svg/1247.svg11
-rw-r--r--test/ns-afl-svg/1248.svg52
-rw-r--r--test/ns-afl-svg/1249.svg73
-rw-r--r--test/ns-afl-svg/1250.svg20
-rw-r--r--test/ns-afl-svg/1251.svg5
-rw-r--r--test/ns-afl-svg/1252.svg17
-rw-r--r--test/ns-afl-svg/1253.svg2
-rw-r--r--test/ns-afl-svg/1254.svg4
-rw-r--r--test/ns-afl-svg/1255.svg93
-rw-r--r--test/ns-afl-svg/1256.svg16
-rw-r--r--test/ns-afl-svg/1257.svg11
-rw-r--r--test/ns-afl-svg/1258.svg30
-rw-r--r--test/ns-afl-svg/1259.svg5
-rw-r--r--test/ns-afl-svg/1260.svg7
-rw-r--r--test/ns-afl-svg/1261.svg16
-rw-r--r--test/ns-afl-svg/1262.svg89
-rw-r--r--test/ns-afl-svg/1263.svg4
-rw-r--r--test/ns-afl-svg/1264.svg3
-rw-r--r--test/ns-afl-svg/1265.svg33
-rw-r--r--test/ns-afl-svg/1266.svg25
-rw-r--r--test/ns-afl-svg/1267.svg11
-rw-r--r--test/ns-afl-svg/1268.svg221
-rw-r--r--test/ns-afl-svg/1269.svg22
-rw-r--r--test/ns-afl-svg/1270.svg40
-rw-r--r--test/ns-afl-svg/1271.svg144
-rw-r--r--test/ns-afl-svg/1272.svg43
-rw-r--r--test/ns-afl-svg/1273.svg118
-rw-r--r--test/ns-afl-svg/1274.svgbin0 -> 20 bytes
-rw-r--r--test/ns-afl-svg/1275.svg152
-rw-r--r--test/ns-afl-svg/1276.svg30
-rw-r--r--test/ns-afl-svg/1277.svg19
-rw-r--r--test/ns-afl-svg/1278.svg24
-rw-r--r--test/ns-afl-svg/1279.svg37
-rw-r--r--test/ns-afl-svg/1280.svg5
-rw-r--r--test/ns-afl-svg/1281.svg113
-rw-r--r--test/ns-afl-svg/1282.svg28
-rw-r--r--test/ns-afl-svg/1283.svg37
-rw-r--r--test/ns-afl-svg/1284.svg84
-rw-r--r--test/ns-afl-svg/1285.svg87
-rw-r--r--test/ns-afl-svg/1286.svg6
-rw-r--r--test/ns-afl-svg/1287.svg2
-rw-r--r--test/ns-afl-svg/1288.svg2
-rw-r--r--test/ns-afl-svg/1289.svg35
-rw-r--r--test/ns-afl-svg/1290.svg5
-rw-r--r--test/ns-afl-svg/1291.svg122
-rw-r--r--test/ns-afl-svg/1292.svg11
-rw-r--r--test/ns-afl-svg/1293.svg55
-rw-r--r--test/ns-afl-svg/1294.svg15
-rw-r--r--test/ns-afl-svg/1295.svg1
-rw-r--r--test/ns-afl-svg/1296.svg121
-rw-r--r--test/ns-afl-svg/1297.svg15
-rw-r--r--test/ns-afl-svg/1298.svg58
-rw-r--r--test/ns-afl-svg/1299.svg116
-rw-r--r--test/ns-afl-svg/1300.svg25
-rw-r--r--test/ns-afl-svg/1301.svg18
-rw-r--r--test/ns-afl-svg/1302.svg66
-rw-r--r--test/ns-afl-svg/1303.svg72
-rw-r--r--test/ns-afl-svg/1304.svg111
-rw-r--r--test/ns-afl-svg/1305.svg24
-rw-r--r--test/ns-afl-svg/1306.svg120
-rw-r--r--test/ns-afl-svg/1307.svg46
-rw-r--r--test/ns-afl-svg/1308.svg381
-rw-r--r--test/ns-afl-svg/1309.svg34
-rw-r--r--test/ns-afl-svg/1310.svg65
-rw-r--r--test/ns-afl-svg/1311.svg362
-rw-r--r--test/ns-afl-svg/1312.svg68
-rw-r--r--test/ns-afl-svg/1313.svg3
-rw-r--r--test/ns-afl-svg/1314.svg18
-rw-r--r--test/ns-afl-svg/1315.svg115
-rw-r--r--test/ns-afl-svg/1316.svg27
-rw-r--r--test/ns-afl-svg/1317.svg357
-rw-r--r--test/ns-afl-svg/1318.svg57
-rw-r--r--test/ns-afl-svg/1319.svg1
-rw-r--r--test/ns-afl-svg/1320.svg416
-rw-r--r--test/ns-afl-svg/1321.svg87
-rw-r--r--test/ns-afl-svg/1322.svg5
-rw-r--r--test/ns-afl-svg/1323.svg2
-rw-r--r--test/ns-afl-svg/1324.svgbin0 -> 32 bytes
-rw-r--r--test/ns-afl-svg/1325.svg2
-rw-r--r--test/ns-afl-svg/1326.svg2
-rw-r--r--test/ns-afl-svg/1327.svg11
-rw-r--r--test/ns-afl-svg/1328.svg123
-rw-r--r--test/ns-afl-svg/1329.svg85
-rw-r--r--test/ns-afl-svg/1330.svg8
-rw-r--r--test/ns-afl-svg/1331.svg65
-rw-r--r--test/ns-afl-svg/1332.svg41
-rw-r--r--test/ns-afl-svg/1333.svg386
-rw-r--r--test/ns-afl-svg/1334.svg30
-rw-r--r--test/ns-afl-svg/1335.svg9
-rw-r--r--test/ns-afl-svg/1336.svg62
-rw-r--r--test/ns-afl-svg/1337.svg15
-rw-r--r--test/ns-afl-svg/1338.svg1
-rw-r--r--test/ns-afl-svg/1339.svg202
-rw-r--r--test/ns-afl-svg/1340.svg15
-rw-r--r--test/ns-afl-svg/1341.svg4
-rw-r--r--test/ns-afl-svg/1342.svg150
-rw-r--r--test/ns-afl-svg/1343.svg79
-rw-r--r--test/ns-afl-svg/1344.svg2
-rw-r--r--test/ns-afl-svg/1345.svg387
-rw-r--r--test/ns-afl-svg/1346.svg113
-rw-r--r--test/ns-afl-svg/1347.svg385
-rw-r--r--test/ns-afl-svg/1348.svg48
-rw-r--r--test/ns-afl-svg/1349.svg40
-rw-r--r--test/ns-afl-svg/1350.svg6
-rw-r--r--test/ns-afl-svg/1351.svg96
-rw-r--r--test/ns-afl-svg/1352.svg385
-rw-r--r--test/ns-afl-svg/1353.svg61
-rw-r--r--test/ns-afl-svg/1354.svg10
-rw-r--r--test/ns-afl-svg/1355.svg50
-rw-r--r--test/ns-afl-svg/1356.svg61
-rw-r--r--test/ns-afl-svg/1357.svg43
-rw-r--r--test/ns-afl-svg/1358.svg9
-rw-r--r--test/ns-afl-svg/1359.svg10
-rw-r--r--test/ns-afl-svg/1360.svg3
-rw-r--r--test/ns-afl-svg/1361.svg21
-rw-r--r--test/ns-afl-svg/1362.svg157
-rw-r--r--test/ns-afl-svg/1363.svg42
-rw-r--r--test/ns-afl-svg/1364.svg42
-rw-r--r--test/ns-afl-svg/1365.svg140
-rw-r--r--test/ns-afl-svg/1366.svg27
-rw-r--r--test/ns-afl-svg/1367.svg32
-rw-r--r--test/ns-afl-svg/1368.svg381
-rw-r--r--test/ns-afl-svg/1369.svg145
-rw-r--r--test/ns-afl-svg/1370.svg17
-rw-r--r--test/ns-afl-svg/1371.svg73
-rw-r--r--test/ns-afl-svg/1372.svg15
-rw-r--r--test/ns-afl-svg/1373.svg27
-rw-r--r--test/ns-afl-svg/1374.svg35
-rw-r--r--test/ns-afl-svg/1375.svg14
-rw-r--r--test/ns-afl-svg/1376.svg142
-rw-r--r--test/ns-afl-svg/1377.svg37
-rw-r--r--test/ns-afl-svg/1378.svgbin0 -> 824 bytes
-rw-r--r--test/ns-afl-svg/1379.svg14
-rw-r--r--test/ns-afl-svg/1380.svg13
-rw-r--r--test/ns-afl-svg/1381.svg41
-rw-r--r--test/ns-afl-svg/1382.svg112
-rw-r--r--test/ns-afl-svg/1383.svg4
-rw-r--r--test/ns-afl-svg/1384.svg15
-rw-r--r--test/ns-afl-svg/1385.svg20
-rw-r--r--test/ns-afl-svg/1386.svg4
-rw-r--r--test/ns-afl-svg/1387.svgbin0 -> 455 bytes
-rw-r--r--test/ns-afl-svg/1388.svg147
-rw-r--r--test/ns-afl-svg/1389.svg10
-rw-r--r--test/ns-afl-svg/1390.svg40
-rw-r--r--test/ns-afl-svg/1391.svg59
-rw-r--r--test/ns-afl-svg/1392.svg3
-rw-r--r--test/ns-afl-svg/1393.svg115
-rw-r--r--test/ns-afl-svg/1394.svg35
-rw-r--r--test/ns-afl-svg/1395.svg24
-rw-r--r--test/ns-afl-svg/1396.svg39
-rw-r--r--test/ns-afl-svg/1397.svg153
-rw-r--r--test/ns-afl-svg/1398.svg5
-rw-r--r--test/ns-afl-svg/1399.svg51
-rw-r--r--test/ns-afl-svg/1400.svg28
-rw-r--r--test/ns-afl-svg/1401.svg6
-rw-r--r--test/ns-afl-svg/1402.svg14
-rw-r--r--test/ns-afl-svg/1403.svg7
-rw-r--r--test/ns-afl-svg/1404.svg31
-rw-r--r--test/ns-afl-svg/1405.svg80
-rw-r--r--test/ns-afl-svg/1406.svg139
-rw-r--r--test/ns-afl-svg/1407.svg80
-rw-r--r--test/ns-afl-svg/1408.svg25
-rw-r--r--test/ns-afl-svg/1409.svg53
-rw-r--r--test/ns-afl-svg/1410.svg24
-rw-r--r--test/ns-afl-svg/1411.svg117
-rw-r--r--test/ns-afl-svg/1412.svg12
-rw-r--r--test/ns-afl-svg/1413.svgbin0 -> 2360 bytes
-rw-r--r--test/ns-afl-svg/1414.svg24
-rw-r--r--test/ns-afl-svg/1415.svg1
-rw-r--r--test/ns-afl-svg/1416.svg1
-rw-r--r--test/ns-afl-svg/1417.svg24
-rw-r--r--test/ns-afl-svg/1418.svg134
-rw-r--r--test/ns-afl-svg/1419.svg80
-rw-r--r--test/ns-afl-svg/1420.svg12
-rw-r--r--test/ns-afl-svg/1421.svg169
-rw-r--r--test/ns-afl-svg/1422.svg25
-rw-r--r--test/ns-afl-svg/1423.svg370
-rw-r--r--test/ns-afl-svg/1424.svg92
-rw-r--r--test/ns-afl-svg/1425.svg135
-rw-r--r--test/ns-afl-svg/1426.svg84
-rw-r--r--test/ns-afl-svg/1427.svg24
-rw-r--r--test/ns-afl-svg/1428.svg13
-rw-r--r--test/ns-afl-svg/1429.svgbin0 -> 930 bytes
-rw-r--r--test/ns-afl-svg/1430.svg7
-rw-r--r--test/ns-afl-svg/1431.svg12
-rw-r--r--test/ns-afl-svg/1432.svg129
-rw-r--r--test/ns-afl-svg/1433.svg96
-rw-r--r--test/ns-afl-svg/1434.svg51
-rw-r--r--test/ns-afl-svg/1435.svg21
-rw-r--r--test/ns-afl-svg/1436.svg88
-rw-r--r--test/ns-afl-svg/1437.svg51
-rw-r--r--test/ns-afl-svg/1438.svg28
-rw-r--r--test/ns-afl-svg/1439.svg70
-rw-r--r--test/ns-afl-svg/1440.svg26
-rw-r--r--test/ns-afl-svg/1441.svg94
-rw-r--r--test/ns-afl-svg/1442.svg7
-rw-r--r--test/ns-afl-svg/1443.svg207
-rw-r--r--test/ns-afl-svg/1444.svgbin0 -> 77 bytes
-rw-r--r--test/ns-afl-svg/1445.svg7
-rw-r--r--test/ns-afl-svg/1446.svg25
-rw-r--r--test/ns-afl-svg/1447.svg15
-rw-r--r--test/ns-afl-svg/1448.svg35
-rw-r--r--test/ns-afl-svg/1449.svg79
-rw-r--r--test/ns-afl-svg/1450.svg8
-rw-r--r--test/ns-afl-svg/1451.svg20
-rw-r--r--test/ns-afl-svg/1452.svg10
-rw-r--r--test/ns-afl-svg/1453.svg79
-rw-r--r--test/ns-afl-svg/1454.svg166
-rw-r--r--test/ns-afl-svg/1455.svg24
-rw-r--r--test/ns-afl-svg/1456.svg11
-rw-r--r--test/ns-afl-svg/1457.svg12
-rw-r--r--test/ns-afl-svg/1458.svg361
-rw-r--r--test/ns-afl-svg/1459.svg70
-rw-r--r--test/ns-afl-svg/1460.svg385
-rw-r--r--test/ns-afl-svg/1461.svg22
-rw-r--r--test/ns-afl-svg/1462.svg385
-rw-r--r--test/ns-afl-svg/1463.svg26
-rw-r--r--test/ns-afl-svg/1464.svg7
-rw-r--r--test/ns-afl-svg/1465.svgbin0 -> 144 bytes
-rw-r--r--test/ns-afl-svg/1466.svg204
-rw-r--r--test/ns-afl-svg/1467.svg58
-rw-r--r--test/ns-afl-svg/1468.svg404
-rw-r--r--test/ns-afl-svg/1469.svg54
-rw-r--r--test/ns-afl-svg/1470.svg41
-rw-r--r--test/ns-afl-svg/1471.svg24
-rw-r--r--test/ns-afl-svg/1472.svg7
-rw-r--r--test/ns-afl-svg/1473.svg12
-rw-r--r--test/ns-afl-svg/1474.svg55
-rw-r--r--test/ns-afl-svg/1475.svg7
-rw-r--r--test/ns-afl-svg/1476.svg34
-rw-r--r--test/ns-afl-svg/1477.svg386
-rw-r--r--test/ns-afl-svg/1478.svg16
-rw-r--r--test/ns-afl-svg/1479.svg7
-rw-r--r--test/ns-afl-svg/1480.svg22
-rw-r--r--test/ns-afl-svg/1481.svg44
-rw-r--r--test/ns-afl-svg/1482.svg115
-rw-r--r--test/ns-afl-svg/1483.svg78
-rw-r--r--test/ns-afl-svg/1484.svg5
-rw-r--r--test/ns-afl-svg/1485.svg80
-rw-r--r--test/ns-afl-svg/1486.svg5
-rw-r--r--test/ns-afl-svg/1487.svg3
-rw-r--r--test/ns-afl-svg/1488.svg23
-rw-r--r--test/ns-afl-svg/1489.svg13
-rw-r--r--test/ns-afl-svg/1490.svg39
-rw-r--r--test/ns-afl-svg/1491.svg369
-rw-r--r--test/ns-afl-svg/1492.svg23
-rw-r--r--test/ns-afl-svg/1493.svg356
-rw-r--r--test/ns-afl-svg/1494.svg64
-rw-r--r--test/ns-afl-svg/1495.svg40
-rw-r--r--test/ns-afl-svg/1496.svg44
-rw-r--r--test/ns-afl-svg/1497.svg25
-rw-r--r--test/ns-afl-svg/1498.svg44
-rw-r--r--test/ns-afl-svg/1499.svg42
-rw-r--r--test/ns-afl-svg/1500.svg5
-rw-r--r--test/ns-afl-svg/1501.svg74
-rw-r--r--test/ns-afl-svg/1502.svg13
-rw-r--r--test/ns-afl-svg/1503.svg380
-rw-r--r--test/ns-afl-svg/1504.svg6
-rw-r--r--test/ns-afl-svg/1505.svg380
-rw-r--r--test/ns-afl-svg/1506.svg114
-rw-r--r--test/ns-afl-svg/1507.svg14
-rw-r--r--test/ns-afl-svg/1508.svg4
-rw-r--r--test/ns-afl-svg/1509.svg17
-rw-r--r--test/ns-afl-svg/1510.svg12
-rw-r--r--test/ns-afl-svg/1511.svg116
-rw-r--r--test/ns-afl-svg/1512.svg382
-rw-r--r--test/ns-afl-svg/1513.svgbin0 -> 96 bytes
-rw-r--r--test/ns-afl-svg/1514.svg76
-rw-r--r--test/ns-afl-svg/1515.svg20
-rw-r--r--test/ns-afl-svg/1516.svg4
-rw-r--r--test/ns-afl-svg/1517.svg7
-rw-r--r--test/ns-afl-svg/1518.svg8
-rw-r--r--test/ns-afl-svg/1519.svg20
-rw-r--r--test/ns-afl-svg/1520.svg4
-rw-r--r--test/ns-afl-svg/1521.svg5
-rw-r--r--test/ns-afl-svg/1522.svg22
-rw-r--r--test/ns-afl-svg/1523.svgbin0 -> 64 bytes
-rw-r--r--test/ns-afl-svg/1524.svg7
-rw-r--r--test/ns-afl-svg/1525.svg15
-rw-r--r--test/ns-afl-svg/1526.svg1
-rw-r--r--test/ns-afl-svg/1527.svg358
-rw-r--r--test/ns-afl-svg/1528.svg244
-rw-r--r--test/ns-afl-svg/1529.svg49
-rw-r--r--test/ns-afl-svg/1530.svg7
-rw-r--r--test/ns-afl-svg/1531.svg6
-rw-r--r--test/ns-afl-svg/1532.svg12
-rw-r--r--test/ns-afl-svg/1533.svg60
-rw-r--r--test/ns-afl-svg/1534.svg146
-rw-r--r--test/ns-afl-svg/1535.svg22
-rw-r--r--test/ns-afl-svg/1536.svg91
-rw-r--r--test/ns-afl-svg/1537.svg24
-rw-r--r--test/ns-afl-svg/1538.svg31
-rw-r--r--test/ns-afl-svg/1539.svgbin0 -> 173 bytes
-rw-r--r--test/ns-afl-svg/1540.svg72
-rw-r--r--test/ns-afl-svg/1541.svg28
-rw-r--r--test/ns-afl-svg/1542.svg92
-rw-r--r--test/ns-afl-svg/1543.svg3
-rw-r--r--test/ns-afl-svg/1544.svg20
-rw-r--r--test/ns-afl-svg/1545.svg368
-rw-r--r--test/ns-afl-svg/1546.svg19
-rw-r--r--test/ns-afl-svg/1547.svgbin0 -> 88 bytes
-rw-r--r--test/ns-afl-svg/1548.svg794
-rw-r--r--test/ns-afl-svg/1549.svg67
-rw-r--r--test/ns-afl-svg/1550.svg102
-rw-r--r--test/ns-afl-svg/1551.svg117
-rw-r--r--test/ns-afl-svg/1552.svg106
-rw-r--r--test/ns-afl-svg/1553.svg52
-rw-r--r--test/ns-afl-svg/1554.svg11
-rw-r--r--test/ns-afl-svg/1555.svg11
-rw-r--r--test/ns-afl-svg/1556.svg12
-rw-r--r--test/ns-afl-svg/1557.svg121
-rw-r--r--test/ns-afl-svg/1558.svg35
-rw-r--r--test/ns-afl-svg/1559.svg13
-rw-r--r--test/ns-afl-svg/1560.svg27
-rw-r--r--test/ns-afl-svg/1561.svg15
-rw-r--r--test/ns-afl-svg/1562.svgbin0 -> 634 bytes
-rw-r--r--test/ns-afl-svg/1563.svg50
-rw-r--r--test/ns-afl-svg/1564.svgbin0 -> 134 bytes
-rw-r--r--test/ns-afl-svg/1565.svg17
-rw-r--r--test/ns-afl-svg/1566.svg369
-rw-r--r--test/ns-afl-svg/1567.svg81
-rw-r--r--test/ns-afl-svg/1568.svg13
-rw-r--r--test/ns-afl-svg/1569.svg12
-rw-r--r--test/ns-afl-svg/1570.svg19
-rw-r--r--test/ns-afl-svg/1571.svg47
-rw-r--r--test/ns-afl-svg/1572.svg9
-rw-r--r--test/ns-afl-svg/1573.svg6
-rw-r--r--test/ns-afl-svg/1574.svgbin0 -> 545 bytes
-rw-r--r--test/ns-afl-svg/1575.svg78
-rw-r--r--test/ns-afl-svg/1576.svg19
-rw-r--r--test/ns-afl-svg/1577.svg19
-rw-r--r--test/ns-afl-svg/1578.svg3
-rw-r--r--test/ns-afl-svg/1579.svg24
-rw-r--r--test/ns-afl-svg/1580.svg6
-rw-r--r--test/ns-afl-svg/1581.svg1
-rw-r--r--test/ns-afl-svg/1582.svg32
-rw-r--r--test/ns-afl-svg/1583.svg85
-rw-r--r--test/ns-afl-svg/1584.svg375
-rw-r--r--test/ns-afl-svg/1585.svg13
-rw-r--r--test/ns-afl-svg/1586.svg4
-rw-r--r--test/ns-afl-svg/1587.svg106
-rw-r--r--test/ns-afl-svg/1588.svg42
-rw-r--r--test/ns-afl-svg/1589.svg94
-rw-r--r--test/ns-afl-svg/1590.svg14
-rw-r--r--test/ns-afl-svg/1591.svg14
-rw-r--r--test/ns-afl-svg/1592.svg373
-rw-r--r--test/ns-afl-svg/1593.svg54
-rw-r--r--test/ns-afl-svg/1594.svg1
-rw-r--r--test/ns-afl-svg/1595.svg12
-rw-r--r--test/ns-afl-svg/1596.svg17
-rw-r--r--test/ns-afl-svg/1597.svg4
-rw-r--r--test/ns-afl-svg/1598.svgbin0 -> 54 bytes
-rw-r--r--test/ns-afl-svg/1599.svg24
-rw-r--r--test/ns-afl-svg/1600.svg32
-rw-r--r--test/ns-afl-svg/1601.svg8
-rw-r--r--test/ns-afl-svg/1602.svg14
-rw-r--r--test/ns-afl-svg/1603.svg24
-rw-r--r--test/ns-afl-svg/1604.svg46
-rw-r--r--test/ns-afl-svg/1605.svg31
-rw-r--r--test/ns-afl-svg/1606.svg31
-rw-r--r--test/ns-afl-svg/1607.svg16
-rw-r--r--test/ns-afl-svg/1608.svg25
-rw-r--r--test/ns-afl-svg/1609.svg7
-rw-r--r--test/ns-afl-svg/1610.svg38
-rw-r--r--test/ns-afl-svg/1611.svg376
-rw-r--r--test/ns-afl-svg/1612.svg67
-rw-r--r--test/ns-afl-svg/1613.svgbin0 -> 26 bytes
-rw-r--r--test/ns-afl-svg/1614.svg73
-rw-r--r--test/ns-afl-svg/1615.svg80
-rw-r--r--test/ns-afl-svg/1616.svg38
-rw-r--r--test/ns-afl-svg/1617.svg126
-rw-r--r--test/ns-afl-svg/1618.svg31
-rw-r--r--test/ns-afl-svg/1619.svg11
-rw-r--r--test/ns-afl-svg/1620.svg19
-rw-r--r--test/ns-afl-svg/1621.svg28
-rw-r--r--test/ns-afl-svg/1622.svg397
-rw-r--r--test/ns-afl-svg/1623.svg20
-rw-r--r--test/ns-afl-svg/1624.svg212
-rw-r--r--test/ns-afl-svg/1625.svg120
-rw-r--r--test/ns-afl-svg/1626.svg11
-rw-r--r--test/ns-afl-svg/1627.svg14
-rw-r--r--test/ns-afl-svg/1628.svg7
-rw-r--r--test/ns-afl-svg/1629.svg110
-rw-r--r--test/ns-afl-svg/1630.svg94
-rw-r--r--test/ns-afl-svg/1631.svg4
-rw-r--r--test/ns-afl-svg/1632.svg15
-rw-r--r--test/ns-afl-svg/1633.svg5
-rw-r--r--test/ns-afl-svg/1634.svg63
-rw-r--r--test/ns-afl-svg/1635.svgbin0 -> 114 bytes
-rw-r--r--test/ns-afl-svg/1636.svg35
-rw-r--r--test/ns-afl-svg/1637.svg71
-rw-r--r--test/ns-afl-svg/1638.svg140
-rw-r--r--test/ns-afl-svg/1639.svg55
-rw-r--r--test/ns-afl-svg/1640.svg11
-rw-r--r--test/ns-afl-svg/1641.svg37
-rw-r--r--test/ns-afl-svg/1642.svg54
-rw-r--r--test/ns-afl-svg/1643.svg7
-rw-r--r--test/ns-afl-svg/1644.svg25
-rw-r--r--test/ns-afl-svg/1645.svg13
-rw-r--r--test/ns-afl-svg/1646.svg123
-rw-r--r--test/ns-afl-svg/1647.svg30
-rw-r--r--test/ns-afl-svg/1648.svg12
-rw-r--r--test/ns-afl-svg/1649.svg4
-rw-r--r--test/ns-afl-svg/1650.svg50
-rw-r--r--test/ns-afl-svg/1651.svg115
-rw-r--r--test/ns-afl-svg/1652.svg5
-rw-r--r--test/ns-afl-svg/1653.svg78
-rw-r--r--test/ns-afl-svg/1654.svg38
-rw-r--r--test/ns-afl-svg/1655.svg129
-rw-r--r--test/ns-afl-svg/1656.svg13
-rw-r--r--test/ns-afl-svg/1657.svg2
-rw-r--r--test/ns-afl-svg/1658.svg380
-rw-r--r--test/ns-afl-svg/1659.svg19
-rw-r--r--test/ns-afl-svg/1660.svg11
-rw-r--r--test/ns-afl-svg/1661.svg12
-rw-r--r--test/ns-afl-svg/1662.svg5
-rw-r--r--test/ns-afl-svg/1663.svg8
-rw-r--r--test/ns-afl-svg/1664.svg8
-rw-r--r--test/ns-afl-svg/1665.svg385
-rw-r--r--test/ns-afl-svg/1666.svg352
-rw-r--r--test/ns-afl-svg/1667.svg353
-rw-r--r--test/ns-afl-svg/1668.svg34
-rw-r--r--test/ns-afl-svg/1669.svg16
-rw-r--r--test/ns-afl-svg/1670.svg133
-rw-r--r--test/ns-afl-svg/1671.svg165
-rw-r--r--test/ns-afl-svg/1672.svg389
-rw-r--r--test/ns-afl-svg/1673.svg50
-rw-r--r--test/ns-afl-svg/1674.svg2
-rw-r--r--test/ns-afl-svg/1675.svg26
-rw-r--r--test/ns-afl-svg/1676.svg14
-rw-r--r--test/ns-afl-svg/1677.svg4
-rw-r--r--test/ns-afl-svg/1678.svg377
-rw-r--r--test/ns-afl-svg/1679.svg87
-rw-r--r--test/ns-afl-svg/1680.svg33
-rw-r--r--test/ns-afl-svg/1681.svg80
-rw-r--r--test/ns-afl-svg/1682.svg69
-rw-r--r--test/ns-afl-svg/1683.svg3
-rw-r--r--test/ns-afl-svg/1684.svg52
-rw-r--r--test/ns-afl-svg/1685.svg46
-rw-r--r--test/ns-afl-svg/1686.svg7
-rw-r--r--test/ns-afl-svg/1687.svg56
-rw-r--r--test/ns-afl-svg/1688.svg54
-rw-r--r--test/ns-afl-svg/1689.svgbin0 -> 137 bytes
-rw-r--r--test/ns-afl-svg/1690.svg21
-rw-r--r--test/ns-afl-svg/1691.svg2
-rw-r--r--test/ns-afl-svg/1692.svg369
-rw-r--r--test/ns-afl-svg/1693.svg24
-rw-r--r--test/ns-afl-svg/1694.svg380
-rw-r--r--test/ns-afl-svg/1695.svg5
-rw-r--r--test/ns-afl-svg/1696.svg126
-rw-r--r--test/ns-afl-svg/1697.svg36
-rw-r--r--test/ns-afl-svg/1698.svg42
-rw-r--r--test/ns-afl-svg/1699.svg26
-rw-r--r--test/ns-afl-svg/1700.svg15
-rw-r--r--test/ns-afl-svg/1701.svgbin0 -> 16 bytes
-rw-r--r--test/ns-afl-svg/1702.svg11
-rw-r--r--test/ns-afl-svg/1703.svg59
-rw-r--r--test/ns-afl-svg/1704.svg2
-rw-r--r--test/ns-afl-svg/1705.svg6
-rw-r--r--test/ns-afl-svg/1706.svg31
-rw-r--r--test/ns-afl-svg/1707.svg316
-rw-r--r--test/ns-afl-svg/1708.svg16
-rw-r--r--test/ns-afl-svg/1709.svg234
-rw-r--r--test/ns-afl-svg/1710.svg50
-rw-r--r--test/ns-afl-svg/1711.svg46
-rw-r--r--test/ns-afl-svg/1712.svg8
-rw-r--r--test/ns-afl-svg/1713.svg67
-rw-r--r--test/ns-afl-svg/1714.svg33
-rw-r--r--test/ns-afl-svg/1715.svg123
-rw-r--r--test/ns-afl-svg/1716.svg11
-rw-r--r--test/ns-afl-svg/1717.svg11
-rw-r--r--test/ns-afl-svg/1718.svg3
-rw-r--r--test/ns-afl-svg/1719.svg31
-rw-r--r--test/ns-afl-svg/1720.svg68
-rw-r--r--test/ns-afl-svg/1721.svg6
-rw-r--r--test/ns-afl-svg/1722.svg387
-rw-r--r--test/ns-afl-svg/1723.svg4
-rw-r--r--test/ns-afl-svg/1724.svg18
-rw-r--r--test/ns-afl-svg/1725.svg8
-rw-r--r--test/ns-afl-svg/1726.svg41
-rw-r--r--test/ns-afl-svg/1727.svg40
-rw-r--r--test/ns-afl-svg/1728.svg4
-rw-r--r--test/ns-afl-svg/1729.svg115
-rw-r--r--test/ns-afl-svg/1730.svg5
-rw-r--r--test/ns-afl-svg/1731.svg49
-rw-r--r--test/ns-afl-svg/1732.svg45
-rw-r--r--test/ns-afl-svg/1733.svg14
-rw-r--r--test/ns-afl-svg/1734.svg16
-rw-r--r--test/ns-afl-svg/1735.svg7
-rw-r--r--test/ns-afl-svg/1736.svg1
-rw-r--r--test/ns-afl-svg/1737.svg303
-rw-r--r--test/ns-afl-svg/1738.svg18
-rw-r--r--test/ns-afl-svg/1739.svg22
-rw-r--r--test/ns-afl-svg/1740.svg128
-rw-r--r--test/ns-afl-svg/1741.svg4
-rw-r--r--test/ns-afl-svg/1742.svg8
-rw-r--r--test/ns-afl-svg/1743.svg34
-rw-r--r--test/ns-afl-svg/1744.svg37
-rw-r--r--test/ns-afl-svg/1745.svg4
-rw-r--r--test/ns-afl-svg/1746.svg35
-rw-r--r--test/ns-afl-svg/1747.svg30
-rw-r--r--test/ns-afl-svg/1748.svg116
-rw-r--r--test/ns-afl-svg/1749.svg15
-rw-r--r--test/ns-afl-svg/1750.svg18
-rw-r--r--test/ns-afl-svg/1751.svg11
-rw-r--r--test/ns-afl-svg/1752.svg46
-rw-r--r--test/ns-afl-svg/1753.svg3
-rw-r--r--test/ns-afl-svg/1754.svg100
-rw-r--r--test/ns-afl-svg/1755.svg12
-rw-r--r--test/ns-afl-svg/1756.svg8
-rw-r--r--test/ns-afl-svg/1757.svg64
-rw-r--r--test/ns-afl-svg/1758.svg86
-rw-r--r--test/ns-afl-svg/1759.svg15
-rw-r--r--test/ns-afl-svg/1760.svg9
-rw-r--r--test/ns-afl-svg/1761.svg13
-rw-r--r--test/ns-afl-svg/1762.svg84
-rw-r--r--test/ns-afl-svg/1763.svg378
-rw-r--r--test/ns-afl-svg/1764.svg7
-rw-r--r--test/ns-afl-svg/1765.svg6
-rw-r--r--test/ns-afl-svg/1766.svg13
-rw-r--r--test/ns-afl-svg/1767.svg2
-rw-r--r--test/ns-afl-svg/1768.svg3
-rw-r--r--test/ns-afl-svg/1769.svg11
-rw-r--r--test/ns-afl-svg/1770.svg4
-rw-r--r--test/ns-afl-svg/1771.svg24
-rw-r--r--test/ns-afl-svg/1772.svg6
-rw-r--r--test/ns-afl-svg/1773.svg70
-rw-r--r--test/ns-afl-svg/1774.svg3
-rw-r--r--test/ns-afl-svg/1775.svg71
-rw-r--r--test/ns-afl-svg/1776.svg32
-rw-r--r--test/ns-afl-svg/1777.svg87
-rw-r--r--test/ns-afl-svg/1778.svg35
-rw-r--r--test/ns-afl-svg/1779.svg55
-rw-r--r--test/ns-afl-svg/1780.svg15
-rw-r--r--test/ns-afl-svg/1781.svg11
-rw-r--r--test/ns-afl-svg/1782.svg48
-rw-r--r--test/ns-afl-svg/1783.svg11
-rw-r--r--test/ns-afl-svg/1784.svg8
-rw-r--r--test/ns-afl-svg/1785.svg34
-rw-r--r--test/ns-afl-svg/1786.svg2
-rw-r--r--test/ns-afl-svg/1787.svgbin0 -> 1374 bytes
-rw-r--r--test/ns-afl-svg/1788.svg4
-rw-r--r--test/ns-afl-svg/1789.svg12
-rw-r--r--test/ns-afl-svg/1790.svg145
-rw-r--r--test/ns-afl-svg/1791.svg64
-rw-r--r--test/ns-afl-svg/1792.svg357
-rw-r--r--test/ns-afl-svg/1793.svg41
-rw-r--r--test/ns-afl-svg/1794.svg4
-rw-r--r--test/ns-afl-svg/1795.svg27
-rw-r--r--test/ns-afl-svg/1796.svg8
-rw-r--r--test/ns-afl-svg/1797.svg4
-rw-r--r--test/ns-afl-svg/1798.svg14
-rw-r--r--test/ns-afl-svg/1799.svg6
-rw-r--r--test/ns-afl-svg/1800.svg16
-rw-r--r--test/ns-afl-svg/1801.svg2
-rw-r--r--test/ns-afl-svg/1802.svg14
-rw-r--r--test/ns-afl-svg/1803.svg17
-rw-r--r--test/ns-afl-svg/1804.svg84
-rw-r--r--test/ns-afl-svg/1805.svg12
-rw-r--r--test/ns-afl-svg/1806.svg47
-rw-r--r--test/ns-afl-svg/1807.svg9
-rw-r--r--test/ns-afl-svg/1808.svg70
-rw-r--r--test/ns-afl-svg/1809.svg1
-rw-r--r--test/ns-afl-svg/1810.svg52
-rw-r--r--test/ns-afl-svg/1811.svg56
-rw-r--r--test/ns-afl-svg/1812.svg11
-rw-r--r--test/ns-afl-svg/1813.svg9
-rw-r--r--test/ns-afl-svg/1814.svg353
-rw-r--r--test/ns-afl-svg/1815.svg2
-rw-r--r--test/ns-afl-svg/1816.svg12
-rw-r--r--test/ns-afl-svg/1817.svg5
-rw-r--r--test/ns-afl-svg/1818.svg4
-rw-r--r--test/ns-afl-svg/1819.svg9
-rw-r--r--test/ns-afl-svg/1820.svg77
-rw-r--r--test/ns-afl-svg/1821.svg33
-rw-r--r--test/ns-afl-svg/1822.svg9
-rw-r--r--test/ns-afl-svg/1823.svgbin0 -> 271 bytes
-rw-r--r--test/ns-afl-svg/1824.svg44
-rw-r--r--test/ns-afl-svg/1825.svg25
-rw-r--r--test/ns-afl-svg/1826.svg33
-rw-r--r--test/ns-afl-svg/1827.svg15
-rw-r--r--test/ns-afl-svg/1828.svg33
-rw-r--r--test/ns-afl-svg/1829.svgbin0 -> 106 bytes
-rw-r--r--test/ns-afl-svg/1830.svg29
-rw-r--r--test/ns-afl-svg/1831.svg86
-rw-r--r--test/ns-afl-svg/1832.svg15
-rw-r--r--test/ns-afl-svg/1833.svg30
-rw-r--r--test/ns-afl-svg/1834.svg32
-rw-r--r--test/ns-afl-svg/1835.svg24
-rw-r--r--test/ns-afl-svg/1836.svg356
-rw-r--r--test/ns-afl-svg/1837.svg15
-rw-r--r--test/ns-afl-svg/1838.svg46
-rw-r--r--test/ns-afl-svg/1839.svg78
-rw-r--r--test/ns-afl-svg/1840.svg14
-rw-r--r--test/ns-afl-svg/1841.svg61
-rw-r--r--test/ns-afl-svg/1842.svgbin0 -> 234 bytes
-rw-r--r--test/ns-afl-svg/1843.svg112
-rw-r--r--test/ns-afl-svg/1844.svg7
-rw-r--r--test/ns-afl-svg/1845.svg424
-rw-r--r--test/ns-afl-svg/1846.svg9
-rw-r--r--test/ns-afl-svg/1847.svg14
-rw-r--r--test/ns-afl-svg/1848.svg4
-rw-r--r--test/ns-afl-svg/1849.svg66
-rw-r--r--test/ns-afl-svg/1850.svg12
-rw-r--r--test/ns-afl-svg/1851.svg15
-rw-r--r--test/ns-afl-svg/1852.svg9
-rw-r--r--test/ns-afl-svg/1853.svg12
-rw-r--r--test/ns-afl-svg/1854.svg53
-rw-r--r--test/ns-afl-svg/1855.svg157
-rw-r--r--test/ns-afl-svg/1856.svg24
-rw-r--r--test/ns-afl-svg/1857.svg24
-rw-r--r--test/ns-afl-svg/1858.svg7
-rw-r--r--test/ns-afl-svg/1859.svg101
-rw-r--r--test/ns-afl-svg/1860.svg20
-rw-r--r--test/ns-afl-svg/1861.svg26
-rw-r--r--test/ns-afl-svg/1862.svg182
-rw-r--r--test/ns-afl-svg/1863.svg354
-rw-r--r--test/ns-afl-svg/1864.svg101
-rw-r--r--test/ns-afl-svg/1865.svg27
-rw-r--r--test/ns-afl-svg/1866.svg73
-rw-r--r--test/ns-afl-svg/1867.svg67
-rw-r--r--test/ns-afl-svg/1868.svg118
-rw-r--r--test/ns-afl-svg/1869.svg148
-rw-r--r--test/ns-afl-svg/1870.svg4
-rw-r--r--test/ns-afl-svg/1871.svg7
-rw-r--r--test/ns-afl-svg/1872.svg3
-rw-r--r--test/ns-afl-svg/1873.svg6
-rw-r--r--test/ns-afl-svg/1874.svg1
-rw-r--r--test/ns-afl-svg/1875.svg54
-rw-r--r--test/ns-afl-svg/1876.svgbin0 -> 70 bytes
-rw-r--r--test/ns-afl-svg/1877.svg6
-rw-r--r--test/ns-afl-svg/1878.svg55
-rw-r--r--test/ns-afl-svg/1879.svg83
-rw-r--r--test/ns-afl-svg/1880.svg376
-rw-r--r--test/ns-afl-svg/1881.svg459
-rw-r--r--test/ns-afl-svg/1882.svg5
-rw-r--r--test/ns-afl-svg/1883.svg6
-rw-r--r--test/ns-afl-svg/1884.svg421
-rw-r--r--test/ns-afl-svg/1885.svg61
-rw-r--r--test/ns-afl-svg/1886.svg13
-rw-r--r--test/ns-afl-svg/1887.svg84
-rw-r--r--test/ns-afl-svg/1888.svg6
-rw-r--r--test/ns-afl-svg/1889.svg1
-rw-r--r--test/ns-afl-svg/1890.svg385
-rw-r--r--test/ns-afl-svg/1891.svg123
-rw-r--r--test/ns-afl-svg/1892.svg59
-rw-r--r--test/ns-afl-svg/1893.svg19
-rw-r--r--test/ns-afl-svg/1894.svg29
-rw-r--r--test/ns-afl-svg/1895.svg24
-rw-r--r--test/ns-afl-svg/1896.svg27
-rw-r--r--test/ns-afl-svg/1897.svg4
-rw-r--r--test/ns-afl-svg/1898.svg46
-rw-r--r--test/ns-afl-svg/1899.svg11
-rw-r--r--test/ns-afl-svg/1900.svg8
-rw-r--r--test/ns-afl-svg/1901.svg77
-rw-r--r--test/ns-afl-svg/1902.svg42
-rw-r--r--test/ns-afl-svg/1903.svg355
-rw-r--r--test/ns-afl-svg/1904.svg262
-rw-r--r--test/ns-afl-svg/1905.svg9
-rw-r--r--test/ns-afl-svg/1906.svg17
-rw-r--r--test/ns-afl-svg/1907.svg33
-rw-r--r--test/ns-afl-svg/1908.svg23
-rw-r--r--test/ns-afl-svg/1909.svg11
-rw-r--r--test/ns-afl-svg/1910.svg66
-rw-r--r--test/ns-afl-svg/1911.svg90
-rw-r--r--test/ns-afl-svg/1912.svg44
-rw-r--r--test/ns-afl-svg/1913.svg6
-rw-r--r--test/ns-afl-svg/1914.svg13
-rw-r--r--test/ns-afl-svg/1915.svg34
-rw-r--r--test/ns-afl-svg/1916.svg84
-rw-r--r--test/ns-afl-svg/1917.svg12
-rw-r--r--test/ns-afl-svg/1918.svg24
-rw-r--r--test/ns-afl-svg/1919.svg14
-rw-r--r--test/ns-afl-svg/1920.svg32
-rw-r--r--test/ns-afl-svg/1921.svg5
-rw-r--r--test/ns-afl-svg/1922.svg19
-rw-r--r--test/ns-afl-svg/1923.svg3
-rw-r--r--test/ns-afl-svg/1924.svg26
-rw-r--r--test/ns-afl-svg/1925.svg12
-rw-r--r--test/ns-afl-svg/1926.svg89
-rw-r--r--test/ns-afl-svg/1927.svg27
-rw-r--r--test/ns-afl-svg/1928.svg56
-rw-r--r--test/ns-afl-svg/1929.svg33
-rw-r--r--test/ns-afl-svg/1930.svg25
-rw-r--r--test/ns-afl-svg/1931.svg4
-rw-r--r--test/ns-afl-svg/1932.svg48
-rw-r--r--test/ns-afl-svg/1933.svgbin0 -> 634 bytes
-rw-r--r--test/ns-afl-svg/1934.svg87
-rw-r--r--test/ns-afl-svg/1935.svg132
-rw-r--r--test/ns-afl-svg/1936.svgbin0 -> 1692 bytes
-rw-r--r--test/ns-afl-svg/1937.svg103
-rw-r--r--test/ns-afl-svg/1938.svg47
-rw-r--r--test/ns-afl-svg/1939.svg6
-rw-r--r--test/ns-afl-svg/1940.svg19
-rw-r--r--test/ns-afl-svg/1941.svg17
-rw-r--r--test/ns-afl-svg/1942.svg7
-rw-r--r--test/ns-afl-svg/1943.svg38
-rw-r--r--test/ns-afl-svg/1944.svg21
-rw-r--r--test/ns-afl-svg/1945.svg91
-rw-r--r--test/ns-afl-svg/1946.svg12
-rw-r--r--test/ns-afl-svg/1947.svg2
-rw-r--r--test/ns-afl-svg/1948.svg25
-rw-r--r--test/ns-afl-svg/1949.svg378
-rw-r--r--test/ns-afl-svg/1950.svg7
-rw-r--r--test/ns-afl-svg/1951.svgbin0 -> 18 bytes
-rw-r--r--test/ns-afl-svg/1952.svg32
-rw-r--r--test/ns-afl-svg/1953.svg94
-rw-r--r--test/ns-afl-svg/1954.svgbin0 -> 3574 bytes
-rw-r--r--test/ns-afl-svg/1955.svg59
-rw-r--r--test/ns-afl-svg/1956.svg382
-rw-r--r--test/ns-afl-svg/1957.svg123
-rw-r--r--test/ns-afl-svg/1958.svg7
-rw-r--r--test/ns-afl-svg/1959.svg16
-rw-r--r--test/ns-afl-svg/1960.svg45
-rw-r--r--test/ns-afl-svg/1961.svg371
-rw-r--r--test/ns-afl-svg/1962.svg49
-rw-r--r--test/ns-afl-svg/1963.svg4
-rw-r--r--test/ns-afl-svg/1964.svg21
-rw-r--r--test/ns-afl-svg/1965.svg71
-rw-r--r--test/ns-afl-svg/1966.svg85
-rw-r--r--test/ns-afl-svg/1967.svg21
-rw-r--r--test/ns-afl-svg/1968.svg37
-rw-r--r--test/ns-afl-svg/1969.svg17
-rw-r--r--test/ns-afl-svg/1970.svg48
-rw-r--r--test/ns-afl-svg/1971.svg6
-rw-r--r--test/ns-afl-svg/1972.svg36
-rw-r--r--test/ns-afl-svg/1973.svg49
-rw-r--r--test/ns-afl-svg/1974.svg64
-rw-r--r--test/ns-afl-svg/1975.svg19
-rw-r--r--test/ns-afl-svg/1976.svg9
-rw-r--r--test/ns-afl-svg/1977.svg69
-rw-r--r--test/ns-afl-svg/1978.svg43
-rw-r--r--test/ns-afl-svg/1979.svg72
-rw-r--r--test/ns-afl-svg/1980.svg2
-rw-r--r--test/ns-afl-svg/1981.svg26
-rw-r--r--test/ns-afl-svg/1982.svg93
-rw-r--r--test/ns-afl-svg/1983.svg2
-rw-r--r--test/ns-afl-svg/1984.svg721
-rw-r--r--test/ns-afl-svg/1985.svg6
-rw-r--r--test/ns-afl-svg/1986.svg420
-rw-r--r--test/ns-afl-svg/1987.svg13
-rw-r--r--test/ns-afl-svg/1988.svg203
-rw-r--r--test/ns-afl-svg/1989.svg3
-rw-r--r--test/ns-afl-svg/1990.svg8
-rw-r--r--test/ns-afl-svg/1991.svg71
-rw-r--r--test/ns-afl-svg/1992.svg14
-rw-r--r--test/ns-afl-svg/1993.svg10
-rw-r--r--test/ns-afl-svg/1994.svg95
-rw-r--r--test/ns-afl-svg/1995.svg92
-rw-r--r--test/ns-afl-svg/1996.svg55
-rw-r--r--test/ns-afl-svg/1997.svg58
-rw-r--r--test/ns-afl-svg/1998.svg12
-rw-r--r--test/ns-afl-svg/1999.svg76
-rw-r--r--test/ns-afl-svg/2000.svg385
-rw-r--r--test/ns-afl-svg/2001.svg11
-rw-r--r--test/ns-afl-svg/2002.svg29
-rw-r--r--test/ns-afl-svg/2003.svg34
-rw-r--r--test/ns-afl-svg/2004.svg54
-rw-r--r--test/ns-afl-svg/2005.svg788
-rw-r--r--test/ns-afl-svg/2006.svg4
-rw-r--r--test/ns-afl-svg/2007.svg55
-rw-r--r--test/ns-afl-svg/2008.svg19
-rw-r--r--test/ns-afl-svg/2009.svg14
-rw-r--r--test/ns-afl-svg/2010.svg4
-rw-r--r--test/ns-afl-svg/2011.svg110
-rw-r--r--test/ns-afl-svg/2012.svg41
-rw-r--r--test/ns-afl-svg/2013.svg99
-rw-r--r--test/ns-afl-svg/2014.svg93
-rw-r--r--test/ns-afl-svg/2015.svg8
-rw-r--r--test/ns-afl-svg/2016.svg4
-rw-r--r--test/ns-afl-svg/2017.svg1
-rw-r--r--test/ns-afl-svg/2018.svg2
-rw-r--r--test/ns-afl-svg/2019.svg55
-rw-r--r--test/ns-afl-svg/2020.svgbin0 -> 91 bytes
-rw-r--r--test/ns-afl-svg/2021.svg48
-rw-r--r--test/ns-afl-svg/2022.svg351
-rw-r--r--test/ns-afl-svg/2023.svg11
-rw-r--r--test/ns-afl-svg/2024.svg201
-rw-r--r--test/ns-afl-svg/2025.svg15
-rw-r--r--test/ns-afl-svg/2026.svg133
-rw-r--r--test/ns-afl-svg/2027.svg8
-rw-r--r--test/ns-afl-svg/2028.svg25
-rw-r--r--test/ns-afl-svg/2029.svg33
-rw-r--r--test/ns-afl-svg/2030.svg24
-rw-r--r--test/ns-afl-svg/2031.svg79
-rw-r--r--test/ns-afl-svg/2032.svg35
-rw-r--r--test/ns-afl-svg/2033.svg7
-rw-r--r--test/ns-afl-svg/2034.svg73
-rw-r--r--test/ns-afl-svg/2035.svg1
-rw-r--r--test/ns-afl-svg/2036.svg1
-rw-r--r--test/ns-afl-svg/2037.svg65
-rw-r--r--test/ns-afl-svg/2038.svg379
-rw-r--r--test/ns-afl-svg/2039.svg8
-rw-r--r--test/ns-afl-svg/2040.svg9
-rw-r--r--test/ns-afl-svg/2041.svg4
-rw-r--r--test/ns-afl-svg/2042.svg109
-rw-r--r--test/ns-afl-svg/2043.svg21
-rw-r--r--test/ns-afl-svg/2044.svg102
-rw-r--r--test/ns-afl-svg/2045.svg13
-rw-r--r--test/ns-afl-svg/2046.svg140
-rw-r--r--test/ns-afl-svg/2047.svg87
-rw-r--r--test/ns-afl-svg/2048.svg180
-rw-r--r--test/ns-afl-svg/2049.svg91
-rw-r--r--test/ns-afl-svg/2050.svg11
-rw-r--r--test/ns-afl-svg/2051.svg9
-rw-r--r--test/ns-afl-svg/2052.svg12
-rw-r--r--test/ns-afl-svg/2053.svg18
-rw-r--r--test/ns-afl-svg/2054.svg24
-rw-r--r--test/ns-afl-svg/2055.svg38
-rw-r--r--test/ns-afl-svg/2056.svg4
-rw-r--r--test/ns-afl-svg/2057.svg15
-rw-r--r--test/ns-afl-svg/2058.svg7
-rw-r--r--test/ns-afl-svg/2059.svg13
-rw-r--r--test/ns-afl-svg/2060.svg62
-rw-r--r--test/ns-afl-svg/2061.svg34
-rw-r--r--test/ns-afl-svg/2062.svg11
-rw-r--r--test/ns-afl-svg/2063.svg368
-rw-r--r--test/ns-afl-svg/2064.svg5
-rw-r--r--test/ns-afl-svg/2065.svg134
-rw-r--r--test/ns-afl-svg/2066.svg3
-rw-r--r--test/ns-afl-svg/2067.svg228
-rw-r--r--test/ns-afl-svg/2068.svgbin0 -> 14 bytes
-rw-r--r--test/ns-afl-svg/2069.svg90
-rw-r--r--test/ns-afl-svg/2070.svg7
-rw-r--r--test/ns-afl-svg/2071.svg6
-rw-r--r--test/ns-afl-svg/2072.svg42
-rw-r--r--test/ns-afl-svg/2073.svg376
-rw-r--r--test/ns-afl-svg/2074.svg16
-rw-r--r--test/ns-afl-svg/2075.svg24
-rw-r--r--test/ns-afl-svg/2076.svg18
-rw-r--r--test/ns-afl-svg/2077.svg54
-rw-r--r--test/ns-afl-svg/2078.svg75
-rw-r--r--test/ns-afl-svg/2079.svg4
-rw-r--r--test/ns-afl-svg/2080.svgbin0 -> 369 bytes
-rw-r--r--test/ns-afl-svg/2081.svg8
-rw-r--r--test/ns-afl-svg/2082.svg88
-rw-r--r--test/ns-afl-svg/2083.svg8
-rw-r--r--test/ns-afl-svg/2084.svg69
-rw-r--r--test/ns-afl-svg/2085.svg27
-rw-r--r--test/ns-afl-svg/2086.svg65
-rw-r--r--test/ns-afl-svg/2087.svg26
-rw-r--r--test/ns-afl-svg/2088.svg92
-rw-r--r--test/ns-afl-svg/2089.svg28
-rw-r--r--test/ns-afl-svg/2090.svg387
-rw-r--r--test/ns-afl-svg/2091.svg11
-rw-r--r--test/ns-afl-svg/2092.svg26
-rw-r--r--test/ns-afl-svg/2093.svg82
-rw-r--r--test/ns-afl-svg/2094.svg260
-rw-r--r--test/ns-afl-svg/2095.svg51
-rw-r--r--test/ns-afl-svg/2096.svg19
-rw-r--r--test/ns-afl-svg/2097.svg24
-rw-r--r--test/ns-afl-svg/2098.svg6
-rw-r--r--test/ns-afl-svg/2099.svg47
-rw-r--r--test/ns-afl-svg/2100.svg13
-rw-r--r--test/ns-afl-svg/2101.svg54
-rw-r--r--test/ns-afl-svg/2102.svg4
-rw-r--r--test/ns-afl-svg/2103.svg114
-rw-r--r--test/ns-afl-svg/2104.svg386
-rw-r--r--test/ns-afl-svg/2105.svg41
-rw-r--r--test/ns-afl-svg/2106.svg6
-rw-r--r--test/ns-afl-svg/2107.svg46
-rw-r--r--test/ns-afl-svg/2108.svg31
-rw-r--r--test/ns-afl-svg/2109.svg24
-rw-r--r--test/ns-afl-svg/2110.svg76
-rw-r--r--test/ns-afl-svg/2111.svgbin0 -> 60 bytes
-rw-r--r--test/ns-afl-svg/2112.svg16
-rw-r--r--test/ns-afl-svg/2113.svg20
-rw-r--r--test/ns-afl-svg/2114.svg89
-rw-r--r--test/ns-afl-svg/2115.svg146
-rw-r--r--test/ns-afl-svg/2116.svg35
-rw-r--r--test/ns-afl-svg/2117.svg3
-rw-r--r--test/ns-afl-svg/2118.svg4
-rw-r--r--test/ns-afl-svg/2119.svg385
-rw-r--r--test/ns-afl-svg/2120.svg20
-rw-r--r--test/ns-afl-svg/2121.svg10
-rw-r--r--test/ns-afl-svg/2122.svg18
-rw-r--r--test/ns-afl-svg/2123.svg21
-rw-r--r--test/ns-afl-svg/2124.svg13
-rw-r--r--test/ns-afl-svg/2125.svg346
-rw-r--r--test/ns-afl-svg/2126.svg91
-rw-r--r--test/ns-afl-svg/2127.svg71
-rw-r--r--test/ns-afl-svg/2128.svg12
-rw-r--r--test/ns-afl-svg/2129.svg90
-rw-r--r--test/ns-afl-svg/2130.svg17
-rw-r--r--test/ns-afl-svg/2131.svg172
-rw-r--r--test/ns-afl-svg/2132.svg91
-rw-r--r--test/ns-afl-svg/2133.svg4
-rw-r--r--test/ns-afl-svg/2134.svg26
-rw-r--r--test/ns-afl-svg/2135.svg116
-rw-r--r--test/ns-afl-svg/2136.svg374
-rw-r--r--test/ns-afl-svg/2137.svg75
-rw-r--r--test/ns-afl-svg/2138.svg11
-rw-r--r--test/ns-afl-svg/2139.svg2
-rw-r--r--test/ns-afl-svg/2140.svg26
-rw-r--r--test/ns-afl-svg/2141.svg76
-rw-r--r--test/ns-afl-svg/2142.svg13
-rw-r--r--test/ns-afl-svg/2143.svg10
-rw-r--r--test/ns-afl-svg/2144.svg78
-rw-r--r--test/ns-afl-svg/2145.svg9
-rw-r--r--test/ns-afl-svg/2146.svg74
-rw-r--r--test/ns-afl-svg/2147.svgbin0 -> 348 bytes
-rw-r--r--test/ns-afl-svg/2148.svg24
-rw-r--r--test/ns-afl-svg/2149.svg26
-rw-r--r--test/ns-afl-svg/2150.svg9
-rw-r--r--test/ns-afl-svg/2151.svg50
-rw-r--r--test/ns-afl-svg/2152.svg14
-rw-r--r--test/ns-afl-svg/2153.svg40
-rw-r--r--test/ns-afl-svg/2154.svg12
-rw-r--r--test/ns-afl-svg/2155.svg21
-rw-r--r--test/ns-afl-svg/2156.svg63
-rw-r--r--test/ns-afl-svg/2157.svg387
-rw-r--r--test/ns-afl-svg/2158.svg99
-rw-r--r--test/ns-afl-svg/2159.svg37
-rw-r--r--test/ns-afl-svg/2160.svg59
-rw-r--r--test/ns-afl-svg/2161.svg128
-rw-r--r--test/ns-afl-svg/2162.svg6
-rw-r--r--test/ns-afl-svg/2163.svg62
-rw-r--r--test/ns-afl-svg/2164.svg7
-rw-r--r--test/ns-afl-svg/2165.svg48
-rw-r--r--test/ns-afl-svg/2166.svg12
-rw-r--r--test/ns-afl-svg/2167.svg167
-rw-r--r--test/ns-afl-svg/2168.svg31
-rw-r--r--test/ns-afl-svg/2169.svg4
-rw-r--r--test/ns-afl-svg/2170.svg55
-rw-r--r--test/ns-afl-svg/2171.svg7
-rw-r--r--test/ns-afl-svg/2172.svg359
-rw-r--r--test/ns-afl-svg/2173.svg93
-rw-r--r--test/ns-afl-svg/2174.svg84
-rw-r--r--test/ns-afl-svg/2175.svg2
-rw-r--r--test/ns-afl-svg/2176.svg375
-rw-r--r--test/ns-afl-svg/2177.svg51
-rw-r--r--test/ns-afl-svg/2178.svg17
-rw-r--r--test/ns-afl-svg/2179.svg204
-rw-r--r--test/ns-afl-svg/2180.svg20
-rw-r--r--test/ns-afl-svg/2181.svg24
-rw-r--r--test/ns-afl-svg/2182.svg26
-rw-r--r--test/ns-afl-svg/2183.svg87
-rw-r--r--test/ns-afl-svg/2184.svg16
-rw-r--r--test/ns-afl-svg/2185.svg41
-rw-r--r--test/ns-afl-svg/2186.svg255
-rw-r--r--test/ns-afl-svg/2187.svg26
-rw-r--r--test/ns-afl-svg/2188.svgbin0 -> 69 bytes
-rw-r--r--test/ns-afl-svg/2189.svg5
-rw-r--r--test/ns-afl-svg/2190.svg24
-rw-r--r--test/ns-afl-svg/2191.svgbin0 -> 2786 bytes
-rw-r--r--test/ns-afl-svg/2192.svg32
-rw-r--r--test/ns-afl-svg/2193.svg13
-rw-r--r--test/ns-afl-svg/2194.svg119
-rw-r--r--test/ns-afl-svg/2195.svg794
-rw-r--r--test/ns-afl-svg/2196.svg39
-rw-r--r--test/ns-afl-svg/2197.svg63
-rw-r--r--test/ns-afl-svg/2198.svg6
-rw-r--r--test/ns-afl-svg/2199.svg12
-rw-r--r--test/ns-afl-svg/2200.svg33
-rw-r--r--test/ns-afl-svg/2201.svg32
-rw-r--r--test/ns-afl-svg/2202.svg57
-rw-r--r--test/ns-afl-svg/2203.svg2
-rw-r--r--test/ns-afl-svg/2204.svg6
-rw-r--r--test/ns-afl-svg/2205.svg111
-rw-r--r--test/ns-afl-svg/2206.svg23
-rw-r--r--test/ns-afl-svg/2207.svg31
-rw-r--r--test/ns-afl-svg/2208.svg49
-rw-r--r--test/ns-afl-svg/2209.svg15
-rw-r--r--test/ns-afl-svg/2210.svg18
-rw-r--r--test/ns-afl-svg/2211.svg95
-rw-r--r--test/ns-afl-svg/2212.svg14
-rw-r--r--test/ns-afl-svg/2213.svg56
-rw-r--r--test/ns-afl-svg/2214.svg385
-rw-r--r--test/ns-afl-svg/2215.svgbin0 -> 28 bytes
-rw-r--r--test/ns-afl-svg/2216.svg11
-rw-r--r--test/ns-afl-svg/2217.svg11
-rw-r--r--test/ns-afl-svg/2218.svgbin0 -> 281 bytes
-rw-r--r--test/ns-afl-svg/2219.svg17
-rw-r--r--test/ns-afl-svg/2220.svg6
-rw-r--r--test/ns-afl-svg/2221.svg10
-rw-r--r--test/ns-afl-svg/2222.svg15
-rw-r--r--test/ns-afl-svg/2223.svg392
-rw-r--r--test/ns-afl-svg/2224.svg32
-rw-r--r--test/ns-afl-svg/2225.svgbin0 -> 3137 bytes
-rw-r--r--test/ns-afl-svg/2226.svg67
-rw-r--r--test/ns-afl-svg/2227.svg90
-rw-r--r--test/ns-afl-svg/2228.svg28
-rw-r--r--test/ns-afl-svg/2229.svg283
-rw-r--r--test/ns-afl-svg/2230.svg60
-rw-r--r--test/ns-afl-svg/2231.svg11
-rw-r--r--test/ns-afl-svg/2232.svg18
-rw-r--r--test/ns-afl-svg/2233.svg24
-rw-r--r--test/ns-afl-svg/2234.svg25
-rw-r--r--test/ns-afl-svg/2235.svg2
-rw-r--r--test/ns-afl-svg/2236.svg8
-rw-r--r--test/ns-afl-svg/2237.svg7
-rw-r--r--test/ns-afl-svg/2238.svg127
-rw-r--r--test/ns-afl-svg/2239.svg5
-rw-r--r--test/ns-afl-svg/2240.svg169
-rw-r--r--test/ns-afl-svg/2241.svg6
-rw-r--r--test/ns-afl-svg/2242.svg15
-rw-r--r--test/ns-afl-svg/2243.svg21
-rw-r--r--test/ns-afl-svg/2244.svg8
-rw-r--r--test/ns-afl-svg/2245.svg27
-rw-r--r--test/ns-afl-svg/2246.svg12
-rw-r--r--test/ns-afl-svg/2247.svg48
-rw-r--r--test/ns-afl-svg/2248.svg356
-rw-r--r--test/ns-afl-svg/2249.svg166
-rw-r--r--test/ns-afl-svg/2250.svg24
-rw-r--r--test/ns-afl-svg/2251.svg19
-rw-r--r--test/ns-afl-svg/2252.svg18
-rw-r--r--test/ns-afl-svg/2253.svg4
-rw-r--r--test/ns-afl-svg/2254.svg9
-rw-r--r--test/ns-afl-svg/2255.svg362
-rw-r--r--test/ns-afl-svg/2256.svg47
-rw-r--r--test/ns-afl-svg/2257.svg2
-rw-r--r--test/ns-afl-svg/2258.svg27
-rw-r--r--test/ns-afl-svg/2259.svg19
-rw-r--r--test/ns-afl-svg/2260.svg7
-rw-r--r--test/ns-afl-svg/2261.svg116
-rw-r--r--test/ns-afl-svg/2262.svg385
-rw-r--r--test/ns-afl-svg/2263.svg54
-rw-r--r--test/ns-afl-svg/2264.svg29
-rw-r--r--test/ns-afl-svg/2265.svg73
-rw-r--r--test/ns-afl-svg/2266.svg12
-rw-r--r--test/ns-afl-svg/2267.svg76
-rw-r--r--test/ns-afl-svg/2268.svg116
-rw-r--r--test/ns-afl-svg/2269.svgbin0 -> 116 bytes
-rw-r--r--test/ns-afl-svg/2270.svg62
-rw-r--r--test/ns-afl-svg/2271.svg28
-rw-r--r--test/ns-afl-svg/2272.svg3
-rw-r--r--test/ns-afl-svg/2273.svg115
-rw-r--r--test/ns-afl-svg/2274.svg17
-rw-r--r--test/ns-afl-svg/2275.svg15
-rw-r--r--test/ns-afl-svg/2276.svg11
-rw-r--r--test/ns-afl-svg/2277.svg9
-rw-r--r--test/ns-afl-svg/2278.svg12
-rw-r--r--test/ns-afl-svg/2279.svg24
-rw-r--r--test/ns-afl-svg/2280.svg5
-rw-r--r--test/ns-afl-svg/2281.svg11
-rw-r--r--test/ns-afl-svg/2282.svg2
-rw-r--r--test/ns-afl-svg/2283.svg42
-rw-r--r--test/ns-afl-svg/2284.svg41
-rw-r--r--test/ns-afl-svg/2285.svg15
-rw-r--r--test/ns-afl-svg/2286.svg83
-rw-r--r--test/ns-afl-svg/2287.svg43
-rw-r--r--test/ns-afl-svg/2288.svg45
-rw-r--r--test/ns-afl-svg/2289.svg7
-rw-r--r--test/ns-afl-svg/2290.svg11
-rw-r--r--test/ns-afl-svg/2291.svg116
-rw-r--r--test/ns-afl-svg/2292.svg80
-rw-r--r--test/ns-afl-svg/2293.svg17
-rw-r--r--test/ns-afl-svg/2294.svg24
-rw-r--r--test/ns-afl-svg/2295.svg73
-rw-r--r--test/ns-afl-svg/2296.svg5
-rw-r--r--test/ns-afl-svg/2297.svg92
-rw-r--r--test/ns-afl-svg/2298.svg79
-rw-r--r--test/ns-afl-svg/2299.svg18
-rw-r--r--test/ns-afl-svg/2300.svg59
-rw-r--r--test/ns-afl-svg/2301.svg353
-rw-r--r--test/ns-afl-svg/2302.svg50
-rw-r--r--test/ns-afl-svg/2303.svg61
-rw-r--r--test/ns-afl-svg/2304.svg95
-rw-r--r--test/ns-afl-svg/2305.svg38
-rw-r--r--test/ns-afl-svg/2306.svg5
-rw-r--r--test/ns-afl-svg/2307.svgbin0 -> 118 bytes
-rw-r--r--test/ns-afl-svg/2308.svg4
-rw-r--r--test/ns-afl-svg/2309.svg4
-rw-r--r--test/ns-afl-svg/2310.svg2
-rw-r--r--test/ns-afl-svg/2311.svg14
-rw-r--r--test/ns-afl-svg/2312.svg5
-rw-r--r--test/ns-afl-svg/2313.svg16
-rw-r--r--test/ns-afl-svg/2314.svg4
-rw-r--r--test/ns-afl-svg/2315.svg163
-rw-r--r--test/ns-afl-svg/2316.svg117
-rw-r--r--test/ns-afl-svg/2317.svg2
-rw-r--r--test/ns-afl-svg/2318.svg6
-rw-r--r--test/ns-afl-svg/2319.svg70
-rw-r--r--test/ns-afl-svg/2320.svg13
-rw-r--r--test/ns-afl-svg/2321.svg4
-rw-r--r--test/ns-afl-svg/2322.svg55
-rw-r--r--test/ns-afl-svg/2323.svg140
-rw-r--r--test/ns-afl-svg/2324.svg27
-rw-r--r--test/ns-afl-svg/2325.svg15
-rw-r--r--test/ns-afl-svg/2326.svg15
-rw-r--r--test/ns-afl-svg/2327.svg39
-rw-r--r--test/ns-afl-svg/2328.svg69
-rw-r--r--test/ns-afl-svg/2329.svg20
-rw-r--r--test/ns-afl-svg/2330.svg45
-rw-r--r--test/ns-afl-svg/2331.svg24
-rw-r--r--test/ns-afl-svg/2332.svg13
-rw-r--r--test/ns-afl-svg/2333.svg16
-rw-r--r--test/ns-afl-svg/2334.svg49
-rw-r--r--test/ns-afl-svg/2335.svg4
-rw-r--r--test/ns-afl-svg/2336.svg3
-rw-r--r--test/ns-afl-svg/2337.svg54
-rw-r--r--test/ns-afl-svg/2338.svg11
-rw-r--r--test/ns-afl-svg/2339.svg60
-rw-r--r--test/ns-afl-svg/2340.svg5
-rw-r--r--test/ns-afl-svg/2341.svg315
-rw-r--r--test/ns-afl-svg/2342.svg33
-rw-r--r--test/ns-afl-svg/2343.svg36
-rw-r--r--test/ns-afl-svg/2344.svg1
-rw-r--r--test/ns-afl-svg/2345.svg7
-rw-r--r--test/ns-afl-svg/2346.svg154
-rw-r--r--test/ns-afl-svg/2347.svg5
-rw-r--r--test/ns-afl-svg/2348.svg13
-rw-r--r--test/ns-afl-svg/2349.svg135
-rw-r--r--test/ns-afl-svg/2350.svg84
-rw-r--r--test/ns-afl-svg/2351.svg6
-rw-r--r--test/ns-afl-svg/2352.svg14
-rw-r--r--test/ns-afl-svg/2353.svg27
-rw-r--r--test/ns-afl-svg/2354.svg22
-rw-r--r--test/ns-afl-svg/2355.svg7
-rw-r--r--test/ns-afl-svg/2356.svg370
-rw-r--r--test/ns-afl-svg/2357.svg2
-rw-r--r--test/ns-afl-svg/2358.svg7
-rw-r--r--test/ns-afl-svg/2359.svg17
-rw-r--r--test/ns-afl-svg/2360.svg12
-rw-r--r--test/ns-afl-svg/2361.svg41
-rw-r--r--test/ns-afl-svg/2362.svg31
-rw-r--r--test/ns-afl-svg/2363.svg269
-rw-r--r--test/ns-afl-svg/2364.svg13
-rw-r--r--test/ns-afl-svg/2365.svg24
-rw-r--r--test/ns-afl-svg/2366.svg17
-rw-r--r--test/ns-afl-svg/2367.svg380
-rw-r--r--test/ns-afl-svg/2368.svg32
-rw-r--r--test/ns-afl-svg/2369.svg45
-rw-r--r--test/ns-afl-svg/2370.svg37
-rw-r--r--test/ns-afl-svg/2371.svg30
-rw-r--r--test/ns-afl-svg/2372.svg6
-rw-r--r--test/ns-afl-svg/2373.svg79
-rw-r--r--test/ns-afl-svg/2374.svg76
-rw-r--r--test/ns-afl-svg/2375.svg5
-rw-r--r--test/ns-afl-svg/2376.svg14
-rw-r--r--test/ns-afl-svg/2377.svg7
-rw-r--r--test/ns-afl-svg/2378.svg9
-rw-r--r--test/ns-afl-svg/2379.svg4
-rw-r--r--test/ns-afl-svg/2380.svg18
-rw-r--r--test/ns-afl-svg/2381.svgbin0 -> 3137 bytes
-rw-r--r--test/ns-afl-svg/2382.svg5
-rw-r--r--test/ns-afl-svg/2383.svg49
-rw-r--r--test/ns-afl-svg/2384.svg77
-rw-r--r--test/ns-afl-svg/2385.svg10
-rw-r--r--test/ns-afl-svg/2386.svg6
-rw-r--r--test/ns-afl-svg/2387.svg29
-rw-r--r--test/ns-afl-svg/2388.svg51
-rw-r--r--test/ns-afl-svg/2389.svg115
-rw-r--r--test/ns-afl-svg/2390.svg35
-rw-r--r--test/ns-afl-svg/2391.svg14
-rw-r--r--test/ns-afl-svg/2392.svg32
-rw-r--r--test/ns-afl-svg/2393.svg169
-rw-r--r--test/ns-afl-svg/2394.svg12
-rw-r--r--test/ns-afl-svg/2395.svg12
-rw-r--r--test/ns-afl-svg/2396.svg35
-rw-r--r--test/ns-afl-svg/2397.svg75
-rw-r--r--test/ns-afl-svg/2398.svg6
-rw-r--r--test/ns-afl-svg/2399.svg6
-rw-r--r--test/ns-afl-svg/2400.svg4
-rw-r--r--test/ns-afl-svg/2401.svg20
-rw-r--r--test/ns-afl-svg/2402.svg38
-rw-r--r--test/ns-afl-svg/2403.svg8
-rw-r--r--test/ns-afl-svg/2404.svg6
-rw-r--r--test/ns-afl-svg/2405.svg6
-rw-r--r--test/ns-afl-svg/2406.svg14
-rw-r--r--test/ns-afl-svg/2407.svg10
-rw-r--r--test/ns-afl-svg/2408.svg111
-rw-r--r--test/ns-afl-svg/2409.svg59
-rw-r--r--test/ns-afl-svg/2410.svg17
-rw-r--r--test/ns-afl-svg/2411.svg395
-rw-r--r--test/ns-afl-svg/2412.svg18
-rw-r--r--test/ns-afl-svg/2413.svg18
-rw-r--r--test/ns-afl-svg/2414.svg81
-rw-r--r--test/ns-afl-svg/2415.svg5
-rw-r--r--test/ns-afl-svg/2416.svg376
-rw-r--r--test/ns-afl-svg/2417.svg43
-rw-r--r--test/ns-afl-svg/2418.svg33
-rw-r--r--test/ns-afl-svg/2419.svg11
-rw-r--r--test/ns-afl-svg/2420.svg105
-rw-r--r--test/ns-afl-svg/2421.svg11
-rw-r--r--test/ns-afl-svg/2422.svg11
-rw-r--r--test/ns-afl-svg/2423.svg102
-rw-r--r--test/ns-afl-svg/2424.svg4
-rw-r--r--test/ns-afl-svg/2425.svg32
-rw-r--r--test/ns-afl-svg/2426.svg32
-rw-r--r--test/ns-afl-svg/2427.svg73
-rw-r--r--test/ns-afl-svg/2428.svg64
-rw-r--r--test/ns-afl-svg/2429.svg20
-rw-r--r--test/ns-afl-svg/2430.svg22
-rw-r--r--test/ns-afl-svg/2431.svg10
-rw-r--r--test/ns-afl-svg/2432.svg95
-rw-r--r--test/ns-afl-svg/2433.svg25
-rw-r--r--test/ns-afl-svg/2434.svg15
-rw-r--r--test/ns-afl-svg/2435.svg1
-rw-r--r--test/ns-afl-svg/2436.svg40
-rw-r--r--test/ns-afl-svg/2437.svg372
-rw-r--r--test/ns-afl-svg/2438.svg14
-rw-r--r--test/ns-afl-svg/2439.svg15
-rw-r--r--test/ns-afl-svg/2440.svg47
-rw-r--r--test/ns-afl-svg/2441.svg40
-rw-r--r--test/ns-afl-svg/2442.svg117
-rw-r--r--test/ns-afl-svg/2443.svg10
-rw-r--r--test/ns-afl-svg/2444.svg9
-rw-r--r--test/ns-afl-svg/2445.svg34
-rw-r--r--test/ns-afl-svg/2446.svg11
-rw-r--r--test/ns-afl-svg/2447.svg8
-rw-r--r--test/ns-afl-svg/2448.svg36
-rw-r--r--test/ns-afl-svg/2449.svg18
-rw-r--r--test/ns-afl-svg/2450.svg31
-rw-r--r--test/ns-afl-svg/2451.svg9
-rw-r--r--test/ns-afl-svg/2452.svg69
-rw-r--r--test/ns-afl-svg/2453.svg8
-rw-r--r--test/ns-afl-svg/2454.svg19
-rw-r--r--test/ns-afl-svg/2455.svg53
-rw-r--r--test/ns-afl-svg/2456.svg1
-rw-r--r--test/ns-afl-svg/2457.svg20
-rw-r--r--test/ns-afl-svg/2458.svg52
-rw-r--r--test/ns-afl-svg/2459.svg210
-rw-r--r--test/ns-afl-svg/2460.svg54
-rw-r--r--test/ns-afl-svg/2461.svg44
-rw-r--r--test/ns-afl-svg/2462.svg6
-rw-r--r--test/ns-afl-svg/2463.svg44
-rw-r--r--test/ns-afl-svg/2464.svg7
-rw-r--r--test/ns-afl-svg/2465.svg30
-rw-r--r--test/ns-afl-svg/2466.svg12
-rw-r--r--test/ns-afl-svg/2467.svg148
-rw-r--r--test/ns-afl-svg/2468.svg4
-rw-r--r--test/ns-afl-svg/2469.svg9
-rw-r--r--test/ns-afl-svg/2470.svg19
-rw-r--r--test/ns-afl-svg/2471.svg7
-rw-r--r--test/ns-afl-svg/2472.svg12
-rw-r--r--test/ns-afl-svg/2473.svg34
-rw-r--r--test/ns-afl-svg/2474.svg36
-rw-r--r--test/ns-afl-svg/2475.svg44
-rw-r--r--test/ns-afl-svg/2476.svg406
-rw-r--r--test/ns-afl-svg/2477.svg28
-rw-r--r--test/ns-afl-svg/2478.svg4
-rw-r--r--test/ns-afl-svg/2479.svg29
-rw-r--r--test/ns-afl-svg/2480.svg76
-rw-r--r--test/ns-afl-svg/2481.svg72
-rw-r--r--test/ns-afl-svg/2482.svg119
-rw-r--r--test/ns-afl-svg/2483.svg65
-rw-r--r--test/ns-afl-svg/2484.svg38
-rw-r--r--test/ns-afl-svg/2485.svg26
-rw-r--r--test/ns-afl-svg/2486.svg45
-rw-r--r--test/ns-afl-svg/2487.svg13
-rw-r--r--test/ns-afl-svg/2488.svg303
-rw-r--r--test/ns-afl-svg/2489.svg12
-rw-r--r--test/ns-afl-svg/2490.svg57
-rw-r--r--test/ns-afl-svg/2491.svg385
-rw-r--r--test/ns-afl-svg/2492.svg8
-rw-r--r--test/ns-afl-svg/2493.svg115
-rw-r--r--test/ns-afl-svg/2494.svg395
-rw-r--r--test/ns-afl-svg/2495.svg214
-rw-r--r--test/ns-afl-svg/2496.svg75
-rw-r--r--test/ns-afl-svg/2497.svg67
-rw-r--r--test/ns-afl-svg/2498.svg1
-rw-r--r--test/ns-afl-svg/2499.svg5
-rw-r--r--test/ns-afl-svg/2500.svg77
-rw-r--r--test/ns-afl-svg/2501.svg353
-rw-r--r--test/ns-afl-svg/2502.svg3
-rw-r--r--test/ns-afl-svg/2503.svg93
-rw-r--r--test/ns-afl-svg/2504.svg349
-rw-r--r--test/ns-afl-svg/2505.svg32
-rw-r--r--test/ns-afl-svg/2506.svg15
-rw-r--r--test/ns-afl-svg/2507.svg7
-rw-r--r--test/ns-afl-svg/2508.svg9
-rw-r--r--test/ns-afl-svg/2509.svg28
-rw-r--r--test/ns-afl-svg/2510.svg2
-rw-r--r--test/ns-afl-svg/2511.svg26
-rw-r--r--test/ns-afl-svg/2512.svg44
-rw-r--r--test/ns-afl-svg/2513.svg27
-rw-r--r--test/ns-afl-svg/2514.svg5
-rw-r--r--test/ns-afl-svg/2515.svg153
-rw-r--r--test/ns-afl-svg/2516.svg15
-rw-r--r--test/ns-afl-svg/2517.svg75
-rw-r--r--test/ns-afl-svg/2518.svg39
-rw-r--r--test/ns-afl-svg/2519.svg57
-rw-r--r--test/ns-afl-svg/2520.svgbin0 -> 430 bytes
-rw-r--r--test/ns-afl-svg/2521.svg6
-rw-r--r--test/ns-afl-svg/2522.svg10
-rw-r--r--test/ns-afl-svg/2523.svg145
-rw-r--r--test/ns-afl-svg/2524.svg19
-rw-r--r--test/ns-afl-svg/2525.svg410
-rw-r--r--test/ns-afl-svg/2526.svg49
-rw-r--r--test/ns-afl-svg/2527.svg1
-rw-r--r--test/ns-afl-svg/2528.svg126
-rw-r--r--test/ns-afl-svg/2529.svg8
-rw-r--r--test/ns-afl-svg/2530.svg69
-rw-r--r--test/ns-afl-svg/2531.svg359
-rw-r--r--test/ns-afl-svg/2532.svg8
-rw-r--r--test/ns-afl-svg/2533.svg380
-rw-r--r--test/ns-afl-svg/2534.svg379
-rw-r--r--test/ns-afl-svg/2535.svg11
-rw-r--r--test/ns-afl-svg/2536.svg13
-rw-r--r--test/ns-afl-svg/2537.svg17
-rw-r--r--test/ns-afl-svg/2538.svg230
-rw-r--r--test/ns-afl-svg/2539.svg12
-rw-r--r--test/ns-afl-svg/2540.svg63
-rw-r--r--test/ns-afl-svg/2541.svg35
-rw-r--r--test/ns-afl-svg/2542.svg6
-rw-r--r--test/ns-afl-svg/2543.svg4
-rw-r--r--test/ns-afl-svg/2544.svg140
-rw-r--r--test/ns-afl-svg/2545.svg14
-rw-r--r--test/ns-afl-svg/2546.svg5
-rw-r--r--test/ns-afl-svg/2547.svg3
-rw-r--r--test/ns-afl-svg/2548.svg10
-rw-r--r--test/ns-afl-svg/2549.svg21
-rw-r--r--test/ns-afl-svg/2550.svg62
-rw-r--r--test/ns-afl-svg/2551.svg34
-rw-r--r--test/ns-afl-svg/2552.svg48
-rw-r--r--test/ns-afl-svg/2553.svg11
-rw-r--r--test/ns-afl-svg/2554.svg66
-rw-r--r--test/ns-afl-svg/2555.svg28
-rw-r--r--test/ns-afl-svg/2556.svg15
-rw-r--r--test/ns-afl-svg/2557.svg42
-rw-r--r--test/ns-afl-svg/2558.svg4
-rw-r--r--test/ns-afl-svg/2559.svg1
-rw-r--r--test/ns-afl-svg/2560.svg39
-rw-r--r--test/ns-afl-svg/2561.svg78
-rw-r--r--test/ns-afl-svg/2562.svg17
-rw-r--r--test/ns-afl-svg/2563.svg19
-rw-r--r--test/ns-afl-svg/2564.svg4
-rw-r--r--test/ns-afl-svg/2565.svg12
-rw-r--r--test/ns-afl-svg/2566.svg3
-rw-r--r--test/ns-afl-svg/2567.svg69
-rw-r--r--test/ns-afl-svg/2568.svg62
-rw-r--r--test/ns-afl-svg/2569.svg17
-rw-r--r--test/ns-afl-svg/2570.svg23
-rw-r--r--test/ns-afl-svg/2571.svg74
-rw-r--r--test/ns-afl-svg/2572.svg79
-rw-r--r--test/ns-afl-svg/2573.svg50
-rw-r--r--test/ns-afl-svg/2574.svg11
-rw-r--r--test/ns-afl-svg/2575.svg5
-rw-r--r--test/ns-afl-svg/2576.svg31
-rw-r--r--test/ns-afl-svg/2577.svg375
-rw-r--r--test/ns-afl-svg/2578.svg14
-rw-r--r--test/ns-afl-svg/2579.svg11
-rw-r--r--test/ns-afl-svg/2580.svg24
-rw-r--r--test/ns-afl-svg/2581.svg14
-rw-r--r--test/ns-afl-svg/2582.svg15
-rw-r--r--test/ns-afl-svg/2583.svg2
-rw-r--r--test/ns-afl-svg/2584.svg5
-rw-r--r--test/ns-afl-svg/2585.svg8
-rw-r--r--test/ns-afl-svg/2586.svg191
-rw-r--r--test/ns-afl-svg/2587.svg41
-rw-r--r--test/ns-afl-svg/2588.svg11
-rw-r--r--test/ns-afl-svg/2589.svg92
-rw-r--r--test/ns-afl-svg/2590.svg377
-rw-r--r--test/ns-afl-svg/2591.svg89
-rw-r--r--test/ns-afl-svg/2592.svg5
-rw-r--r--test/ns-afl-svg/2593.svg15
-rw-r--r--test/ns-afl-svg/2594.svg58
-rw-r--r--test/ns-afl-svg/2595.svg239
-rw-r--r--test/ns-afl-svg/2596.svg12
-rw-r--r--test/ns-afl-svg/2597.svg45
-rw-r--r--test/ns-afl-svg/2598.svg12
-rw-r--r--test/ns-afl-svg/2599.svg148
-rw-r--r--test/ns-afl-svg/2600.svg12
-rw-r--r--test/ns-afl-svg/2601.svg13
-rw-r--r--test/ns-afl-svg/2602.svg2
-rw-r--r--test/ns-afl-svg/2603.svg70
-rw-r--r--test/ns-afl-svg/2604.svg12
-rw-r--r--test/ns-afl-svg/2605.svg35
-rw-r--r--test/ns-afl-svg/2606.svg8
-rw-r--r--test/ns-afl-svg/2607.svg24
-rw-r--r--test/ns-afl-svg/2608.svg18
-rw-r--r--test/ns-afl-svg/2609.svg259
-rw-r--r--test/ns-afl-svg/2610.svg61
-rw-r--r--test/ns-afl-svg/2611.svg23
-rw-r--r--test/ns-afl-svg/2612.svg11
2612 files changed, 170472 insertions, 0 deletions
diff --git a/test/ns-afl-svg/0001.svg b/test/ns-afl-svg/0001.svg
new file mode 100644
index 0000000..cdc108c
--- /dev/null
+++ b/test/ns-afl-svg/0001.svg
@@ -0,0 +1,15 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0<xt x="0" y="0" gonze="0" fill="0" text-ar="0">0
+0<path d="0" stroke="0" fOll="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" y="0" gonze="0" fill="0" text-ar="0"><![CDATA[0
+0
+0]
+0
+0
+0
+0]]><?l?>0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0002.svg b/test/ns-afl-svg/0002.svg
new file mode 100644
index 0000000..d3bb592
--- /dev/null
+++ b/test/ns-afl-svg/0002.svg
@@ -0,0 +1,8 @@
+<svg Ãs="0" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v000,00h000l000-00v00000000 000-000000000000000000 000-00-00-00-000 000-000 00-00 00-00 0-00A00-0-0000-00-000-000 0-00 00-00 000-00 00 00 000 00 000-00 00-00 00-00 0000-00 00 0 00-000 00-000-00-00-000-00-000 00-000 000-000 0000-000
+000 0-00 00-000 00-000 0-000 0-000-0-000-0-00-0-00-0-000-00-00-0-00-00-000-00-000-00-000-000-000-00-000-000-000-00-000
+00-000 00-000-00-0t0-00-000-00-000 00-000 00 0 00-0 00-000-00-000 00-000 000-000 0000000000000000000000000000000000-000 000-000 000
+000 000 000-00 0000-00 000-00 000 0 0000000 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0000"
+transform="translate(0,0)scale(0,0"/>0<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+fill="#000" pa="0"/>0<ellipse rx="3" ry="2" transform="rotate(0 0,0" fill="#000"
+ty="0"/>0</svg>
diff --git a/test/ns-afl-svg/0003.svg b/test/ns-afl-svg/0003.svg
new file mode 100644
index 0000000..e6979cc
--- /dev/null
+++ b/test/ns-afl-svg/0003.svg
@@ -0,0 +1,4 @@
+<svg xmlns="000000000000000000000000" fill="url(#0)000" viewBox="0 0 1 1">
+0<path d="M0,00s00-0,00-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00,0,00,00c00000000000" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="8" l-le='0'/>0<path d='M00,00l00,00l000-00zM00,0h00l000,00zM0,00l00,00l0-00z' fill='#000' f='0'/>0<path d='M00,00l00,00c000000000000000000000000000000000000000000000000000000000' fill='#000' ll-rule='0'/>0<path d='M00,00l00,00l00-00zM0,00c0,00,00,00,00,00l000-00l00,00zM0,00l00,00c0,0,0,0,00,0c00-00-00-00-00-00zM00,0l00,0c00-0-0-00-00-00l000,0z' fill='#000' fill-rule='0'/>0<path d='M0,00l0,00l00-0l00-00l0-00l000-0l000,0c00,0-00,00-00,00c00,0-0,00-00,00z' fill='#000' fill-rule='0'/>0<path d='M00,00c00-00,00-00,00-00c0,0-0,00-00,00c000,00-00,00-00,00c000000-00,00-00-00,00-00' fill='#000' e='0'/>0<path d='M00,00l00,00l00-00l000,0z' fill='#000' fill-rule='0'/>0<path d='M00,00l00,00l00-00zM0,00c0,00,00,00,00,00l000-00l00,00zM0,00l00,00c0,0,0,0,00,0c00-00-00-00-00-00zM00,0l00,0c00-0-0-00-00-00l000,0z' fill='#000' fill-rule='0'/>0<path d='M0,00l0,00l00-0l00-00l0-00l000-0l000,0c00,0-00,00-00,00c00,0-0,00-00,00z' fill='#000' fill-rule='0'/>0<path d='M00,00c00-00,00-00,00-00c0,0-0,00-00,00c000,00-00,00-00,00c00-0,0-00,00-00z' fill='#000' fill-rule='0'/>0</svg>
diff --git a/test/ns-afl-svg/0004.svg b/test/ns-afl-svg/0004.svg
new file mode 100644
index 0000000..a055ebd
--- /dev/null
+++ b/test/ns-afl-svg/0004.svg
@@ -0,0 +1,5 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">0<path d="M0,0h00l00,00v00l000,00h000l000-00v000z" stroke="s0o0" fill="none"/>0
+0<path d="M00,0h000000l0000000000000000000000" stroke="s0o0" fill="none"/>0
+0<path d="M00,0h0000000000000000000000l0000000000000000000000000000" stroke="s0o0" fill="none"/>0
+0
+</svg>
diff --git a/test/ns-afl-svg/0005.svg b/test/ns-afl-svg/0005.svg
new file mode 100644
index 0000000..04c0108
--- /dev/null
+++ b/test/ns-afl-svg/0005.svg
@@ -0,0 +1,13 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="@" cf="0" r="1" style="fill:red;stroke:000;stroke-width:001cm" transform="translate(0,0)"/>0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:o0e00lac0;stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="0" r="1" style="fill:blue;stroke:black;stroke-width:001em" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black;stroke-width:1em" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black stroke-width:001em" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0006.svg b/test/ns-afl-svg/0006.svg
new file mode 100644
index 0000000..4a3025c
--- /dev/null
+++ b/test/ns-afl-svg/0006.svg
@@ -0,0 +1,53 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(0)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0000,0l0000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,00L0,0,00,0000,0000,00000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-8,00-00,124-00l0-20c0-7,0-10,10-10l24,0c0,0,00-0,14-10l0-10l9,000,0,L0,0,00,0000,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000000000000000000000000000000000,0000000,0000000000000000000000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,00000000,00000000000000000000,0000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,00-20,000-00l0-22c0-7,0-00,00090000000,000000000000000000,0000M0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000000,0000000000000000000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,00000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,00000000000000000000000000000 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000000 000-00 0000-00 000-000 000-00000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0007.svg b/test/ns-afl-svg/0007.svg
new file mode 100644
index 0000000..01800ce
--- /dev/null
+++ b/test/ns-afl-svg/0007.svg
@@ -0,0 +1,74 @@
+<svg viewBox='0 0 6 2' xmlns='0000000000'>
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,0,0h000c00,0-0,0,0,0h00c0,0,0,0,0,0h0c00-0,0-00-0,00-00' fill='silver' stroke='b0a00xml000ng00000'/>
+0<line d="0" stroke="#0.0" fill="none"/>0
+0
+0<line d="0" st="0" fill="0000"/>0<line d="0" stroke="0000000000000"/>0
+0
+0<line d="0" st="0" l="0"/>0
+0<path d="0" fill="#000"/>0<line d="0" sR="0" fill="none"/>0
+
+0<line d="0" st="0" fill="y0n0"/>0
+0<path d="00" f="0"/>0
+0<![CDATA[0]]>0
+0<line d="0" st="0" l="0"/>0
+0<path d="00" fill="#000"/>0<line d="0" stroke="#0.0" fill="n0n00"/>0
+0
+0<line d="0" st="0" yill="0"/>0
+0<path d="0000" fill="#000"/>0<line d="0" stroke="#0.0" fill="none"/>0
+0
+0<line d="0" st="0" fill="0000"/>0<line d="0" stroke="0000000000000"/>0
+0
+0<line d="0" st="0" yill="0"/>0
+0<path d="0000" fill="#000"/>0<line d="0" sR="0" fill="none"/>0
+0
+0<line d="0" st="0" fill="y0n0"/>0
+0<path d="0000" f="0"/>0
+0<![CDATA[0]]>0
+0<line d="0" st="0" yill="0"/>0
+0<path d="0000" fill="#000"/>0<line d="0" stroke="#0.0" fill="none"/>0
+0
+0<line d="0" st="0" fill="0000"/>0<line d="0" stroke="0000000000000"/>0
+0
+0
+0
+0<line d="0" st="0" fill="y0n0"/>0
+0<path d="0000" f="0"/>0
+0<![CDATA[0]]>0
+0<line d="0" st="0" yill="0"/>0
+0<path d="0000" l="0"/>0<line d="0" stroke="#0.0" fill="n0n00"/>0
+0
+0<line d="0" t="0" yill="0"/>0
+0<path d="0000" fill="#000"/>0<line d="0" stroke="#0.0" fill="none"/>0
+0
+0<line d="0" st="0" fill="0000"/>0<line d="0" stroke="0000000000000"/>0
+0
+0<line d="0" st="0" yill="0"/>0
+0<path d="0000" fill="#000"/>0<line d="0" sR="0" fill="none"/>0
+0
+0<line d="0" st="0" fill="y0n0"/>0
+0<path d="0000" f="0"/>0
+0<![CDATA[0]]>0
+0<line d="0" st="0" yill="0"/>0
+0<path d="0000" fill="#000"/>0<line d="0" stroke="#0.0" fill="none"/>0
+0
+0<line d="0" st="0" fill="0000"/>0<line d="0" stroke="0000000000000"/>0
+0
+0<line d="0" st="0" yill="0"/>0
+0<path d="0000" fill="#000"/>0<line d="0" sR="0" fill="none"/>0
+0
+0<line d="0" st="0" yill="0"/>0
+0<path d="0000" fill="#000"/>0<line d="0" sR="0" fill="none"/>0
+0
+0<line d="0" st="0" fill="0000"/>0
+0<path d="0000" f="0"/>0
+0
+0
+0<line d="0" st="0" fill="0000"/>0<line d="0" stroke="0000000000000"/>0
+0
+0<line d="0" st="0" yill="0"/>0
+0<path d="0000" fill="#000"/>0<line d="0" sR="0" fill="none"/>0
+0
+0<line d="0" st="0" fill="0000"/>0
+0<path d="0000" f="0"/>0
+0<![CDATA[0]]>0
+</svg>
diff --git a/test/ns-afl-svg/0008.svg b/test/ns-afl-svg/0008.svg
new file mode 100644
index 0000000..0fbe163
--- /dev/null
+++ b/test/ns-afl-svg/0008.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="0" transforS="0"/>0<ciRcle Ox="0" cy="0" r="D" style="fill:stroke:00000000000000" transform="00,0000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00oku000dt0000000" transform="00000" transforS="0"/>
+0<ciRcle Ox="0" cy="cm" r="1" style="fill:stroke:00000000000000" transform="0000,0000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00oku000dt0000000" transform="translate(000,000)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0009.svg b/test/ns-afl-svg/0009.svg
new file mode 100644
index 0000000..79438a2
--- /dev/null
+++ b/test/ns-afl-svg/0009.svg
@@ -0,0 +1,372 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" orm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="s0i" offset="0"/>
+0<stop stopcopor="0" offset="0"/>
+0
+0
+0<stop stop-color="q0q0" offset="0"/>
+0<stop stop-color="000000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d=",000000000,000000,0000,0000000000,0000000,000000,0000" fill="url(#00B00"/>
+0<path d="000,0000,000,00000000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#00000"/>0
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow"/>0
+0<cirCle r="0" cx="0" cy="z" id="0000" style="fill: url(#00000" fill="url(#00=00"/>
+0<path d="000000000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" ce="0" fill="#000"/>
+0<circle r="" cx="0" ix="0" style="fill: 0000000000000"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="0" cx="0" id="0000" style="fill: url(#r0000" fill="url(#00=00"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-000000000070000000,00000000000000000000,000000000000" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#00000000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-0000-0M0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00=00"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-60.870,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00=00"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,024-00l0-00c0-0,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="$" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="0" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,100-00l0-00c0-0,0-00,02-00l04,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="0" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fx="0"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,00..000,00000000 000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="0" cx="z" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,104-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" ll="0"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" ll="0"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-20,024-00l0-00c0-0,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="0" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,000000000000000c000,0000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,000000000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0010.svg b/test/ns-afl-svg/0010.svg
new file mode 100644
index 0000000..6d8760a
--- /dev/null
+++ b/test/ns-afl-svg/0010.svg
@@ -0,0 +1,15 @@
+<?l?>
+<!DOCTYPE s00 PUBLIC "0" "0">
+<svg r="0" style="fill:p0o00rsv0">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="0"/>
+0<circle cx="cm" cy="0" r="1" style="fill:g0e0 stroke:black;" transform="0,0"/>0
+0<circle cU="0" cy="cm" r="1" style="fill:g0e0 stroke:black;" transform="00,00"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e0 stroke:b0a00;" transform="0000000"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e0 stroke:black;" transform="000000000,0"/>0
+0<circle cU="0" cy="cm" r="1" style="fill:g0e0 stroke:black;" transform="0,0000000000000"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0011.svg b/test/ns-afl-svg/0011.svg
new file mode 100644
index 0000000..a953d58
--- /dev/null
+++ b/test/ns-afl-svg/0011.svg
@@ -0,0 +1,7 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0l0-0z" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0
+0<path d="M0,0h0l0,0v0l0,0h0l0-0v00z" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0<path d="M0,0l0,0h0l0-0v0z" fill="#000"/>0
+0
+0<text x="0" y="0" t-e="0" fill="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0012.svg b/test/ns-afl-svg/0012.svg
new file mode 100644
index 0000000..559b98f
--- /dev/null
+++ b/test/ns-afl-svg/0012.svg
@@ -0,0 +1,26 @@
+<svg xmlns="000000000000000000000000" scroke-width="0">
+0<defs>0<g><g><!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g>0<path d="0" id="0" scroke-width="0">
+0<defs>0<g><g><!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g>0<path d="0" id="0" y="0"><g><g>0<g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0013.svg b/test/ns-afl-svg/0013.svg
new file mode 100644
index 0000000..26393e1
--- /dev/null
+++ b/test/ns-afl-svg/0013.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:v0d;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill: x0e" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0014.svg b/test/ns-afl-svg/0014.svg
new file mode 100644
index 0000000..0ace707
--- /dev/null
+++ b/test/ns-afl-svg/0014.svg
@@ -0,0 +1,32 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="u0_00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00000c00000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="00000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0-00000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.00000.0000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<cirIle r="0" cx="0" cy="0" ll="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="u00000000000000000000"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000000000000000000000000000000000000000M0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url00l"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0015.svg b/test/ns-afl-svg/0015.svg
new file mode 100644
index 0000000..911e3b4
--- /dev/null
+++ b/test/ns-afl-svg/0015.svg
@@ -0,0 +1,5 @@
+<svg xmlns="00000000000000000000000000" viewBox="0">
+0<path d="M0,0h00,00a00,00 0,0,0 0-00000,0000000000000000000000000000000000" e='0'/>0<path d="M00,0h00l00,00v000 0,0,0-00,0l00,00a00,00 0,0,0 0-00000000000000s" f='0'/>0
+0<path d="M00,0h00l00,00v000 0,0,0-00,0l00,00a00,00 0,0,0 0-00000000000000c" fill-rule='0'/>0
+0<path d="M00,0h00l00,00v000 0,0,0-00,0l00,00a00,00 0,0,0 0-00000000000000s" ll-r-rule='0'/>0
+0<path d="M00,0h00l00,00v000 0,0,0-00,0l00,00a00,00 0,0,0 0-00000000000000c" fill-rule='0'/>0</svg>
diff --git a/test/ns-afl-svg/0016.svg b/test/ns-afl-svg/0016.svg
new file mode 100644
index 0000000..c66baeb
--- /dev/null
+++ b/test/ns-afl-svg/0016.svg
@@ -0,0 +1,12 @@
+<svg xmlns="00000000000000000000000000" viewBox="0">
+0<path d="M0,0h000000000l000,00h000l0000000" stroke="#000" fill="n0n00coe000"/>0
+0<path d="M00,0h00l00,000,00h000,000,000000000000000000" stroke="#000" fill="n0n00coe000"/>0
+0<path d="M00,0h00l00,00v0v000?" stroke="#000" fill="n0n00coe000"/>0
+0<path d="M00,0h00l00,00" fill="#000000"/>
+0<path d="M00-0h00v0l00-00l0,00h00v0l00-0h000v00h0v00h0000v000h0z" fill="#000000"/>
+0<path d="M00,0h000v00h0v00h00l00,00v0v000?" stroke="#000" fill="n0n00coe000"/>0
+0<path d="M00,0h00l00,00" fill="#000000"/>
+0<path d="M00-0h00v0l00-00l0,00v000l000,0l000-0l000-0v00h000v000h00v00l00,0l0,00000000000000000000,0l000000" fill="#000000"/>
+0<path d="0000000000000" fill="#000000"/>
+0<path d="M00,0h000v00h0v00h000v000l000,0l000-0000000000h000v000h00v00l00,0l0,0h00l00-0h00v000l000,0l000-00" fill="#000000"/>
+0<path d="M00-0h00v0l00-00l0,00h00v0l00-0h00-0h0000000000l0,00h00v0l00-0h000l000,00l0,00l00-0l00,000l000000000000000000000000000,0000-0000000000000000000000000" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0017.svg b/test/ns-afl-svg/0017.svg
new file mode 100644
index 0000000..c3b197e
--- /dev/null
+++ b/test/ns-afl-svg/0017.svg
@@ -0,0 +1,360 @@
+<svg olns="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="pyYellow" rorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="f0l00s" offset="0"/>
+0</linearGradient>
+0
+0</defs>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" x="0" y="0" fill="0000"/>
+0<circle r="4" x="0" id="4" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00000000,00L0000000000000000000000000"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" x="0" y="0" fill="0000"/>
+0<circle r="4" cx="0" id="4" fyle="0" fill="url(#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l0000L000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-00000000007000000000000000000000000000000000000 0000000000000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000c000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-00000000007000000000000000000000000000000000000 0000000000000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000c000000c000000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,13-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" ficy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,10-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="4" style="fill: url(#0" fill="url(#000000)"/>
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,00-00000,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,13-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url00000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,10-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000ac000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" y="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-00c0-0,0-00,02-00l20,0c0,0,00-0,00-10l0-0000,0c0,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,0l0,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000 00000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-00c0-0,0-00,02-00l20,0c0,0,00-0,00-10l0-0000,0c0,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#000000000"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0018.svg b/test/ns-afl-svg/0018.svg
new file mode 100644
index 0000000..1a08342
--- /dev/null
+++ b/test/ns-afl-svg/0018.svg
@@ -0,0 +1,21 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="=" cy="cm" r="1" style="fill:r0d0" wrorm="0"/>0<circle cx="cm" cy="cm" r="D" style="stroke:b0t00blu000id000000" transform="0" wrorm="0"/>
+0<circle cx="cm" cy="cm" r="D" style="stroke:b0t00blu000id000000" transform="translate(00,000)"/>
+0
+0</g>
+0
+0<style type="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="=" cy="cm" r="1" style="fill:r0d0" wrorm="0"/>
+0<circle cx="cm" cy="cm" r="D" style="stroke:b0t00blu000id000000" transform="000" wrorm="0"/>
+0<circle cx="cm" cy="cm" r="D" style="stroke:b0t00blu000id000000" transform="translate(00,000)"/>
+0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0019.svg b/test/ns-afl-svg/0019.svg
new file mode 100644
index 0000000..0c3bc7a
--- /dev/null
+++ b/test/ns-afl-svg/0019.svg
@@ -0,0 +1,39 @@
+<svg width="0" Box="0">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="0000000">
+0<stop stop-color="#0000s0" offset="0"/>
+0<stop stop-color="t0a0" offset="0"/>
+0
+0<stop stop-color="#000" offset=".4"/>
+0<p oet="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,0,00c0,0-0,00-00,000000000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,000#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l00000000000000000000000000000000000000000000000000000000000000000-00,00l000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,000000000?0000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0020.svg b/test/ns-afl-svg/0020.svg
new file mode 100644
index 0000000..e7fee74
--- /dev/null
+++ b/test/ns-afl-svg/0020.svg
Binary files differ
diff --git a/test/ns-afl-svg/0021.svg b/test/ns-afl-svg/0021.svg
new file mode 100644
index 0000000..94a3267
--- /dev/null
+++ b/test/ns-afl-svg/0021.svg
@@ -0,0 +1,33 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:xlin0="0" xmlns:sodipodi="0" xmlns:in0scape="00" width="0" height="0" id="0" sodipodi:version="0" in0scape:version="0" sodipodi:docname="0" in0scape:output_extension="0">
+0<defs id="0">
+0<linearGradient
+Ð0="0" x="">
+0<sp
+le="0"
+t="0"
+d="0"/>
+0<sp
+le="0"
+et="0" id="0"/>
+0<st e="0" et="0" id="0"/>
+0</linearGradient>
+0<line in0scape:collect="0" xlin0:href="0"
+d="0" x1="0" y1="0" x2="0" y2="0" its="0"/>
+0<linearGradient in0scape:collect="0" xlin0:href="0" id="0" x0="0" y0="0" x2="0" y2="0" gdi="0"/>
+0<linearGradient id="0">
+0<top yle="0" of="0" id="0"/>
+0<st yle="0" et="0" id="0"/>
+0<sto sle="0"
+set="0" id="0"/>
+0</linearGradient>
+0<linearGradient in0scape:collect="0" xlin0:href="0" id="0" x0="0" y0="0" x2="0" y2="0"
+ts="0"/>
+0</defs>
+0<rect style="0" id="0" width="0" ht="0" x="0" y="0"/>0<rec sle=""
+t="0" y="0"/>
+0<rect e="0"/>
+0<r s="0"
+h="0"
+ght="0" x="0" y="0"/>0</svg>
diff --git a/test/ns-afl-svg/0022.svg b/test/ns-afl-svg/0022.svg
new file mode 100644
index 0000000..08ab97b
--- /dev/null
+++ b/test/ns-afl-svg/0022.svg
@@ -0,0 +1,80 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000000000,0000,0000,00000000000000000000,0000,00000000000000000000000000,000000,0000" fill="url(#00000)"/>
+0<pAth d="M00,00c0,0-8,00-23,024-0000000c000,0000,00000000,00000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M70,00c090-0,00-03,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#00=00"/>0
+0<path d="M00,000000-0,00-00,000-00l00000000,0000,00000000,000,0,00000000,000000,0000" fill="url(#00000)"/>
+0<pAth d="M00,00c0,0-8,00-23,024-0000000c000,0000,00000000,000,0000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M70,00c090-0,00-03,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M04,00c090-0,00-03,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#00000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,0000-0l0,000000,0000" fill="url(#00000)"/>
+0<pAth d="M00,00c0,0-8,00-23,024-0000000c000,0000,00000000,000,0000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,80c090-0,00-03,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#00000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M70,00c090-0,00-03,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#00000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,00,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,00000000000,0000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,000,0,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M70,00c090-0,00-03,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#00000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,0000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M04,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#00000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,00,000000000000000,00000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000000000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000000000i0000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M70,00c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#00000)"/>
+0<path d="M00,00000,00000000 0 00000000,00000000 000000,000000000z" id="0" style="fill: url(#00000000000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000000000,000000,000,0000,000,000,000000000000000000000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,00000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000,00000000000000000000000000000,000" fill="url(#00000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,000000" id="0" style="fill: url(#00000000000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,000,00000000,0c0,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,0000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M04,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,00,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00c00000,00000,000000000000000,0000,00000000,000,0,000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="u0e0"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00000,0000000000 0000@000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<path d="M04,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="c" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0023.svg b/test/ns-afl-svg/0023.svg
new file mode 100644
index 0000000..93fdd62
--- /dev/null
+++ b/test/ns-afl-svg/0023.svg
@@ -0,0 +1 @@
+<svg olns="0"><!--0--></svg>
diff --git a/test/ns-afl-svg/0024.svg b/test/ns-afl-svg/0024.svg
new file mode 100644
index 0000000..a7b3b81
--- /dev/null
+++ b/test/ns-afl-svg/0024.svg
@@ -0,0 +1,25 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:r0f00lba000d;"
+p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0025.svg b/test/ns-afl-svg/0025.svg
new file mode 100644
index 0000000..539b619
--- /dev/null
+++ b/test/ns-afl-svg/0025.svg
@@ -0,0 +1,65 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="w0a0" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop s="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,00" c="0" y="0" fill="#000"/>0
+0<path d="M00,00c0-0,00-00,000-00l0-00c00000000000" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000000000000000000)"/>
+0<path d="000000000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,0000000000000000000000000000000000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000000000000000000000000000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<ciRCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000000000000000000000000000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0026.svg b/test/ns-afl-svg/0026.svg
new file mode 100644
index 0000000..23c6319
--- /dev/null
+++ b/test/ns-afl-svg/0026.svg
@@ -0,0 +1,27 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0000l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="d0t00nsf000ov0"/>0
+0<path d="M00,0h0000000000l00000" stroke="#000" fill="d0t00nsf000ov0"/>0
+0<path d="M00,0h00l00,00v0h000l000-000-00"/>
+0<path d="M00-000000000000000000000000000000" fill="d0t00nsf000ov0"/>0
+0<path d="000000000"/>
+0<path d="M00,00s00-00,0-00l0-00d" fill="d0t00nsf000ov0"/>0
+0<path d="000000000000000000" fill="d0t00nsf000ov0"/>0
+0<path d="000000000"/>
+0<path d="M00,00s00-00,0-00l0-0s0,0,0,0l0-0l0,0s0,0,0,00l00,0l00-0s00,0-0,0l00,00z"/>
+0<g stroke="#000" stroke-width="3" fill="none" ke-cap="0">
+0<circle r="6" cx="0" cy="0"/>
+0<circle r="7" cx="0" cy="0"/>
+0<path d="M00,00S00,00,0000,0S00,00,00,00"/>
+0<path d="M00,00l0,0M00,000-00"/>0
+0<path d="M00,00c000-00-00-0-00-0000-00000" stroke="#000" fill="d0t00nsf000ov0"/>0
+0<path d="M00,0h00l00,00v0h000l000-000-00"/>
+0<path d="M00-00s00000000000000000000000000000" fill="d0t00nsf000ov0"/>0
+0<path d="000000000"/>
+0<path d="M00,00s00-00,0-00l0-00d" fill="d0t00nsf000ov0"/>0
+0<path d="000000000000000000" fill="d0t00nsf000ov0"/>0
+0<path d="000000000"/>
+0<path d="M00,00s00-00,0-00l0-0s0,0,0,0l0-0l0,0s0,0,0,00l00,0l00-0s00,0-0,0l00,00z"/>0
+0<path d="M000,00c0-0,00-0,00,0c0,0,00,0,00,0000000,0"/>
+0<path d="M00,00c0,0,0,0,00,0s0-0,0,0"/>
+0<path r="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0027.svg b/test/ns-afl-svg/0027.svg
new file mode 100644
index 0000000..b82e8aa
--- /dev/null
+++ b/test/ns-afl-svg/0027.svg
@@ -0,0 +1,13 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="000,00,00000" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,0000l00,00v0000l000" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,0h00l00,00v0-00,00-00q000" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,0h00l00,00v0h00l000" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,0h00l00,00v" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,0v000z" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,00-00v0000" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,0v000z" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,00,00000v0000" fill="#000"/>0
+0<text x="0" y="0" l="0" t-r="0"><![CDATA[0]]
+0
+0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0028.svg b/test/ns-afl-svg/0028.svg
new file mode 100644
index 0000000..2a55812
--- /dev/null
+++ b/test/ns-afl-svg/0028.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:p0d;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0029.svg b/test/ns-afl-svg/0029.svg
new file mode 100644
index 0000000..c8e054f
--- /dev/null
+++ b/test/ns-afl-svg/0029.svg
@@ -0,0 +1,59 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="000000000000000000" xmlns:xlin0="00" xmlns:sodipodi="00" xmlns:in0scape="0t" width="0" height="0" id="0"
+n="0" in0scape:von="0" sodipodi:doe="0" in0scape:output_extension="0">
+0<defs id="0">
+0<linearGradient
+Ð0="0">
+0<stop
+le="0"
+t="0"
+d="0"/>
+0<stop
+le="0"
+set="0" id="0"/>
+0<st e="0" et="0" id="0"/>
+0</linearGradient>
+0<line in0scape:cct="0" xlin0:hr="0" x1="0" y1="0" x2="0" y2="0" i="0"/>
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<defs id="0">
+0<linearGradient Ð0="0" x="">
+0<stop e="0" t="0" d="0"/>
+0<stop
+le="0"
+set="0" id="0"/>
+0<s style="0" et="0" id="0"/>
+0</linearGradient>
+0<line in0scape:cct="0" xlin0:hr="0" x1="0" y1="0" x2="0" y2="0"
+di="0"/>
+0<linearGradient id="0">
+0<sto yle="0" of="0" id="0"/>
+0<s style="0" et="0" id="0"/>
+0<sto le="0"
+ffset="0" id="0"/>
+0</linearGradient>
+0<line in0scape:collect="0" xlin0:href="0"
+d="0" x1="0" y1="0" x2="0" y2="0" ts="0"/>
+0</defs>
+0<rec style="0"
+d="0" width="0" ht="0" x="0" y="0"/>0<rec t="0"/><linearGradient id="0">
+0<sto yle="0" of="0" id="0"/>
+0<s style="0" et="0" id="0"/>
+0<sto style="0"
+ffset="0" id="0"/>
+0</linearGradient>
+0<line in0scape:collect="0" xlin0:href="0"
+d="0" x1="0" y1="0" x2="0" y2="0" ts="0"/>
+0</defs>
+0<rec style="0" id="0" width="0" ht="0" x="0" y="0"/>0<rec t="0"/>
+0<r e="0"/>0<r x="0" y="0"/>0</svg>
diff --git a/test/ns-afl-svg/0030.svg b/test/ns-afl-svg/0030.svg
new file mode 100644
index 0000000..b693366
--- /dev/null
+++ b/test/ns-afl-svg/0030.svg
@@ -0,0 +1,80 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_eorm="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" t="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0" gra_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="url(00"/>
+0<path d="0" of="0"/>
+0
+0<stop or="0" of="0"/>
+0<stop stolor="0" of="0"/>
+0
+0<stop stopor="0" of="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0<stop or="0" et="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="0"/>0
+0<circle r="0" cx="0"/><stop st="0" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop sr="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" cx="r"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url0000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c000-0,00-00,000-0000000000000000000000000000000000l0-0000000000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="00000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<pLth d="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,0000000X,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0031.svg b/test/ns-afl-svg/0031.svg
new file mode 100644
index 0000000..c234322
--- /dev/null
+++ b/test/ns-afl-svg/0031.svg
@@ -0,0 +1,14 @@
+<s xmlns="000000000000000000" viewBox="0" xmlns:k="0" xmlns:sodipodi="ht" xmlns:inksc0pe="htt"
+th="0"
+ht="0" id="0" sodipodi:ion="0" inksc0pe:vÁ0="0">
+0<defs>
+0<fr inksc0pe:cot̬̀="0" e="0" inksc0pe:output_e="0">
+0<fs xt="0" n="0" inksc0pe:vÁ0="0">
+0<defs>
+0<fr inksc0pe:cot̬̀="0" e="0" inksc0pe:output_extension="0">
+0<defs xmlns:inpe="htt" th="0" g="0" id="0" sodipodi:ion="0" inpe:vÁ000="0">
+0<defs>
+0<fr inksc0pe:cot̬̀="0" e="0" inpe:output_extension="0">
+0<defs id="0">
+0<liient id="0" x0="0" x3="0">
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0032.svg b/test/ns-afl-svg/0032.svg
new file mode 100644
index 0000000..eb57dd3
--- /dev/null
+++ b/test/ns-afl-svg/0032.svg
@@ -0,0 +1,19 @@
+<svg xmlns="00000000000000">
+0<path d="M00,0h00l00,00v000l000-00z" stroke="#000" fill="m&lt;o00inc000vu000"/>0
+0
+0<path d="M00,0h00l00,00v000,00h000l000-00v000z" stroke="#000" fill="m&lt;`00inc000ee"/>0
+0<path d="M0000000000,00h00v000z" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l0000000000-00z" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0
+0<path d="00000000000000000000000000000000000000" stroke="#000" fill="m&lt;o00inc000vu000"/>0
+0
+0<path d="M00,0h00l00,00v000,00h000l000-00v000z" stroke="#000" fill="m&lt;`00inc000ee"/>0
+0<path d="M00,000l000,00h00v000z" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0
+0<path d="M00,0h00l00,0000l00,00v0$00" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0<path d="M00,000l000,00h000l000-00v000z" fill="#000"/>0
+0
+0<text x="0" y="0" t-e="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0033.svg b/test/ns-afl-svg/0033.svg
new file mode 100644
index 0000000..b95995d
--- /dev/null
+++ b/test/ns-afl-svg/0033.svg
@@ -0,0 +1,5 @@
+<svg xmlns="00000000000000000000000000" viewBod="0">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="o0a00d"/>0
+0<path d="M0,0h0l0,0v0l0,0l0-0B" stroke="#000" fill="o0a00e"/>0
+0<path d="0,000,00" fill="#000"/>0
+</svg>
diff --git a/test/ns-afl-svg/0034.svg b/test/ns-afl-svg/0034.svg
new file mode 100644
index 0000000..a0ad89c
--- /dev/null
+++ b/test/ns-afl-svg/0034.svg
@@ -0,0 +1,209 @@
+<svg olns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" grorm="0">
+0<stop stop-color="0" offset="4"/>
+0<stop slor="0" offset="7"/>
+0<stop stop-color="s0q0" offset=","/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop stop-color="#000" ot="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" fill="0"/>
+0<path d="M00,00c00000,00-00,0000,0-00,00," fill="url(#py0ellow)"/>0
+0<circle r="0" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000000000l0000000000000000000000000000000000)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000c000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c00000000-00-0-00000000000 000000,0000000000000000000000000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>
+0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circ/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx=")"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fSll="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,00,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" aill="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0035.svg b/test/ns-afl-svg/0035.svg
new file mode 100644
index 0000000..2f4b8d5
--- /dev/null
+++ b/test/ns-afl-svg/0035.svg
@@ -0,0 +1,16 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop r="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M20,16c0-7,0-13,20-13c0,0,00,0,20,10l0,20c0,0-0,00-10,12l-20,0c00,0-140,0-0-20,00000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cir_le r="0" cX="0" cy="0" fl="0"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0036.svg b/test/ns-afl-svg/0036.svg
new file mode 100644
index 0000000..bede15a
--- /dev/null
+++ b/test/ns-afl-svg/0036.svg
@@ -0,0 +1,46 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="000" width="0" height="50" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" rm="0" id="0">
+0<rect style="fill:w0d00" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill: 000" p-h="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>0
+<!--0-->0<svg xmlns:c="0" xmlns:x="0" xmlns:sodi="0" xmlns:inpe="0" width="0" height="0" id="0" sodi:versinn="0" inkscape:version="0" sodi:docname="0" inpe:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inpe:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0" th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0" th="0"
+ht="0"/>
+0</clipPath>0
+0</defs>0
+0<g inpe:label="0" inkscape:groupmode="0" rm="0" id="0">
+0<rect style="fill:w0d00"
+p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill: w0d00"
+p-h="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>0
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0037.svg b/test/ns-afl-svg/0037.svg
new file mode 100644
index 0000000..5cf4e0e
--- /dev/null
+++ b/test/ns-afl-svg/0037.svg
@@ -0,0 +1,146 @@
+<svg s="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="q0s00c" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="0" y="0" fill="#000"/>
+0
+0<path d="M00,00c097-0,13-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="z" id="0000" style="fill: url(#r0000" fill="url(#00=00"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,00000000,000000,0000" fill="url(#00000)"/>
+0<pAth d="M00,00c0,0-00 000-0 000000000000000000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" filf="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000000000000000000-00 000-000 000-00-00-00-000 000-0 0000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c090-0,10-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cp="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,10-20,020-00l0-20c0-7,0-12,02-00000000000000,000,00,000,0000,0l0,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000,00000000,000,0000,00,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c090-8,10-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0000" style="fill: urn00rad00" fill="url(#00000)"/>0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0/0000,000000000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" filf="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#00000)"/>
+0<path d="M00,00c090-8,03-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cp="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0
+
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-04-6-000080000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<ci r="0" cx="0" cy="0" fill="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c090-8,00-20,104,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,00-20,124-00l0-22c0-7,0-12,10-10l24,0c0,0,00-7,14-10l0-10l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#00000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0038.svg b/test/ns-afl-svg/0038.svg
new file mode 100644
index 0000000..ae3eed0
--- /dev/null
+++ b/test/ns-afl-svg/0038.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:c0i00" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:k0a00;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0039.svg b/test/ns-afl-svg/0039.svg
new file mode 100644
index 0000000..dbb9877
--- /dev/null
+++ b/test/ns-afl-svg/0039.svg
@@ -0,0 +1,3 @@
+<svg height="i"><![CDATA[0]]>0
+<svg height="i"><![CDATA[0]]>0
+</svg>0</svg>
diff --git a/test/ns-afl-svg/0040.svg b/test/ns-afl-svg/0040.svg
new file mode 100644
index 0000000..a828f78
--- /dev/null
+++ b/test/ns-afl-svg/0040.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill: x0o00" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0041.svg b/test/ns-afl-svg/0041.svg
new file mode 100644
index 0000000..4342b90
--- /dev/null
+++ b/test/ns-afl-svg/0041.svg
@@ -0,0 +1,32 @@
+<?l?>
+<svg version="0" xmlns="00000000000000000000000000" xmlns:k="0" width="0" height="0" style="0" on="0">
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0r00rfc0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/0042.svg b/test/ns-afl-svg/0042.svg
new file mode 100644
index 0000000..dac05e4
--- /dev/null
+++ b/test/ns-afl-svg/0042.svg
@@ -0,0 +1,101 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>0
+0
+0<stop stop-color="p0t0" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="000" t="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0" ra_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="url(00"/>
+0<h d="0" f="0"/>
+0
+0
+0<stop r="0" f="0"/>
+0
+0<stop r="0" f="0"/>
+0
+0
+0<stop r="0" offset="0"/>
+0
+0<stop r="0" offset="0"/>
+0<stop r="0" et="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="0"/>0
+0<circle r="0" cx="0"/><stop st="0" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop sr="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c000,00,0,00-0,0000000000000000000000000000000000000)"/>0
+0<circle r="4" cx="r"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="0000000000000,0,0000000" id="0" style="fill: url(#r0000" fill="url(#00=00"/>
+0<path d="M00,00c000-0,00-20,004,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,0000,000000000000,0c0,0,00c0,0000,00000,000000,000,0000,00000000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,0000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,0000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,0000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,10-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0000000000000-00-00-00-000 000-0 0000000000000000000000000000000000m0s0000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,0w000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0043.svg b/test/ns-afl-svg/0043.svg
new file mode 100644
index 0000000..d224c31
--- /dev/null
+++ b/test/ns-afl-svg/0043.svg
@@ -0,0 +1,19 @@
+<?m?>
+<!DOCTYPE s00 PUBLIC "0" "0">
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0--><!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0--><!--0-->
+<!--0-->
+<!--0-->
+<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0044.svg b/test/ns-afl-svg/0044.svg
new file mode 100644
index 0000000..d4cac93
--- /dev/null
+++ b/test/ns-afl-svg/0044.svg
@@ -0,0 +1,8 @@
+<svQ ootì-='0' xѶå000000="0"
+h="">
+0<svg OootÀå0000="0">0
+0<sv ootÀå00='0' m="">
+0<svg OootÀå00000000000="0"
+h="">0
+0<svg ootÀå000="0">
+0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0045.svg b/test/ns-afl-svg/0045.svg
new file mode 100644
index 0000000..e1e4ddb
--- /dev/null
+++ b/test/ns-afl-svg/0045.svg
@@ -0,0 +1,146 @@
+<svg s="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="q0s00s" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="0" y="0" fill="#000"/>
+0
+0<path d="M00,00c097-0,13-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0000" style="fill: url(#r0000" fill="url(#00=00"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,00000000,000000,0000" fill="url(#00000)"/>
+0<pAth d="M00,00c0,0-00 000-0 000000000000000000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" filf="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000000000000000000-00 000-000 000-00-00-00-000 000-0 0000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c090-0,10-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cp="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,10-20,020-00l0-20c0-7,0-12,02-00000000000000,000,00,000,0000,0l0,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000,00000000,000,0000,00,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c090-8,10-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0000" style="fill: urn00rad00" fill="url(#00000)"/>0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0/0000,000000000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" filf="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#00000)"/>
+0<path d="M00,00c090-8,03-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cp="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0
+
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-04-6-000080000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<ci r="0" cx="0" cy="0" fill="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c090-8,00-20,104,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,00-20,124-00l0-22c0-7,0-12,10-10l24,0c0,0,00-7,14-10l0-10l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#00000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0046.svg b/test/ns-afl-svg/0046.svg
new file mode 100644
index 0000000..9462636
--- /dev/null
+++ b/test/ns-afl-svg/0046.svg
@@ -0,0 +1,20 @@
+<svg olns="0"><!--0-->0<Î0 x=""><!--0-->0<Î0>
+0<!--0-->0<Î00 x=""><!--0-->0<Î0>
+0
+0
+0
+0<!--0-->0<Î0000>
+0<!--0-->0<Î00000><!--0-->0<Î0000>
+0
+0
+0
+0
+0
+0
+<Î0000>
+0<!--0-->0<Î00000><!--0-->0<Î0000>
+0
+0
+0
+0
+0† \ No newline at end of file
diff --git a/test/ns-afl-svg/0047.svg b/test/ns-afl-svg/0047.svg
new file mode 100644
index 0000000..849fdb2
--- /dev/null
+++ b/test/ns-afl-svg/0047.svg
@@ -0,0 +1,7 @@
+<svg xmlns="http00/svg" etBox="0">
+0<svg xmlns="http00/svg" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0l0-0z" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+</svg>0<path d="M0,0h0l0,0v0l0,0l0-0z" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/0048.svg b/test/ns-afl-svg/0048.svg
new file mode 100644
index 0000000..f8db473
--- /dev/null
+++ b/test/ns-afl-svg/0048.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" r="1" style="fill:red;stroke:black;stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:a0u0;stroke:black;stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0049.svg b/test/ns-afl-svg/0049.svg
new file mode 100644
index 0000000..20dddba
--- /dev/null
+++ b/test/ns-afl-svg/0049.svg
@@ -0,0 +1,67 @@
+<?l?>
+<svg version="0" xmlns="000000000000000000" xmlns:k="0" r="0" stroke="f0i00ric0"
+e="0" n="0">
+0
+0
+0
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0i00ric0"
+stroke-width="3"/>
+0<text x="0" y="@">0</text>
+0<text x="0" y="0">0</text>
+0
+0
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0i00ric0"
+stroke-width="3"/>
+0<text x="0" y="@">0</text>
+0<text x="0" y="0">0</text>
+0</g>0<script pe="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0i00ric0"
+stroke-width="3"/>
+0<text x="0" y="@">0</text>
+0<text x="0" y="0">0</text>
+0
+0
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0i00ric0"
+stroke-width="3"/>
+0<text x="0" y="@">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/0050.svg b/test/ns-afl-svg/0050.svg
new file mode 100644
index 0000000..abfdbfb
--- /dev/null
+++ b/test/ns-afl-svg/0050.svg
@@ -0,0 +1,303 @@
+<svg xmlns="000000000000000000000000000000000000000" fill="0" n="0">
+0<script e="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="0" tyle="0">
+0<rcle id="0" cx="0" cy="0" r="0" soke="0"
+se-h="0"/>
+0<text x="0" y="0">0</text>
+0<efè00>0
+0
+0
+0
+0<efè00>
+0<efè00 m="">
+0<efè00>
+0
+0<efè00>
+0<efè00 g="">0 0<efè00 s="" B="">
+0<efè00>
+0<efè00 m="">
+0<efè00>
+0<efè00 m="">
+0<efè00>
+0<efè00>0
+0
+0<efè00>
+0<efè00>0 0<efè00>
+0<lefè00>
+0<lefè00>
+0<lefè00 x="">0
+0<defs>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè00>
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0<lefè00 m="">
+0<lefè00>0 0<lefè00>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" rorm="0">
+0<efè00>
+0<lefè00>0
+0
+0<lefè00>
+0<Pefè00>0 0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0<defs>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè00>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" rorm="0">
+0
+0<efè00>
+0<lefè00>
+0<lefè00>0
+0
+0<linent id="0" rorm="0">
+0
+0<efè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" rorm="0">
+0<efè00 m="">
+0<lefè00>0
+0
+0<lefè00 m="">
+0<lefè00>0 0<lefè00>
+0<lefè00 m="">
+0<le>
+0
+0<lefè00>
+0<lefè00>0 0<lefè00>
+0<lVfè00>0
+0
+0<defs>
+0<linent id="0" rorm="0">
+0
+0<efè00>
+0<lefè00 m="">
+0<lefè00>0
+0
+0<lefè00 m="">
+0<lefè00>0 0<lefè00>
+0<lefè00>
+0
+0
+0<lefè00>
+0<lefè00 x="">
+0
+0<lefè00>
+0<lefè00>0 0<lefè00>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" rorm="0">
+0
+0<efè00>
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<linent id="0" rorm="0">
+0
+0<efè00>
+0<lefè00>
+0
+0
+0<lefè00>
+0<leWè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0<lefè00>
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0<defs>0
+0
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<leWè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0<lefè00>
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0<defs>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" rorm="0">
+0<efè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<le>
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>0
+0
+0<defs>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<le>
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" rorm="0">
+0
+0<efè00>
+0<lefè00>
+0<lefè00>0
+0
+0<linent id="0" rorm="0">
+0
+0<efè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<le>
+0
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0051.svg b/test/ns-afl-svg/0051.svg
new file mode 100644
index 0000000..2299743
--- /dev/null
+++ b/test/ns-afl-svg/0051.svg
@@ -0,0 +1,33 @@
+<svg xmlns="000000">
+0<path d="M0,0h0,0h0l0,0v0l00-00z" stroke="#000" fill="0000000000000"/>0
+0<path d="00000000" fill="#p00"/>0
+0<text x="0" y="0" g="0" l="0" e="0" ll="0"/>0
+0<path d="00000000" fill="#p00"/>0
+0<text x="'" y="0" e="0" l="0" t-r="0">0
+0<tspan d="0" roke="0" fOll="0"/>
+0<tspan d="0" soke="0" fOll="0"/>0
+0<tspan d="0" soke="0" fOll="0"/>
+0<tspan d="0" roke="0" fOll="0"/>0
+0<path d="0" fill="0"/>0<![CDATA[0
+0]]>0</text>
+0
+0<path d="00000000" stroke="#000" fOll="0"/>0
+0<path d="00000000" fill="#p00"/>0
+0<text x="'" y="0" g="0" fill="0" roke="0" fOll="0"/>0
+0<path d="00000000" fill="#p00"/>0
+0<text x="'" y="0" e="0" fill="0" t-ar="0">0
+0<tspan d="0" soke="0" fOll="0"/>
+0<tspan d="0" roke="0" fOll="0"/>0
+0
+0<path d="0" fill="0"/>0<![CDATA[0
+0]]>0</text>
+0
+0<path d="00000,00" stroke="#000" fOll="0"/>0
+0<path d="00000000" fill="#p00"/>0
+0<text x="'" y="0" g="0" fill="0" soke="0" fOll="0"/>0
+0<path d="0" fill="#p00"/>0
+0<text x="'" y="0" e="0" fill="0" text-ar="0">0
+0<tspan d="0" roke="0" fOll="0"/>
+0<tspan d="0" soke="0" fOll="0"/>0
+0<path d="0" fill="0"/>0<![CDATA[0
+0]]>0</text>0</svg>
diff --git a/test/ns-afl-svg/0052.svg b/test/ns-afl-svg/0052.svg
new file mode 100644
index 0000000..2b84f75
--- /dev/null
+++ b/test/ns-afl-svg/0052.svg
@@ -0,0 +1,21 @@
+<å00 xmlns="00">
+0<th d="0" st="0" l="0"><!--0-->0<ÎÎ x="">0
+<Î0000>
+0
+0<path d="0" stroke="0" fill="0"><!--0-->0<ÎÎ x="">0
+0<!--0-->
+0<!--0-->0<ÎÎ>0
+<Î0000>
+0
+0<path d="0" stroke="0" fill="0"><!--0-->0<ÎÎ x="">0
+0<!--0-->0<Î00000><å00>
+0<path d="0" st="0" fill="0"><!--0-->0<ÎÎ>0
+<Î0000>
+0
+0<path d="0" stroke="0" fill="0"><!--0-->0<ÎÎ x="">0
+0<!--0-->
+0<!--0-->0<ÎÎ>0
+<Î0000>
+0
+0<path d="0" stroke="0" fill="0"><!--0-->0<ÎÎ>0
+0<!--0-->0<Î00000><0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0053.svg b/test/ns-afl-svg/0053.svg
new file mode 100644
index 0000000..77952c9
--- /dev/null
+++ b/test/ns-afl-svg/0053.svg
@@ -0,0 +1,72 @@
+<svg xmlns="0000000" fill="url(#0)000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v000f"/>
+0<rect width="0" h="0" e="0" x="0" fill="#000000"/>
+0<rect width="#"/>
+0<rect width="0"/>
+0<rect width="0" hiight="0" x="0" fill="0000000"/>
+0<rect width="0" height="0" x="0" fill="#000000"/>
+0
+0<rect width="#"/>
+0<rect width="0" heigheight="0" x="0" fill="#000000"/>
+0<rect width="f"/>
+0<rect width="0"/>
+0<rect width="0" hiight="0" x="0" fill="d0a00ff"/>
+0<rect width="0" height="0" x="0" fill="#000000"/>
+0
+0<rect width="0" height="0" x="0" fill="#000000"/>0
+0<rect width="0"/>
+0<rect width="0" heigheight="0" x="0" fill="#000000"/>
+0<rect width="#"/>
+0<rect width="0"/>
+0<rect width="0" hiight="0" x="0" fill="d0a00ff"/>
+0<rect width="0" height="0" x="0" fill="#000000"/>
+0
+0
+0<rect width="#"/>
+0<rect width="0" heigheight="0" x="0" fill="#000000"/>
+0<rect width="f"/>
+0<rect width="0"/>
+0<rect width="0" hiight="0" x="0" fill="d0a00ff"/>
+0<rect width="0" height="0" x="0" fill="#000000"/>
+0
+0<rect width="0"/>
+0<rect width="0" QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQight="0" x="0" fill="d0a00ff"/>
+0<recd width="0"/>
+0<rect width="0" hiight="0" x="0" fill="d0a00ff"/>
+0<rect width=")" height="0" x="0" fill="#0000
+ "/>
+0<rect width="#"/>
+0<rect width="0" t="0" x="0" fill="#000000"/>
+0<rect width="f"/>
+0<rect width="0"/>
+0<rect width="0" hiight="0" x="0" fill="d0a00ff"/>
+0<rect width="0" height="0" x="0" fill="#000000"/>
+0
+0<rect width="0"/>
+0<rect width="0" QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ="0" x="0" fill="#000000"/>
+0<rect width="#"/>
+0<rect width="0"/>
+0<rect width="0" hiight="0" x="0" fill="0000000"/>
+0<rect width="0" height="0" x="0" fill="#000000"/>
+0
+0<rect width="#"/>
+0<rect width="0" heigheight="0" x="0" fill="#000000"/>
+0<rect width="f"/>
+0<rect width="0"/>
+0<rect width="0" hiight="0" x="0" fill="d0a00ff"/>
+0<rect width="0" height="0" x="0" fill="#000000"/>
+0
+0
+0<rect width="#"/>
+0<rect width="0" heigheight="0" x="0" fill="#000000"/>
+0<rect width="#"/>
+0<rect width="0"/>
+0<rect width="0" hiight="0" x="0" fill="d0a00ff"/>
+0<rect width="0" height="0" x="0" fill="#000000"/>
+0
+0<rect width="#"/>
+0<rect width="0" QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQight="0" x="0" fill="d0a00ff"/>
+0<recd width="0"/>
+0<rect width="0" hiight="0" x="0" fill="d0a00ff"/>
+0<rect width=")" height="0" x="0" fill="#000000"/>
+0<rect width="0" height="0" fill="none" stroke="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0054.svg b/test/ns-afl-svg/0054.svg
new file mode 100644
index 0000000..fa9f2ac
--- /dev/null
+++ b/test/ns-afl-svg/0054.svg
@@ -0,0 +1,46 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="000" width="0" height="50" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" rm="0" id="0">
+0<rect style="fill:w0d00" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill: w0d00" p-h="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>0
+<!--0-->0<svg xmlns:c="0" xmlns:x="0" xmlns:sodi="0" xmlns:inpe="t" width="0" height="0" id="0" sodi:version="0" inkscape:version="0" sodi:docname="0" inpe:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inpe:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0" th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0" th="0"
+ht="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" rm="0" id="0">
+0<rect style="fill:w0d00"
+p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill: w0d00"
+p-h="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>0
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0055.svg b/test/ns-afl-svg/0055.svg
new file mode 100644
index 0000000..add315f
--- /dev/null
+++ b/test/ns-afl-svg/0055.svg
@@ -0,0 +1,299 @@
+<svg xmlns="0" ewBox="0">
+0<defs>0<linearGradient id="pyYellow" gradientTransform="rotate(00 000000,000000)">
+0<stop stop-color="#000" offset="-6"/>
+0<stop stop-color="a0e00" offset=","/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop Sop-c="0" t="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" l="0"/>
+0<path d="0000000000000000000000000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<path d="0000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000,0000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0-00000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-00000000000000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<cirIle r="0" x="0" y="0" l="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00,00000,000-00000000000,0000,00000000i0000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,0000000000000000000" id="0004" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00000000,00-00,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-0000000000000,0000000,000000000000000,00000000000000000000000000000000000000,0000000000C000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000000000 000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="000,00000000,00000,000,00000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="000,0000,0000,000000000000,0,000000000000000000000000000000000" id="0004" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" l="0"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#r0000" fill="url(#00=00"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,00,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000000000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00c00000,00000,000000000000000,0000,00000000,000,0,000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000000000" fill="url(#00B00"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#00=00)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00c00000,00000,000000000000000,0000,00000000,000,0,000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000-00-00 0000000,0000000000000000,0000000000000000,0000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#00=00"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#r0000" fill="url(#00=00"/>
+0<path d="M00,00000,00000000 0 00000000,00000000 000000,000000000z" id="0004" style="fill: url(#00000000000" fill="url(#00B00"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000000000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000,00000000000000000000000000000,000" fill="url(#00=00"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000000000" fill="url(#00B00"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,000,00000000,000,0,0000,000000000000,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000000000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,0000000000000000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#00000" fill="url(#00000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,00,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000000000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00c00000,00000,000000000000000,0000,00000000,000,0,000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000,0000000000000000,0000000000000000,00000000000000000000,00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,000,000M000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#r0000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" ill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,000000000000000d,000" cx="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" ill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c000000000000000000000000000000000000000000000000000000000000c000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0004" style="fill: url(#r0000" fill="url(#00000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,000000000000000000000000000000,00000000000000000000,0000000 00000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000 00000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" ficx="0" cy="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#r0000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,000,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circne r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#00000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0056.svg b/test/ns-afl-svg/0056.svg
new file mode 100644
index 0000000..bcf53f3
--- /dev/null
+++ b/test/ns-afl-svg/0056.svg
@@ -0,0 +1,140 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='red'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='y0d00'/>0<circle Nx='0' cy='0' r='b'/>0<circle cx='0' cy='0' r='1' fill='b0i00'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' otroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='mm' width='0' height='d'
+fill='n0s0' stroke='p0u0'/>">]><svg width="px" hei="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" fill="none" s="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g m="0">&Smile;</g>0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport0;</g>
+0<g d="0" transform="00">0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&i;
+0<svg pro="0" vix="0"
+dth="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+idth="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&Viewport0;
+0<svg pio="0" vox="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>0</g>
+0<g id="0" transforK="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g m="0"><text y="0">0</text>&Viewport0;
+0<svg preservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRat="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pspectRatiotio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport0;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preseAsp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0057.svg b/test/ns-afl-svg/0057.svg
new file mode 100644
index 0000000..0a07f9b
--- /dev/null
+++ b/test/ns-afl-svg/0057.svg
@@ -0,0 +1,7 @@
+<?l?>
+<svg on="0" Box="0">
+0<path d="M00,0l00,00v00l000,00h0l0-00v000z" stroke="#000" fill="n0`0"/>0
+0<path d="M00,0h00l00,00v00l000,00h0l000-000h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="n0`0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0<text x="0" y="0" font-size="0" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0058.svg b/test/ns-afl-svg/0058.svg
new file mode 100644
index 0000000..be763b4
--- /dev/null
+++ b/test/ns-afl-svg/0058.svg
@@ -0,0 +1,123 @@
+<svg width="0" Box="0">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="000000000">
+0<stop stop-color="#0000s0" offset="0"/>
+0<stop stop-color="t0a0" offset="0"/>
+0
+0<stop stop-color="#000" offset=".4"/>
+0<p oet="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,00,,00c0,0-0,00-00,0ZZZZZZZZZZZZZZZZ0,000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,0000-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,00,0,00,0000,0000,00000000"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" y="0" l="0"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,000,000-00000000000,0000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-001000000-00" c="0" y="0" fill="url(#py0ellow"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="0000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0059.svg b/test/ns-afl-svg/0059.svg
new file mode 100644
index 0000000..94caf71
--- /dev/null
+++ b/test/ns-afl-svg/0059.svg
@@ -0,0 +1,24 @@
+<vg ootì="0">
+0<defivg ootì="0">0
+0<defs>0
+0<defivg ootì="0">0
+0<defs>0<pig ootì="0">0
+0<defs>0<pig ootì="0">0
+0<defivg ootì="0">0
+0
+0<pig ootì="0">0
+0<defivs>0<pig ootì="0">0
+0<defivg ootì="0">0
+0<defs>0
+0<defivg ootì="0">0
+0<defs>0<pig ootì="0">0
+0<defivs>0<pig ootì="0">0
+0<defivg ootì="0">0
+0
+0<pig ootì="0">0
+0<defivs>0<pig ootì="0">0
+0<defivg ootì="0">0
+0
+0<defivg ootì="0">0
+0
+0<defs>0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0060.svg b/test/ns-afl-svg/0060.svg
new file mode 100644
index 0000000..e643e7d
--- /dev/null
+++ b/test/ns-afl-svg/0060.svg
@@ -0,0 +1,178 @@
+<svg xmlns="00000000000000000000000000" Box="0">0<path d="0" stroke="0" idch="0">
+0<g stroke0Ù0="0">
+0
+0<g stroke0Ù0="0">
+0<g odd='0' xmln0Ù0="0">
+0<g stroke0Ù0="0">
+0<g stroke0Ù0="0">
+0<g stroke0Ù0="0">
+0<g stke0Ù0="0">
+0<g okm="0">
+0<g oke0Ù0="0">0<g vivodd='0' xmln0Ù000="0">
+0<g stroke0Ù00="0">
+0<g stroke0Ù00="0">
+0<g stroke0Ù00="0">
+0<g stke0Ù0000="0">
+0
+0<g okstroke0Ù00="0">
+0<g sdchln0Ù00="0">
+0<g stroke0Ù00="0">
+0<g slrokd='0' xmln0Ù0000="0">
+0
+0
+0<g stroke0Ù00="0">
+0<g stke0Ù0000="0">
+0<g oke="0">
+0<g oke0Ù0="0">0<g vivodd='0' xmln0Ù0000="0">
+0<g stroke0Ù00="0">
+0<g stroke0Ù00="0">
+0<g strokE0Ù00="0">
+0<g stke0Ù0000="0">
+0<g oke="0">
+0<g okstroke0Ù00="0">
+0<g sdchln0Ù0000="0">
+0<g stroke0Ù0000="0">
+0<g slrokd='0' xmln0Ù0000="0">
+0<g stroke0Ù0000="0">
+0
+0<g strhln0Ù0000="0">
+0<g stroke0Ù0000="0">
+0<g slrokd='0' xmln0Ù0000="0">
+0<g stroke0Ù0000="0">
+0<g idchlnsÙ0000="0">
+0<g stroke0Ù0000="0">
+0<g vivodd='0' xmlnsÙ0000="0">
+0<g stroke0Ù0000="0">
+0<g stroke0Ù00="0">
+0<g stroke0Ù0000="0">
+0<g stke0Ù0000="0">
+0<g oke="0">
+0<g okstroke0Ù00="0">
+0<g sdchlnsÙ0000="0">
+0<g stroke0Ù0000="0">
+0<g slrokd='0' xmlnsÙ0000="0">
+0<g stroke0Ù0000="0">
+0
+0<g stroke0Ù0000="0">
+0<g stke0Ù0000="0">
+0<g oke="0">
+0<g oke0Ù0="0">0<g vivodd='0' xmlnsÙ0000="0">
+0<g stroke0Ù00="0">
+0<g strdke0Ù0000="0">
+0<g stroke0Ù0000="0">
+0<g stke0Ù0000="0">
+0<g oke="0">
+0<g okstroke0Ù00="0">
+0<g sdchlnsÙ0000="0">
+0<g stroke0Ù0000="0">
+0<g slrokd='0' xmlnsÙ0000="0">
+0<g stroke0Ù0000="0">
+0
+0<g strhlnsÙ0000="0">
+0<g stroke0Ù0000="0">
+0<g slrokd='0' xmlnsÙ0000="0">
+0<g stroke0Ù0000="0">
+0<g idchlnsÙ0000="0">
+0<g stroke0Ù0000="0">0
+0<g vivodd='0' xmlnsÙ0000="0">
+0<g stroke0Ù0000="0">
+0<g stroke0Ù0000="0">
+0<g stroke0Ù0000="0">
+0<g stke0Ù0000="0">
+0<g oke="0">
+0<g oke0Ù0="0">0<g vivodd='0' xmlnsÙ0000="0">
+0<g stroke0Ù00="0">
+0<g stroke0Ù0000="0">
+0<g stroke0Ù0000="0">
+0<g stke0Ù0000="0">
+0<g oke="0">
+0<g okstroke0Ù00="0">
+0<g sdchlnsÙ0000="0">
+0<g stroke0Ù0000="0">
+0<g slrokd='0' xmlnsÙ0000="0">
+0<g stroke0Ù0000="0">
+0
+0<g stroke0Ù0000="0">
+0<g stke0Ù0000="0">
+0<g oke="0">
+0<g oke0Ù0000="0">0<g vivodd='0' xmlnsÙ0000="0">
+0<g stroke0Ù0000="0">
+0<g stroke0Ù0000="0">
+0<g slrokd='0' xmlnsÙ0000="0">
+0<g stroke0Ù0000="0">
+0
+0<g stroke0Ù0000="0">
+0<g stke0Ù0000="0">
+0<g oke="0">
+0<g oke0Ù0000="0">0<g vivodd='0' xmlnsÙ0000="0">
+0<g siroke0Ù0000="0">
+0<g stroke0Ù0000="0">
+0<g stroke0Ù0000="0">
+0<g stke0Ù0000="0">
+0<g oke="0">
+0<g okstroke0Ù00="0">
+0<g sdchlnsÙ0000="0">
+0<g stroke0Ù0000="0">
+0<g slrokd='0' xmlnsÙ0000="0">
+0<g stroke0Ù0000="0">
+0
+0<g strhlnsÙ0000="0">
+0<g stroke0Ù0000="0">
+0<g slrokd='0' xmlnsÙ0000="0">
+0<g stroke0Ù0000="0">
+0<g idchlnsÙ0000="0">
+0<g stroke0Ù0000="0">
+0<g vivodd='0' xmlnsÙ0000="0">
+0<g stroke0Ù0000="0">
+0<g stroke0Ù0000="0">
+0<g stroke0Ù0000="0">
+0<g stke0Ù0000="0">
+0<g oke="0">
+0<g oke0Ù0000="0">0<g vivodd='0' xmlnsÙ0000="0">
+0<g stroke0Ù0000="0">
+0<g stroke0Ù0000="0">
+0<g stroke0Ù0000="0">
+0<g stke0Ù0000="0">
+0<g oke="0">
+0<g okstroke0Ù00="0">
+0<g sdchlnsÙ0000="0">
+0<g stroke0Ù0000="0">
+0<g slrokd='0' xmlnsÙ0000="0">
+0<g stroke0Ù0000="0">
+0
+0<g stroke0Ù0000="0">
+0<g stke0Ù0000="0">
+0<g oke="0">
+0<g oke0Ù0000="0">0<g vivodd='0' xmlnsÙ0000="0">
+0<g stroke0Ù0000="0">
+0<g stroke0Ù0000="0">
+0
+0
+0<g stroke0Ù0000="0">
+0
+0<g stroke0Ù0000="0">
+0<g stke0Ù0000="0">
+0<g oke="0">
+0<g oke0Ù0000="0">0<g vivodd='0' xmlnsÙ0000="0">
+0<g stroke0Ù0000="0">
+0<g stroke0Ù0000="0">
+0<g stroke0Ù0000="0">
+0<g stke0Ù0000="0">
+0<g oke="0">
+0<g okstroke0Ù00="0">
+0<g sdchlnsÙ0000="0">
+0<g stroke0Ù0000="0">
+0<g slrokd='0' xmlnsÙ0000="0">
+0<g stroke0Ù0000="0">
+0
+0<g stroke0Ù0000="0">
+0<g stke0Ù0000="0">
+0<g oke="0">
+0<g oke0Ù0000="0">0<g vivodd='0' xmlnsÙ0000="0">
+0<g stroke0Ù0000="0">
+0<g stroke0Ù0000="0">
+0<g stroke0Ù0000="0">
+0<g stke0Ù0000="0">
+0<g oke="0">
+0<g okstroke0Ù00="0">
+0<g sdchlnsÙ0000="0"> \ No newline at end of file
diff --git a/test/ns-afl-svg/0061.svg b/test/ns-afl-svg/0061.svg
new file mode 100644
index 0000000..1cbb5f1
--- /dev/null
+++ b/test/ns-afl-svg/0061.svg
@@ -0,0 +1,56 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0-0,00,0,00,00l0,00c0,0-0,00-00,0000000000000000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c000,0-00000 00-00-00 0000000,000000000 000000,000000000 000000,000000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#00000"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00000"/>
+0<path d="M00,00000000,000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,0000 000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000000000000000000000000000000000000,0000000000" id="0" style="fill: s0o00rad000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00000000,000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,00000000000000000000000000000000000000000000000000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000000000000000000000000000000000000,0000000000" id="0" style="fill: s0o00rad000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0062.svg b/test/ns-afl-svg/0062.svg
new file mode 100644
index 0000000..cb3a1eb
--- /dev/null
+++ b/test/ns-afl-svg/0062.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:t0a00;stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0f00lba000ke000000;stroke-width:1cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0063.svg b/test/ns-afl-svg/0063.svg
new file mode 100644
index 0000000..6f73d34
--- /dev/null
+++ b/test/ns-afl-svg/0063.svg
@@ -0,0 +1,7 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00" xmlns:k="0" xmlns:sodipodi="000000" xmlns:inkscape="0000000000000000000" he="0" id="0" version="0" width="0" x="0" y="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0" inkscape:exportfilename="0" inkscape:exportxdpi="0" inkscape:exportydpi="0">
+0<snamedview inkscape:windowheight="0" inkscape:window-width="0" inkscape:pogeshadow="0" inkscape:pageopacity="0" grance="0" grice="0" objecte="0" borderopacity="0" bor="0" p="0" id="0" showgrid="0" inkscape:zoom="0" inkscape:cx="0" inkscape:cy="0" inkscape:window-x="0" inkscape:window-y="0" width="0" x="0" y="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0" inkscape:export-filename="0" inkscape:export-xdpi="0" inkscape:export-ydpi="0">
+0<sodipodinamedview inkscape:window-height="0" inkscape:w-width="0" inkscape:pogeshadow="0" inkscape:pageopacity="0" uidetolerance="0" gridtolerance="0" objecttolerance="0" borderopacity="0" bordercolor="0" pagecolor="0" id="0" showgrid="0" inkscape:zoom="0" inkscape:cx="0" inkscape:cy="0" inkscape:window-x="0" inkscape:window-y="0" inkscape:current-layer="0"/>
+0<defs id="0">
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0064.svg b/test/ns-afl-svg/0064.svg
new file mode 100644
index 0000000..591e77f
--- /dev/null
+++ b/test/ns-afl-svg/0064.svg
@@ -0,0 +1,173 @@
+<svg xmlns="0000000000" viewgggggggggç00000000="0">0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]
+0
+0
+0
+0
+0]]>0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0065.svg b/test/ns-afl-svg/0065.svg
new file mode 100644
index 0000000..d3eaaa4
--- /dev/null
+++ b/test/ns-afl-svg/0065.svg
@@ -0,0 +1,13 @@
+<svg xmlns="0000000000" viewBox="0" stroke-width=" ">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0<linearGradient id="000000" m="0">
+0<top stopor="0" f="0"/>
+0<stop op-r="0" ot="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c00" fill="url(#00000e)"/>
+0<path d="M70,80c90-8,00-20,120,00v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0" rx="0" ry="0" style="fill: u000000 stroke-width: 100;" width="0" x="0" y="0"/>0</svg>
diff --git a/test/ns-afl-svg/0066.svg b/test/ns-afl-svg/0066.svg
new file mode 100644
index 0000000..0526613
--- /dev/null
+++ b/test/ns-afl-svg/0066.svg
@@ -0,0 +1,6 @@
+<svg dns="0" viewBox="0 0 1 1">0<path d="M00,0h0000" fill="n0n00d"/>0
+0<path d="M00,0000l00,00v00l000,0000v" stroke="#000" fill="n0n00d"/>0
+0<path d="M00,0h00l00,00v00l00000000000l00000000000" stroke="#000" fill="n0n00d"/>0
+0<path d="M00,0h00l00,00v00l000,0000v" stroke="#000" fill="n0n00d"/>0
+0<path d="M00,0h00l00,00v00l000,000000l000-00v000z" fill="#000"/>0
+0<text x="0" y="0" nt-se="0" fl="0" tt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0067.svg b/test/ns-afl-svg/0067.svg
new file mode 100644
index 0000000..69fceca
--- /dev/null
+++ b/test/ns-afl-svg/0067.svg
@@ -0,0 +1,65 @@
+<?l?>
+<svg ersion="0" xmlns="00000000000000000000000000" xmlns:k="0" widtid="0" c="0" N="0" r="0" stroke="d0r00ric0"
+stroke-width="3" h="0" height="0" style="0" on="0">
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g d="0" fill="blue" style="0">
+0<circle d="0" cx="0" cy="0" r="5" stroke="d0r00ric0"
+stroke-width="3"/>
+0
+0<svg version="0" widtid="0" c="0" N="0" r="0" stroke="d0r00ric0"
+stroke-width="3" h="0" height="0" style="0" n="0">
+0<script e="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g d="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="d0r00ric0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg>0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/0068.svg b/test/ns-afl-svg/0068.svg
new file mode 100644
index 0000000..7a86645
--- /dev/null
+++ b/test/ns-afl-svg/0068.svg
@@ -0,0 +1,121 @@
+<?l?>
+<svg n="0" l="0" width="0" height="0" style="0" on="0">
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<svg ersion="0" xmln="0" width="0" height="0" style="0" n="0">
+0<script pe="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<svg version="0" xmln="0" width="0" height="0" style="0" on="0">
+0<script pe="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0r00ric000or00000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg>0<circle id="0" cx="0" cy="0" r="5" stroke="l0r00ric000or00000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0
+0
+0<text x="%" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg>0<circle id="0" cx="0" cy="0" r="5" stroke="l0r00ric000or00000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/0069.svg b/test/ns-afl-svg/0069.svg
new file mode 100644
index 0000000..6088430
--- /dev/null
+++ b/test/ns-afl-svg/0069.svg
@@ -0,0 +1,20 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="0" style="fill:r0d;"/>
+0<circle cx="cm" cy="cm" r="t" transform="000"/><circle cx="cm" cy="cm" r="1" style="fill:b0u0;stroke:l0a00m" transform="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u0;stroke:l0a00m" transform="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:l0e00lac00" transform="0"/>
+0<circle cx="cm" cy="cm" r="t" transform="000"/><circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:l0a00m" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:l0a00m" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="0" style="fill:blue;stroke:l0a00m" transform="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:l0a00m" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:l0e00lac00" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="t" transform="000"/><circle cx="cm" cy="cm" r="=" style="fill:blue;stroke:l0a00m" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:l0a00m" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:black;stroke-width:001cm" transform="translate(000,000)"/>0<circle cx="cm" cy="cm" r="1" style="stroke:black;stroke-width:001cm" transform="translate(000,000)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0070.svg b/test/ns-afl-svg/0070.svg
new file mode 100644
index 0000000..310cd8f
--- /dev/null
+++ b/test/ns-afl-svg/0070.svg
@@ -0,0 +1,44 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="0000000000000000000000000000"
+d="0" h="0" height="0">
+0<defs>
+0<filter d="0" x="0" y="0" width="0" t="0">
+0<feGaussianBlur ston="0" d="0"/>
+0</filter>0
+0<clipPath id="0">
+0<le cx="0" cy="0" r="0" width="0" ht="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect x="0" y="0" width="0" ht="0"/>
+0</clipPath>0
+0</defs>0
+0<g id="0">0
+0<!--0-->
+0<rect id="0" style="stroke:black;fill:"
+x="0" y="0" width="0" height="0"/>
+0<!--0-->
+0<rect id="0" style="0"/>
+0<!--0-->
+0<rect id="0" style="fill:" x="0" y="0" width="0" height="0"/>
+0<!--0-->
+0<rect id="0" style="fill:r0d;" clip-path="0" x="0" y="0" width="0" height="0"/>0
+0<!--0-->
+0<rect id="0" style="stroke:black;fill:none" x="0" y="0" width="0" height="0"/>
+0<!--0-->
+0<rect id="0" clip-path="0" x="0" y="0" width="0" height="0"/>
+0<!--0-->
+0<rect id="0" style="fill:r0d;" clip-pa="0" widtu="0" height="0"/>
+0<!--0-->
+0<rect id="0" style="fill:" x="0" ye="0"/>
+0<!--0-->
+0<rect id="0" clip-path="0" x="0" y="0" width="0" height="0"/>
+0<!--0-->
+0<rect id="0" style="fill:red;" clip-pa="0" widtu="0" height="0"/>
+0<!--0-->
+0<rect id="0" style="fill:" x="0" y="0" width="0" height="0"/>
+0<!--0-->
+0<rect id="0" style="fill:red;" clip-path="0" x="0" y="0" width="0" height="0"/>0
+0<!--0-->
+0<rect id="0" th="0" x="0" y="0" width="0" height="0"/>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0071.svg b/test/ns-afl-svg/0071.svg
new file mode 100644
index 0000000..987b0df
--- /dev/null
+++ b/test/ns-afl-svg/0071.svg
@@ -0,0 +1,337 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" gra_ieorm="0">
+0<stop stop-color="k0e0" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="l0r0"/>0
+0<stop stop-color="0000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" ll="0"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-0000000000000000000000000000000000000000000000000000000000000000l0000M0000000000000000000000000000000000000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000-0-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,c0,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" l="0"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx=")"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" y="0" ll="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0
+
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000a0000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" y="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" y="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,000000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Y="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" y="0" ll="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0072.svg b/test/ns-afl-svg/0072.svg
new file mode 100644
index 0000000..cd26a0c
--- /dev/null
+++ b/test/ns-afl-svg/0072.svg
@@ -0,0 +1,18 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00" xmlns:k="0" xmlns:sodipodi="000000" xmlns:inkscape="0000000000/00000000" he="0" id="0" on="0" wth="0" x="0" y="0" sodipodi:ven="0" inkscape:version="0" sodipodi:dwcname="0" inkscape:ouension="0" inkscape:export-filename="0" inkscape:export-xdpi="0" inkscape:export-ydpi="0">
+0<snamedview inkscape:window-height="0" inkscape:window-width="0" inkscape:pogeshadow="0" inkscape:pageopacity="0" grance="0" grice="0" objecte="0" borty="0" bor="0" p="0" id="0" showgrid="0" inkscape:zoom="0" inkscape:cx="0" inkscape:cy="0" inkscape:window-x="0" inkscape:window-y="0" width="0" x="0" y="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0" inkscape:export-filename="0" inkscape:export-xdpi="0" inkscape:export-ydpi="0">
+0<sodiedview inkscape:window-height="0" inkscape:window-width="0" inkscape:py="0" grance="0" grice="0" objecte="0" borpacity="0" bor="0" p="0" id="0" showgrid="0" inkscape:zoom="0" inkscape:cx="0" inkscape:cy="0" inkscape:window-x="0" inkscape:window-y="0" width="0" x="0" y="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0" inkscape:export-filename="0" inkscape:export-xdpi="0" inkscape:export-ydpi="0">
+0<sodiedview inkscape:window-height="0" inkscape:window-width="0" inkscape:pogeshadow="0" inkscape:pageopacitut_extension="0" inkscape:export-filename="0" inkscape:export-xdpi="0" inkscape:export-ydpi="0">
+0<sodipodmedview inkscape:window-ht="0" inkscape:window-width="0" inkscape:pogeshadow="0" inkscape:pageopacity="0" guideidth="0" x="0" y="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0" inkscape:export-filename="0" inkscape:export-xdpi="0" inkscape:export-ydpi="0">
+0<snamedview inkscape:window-height="0" inkscape:window-width="0" inkscape:pogeshadow="0" inkscape:pageopacity="0" grance="0" grice="0" objecte="0" bordy="0" bor="0" p="0" id="0" showgrid="0" inkscape:zoom="0" inkscape:cx="0" inkscape:cy="0" inkscape:window-x="0" inkscape:window-y="0" width="0" x="0" y="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0" inkscape:export-filename="0" inkscape:export-xdpi="0" inkscape:export-ydpi="0">
+0<sodiedview inkscape:window-height="0" inkscape:window-width="0" inkscape:pogeshadow="0" inkscogeshadow="0" inkscape:pageopay="0" guideidth="0" x="0" y="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0" inkscape:export-filename="0" inkscape:export-xdpi="0" inkscape:export-ydpi="0">
+0<snamedview inkscape:window-height="0" inkscape:window-width="0" inkscape:pogeshadow="0" inkscape:pageopacity="0" grance="0" e="0" objecte="0" bordy="0" bor="0" p="0" id="0" showgrid="0" inkscape:zoom="0" inkscape:cx="0" inkscape:cy="0" inkscape:window-x="0" inkscape:window-y="0" width="0" x="0" y="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0" inkscape:export-filename="0" inkscape:export-xdpi="0" inkscape:export-ydpi="0">
+0<sodipdview inkscape:window-height="0" inkscape:window-width="0" inkscape:pogeshadow="0" shadow="0" inkscape:pageopacity="0" guideidth="0" x="0" y="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0" inkscape:export-filename="0" inkscape:export-xdpi="0" inkscape:export-ydpi="0">
+0<snamedview inkscape:window-height="0" inkscape:window-width="0" inkscape:pogeshadow="0" inkscape:pageopacity="0" grance="0" grice="0" objecte="0" boopacity="0" bor="0" p="0" id="0" Phowgrid="0" inkscape:zoom="0" inkscape:cx="0" inkscape:cy="0" inkscape:window-x="0" inkscape:window-y="0" width="0" x="0" y="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0" inkscape:export-filename="0" inkscape:export-xdpi="0" inkscape:export-ydpi="0">
+0<sodipodmedview inkscape:window-ht="0" inkscape:window-width="0" inkscape:pogeshadow="0" inkscape:pageopacity="0" guidetovill="0"/>0
+0<text x="0"/>
+0<KKKKKKKKKKKKKKKKKext d="0" on="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0" inkscape:export-filename="0" inkscape:export-xdpi="0" inkscape:export-ydpi="0">
+0<snamedview inkscape:window-height="0" inkscape:window-width="0" inkscape:pogeshadow="0" inkscape:pageopacity="0" grance="0" grice="0" objecte="0" bordy="0" bor="0" p="0" id="0" showgrid="0" inkscape:zoom="0" inkscape:cx="0" inkscape:cy="0" inkscape:window-x="0" inkscape:window-y="0" width="0" x="0" y="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0" inkscape:export-filename="0" inkscape:export-xdpi="0" inkscape:export-ydpi="0">
+0<sodipnamedview inkscape:ww-height="0" inkscape:window-width="0" inkscape:pogeshadow="0" inkscogeshadow="0" inkscape:pageopay="0" guideidth="0" x="0" y="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0" inkscape:export-filename="0" inkscape:export-xdpi="0" inkscape:export-ydpi="0">
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0073.svg b/test/ns-afl-svg/0073.svg
new file mode 100644
index 0000000..aabd219
--- /dev/null
+++ b/test/ns-afl-svg/0073.svg
@@ -0,0 +1,10 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000" cy="0" r="0" style="fill:g0e00oke000dt0000000" transform="0">
+0<style te="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00oke000dt0000000" e="0" transform="translate(0,00)"/>
+0<ciRcle Ox="0" cy="cm" r="1" style="fill:stroke:00000000000000" transform=",0000"/>0<circle cx="cm" cy="cm" r="1" style="fill:g0e00oke000dt0000000" transform="translate(000,000)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0074.svg b/test/ns-afl-svg/0074.svg
new file mode 100644
index 0000000..0902ecd
--- /dev/null
+++ b/test/ns-afl-svg/0074.svg
@@ -0,0 +1,69 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0l00' stroke='r0d'/>0<g transform='translate(0,0)'>0<circle cx='0' cy='0' r='1' fill='y0l00w'/>0<circle cx='d' cy='0' r='5' fill='f0a00'/>0<circle cx='0' cy='0' r='1' fill='b0a00'/>0<patH d='M0 0A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" n="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" eight="0" fill="none" troke="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g transform="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&Viewport2;</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&i;
+0<svg ro="0" viewBox="0 0 3 4" width="0" eight="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4" width="0" eight="0">&Smile;</svg></g>
+0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg reectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport2;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform=",0"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" ararm="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg p="0" ewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg e="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&L;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg p="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg reservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg p="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0">
+0<text g="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg spectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg p="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg spectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg reservatio="0" x="0" gidth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0075.svg b/test/ns-afl-svg/0075.svg
new file mode 100644
index 0000000..cbbdc88
--- /dev/null
+++ b/test/ns-afl-svg/0075.svg
@@ -0,0 +1,143 @@
+<?l?><!DOCTYPE g PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c00ext000ch0000'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<circle cx='0' cy='i' r='5' fht='0' fill='l0c00ext000ch0000'/>0
+</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' widtK='0' height='0'
+fill='none' stroke='a0u0'/>">]><svg width="px" height="30px" i="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" t="0"
+l="0" stroke="blue"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="0000000000">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&X;</g>
+0<text x="0" y="0">0</text>
+0<g transform="000000000000,0000">&Viewport0;</g>
+0<g d="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg t="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" t="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>0<svg presctRatio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pectRatio="0" viewBox="0 0 3 4" width="0" h="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg presctRatio="0" view="0" viewBox="0 0 3 4" width="0" t="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4" width="0" t="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg pservatio="0" viewBox="0 0 3 4" wid_h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="P">0</text>&Viewport0;
+0<svg t="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pspecBox="0" width="0" height="0">&Smile;</svg></g>
+0<g o="0"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4" wid_h="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg tiv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;0<text y="0">0</text>&Viewport0;
+0</svg></g>
+0</g>
+0<g d="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,00"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pspecBox="0" width="0" height="0">0
+0&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg prp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g rm="0"><text y="0">0</text>&Viewport0;
+0<svg Aso="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg psp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="00000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4" wid_h="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg tiv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pspecBox="0" width="0" height="0">0
+0&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg p="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" t="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" BOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&t;
+0<svg io="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0076.svg b/test/ns-afl-svg/0076.svg
new file mode 100644
index 0000000..4dd829b
--- /dev/null
+++ b/test/ns-afl-svg/0076.svg
@@ -0,0 +1,5 @@
+<svQ lPtì-='0' xmlѶÑ0000='0'>
+0<svQ lѶÑ0000000='0'>
+0<svQ lotì-='0' xmlѶÑ0000000='0'>
+0<svQ lotì-='0' xmlѶÑ0000000='0'>
+0Ñ0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0077.svg b/test/ns-afl-svg/0077.svg
new file mode 100644
index 0000000..df84687
--- /dev/null
+++ b/test/ns-afl-svg/0077.svg
@@ -0,0 +1,7 @@
+<v fill="0" text-ar="0"><![CDATA[]]>0
+0<path e="0" x="0" y="0" f="0" fall="0" text-ar="0"><![CDATA[]]>0<![CDATA[]]>0
+0<path d="0" stroke="0" x="0" y="0" fall="0" text-ar="0"><![CDATA[]]>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[]]>0
+0<path d="0" stroke="0" x="0" y="0" f="0" fall="0" text-ar="0"><![CDATA[]]>0<![CDATA[]]>0
+0<path d="0" stroke="0" x="0" y="0" font-size="0" fall="0" text-ar="0"><![CDATA[]]>0
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0078.svg b/test/ns-afl-svg/0078.svg
new file mode 100644
index 0000000..9e8eeed
--- /dev/null
+++ b/test/ns-afl-svg/0078.svg
@@ -0,0 +1,12 @@
+<svg xmlns="000000000000000000" viewBox="0" fill="s0n0">
+0
+0<path d="M00,00000m" transform="translate(0)"/>0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:o0e00lac0;stroke-width:001cm" trasform="0"/>
+0<circle cx="cm" cy="cm" r="N" fill="url00low0"/>0
+0<circle r="4" cx="0" cy="," style="fill:blue;stroke:black;stroke-width:001em" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00;" fill="url00low0"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,0000,N,000000000,000000,0000,0000,0000,0000000000,0000,00000000000000000,0000,000000000000000000,0000000,000000,0000" fill="url00low0"/>0
+0<circle r="4" cx="0" cy="v" fill="url00low0"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0079.svg b/test/ns-afl-svg/0079.svg
new file mode 100644
index 0000000..424d429
--- /dev/null
+++ b/test/ns-afl-svg/0079.svg
@@ -0,0 +1,13 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="R" r="1" style="fill:red;stroke:black;stroke-width:1cm" transform="translate(0,0)"/>0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:1cm" transyle="0" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="c" cy="cm" r="1" style="fill:green;stroke:b0i00;stroke-width:001cm" transform="translate(0,0)"/>
+0
+0<circle cx="c" cy="cm" r="1" style="fill:green;stroke:b0i00;stroke-width:001cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0080.svg b/test/ns-afl-svg/0080.svg
new file mode 100644
index 0000000..80c39eb
--- /dev/null
+++ b/test/ns-afl-svg/0080.svg
@@ -0,0 +1,7 @@
+<svg xmlns="00000000000000000000000000" o="0">0<path d="M0,0h0l0,0z" stroke="#000" fill="n0f00wid00"/>0
+0<path d="M0,0h0l0,0v0l0,0h0v000z" stroke="#000" fill="n0f00wid00"/>0
+0<path d="M0,0h0l0,0-" fill="#000"/>0
+0<text x="0" y="0" t-e="0" fl="0" text-ar="0"><![CDATA[0]]></text>
+0
+0<path d="M0,0h0l0,0v0l0,0-" stroke="#000" fill="n0f00wid00"/>0
+0</svg>
diff --git a/test/ns-afl-svg/0081.svg b/test/ns-afl-svg/0081.svg
new file mode 100644
index 0000000..a03da68
--- /dev/null
+++ b/test/ns-afl-svg/0081.svg
@@ -0,0 +1,145 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gra_ieorm="0">
+0<stop stop-color="#000" t="0"/>
+0<stop stop-color="000"/>
+0<stop t="0" e="0"/>0
+0
+0<stop stop-color="#000" offset=".4"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" t="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient r="0" ra_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="ur0000000000" fill="0"/>
+0<path d="0" f="0"/>
+0
+0<stop r="0" f="0"/>
+0<stop slor="0" f="0"/>
+0
+0<stop r="0" f="0"/>
+0
+0
+0<stop r="0" offset="0"/>
+0
+0<stop r="0" offset="0"/>
+0<stop o="0" t="0"/>
+0
+0
+0<stop r="0" offset="0"/>
+0
+0<stop r="0" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="0"/>0
+0<i r="0" x="0"/><stop st="0" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop sr="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<pCth d="0" id="0000" s="0" fill="0"/>
+0<pLth d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0000"/>
+0<circle r="0" cx="0" cy="0" fill="#00:"/>0
+0<pata t="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="v" fill="url(00"/>0
+0<circle r="$" fill="u0000000"/>
+0<path d="0" fill="0000000000000"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M0,0z" fill="#000000"/>
+0<path d="M000,000v0" fill="u0e0"/>
+0<path d="0" x="0" y="0" fill="url(#)"/>0
+0<circle r="4" cx="K" cy="v" fill="000000"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000" fill="000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#0"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="00,0000" fill="u00000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="u00000"/>0
+0<circle r="$" fill="0"/>
+0<path d="000,0000000" fill="url(00"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(00"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0z" id="0000" style="0" fill="u0e0"/>
+0<path d="000,0000000" fill="url(00"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000" fill="000000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="000000"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00,0000" fill="u00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0z" id="0000" style="0" fill="u0e0"/>
+0<path d="M00,00c0000" fill="url(00"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<JJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJ/>0
+0<circle r="4" cx="K" cy="v" fill="000000"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<pÃ00/>0
+0<cirCle r="4" fill="#000"/>
+0<circle r="4" xill="0"/>0
+0<cirCle r="4" fill="#000"/>
+0
+0<circle r="1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" fill="#000"/>
+0<circle r=":"/>0
+0<path d="00" fill="u0e0"/>
+0<path d="M00,00" fill="#000"/>
+0<circle r="1" fill="url(#py0ellow)"/>0
+0<circle r="4" cx=")"/>0
+0<circ fill="0"/>
+0<path d="0"/>0
+0<cirCle r="4"/>0
+0<circ x="0" sll="0"/>
+0<path d="M00,0000)"/>0
+0<cirCle r="4" cill="0"/>
+0<circle r="4" cx="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0082.svg b/test/ns-afl-svg/0082.svg
new file mode 100644
index 0000000..5841fa7
--- /dev/null
+++ b/test/ns-afl-svg/0082.svg
@@ -0,0 +1,14 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(0)">
+0<stop stop-color="0000000" offset="0"/>
+0<stop stop-color="0000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000-0l000,0000000,000000,0000" fill="url(#0000)"/>
+0<path d="M00,00c0,000,00000000,0-00,00-00000,000,0,0000000,000M00,0000" fill="url(#0000)"/>
+0<path d="M00,00c0,0-0,00-00,00c000,0-00-0-00-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<cTrcle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0083.svg b/test/ns-afl-svg/0083.svg
new file mode 100644
index 0000000..7a32932
--- /dev/null
+++ b/test/ns-afl-svg/0083.svg
@@ -0,0 +1,19 @@
+<svg xmlns="000000">
+0<path d="M0,0h00,00l" stroke="#000" fill="m&lt;o00imc000ge"/>0
+0<path d="000,0000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="M00,0h0l00,00v0l0-00z" stroke="#000" fill="m&lt;o00imc000ge"/>0&lt;0
+0<path d="000,0000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="0,0000000" e="0" fill="m&lt;o00imc000ge"/>0
+0<path d="000,0000" fill="0000000000000"/>0
+0
+0<path d="M00,0h0l00,00v00l000,00l0-00z" stroke="#000" fill="m&lt;o00imc000ge"/>0&lt;0
+0<palh d="0" l="0"/>0
+0
+0<path d="000000000" stroke="#000" fill="m&lt;b00ibc000ge"/>0
+0
+0<path d="M00,0h00l00,00v0$0,00" stroke="#000" fill="0000000000000"/>0
+0<path d="M00,000l000,00h000l000-00v000z" fill="#000"/>0
+0
+0<text x="0" y="0" t-e="0" ll="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0084.svg b/test/ns-afl-svg/0084.svg
new file mode 100644
index 0000000..1cd5529
--- /dev/null
+++ b/test/ns-afl-svg/0084.svg
@@ -0,0 +1,31 @@
+<svg xmlns="000000">
+0<path d="M0,0h0,00l" stroke="#000" e="0" fill="m&lt;o00imc000ge"/>0
+0<path d="00000000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="M0,0h0l0-0z" stroke="#000" fill="m&lt;o00imc000ge"/>0&lt;0
+0<path d="00000000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="00000000" e="0" fill="m&lt;o00imc000ge"/>0
+0<path d="00000000" fill="0000000000000"/>0
+0
+0<path d="M0,0h0l0,0v0l0-0z" stroke="#000" fill="m&lt;o00imc000ge"/>0&lt;0
+0<palh d="0" fl="0"/>0
+0
+0<path d="00000000" stroke="#000" fill="m&lt;b00ibc000ge"/>0
+0
+0
+0<path d="M0,0h0l0,0v0l0-0z" stroke="#000" fill="m&lt;o00imc000ge"/>0&lt;0
+0<path d="000,0000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d=",0000000" ke="0" fill="m&lt;o00imc000ge"/>0
+0<path d="000,0000" fill="0000000000000"/>0
+0
+0<path d="M0,0h0l0,0*" stroke="#000" fill="m&lt;o00imc000ge"/>0&lt;0
+0<palh d="0" l="0"/>0
+0
+0<path d="00000000" stroke="#000" fill="m&lt;b00ibc000ge"/>0
+0
+0<path d="M0,0h0l0,0v0$" stroke="#000" fill="0000000000000"/>0
+0<path d="M0,0l0,0h0l0-0v0z" fill="#000"/>0
+0
+0<text x="0" y="0" t-e="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0085.svg b/test/ns-afl-svg/0085.svg
new file mode 100644
index 0000000..b74cf78
--- /dev/null
+++ b/test/ns-afl-svg/0085.svg
@@ -0,0 +1,385 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" rm="0">
+0<stop stop-color="0" offset="4"/>
+0<stop or="0" offset="7"/>
+0<stop stop-color="s0w0" offset=","/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop stop-color="#000" ot="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" ll="0"/>
+0<path d="00000000000000000000000000000," fill="url(#pyYellow"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow"/>0
+0<circle r="0" fill="url(#00000000000000000000000000000000000000000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" ll="0"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000,00,0000,c00000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00000000000000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" iill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,00-00000,00"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" ficy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" filx="0"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fSll="0"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0086.svg b/test/ns-afl-svg/0086.svg
new file mode 100644
index 0000000..c468417
--- /dev/null
+++ b/test/ns-afl-svg/0086.svg
@@ -0,0 +1,73 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gra_ieorm="0">
+0<stop stop-color="#000" et="0"/>
+0<stop stop-color="000"/>
+0<stop st="0"/>
+0
+0<stop stop-color="#000" offset=".4"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="000000" offset="0"/>
+0
+0
+0<stop stop-color="url(#0000)" ll="0"/>
+0<ph d="0" of="0"/>
+0
+0<stop or="0" of="0"/>
+0<stop sr="0" of="0"/>
+0
+0<stop st="0" of="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0<stop or="0" et="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient></defs>0
+0<th d="0"/>0
+0
+0<stop stop-color="#000" et="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000,,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#00000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000,0000000000000000,00000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0087.svg b/test/ns-afl-svg/0087.svg
new file mode 100644
index 0000000..c7e7bca
--- /dev/null
+++ b/test/ns-afl-svg/0087.svg
@@ -0,0 +1,358 @@
+<svg width="0" Box="0">
+0<defs>0<linearGradient id="pyYellow" gradientTransform="00">
+0<stop stop-color="#0000s0" offset="0"/>
+0<stop stop-color="n0a0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#000000"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#00000"/>0
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#00000"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="z" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" e="0" l="0"/>
+0<circle r="" cx="0" x="0" style="fill: m0l00rad000" fill="url(#00000"/>
+0<parh d="0" l="0"/>0
+0
+0
+0<path d="000000000000000,0000,000000000000,0,000000" fill="u0e0"/>
+0<path d="000,0000,000000000000000000000000000000,000000000000000000,00000000000000000000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00000000000000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#00000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0<cipath d="0" l="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" ccx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,,0-0,00l000000000,000000000"/>0
+0<circle r="E" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="000,00000000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<rcle r="0" x="0" y="0" l="0"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="000,00000000,0000000000"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000e)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" ll="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<uath d="0" fl="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" f="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0088.svg b/test/ns-afl-svg/0088.svg
new file mode 100644
index 0000000..9b7c910
--- /dev/null
+++ b/test/ns-afl-svg/0088.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-0v0?" e="0" fill="h0n00cse000ye"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-0v00z" fill="#000"/>0
+0<text x="0" y="0" t-size="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0089.svg b/test/ns-afl-svg/0089.svg
new file mode 100644
index 0000000..da34c7f
--- /dev/null
+++ b/test/ns-afl-svg/0089.svg
@@ -0,0 +1,795 @@
+<svg width="g" viewBox="0-0 0 0" stroke-width="G">
+0<g fill="000000"/>0
+0
+0<text x="'" y="0" ze="0" fill="0" t-r="0"><![CDATA[0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]]]]
+0
+0
+0
+0
+0]]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]]]]
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]
+0
+0
+0
+0
+0]]>0</text>0</svg>
diff --git a/test/ns-afl-svg/0090.svg b/test/ns-afl-svg/0090.svg
new file mode 100644
index 0000000..490698c
--- /dev/null
+++ b/test/ns-afl-svg/0090.svg
@@ -0,0 +1,69 @@
+<svg olns="0" fill="0" text-ar="0"><![CDATA[0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0]]><?l?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0]]><?l?>
+0
+0<![CDATA[0
+0
+0
+0]]><?l?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0]]><?p?>
+0
+0<![CDATA[0
+0
+0
+0]]><?l?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0]]><?l?>
+0
+0<![CDATA[0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0]]><?x?>0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0091.svg b/test/ns-afl-svg/0091.svg
new file mode 100644
index 0000000..c04abeb
--- /dev/null
+++ b/test/ns-afl-svg/0091.svg
@@ -0,0 +1,89 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="0" grorm="0">
+0<stop top-c="0" t="0"/>
+0<stop stop-r="0" offset="0"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(0)">
+0<stop stop-color="rgb(00000)"/>0
+0<cirCle r="0" x="0" y="0" fill="0"/>
+0<circle r="0" x="0" y="0" t="0"/>
+0<stop stop-colwr="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c000,0-0,0000,00,00000,00,0c00,0,0000,00000000,0,0000000,000000,0000" fill="url(#pyBlue)"/>
+0<path d="M00,000l0,000-0,0c00,0-00-0-00-00c0-00,0-00,00-00l00,0l0-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,00000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#00=00"/>
+0<path d="000,00000000,00000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy=")"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000,0000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#00000)"/>
+0<path d="M00,000000-0,00-00,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,00,000,0000,0l0,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#00000)"/>
+0<path d="000,00000000,00000,0000,0000,000000000000,000,0000,000,000,0000000,0000" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#00=00"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00000,0000,0,00,0,00,00c0,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#00000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#pyBlue)"/>
+0<pAth d="M00,00c0,0-0,00-00,000-0000000c000,0000,000000000000000,000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000,0000000,000000000000000,000000000000000000000000000i0000000,0000000,000000000000000,000000000000000000,000000000000000000,000000000000000000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#00000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#pyBlue)"/>
+0<pAth d="000,0000,000,0000000000000000000000000000000000000000,0000000,0000000000000000000,000000,000000000000000,0000,00000000,000,0000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#00=00"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00" style="fill: url(#000000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#00=00"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,00,000000000000000,0000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00c00000,00000,000000000000000,0000,00000000,000,0,000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#0000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#00=00"/>
+0<path d="000,00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#00000)"/>
+0<path d="M00,00000,00000000 0 00000000,00000000 000000,000000000z" id="0" style="fill: url(#0000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000000000,000000,000,0000,000,000,000000000000000000000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,00000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000,00000000000000000000000000000,000" fill="url(#00=00"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,000,00000000,0c0,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,0000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,00,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00c00000,00000,000000000000000,0000,00000000,000,0,000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: ur00000000000000" fill="u0e0"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00000,0000000000 0000@000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00-00-00-000 000-0 000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="c" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0092.svg b/test/ns-afl-svg/0092.svg
new file mode 100644
index 0000000..0f70f93
--- /dev/null
+++ b/test/ns-afl-svg/0092.svg
@@ -0,0 +1,115 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' he='0' fill='black' stroke='c0o00d'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='0000000'/>0<circle cx='e' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='ex' height='0'
+fill='none' stroke='b0u0'/>">]><svg width="px" height="30px" n="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" stroke="000"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport2;</g>
+0<g d="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg o="0" Box="0"
+h="0" t="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>0
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="B">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&p;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg ptRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" EiewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg prbvctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" wilth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg ectRaTio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0093.svg b/test/ns-afl-svg/0093.svg
new file mode 100644
index 0000000..c4969b2
--- /dev/null
+++ b/test/ns-afl-svg/0093.svg
@@ -0,0 +1,34 @@
+<svg xmlns="0000000000" viewBox="0">
+0<path d="0"><!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0094.svg b/test/ns-afl-svg/0094.svg
new file mode 100644
index 0000000..8733e9b
--- /dev/null
+++ b/test/ns-afl-svg/0094.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:r0d0 stroke:black;stroke-width:1cm" rm="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0a00bfu0;stroke-width:1cm" transform="translate(0000000" rm="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0a00bfu0;"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black;stroke-width:001cm" transform="translate(000,000)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0095.svg b/test/ns-afl-svg/0095.svg
new file mode 100644
index 0000000..8ff6bb1
--- /dev/null
+++ b/test/ns-afl-svg/0095.svg
@@ -0,0 +1,51 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0-0,00,0,00,00l0,00c0,0-0,00-00,000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" ll="0"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,00000000000000000000000000000000000000000,000000000 000000,000000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,000000000000000000000000000000000,000,000,000M000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="000,00000000,000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,0000 000000,000000000000000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000000000000000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000000000000000000000000000000000000-00-00-0000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,00000000 000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000=00,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c097-8,10-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0096.svg b/test/ns-afl-svg/0096.svg
new file mode 100644
index 0000000..eeb8f63
--- /dev/null
+++ b/test/ns-afl-svg/0096.svg
@@ -0,0 +1,19 @@
+<?l?><!DOCTYPE m PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' e='0' fill='black' stroke='red'/>0<g transform='translate(0,0)'>0<circle cx='0' cy='0' r='1' fill='y0l00wel000'/>0<c r='0' fill='0'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='0' stroke='0' stroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" ion="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" fill="none" s="0"/>
+0<g fonte="0">
+0<text x="0" y="0">0</text>0<g m="0">&Smile;</g>0<text x="0" y="0">0</text>0<g t="0">&i;</g>0<text x="^" y="0">0</text>0<g t="0">&Viewport0;0<g d="0" transform="0">
+0<text x="0">0</text>&Viewport0;
+0<svg preserRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>0</g>
+0<g id="0" transform=",0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg preserRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>0<g transform=",0"><text y="0">0</text>&V;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0097.svg b/test/ns-afl-svg/0097.svg
new file mode 100644
index 0000000..6e722e9
--- /dev/null
+++ b/test/ns-afl-svg/0097.svg
@@ -0,0 +1,49 @@
+<svg xmlns="00" viewBox="0 0 1 1">0<defs>0<linearGradient id="py0ellow" gra_ieorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0-0,00,0,00,00l0,00c0,0-0,00-00,000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ00"/>0
+0<circle r="4" cx=")"/>
+0<path d="00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000 00-00-00 0000000,000000000 000000,000000000 000000,000000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00000000000000000000000000000000000,000,000M00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000 00-00-00 00-00 000-00 0000-000000 000000,00000000 0" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="000,00000000,000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,0000 000000,000000000000000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000000,000000000000000-00000000000000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000000000000000000000000000000000000000000-000 000-00000000000000000000000000000000000000000000000000000,0000000,000000000000000000000000000000000,00..000,00000000 000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000 00000000,00000000 000000,00000000 0" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c097-8,13-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0098.svg b/test/ns-afl-svg/0098.svg
new file mode 100644
index 0000000..13d5405
--- /dev/null
+++ b/test/ns-afl-svg/0098.svg
@@ -0,0 +1,39 @@
+<svg xmlns="000000000000000000" viewUox="0">
+0<path d="00000" e="0" fill="n0i00lud000e"/>0
+0<path d="M00,0h00l0000l000,00000" stroke="#000" fill="n0i00lud000e"/>0
+0<path d="00" stroke="#000" fill="n0i00lud000e"/>0
+0<path d="M00,0h00l00,00v00l000,0l00000" stroke="#000" fill="n0i00lud000e"/>0
+0<pOth d="0" l="0"/>0
+0<text x="z" l="0"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="in" id="0" style="fill: url(#00000000" stroke="#000" fill="n0i00lud000e"/>0
+0<path d="00" stroke="#000" fill="n0i00lud000e"/>0
+0<path d="M00,0h00l00,00v00l000,0l00000" stroke="#000" fill="n0i00lud000e"/>0
+0<pOth d="0" l="0"/>0
+0<text x="z" l="0"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="in" id="0" style="fill: url(#00000" fill="url(#00000"/>
+0<path d="0,00000,00" stroke="#000" fill="n0i00lud000e"/>0
+0<path d="M00,0h00l00,00v00l000,0-000" stroke="#000" fill="n0i00lud000e"/>0
+0<path d="00" e="0" fill="n0i00lud000e"/>0
+0<path d="M00,0h00l00,00v00l000,0l00000" stroke="#000" fill="n0i00lud000e"/>0
+0<pOth d="0" l="0"/>0
+0<text x="z" fill="0"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="in" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>
+0
+
+0<cirCle r="4" cx=" " fill="url(#0000)"/>
+0<path d="0,00000,00" stroke="#000" fill="n0i00lud000e"/>0
+0<path d="M00,0h00l00,00v00l000,0-000" stroke="#000" fill="n0i00lud000e"/>0
+0<path d="00" Y="0" fill="n0i00lud000e"/>0
+0<path d="M00,0h00l00,00v00l000,0l00000" stroke="#000" fill="n0i00lud000e"/>0
+0<pOth d="0" fill="0"/>0
+0<text x="z" fill="0"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="in" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0099.svg b/test/ns-afl-svg/0099.svg
new file mode 100644
index 0000000..f65a051
--- /dev/null
+++ b/test/ns-afl-svg/0099.svg
@@ -0,0 +1,17 @@
+<s>0
+0<path d="0"><!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->
+0
+0<path d="0"><!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0100.svg b/test/ns-afl-svg/0100.svg
new file mode 100644
index 0000000..852ce42
--- /dev/null
+++ b/test/ns-afl-svg/0100.svg
@@ -0,0 +1,378 @@
+<svg xmlns="00" ox="0">
+0<defs>0<linearGradient id="pyYellow" gradientTransform="00">
+0<stop stop-color="#0000s0" offset="0"/>
+0<stop stop-color="o0q0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#00)"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#00000"/>0
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#00)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="0" id="0000" style="fill: url(#00000" fill="url(#00)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" ce="0" fill="#000"/>
+0<circle r="" cx="0" ix="0" style="fill: m0l00rad000" fill="url(#00000"/>
+0<parh d="0" ll="0"/>0
+0
+0
+0<path d="000000000000000000000000000000000000000000" fill="0000"/>
+0<path d="M00,00c00000000000-0-00000000000 000000,00000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,000000000000000000000" fill="u0e0"/>
+0<path d="M00,00c00000000000-0-00000000000 000000,0000000000000000000000000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow"/>0
+0<circle r="," fill="url(#000000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" wx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000000000000000000000000000000000000000000000000000000000"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c00000000-00-0-00000000000 000000,0000000000000000000000000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="0000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" il="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" ll="0"/>0
+0<circle r="4" _x="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" ll="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000000000000000000-00 000-000 000-00-00-00000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" ll="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="" fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" ll="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" Nl="0"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0101.svg b/test/ns-afl-svg/0101.svg
new file mode 100644
index 0000000..cf511c7
--- /dev/null
+++ b/test/ns-afl-svg/0101.svg
@@ -0,0 +1,37 @@
+<svg xns="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="000000000000000000000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00000"/>
+0<path d="M70,80c090-8,00-20,120,50v1" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00,0,0000w000000000000000000000000000000000,00000000000000000000000,0000000000000000000000000000000000000000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000000000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" i="0" style="fill: m0l00rad000" fill="url(#00000"/>
+0<parh d="0" l="0"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00,0,000000000000000000000m000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#00000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00,0,000000000000000000000000000000i0000000,00000000000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000000000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" x="0" style="fill: m0l00rad000" fill="url(#00000"/>
+0<parh d="0" fill="0"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00,0,000000000000000000000000000000i0000000,00000000000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000000000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" ix="0" style="fill: m0l00rad000" fill="url(#0000000"/>
+0<parh d="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0102.svg b/test/ns-afl-svg/0102.svg
new file mode 100644
index 0000000..9a92021
--- /dev/null
+++ b/test/ns-afl-svg/0102.svg
@@ -0,0 +1,16 @@
+<svg xmlns="000000000000000000" xmlns:xlin0="0" viewBox="0 0 0 0">
+0<radialGradient id="0" cx="0" cy="0" r="0" gnits="0"><op ot="0" op-c="0"/><op ot="0"/></radialGradient>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" s="0"><op ot="0" op-c="0"/><op ot="0"/></radialGradient>
+0<path d="000000"/>
+0<patH d="00000000000000000,00000000000000000000000000000000000000,00000,00" id="0" fill="c0c00cme00"/>
+0<patH d="M0000000000000000 0M00000000" fill="c0c00cme00"/>
+0<patH d="M00 00000:0000000000000000000000000000000000000000000000000000000000000000000000" id="0" fill="c0c00cme00"/>
+0<patH d="M00 00000:0000000,0,000,000000,00000,00000,0000000,00000,00000,00" id="0" fill="c0c00cme00"/>
+0<patH d="M00 00000:00000000000000000000000000,00000,0000000,00000,00000,00" id="0" fill="c0c00cme00"/>
+0<patH d="M00 00000:0000000000000000000000000000000" fill="c0c00cme00"/>
+0<patH d="M00 00000:0000000000000000000000000000000000000000000000000000000000000000000000" id="0" fill="c0c00cme00"/>
+0<patH d="M00 00000:0000000,0,000,000000,00000,00000,0000000,00000,00000,00" id="0" fill="c0c00cme00"/>
+0<patH d="M00 00000:0000000000000000000000,00000,00000,0000000,00000,00000,00" id="0" fill="c0c00cle00"/>
+0<use xlin0:href="0" t="0"/>
+0<use ef="0" m="0"/>0</svg>
diff --git a/test/ns-afl-svg/0103.svg b/test/ns-afl-svg/0103.svg
new file mode 100644
index 0000000..d5318ce
--- /dev/null
+++ b/test/ns-afl-svg/0103.svg
@@ -0,0 +1,136 @@
+<s xmx="0" se0Ù00="0">
+0<è0
+ t=''/>
+0<fè0
+ t=""/>0
+0
+0<è0
+ t=''/>
+0<fè0
+ t=""/>0
+0
+0
+0
+0<eè0
+ t=""/>0
+0
+0
+0
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<efÇ0/>0
+0
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+ t=''/>
+0
+0<e0è0
+/>
+0<e0è0
+ t=""/>0
+0
+0
+0
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<efÇ0/>0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0
+0<le cx="0" cy="0" r="0" style="0" m="0" stroke0Ù000000="0">
+0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<e0è0
+/>0
+0
+0
+0
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<efÇ0/>0
+0
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+ t=''/>
+0
+0<circle cx="0" cy="0" r="0" style="0" transform="0"/>
+0<circle cx="0" cy="0" r="0" style="0" m="0" stroke0Ù000000="0">
+0<e0è0
+/>
+0<e0è0
+/>0<e0è0
+/>
+0<e0è0
+/>0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<efÇ0/>0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>0
+0<circle cx="0" cy="0" r="0" style="0" transform="0"/>
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0104.svg b/test/ns-afl-svg/0104.svg
new file mode 100644
index 0000000..7460fd5
--- /dev/null
+++ b/test/ns-afl-svg/0104.svg
@@ -0,0 +1,47 @@
+<svg width="g" o="0" stroke-width="G">0<svg xmlns="0" stroke="l0s00ric0"
+stroke-width="0"/>0
+0<script e="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g d="0" fill="0" ox="0" stroke-width="G">0<svg xmlns="0" stroke="l0s00ric0"
+stroke-width="0"/>0
+0
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0s00ric0"
+stroke-width="3"/>
+0
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0s00ric0"
+stroke-width="3"/>
+0
+0</g>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0105.svg b/test/ns-afl-svg/0105.svg
new file mode 100644
index 0000000..1c5d704
--- /dev/null
+++ b/test/ns-afl-svg/0105.svg
Binary files differ
diff --git a/test/ns-afl-svg/0106.svg b/test/ns-afl-svg/0106.svg
new file mode 100644
index 0000000..880e9a4
--- /dev/null
+++ b/test/ns-afl-svg/0106.svg
@@ -0,0 +1,284 @@
+<vg ĉ="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+</svg>0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0107.svg b/test/ns-afl-svg/0107.svg
new file mode 100644
index 0000000..a128187
--- /dev/null
+++ b/test/ns-afl-svg/0107.svg
@@ -0,0 +1,17 @@
+<svg xmlns="00000000000000000000000000" i0="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient x1="0" y1="0" x0="0" y0="0" i0="0">
+0<op o0="0" t-c="0" sp-y="0"/>
+0<sp et="0" stop-color="0" ty="0"/>
+0<op ot="0" or="0" sy="0"/>
+0</linearGradient>
+0</defs>
+0<g transform="scale(09)">
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="#000000"/>
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="#000000"/>
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="u0t00nsf000ar0000"/>0
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="u0t00nsf000ar0000"/>0
+0<path fill="none" stroke="#000" stroke-width="0" d="00000"/>
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="u0t00nsf000ar0000"/>0
+0<rect id="0" stroke="none" width="0" height="0" x="0" y="0" transform="matrix(0..0.00,00000007,0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0108.svg b/test/ns-afl-svg/0108.svg
new file mode 100644
index 0000000..d0e57c5
--- /dev/null
+++ b/test/ns-afl-svg/0108.svg
@@ -0,0 +1,205 @@
+<svg olns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop lor="0" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<defs>
+0<linearGradient id="0" sform="0">
+0<stop lor="0" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<e r="0" x="0" y="0" fill="0"/>0<stop stop-color="000000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,80c000-0,00-00,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#00000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,00000000000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-000000c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,00000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000,000,0000,000,0000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#00000" fill="u00000000000"/>
+0<path d="M00,00c00000,00000,000,000000000i0000000,0000000,000000000000000,00000000,000000000000000000000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00000)"/>
+0<path d="M70,80c000-0,00-00,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,70-030-24-60.000,100.0000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00000)"/>
+0<path d="M00,80c000-0,00-00,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000000000000,0c0,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx=")"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,80c000-0,00-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,00-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,00-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,120-10l0-20c0-0,0-00,10-00l20,0c0,0,00-0,10-15l0-0009,0c0,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,80c000-0,00-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0109.svg b/test/ns-afl-svg/0109.svg
new file mode 100644
index 0000000..f7428c0
--- /dev/null
+++ b/test/ns-afl-svg/0109.svg
@@ -0,0 +1,6 @@
+<svg>0
+0<svg><svg>0
+0<path d='000,00000' fill='d0l00gax000ns00000' stroke='black'/>
+0<path d='0,0,0,000' fill='d0l00ayt000er' stroke='black'/>0</svg>
+0
+0<path d='00000,00000' fill='d0l00gax000ns00000' stroke='black'/>0</svg><path d='0,000,000,00000' fill='d0l00gax000ns00000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/0110.svg b/test/ns-afl-svg/0110.svg
new file mode 100644
index 0000000..efb44cb
--- /dev/null
+++ b/test/ns-afl-svg/0110.svg
@@ -0,0 +1,4 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="none"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" xml:id="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0111.svg b/test/ns-afl-svg/0111.svg
new file mode 100644
index 0000000..a1274ae
--- /dev/null
+++ b/test/ns-afl-svg/0111.svg
@@ -0,0 +1,27 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0"[ <!ENTITY S "">
+<!ENTITY t "">
+]>
+<svg width="0" height="0" ion="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="0" stroke="0"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g m="0">&e;<g>
+0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">
+0
+<svg h="0" height="0" ion="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="0" stroke="0"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g trarm="0">&e;<Pg>
+0<text x="0" y="0">0</text>0
+0
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g m="0">&e;<Pg>
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0112.svg b/test/ns-afl-svg/0112.svg
new file mode 100644
index 0000000..668a4dc
--- /dev/null
+++ b/test/ns-afl-svg/0112.svg
@@ -0,0 +1,25 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="k0e0" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>0
+0<stop stop-color="#000" offset=".4" cy="0" ll="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="r000000000" ll="0"/>
+0<ph d="0" ot="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,0c0-0,0,0,0-0,0" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M0,0c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0113.svg b/test/ns-afl-svg/0113.svg
new file mode 100644
index 0000000..27b1f89
--- /dev/null
+++ b/test/ns-afl-svg/0113.svg
@@ -0,0 +1,7 @@
+<svg v='0' xmlns='h0z' l='0' stroke='0'>
+0<svg v='0' ll='0' stroke='0'>
+0
+0<svg vox='0' xmlns='h0z' drofill='0' stroke='0'>
+0<patH d='M00,0-00,z' fill='c0l00tax000ts00000' stroke='black'/>0</svg>
+0<path d='M00,0-00' fill='c0l00tax000ts00000' stroke='black'/>0<patH d='M00,000-,000,00000' fill='c0l00tax000ts00000' stroke='black'/>0</svg>
+0<path d='M00,00,0' fill='c0l00tax000ts00000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/0114.svg b/test/ns-afl-svg/0114.svg
new file mode 100644
index 0000000..b3f0967
--- /dev/null
+++ b/test/ns-afl-svg/0114.svg
@@ -0,0 +1,14 @@
+<svg s="0" viewBox="0" xmlns:xlin0="0000" ieaBox="0">
+0
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000C0,00 00,0,00 00,00" i="0" fill="d0l00gra00"/><radialGradient d="0" cx="0" cy="0" r="0" s="0"><op ot="0" stop-c="0"/><op ot="0"/></radialGradient>
+0<path d="M00,0000 0a000000000000000000000000000000000000000000000000000000" id="0" fill="d0l00gra00"/><radialGradient id="0" cx="0" cy="0" r="0" s="0"><sp ot="0" stop-c="0"/><sp ot="0"/></radialGradient>
+0<path d="M0,0 0,0" id="0" fill="d0l00gra00"/><radialGradient id="0" cx="0" cy="0" r="0" U="0"><sp ot="0" stop-c="0"/><sp ot="0"/></radialGradient>
+0<path d="M00,0A000,00 0,0,0 00,000C00,00 00,00 00,000C000,0,00 00,00 00,00" id="0" fill="d0l00gra00"/>
+0<use xlin0:href="0" m="0"/>
+0
+0
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000C0,00 00,0,00 00,00" id="0" fill="d0l00gra00"/><radialGradient id="0" cx="0" cy="0" r="0" s="0"><op ot="0" stop-c="0"/><op ot="0"/></radialGradient>
+0<path d="M00,000A000000000000000000000000000000000000000000000000000000000" id="0" fill="d0l00gra00"/><radialGradient id="0" cx="0" cy="0" r="0" s="0"><sp ot="0" stop-c="0"/><sp ot="0"/></radialGradient>
+0<path d="M0,0 0,0" id="0" fill="d0l00gra00"/><radialGradient id="0" cx="0" cy="0" r="0" U="0"><stop ot="0" stop-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,0A000,00 0,0,0 00,000C00,00 00,00 00,000C000,0,00 00,00 00,00" id="0" fill="d0l00gra00"/>
+0<use xlin0:href="0" m="0"/></svg>
diff --git a/test/ns-afl-svg/0115.svg b/test/ns-afl-svg/0115.svg
new file mode 100644
index 0000000..abc423f
--- /dev/null
+++ b/test/ns-afl-svg/0115.svg
@@ -0,0 +1,56 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop op-c="0" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,0-00,00-00c00,0,00,0,00,00l0,00c0,0-0,00-00,00000000000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ000000000000"/>0
+0<circle r="4" cx="r"/>
+0<path d="000000000000000000,000,0000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" l="0"/>
+0<path d="000,00000000,000,00000000000000000,00000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000=00,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" T="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" l="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#000000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000-00-00 00-00 000-00 0000-00 000-000 000-000000000000000000000000000000000000000000000000000000000000000000,00..000,00000000 000000,000000000000000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,00-20,100-00l0-22c0-7,0-00,0010 000000,000000000000000000,0000M00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" c="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000000000000000000000000 0000000000000000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,00000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000,0000000000000000,0000000000C000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0-00000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 00000000000000000000000000000000000000000000000000000000000000000,00000000 000000,00000000000000000000000000000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0116.svg b/test/ns-afl-svg/0116.svg
new file mode 100644
index 0000000..37997a0
--- /dev/null
+++ b/test/ns-afl-svg/0116.svg
@@ -0,0 +1,27 @@
+<vQ ootì-='0' xmlѶÑ00000="0">0<sv otÀå00='0'>
+0<svg tÀå0000000="0">0<svg OootÀå0000="0">0<sv ootÀå00='0'>
+0<svg OtÀå00000000000="0" å00="">
+0<svg OootÀå0000="0">0<sv ootÀå00='0' m="">
+0<svg OootÀå00000="0">
+0<svg OootÀå0000="0">0
+0<sv ootÀå00='0'>
+0<svg OootÀå0000="0">
+0<svg OootÀå0000="0">0
+0<sv ootÀå00='0' m="">0<sv ootÀå00='0'>
+0<svg otÀå00="0">
+0<svg OootÀå0000="0">0<sv ootÀå00='0'>
+0<svg otÀå000000="0">
+0<svg OootÀå0000="0">0<sv ootÀå00='0'>
+0<svg OootÀå00000="0">
+0<svg OootÀå0000="0">0
+0<svg otÀå00='0'>
+0<svg otÀå000='0'>
+0<svg OootÀå0000="0">0
+0<sv ootÀå00='0'>
+0<svg otÀå000='0' å00="">
+0<svg OootÀå0000="0">0
+0<sv ootÀå00='0'>
+0<svg OtÀå000000="0">
+0<svg OootÀå0000="0">0
+0<svg ootÀå00='0'>
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0117.svg b/test/ns-afl-svg/0117.svg
new file mode 100644
index 0000000..b48fb87
--- /dev/null
+++ b/test/ns-afl-svg/0117.svg
@@ -0,0 +1,70 @@
+<svg ŃÉ="0">
+0<defs>0<linearGradient id="py0ello0" a_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" e="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0" ra_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="url(#0000000" l="0"/>
+0<ph d="0" of="0"/>
+0
+0<stop or="0" of="0"/>
+0<stop stolor="0" of="0"/>
+0
+0<stop or="0" of="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stÚ0/>
+0<stop or="0" et="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<ph d="0"/>0
+0<ci r="0" cx="0"/><sp st="0" et="0"/>
+0
+0<sp st="0" offset="0"/>
+0<op sr="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<pCth d="0" id="0" s="0" fi="0"/>
+0<pLth d="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000000000000000000,0l0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,0000000X,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0118.svg b/test/ns-afl-svg/0118.svg
new file mode 100644
index 0000000..5c1359f
--- /dev/null
+++ b/test/ns-afl-svg/0118.svg
@@ -0,0 +1,11 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,00,00" stroke-width="0" fill="#000" fill-rulg="0"/>
+0<path d="0" stroke="e0d"/>
+0<circle r="6" cx="0" cy="L"/>
+0
+0<path d=",0000,00" stroke="e0d"/>
+0<circle r="6" cx="0" cy="L"/>0
+0<path d="M0,0s0,0,0,0l0,0s0,0,0-0l0-0s0-0-0,0z" stroke-width="1" fill="#000" fill-rulg="0"/>
+0<path d="M0,0L0,0d" stroke-width="2" tr="0" fill="#000" wle="0"/>
+0<path d=",0000,00" stroke="e0d"/>
+0<circle r="6" cx="0" cy="L"/>0</svg>
diff --git a/test/ns-afl-svg/0119.svg b/test/ns-afl-svg/0119.svg
new file mode 100644
index 0000000..86bad02
--- /dev/null
+++ b/test/ns-afl-svg/0119.svg
@@ -0,0 +1,204 @@
+<svg wth="0" ht="0" id="0" y="0"><g><g><path fill-rule="0" xmlns="0000000000" xmlns:k="0" xmlns:sodipodi="00" xmlns:inkscape="htt"
+th="0"
+ght="0" id="0" inkscape:verersion="0" inkscape:von="0"
+vÁ0="0">
+0<dSfs>
+0<fr inkscape:cot="0" e="0" di="0" xmlns:inke="htt"
+th="0" inke:vÁ0="0">
+0<defs>
+0<f inke:cot̬̀="0" e="0" inkscape:ou_e="0">
+0<de xt="0" n="0" inkscape:vÁ0="0">
+0<defs>
+0<fr inkscape:cot="0" e="0" inke:oion="0">
+0<d sodipodi:ion="0" inke:vÁ0="0">
+0<defs>
+0<f inkscape:t̬̀="0" e="0" inkscape:ut_e="0">
+0<de xt="0" n="0" inke:vÁ0="0">
+0<defs>
+0<fr inkscape:c̀="0" e="0" inkscape:outnsion="0">
+0<defs xmlns:inpe="htt" th="0" ght="0"
+d="0" sodipodi:ion="0" inke:vÁ0="0">
+0<defs>
+0<fr inpe:cot̬̀="0" e="0" inpe:output_extension="0">
+0<defs xmlns:e="0" th="0" ght="0"
+d="0" sodipodi:ion="0" inpe:vÁ0="0">
+0<defs>
+0<fr k="0" xmlns:sodi="00" xmlns:e="0"
+th="0"
+t="0" id="0" sodi:ion="0"
+t_e="0">
+0<de xt="0"
+n="0" inke:vÁ0="0">
+0<defs>
+0<fr inke:c̀="0" e="0" inpe:output_extension="0">
+0<defs xh="0"
+t="0"
+d="0" sodi:ion="0" inkscape:vÁ0="0">
+0<defs>
+0<fr inpe:cot̬̀="0" e="0" inpe:output_extension="0">
+0<defs xth="0"
+ght="0"
+d="0" sodi:ion="0" inke:vÁ0="0">
+0<defs>
+0<fr ink="0" xmlns:si="00" xh="0"
+t="0"
+d="0" si:ion="0" inke:vÁ0="0">
+0<defs>
+0<f inpe:cot̬̀="0" e="0" inke:output_e="0">
+0<defs xt="0" n="0" inke:vÁ0="0">
+0<defs>
+0<fr inkscape:cot̬̀="0" e="0" inpe:output_extension="0">
+0<d si:ion="0" inpe:vÁ0="0">0
+0
+0
+0<de xt="0" n="0" inke:vÁ0="0">
+0<defs>
+0<fr inke:c̀="0" e="0" inke:output_extension="0">
+0<defs xmlns:e="0" th="0" ght="0"
+d="0" si:ion="0" inpe:vÁ0="0">
+0<defs>
+0<f inpe:cot̬̀="0" e="0" inpe:output_extenth="0"
+t="0"
+d="0" si:ion="0" t_e="0">
+0<de xt="0" n="0" inke:vÁ0="0">
+0<defs>
+0<fr inpe:c̀="0" e="0" inpe:output_extension="0">
+0<defs xh="0" ght="0"
+d="0" sodi:ion="0" inke:vÁ0="0">
+0<defs>
+0<fr inpe:cot̬̀="0" e="0" inpe:output_extension="0">
+0<defs h="0" ght="0"
+d="0" si:ion="0" inke:vÁ0="0">
+0<defs>
+0<fr ink="0" xmlns:di="00" xh="0"
+t="0" id="0" di:ion="0" inpe:vÁ0="0">
+0<defs>
+0<f inpe:cot̬̀="0" e="0" inke:output_e="0">
+0<defs xt="0"
+n="0" inke:vÁ0="0">
+0<defs>
+0<fr inke:cot̬̀="0" e="0" inpe:output_extension="0">
+0<d di:ion="0" inpe:vÁ0="0">0
+0
+0
+0<de xt="0"
+n="0" inkscape:vÁ0="0">
+0<defs>
+0<fr inpe:c̀="0" e="0" inke:output_extension="0">
+0<defs th="0"
+ght="0"
+d="0" si:ion="0" inpe:vÁ0="0">
+0<defs>
+0<f inpe:cot̬̀="0" e="0" inpe:output_extension="0">
+0<defs xmlns:e="0"
+th="0"
+t="0"
+d="0" inke:vÁ0="0">
+0<defs>
+0<f inpe:cot̬̀="0" e="0" inke:output_e="0">
+0<defs xt="0"
+n="0" inke:vÁ0="0">
+0<defs>
+0
+0<d si:ion="0" inpe:vÁ0="0">
+0<defs xmlns:e="0" th="0"
+t="0"
+d="0" inke:vÁ0="0">
+0<defs>
+0<f inpe:cot̬̀="0" e="0" inke:outputtension="0">
+0<defs th="0" ght="0"
+d="0" di:ion="0" inkscape:vÁ0="0">
+0<defs>
+0<fr inpe:cot̬̀="0" e="0" inpe:output_extension="0">
+0<defs h="0" ght="0"
+d="0" di:ion="0" inke:vÁ0="0">
+0<defs>
+0<fr ink="0" xmlns:i="0" xmlns:e="0"
+th="0"
+t="0" id="0" di:ion="0" inke:vÁ0="0">
+0<defs>
+0<f inpe:cot̬̀="0" e="0" inke:output_e="0">
+0<defs xt="0"
+n="0" inke:vÁ0="0">
+0<defs>
+0<fr inkscape:cot̬̀="0" e="0" inpe:output_extension="0">
+0<d di:ion="0" inpe:vÁ0="0">0
+0
+0
+0<de xt="0"
+n="0" inpe:vÁ0="0">
+0<defs>
+0<fr inke:c̀="0" e="0" inke:output_extension="0">
+0<defs xmlns:e="0"
+th="0"
+ght="0"
+d="0" si:ion="0" inpe:vÁ0="0">
+0<defs>
+0<f inpe:cot̬̀="0" e="0" inpe:output_extenth="0"
+t="0" id="0" di:ion="0"
+t_e="0">
+0<de xt="0"
+n="0" inke:vÁ0="0">
+0<defs>
+0<fr inke:c̀="0" e="0" inpe:output_extension="0">
+0<defs xmlns:e="0"
+th="0"
+ght="0"
+d="0" si:ion="0" inpe:vÁ0="0">
+0<defs>
+0<fr inpe:cot̬̀="0" e="0" _e="0">
+0<defs xt="0"
+n="0" inke:vÁ0="0">
+0<defs>
+0
+0<d si:ion="0" inpe:vÁ0="0">
+0<defs>
+0<f inke:t̬̀="0" e="0" inke:ut_e="0">
+0<de xt="0" n="0" inke:vÁ0="0">
+0<defs>
+0<fr inpe:c̀="0" e="0" inpe:output_extension="0">
+0<defs h="0" ght="0"
+d="0" di:ion="0" inke:vÁ0="0">
+0<defs>
+0<fr inpe:cot̬̀="0" e="0" inpe:output_extension="0">
+0<defs xmlns:e="0" th="0" ght="0"
+d="0" di:ion="0" inke:vÁ0="0">
+0<defs>
+0<fr ink="0" th="0"
+t="0" id="0" di:ion="0" inke:vÁ0="0">
+0<defs>
+0<f inpe:cot̬̀="0" e="0" inke:output_e="0">
+0<defs xt="0"
+n="0" inke:vÁ0="0">
+0<defs>
+0<fr inke:cot̬̀="0" e="0" inpe:output_extension="0">
+0<d di:ion="0" inpe:vÁ0="0">0
+0
+0
+0<de xt="0"
+n="0" inpe:vÁ0="0">
+0<defs>
+0<fr inke:c̀="0" e="0" inke:output_extension="0">
+0<defs xmlns:e="0"
+th="0"
+ght="0"
+d="0" si:ion="0" inpe:vÁ0="0">
+0<defs>
+0<f inpe:cot̬̀="0" e="0" inpe:output_extension="0">
+0<defs xmlns:e="0"
+th="0"
+t="0"
+d="0" si:ion="0" inpe:vÁ0="0">
+0<defs>
+0<fr
+nk="0" xmlns:i="0" xmlns:e="0" th="0"
+t="0" id="0" di:ion="0" inke:vÁ0="0">
+0<defs>
+0<f inpe:cot̬̀="0" e="0" inke:output_e="0">
+0<defs xt="0"
+n="0" inke:vÁ0="0">
+0<defs>
+0<f inke:cot̬̀="0" e="0" inpe:output_extension="0">
+0<d di:ion="0" inpe:vÁ0="0">
+0<defs>
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0120.svg b/test/ns-afl-svg/0120.svg
new file mode 100644
index 0000000..5265439
--- /dev/null
+++ b/test/ns-afl-svg/0120.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:n0d;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0121.svg b/test/ns-afl-svg/0121.svg
new file mode 100644
index 0000000..cbbdf5a
--- /dev/null
+++ b/test/ns-afl-svg/0121.svg
@@ -0,0 +1,108 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(000">
+0<stop stop-color="0000000" offset="0"/>
+0<stop stop-color="g0a0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="s0f00l" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="00000000,00,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000-00 00-00 000-00 0000-00 000-000 00000 000000000000000000000000000000000000000000000000000000000000000000000 0" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,0-00-0@000000000000,000000,000000000000000000000,00000,000,0000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,000000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0-00000 00-00-00 00-00000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,00000000 000000,0000000000000000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00000:,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000,0000000000000000,,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,00000,000000000000000000,00000000000000-000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000000000000000000000000000000000000,0000000000" id="0" style="fill: s0o00rad000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000-0-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" c="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000-0-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="u000000000000"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0122.svg b/test/ns-afl-svg/0122.svg
new file mode 100644
index 0000000..034eb5b
--- /dev/null
+++ b/test/ns-afl-svg/0122.svg
@@ -0,0 +1,17 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="d0t00nsf000ov0"/>0
+0<path d="M00,0h00l00,00v00lv0000" stroke="#000" fill="d0t00nsf000ov0"/>0
+0<path d="M00,0h00l00,00v0h000l000-000-00"/>
+0<path d="M00,00s0,0,0,0h0,0s00-0,0-00s00-0,0-0l0,0s0,0,0-0l00-000000d" fill="d0t00nsf000ov0"/>0
+0<path d="00000000000"/>
+0<path d="M00,00s00-00,0-00l0-0s0,0,0,0l0-0l0,0s0,0,0,00l00,0l00-0s00,0-0,0l00,00z"/>
+0<g stroke="#000" stroke-width="3" fill="none" e-p="0">
+0<circle r="6" cx="0" cy="0"/>
+0<circle r="6" cx="0" cy="0"/>
+0<path d="M00,00S00,00,0000,0S00,00,00,00"/>
+0<path d="M00,00l0,0M00,00l00,0"/>0
+0<path d="M00,00c000-00-00-0-00-0s0,0-0,0000,0"/>
+0<path d="M000,00c0-0,00-0,00,0c0,0,00,0,00,0000000,0"/>
+0<path d="M00,00c0,0,0,0,00,0000000,0"/>
+0<path r="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0123.svg b/test/ns-afl-svg/0123.svg
new file mode 100644
index 0000000..3f9e070
--- /dev/null
+++ b/test/ns-afl-svg/0123.svg
@@ -0,0 +1,112 @@
+<svg v="0" viewBox="0">
+0
+0<g ke="0">
+0
+0
+0
+0<g fe="0">
+0
+0</g>
+0<g fill="000" stroke="o0i00">
+0
+0<ellipse stroke="000" rx="6" ry="4" transform="rotate(60)"/>
+0<circle r="4"/>0
+0
+0
+0<g fe="0">
+0
+0</g>
+0<g fill="000" stroke="o0i00">
+0
+0<ellipse stroke="000" rx="6" ry="4" transform="rotate(60)"/>
+0<circle r="4"/>
+0</g>
+0</g>
+0<g fill="000" stroke="o0i00">
+0
+0<ellipse stroke="0000000" rx="6" ry="4" transform="rotate(60)"/>
+0<circle r="4"/>
+0</g>
+0<g fill="0000000" stroke="o0i00">
+0
+0
+0<g ke="0">
+0
+0
+0
+0<g foke="0">
+0
+0</g>
+0<g fill="000" stroke="o0i00">
+0
+0<ellipse stroke="000" rx="6" ry="4" transform="rotate(60)"/>
+0<circle r="4"/>0
+0
+0
+0<g foke="0">
+0
+0</g>
+0<g fill="000" stroke="o0i00">
+0
+0<ellipse stroke="0000000" rx="6" ry="4" transform="rotate(60)"/>
+0<circle r="4"/>
+0</g>
+0</g>
+0<g fill="0000000" stroke="o0i00">
+0
+0<ellipse stroke="0000000" rx="6" ry="4" transform="rotate(60)"/>
+0<circle r="4"/>
+0</g>
+0<g fill="0000000" stroke="o0i00">0
+0</g>
+0<g fill="0000000" stroke="o0i00">
+0
+0
+0
+0</g>
+0<g fill="0000000" stroke="o0i00">
+0
+0<ellipse stroke="0000000" rx="6" ry="4" transform="rotate(60)"/>
+0<circle r="4"/>
+0</g>
+0<g fill="0000000" stroke="o0i00">0
+0</g>
+0<g fill="0000000" stroke="o0i00">
+0<circle fill="#000000" r="3"/>
+0<circle cy="0" r="9"/>
+0<circle cx="0" cy="0" r="9"/>
+0
+<circle cx="0" cy="0" r="9"/>
+0</g>
+0<circle fill="#000000" r="3"/>
+0<circle cy="0" r="9"/>
+0<circle cx="0" cy="0" r="9"/>
+0
+<circle cx="0" cy="0" r="9"/>
+0</g>0
+0</g>
+0<g fill="0000000" stroke="o0i00">
+0
+0
+0
+0</g>
+0<g fill="0000000" stroke="o0i00">
+0
+0<ellipse stroke="0000000" rx="6" ry="4" transform="rotate(60)"/>
+0<circle r="4"/>
+0</g>
+0<g fill="0000000" stroke="o0i00">0
+0</g>
+0<g fill="0000000" stroke="o0i00">
+0<circle fill="#000000" r="3"/>
+0<circle cy="0" r="9"/>
+0<circle cx="0" cy="0" r="9"/>
+0
+<circle cx="0" cy="0" r="9"/>
+0</g>
+0<circle fill="#000000" r="3"/>
+0<circle cy="0" r="9"/>
+0<circle cx="0" cy="0" r="9"/>
+0
+<circle cx="0" cy="0" r="9"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0124.svg b/test/ns-afl-svg/0124.svg
new file mode 100644
index 0000000..441e7ed
--- /dev/null
+++ b/test/ns-afl-svg/0124.svg
@@ -0,0 +1,13 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:b0a00;stroke-width:001cm" m="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:000000000000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0m00mmm000me000000;stroke-width:1cm" transform="translate(000,000)"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:g0m00mmm000me000000;stroke-width:1cm" transform="translate(000,000)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0125.svg b/test/ns-afl-svg/0125.svg
new file mode 100644
index 0000000..31720f3
--- /dev/null
+++ b/test/ns-afl-svg/0125.svg
@@ -0,0 +1,15 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M0,0000v00h00V0000zM00,0000v00h00V0000zM00,0000v00v00h00V0000zM00,0000000h00V0000z"/>
+0<path d="M0..0c0,0,00,00,00,00s00,0-0,00c0,0,0,00,0,00l00,0c00-0,0,0,0,0000M000" fill="#p00"/>0
+0<text x="'" y="0" e="0" fill="0" tt-ar="0"><![CDATA[0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0</text>0</svg>
diff --git a/test/ns-afl-svg/0126.svg b/test/ns-afl-svg/0126.svg
new file mode 100644
index 0000000..22e83e0
--- /dev/null
+++ b/test/ns-afl-svg/0126.svg
@@ -0,0 +1,21 @@
+<svg xmlns="0000000000" w00x="0">
+0<I x="0"/>
+0<p000KKKKKKKKKKKKKKKex...................................................................................................................0.....KKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKRKKKKKKKKKKKKKKKKKKKKKKSKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLL............................................................................................................................0..................................................0.....KKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKRKKKKKKKKKKKKKKKKKKKKKKiKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK0KKKKKKKKKKKKipLLLLLL........................................................................................0...................................0.....KKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKRKKKKKKKKKKKKKKKKKKKKKKSKKKKK............................................................................................................2.....KKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKRKKKKKKKKKKKKKKKKKKKKKKSKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK0KKipLLLLLL............................................................................................................................0..................................................0.....KKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKRKKKKKKKKKKKKKKKKKKKKKKiKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLL............................................................................................................................0.....KKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKRKKKKKKKKKKKKKKKKKKKKKKSKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLLLLLLLL..KKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKRKKKKKKKKKKKKKKKKKKKKKKSKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLLLLLLLLKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLLLLLLLL..KKKKKKKKKpath d="0" ll="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKRKKKKKKKKKKKKKKKKKKKKKKSKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLLLLLLLLLLLLLLLt ty="0" rx="0"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/0127.svg b/test/ns-afl-svg/0127.svg
new file mode 100644
index 0000000..1299fd9
--- /dev/null
+++ b/test/ns-afl-svg/0127.svg
@@ -0,0 +1,385 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" rorm="0">
+0<stop stop-color="0" offset="4"/>
+0<stop or="0" offset="7"/>
+0<stop stop-color="s0d00p" offset=","/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop stop-color="#000" ot="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" ll="0"/>
+0<path d="00000000000000000000000000000," fill="url(#pyYellow"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#00000000000000000000000000000000000000000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" ll="0"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000,00,0000,c00000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00000000000000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" iill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,00-00000,00"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," ficy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" ilx="0"/>0
+0<cirCle r="#"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fSll="0"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0128.svg b/test/ns-afl-svg/0128.svg
new file mode 100644
index 0000000..db6f9c7
--- /dev/null
+++ b/test/ns-afl-svg/0128.svg
@@ -0,0 +1,63 @@
+<?l?>
+<svg version="0" xmlns="000000000000000000" xmlns:k="0" width="0" height="0" style="0" on="0">
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" ght="0" style="0" n="0">
+0<script pe="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0r00ric0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0
+0
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0r00ric0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/0129.svg b/test/ns-afl-svg/0129.svg
new file mode 100644
index 0000000..af9277d
--- /dev/null
+++ b/test/ns-afl-svg/0129.svg
@@ -0,0 +1,29 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-03,004,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0000,000,0l0,000,000000000000000000000000000000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c00000000000000000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-03,100,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,80c090-0,00-20,120-00l0-22c0-7,0-12,12-12l24,0c0,0,00-7,14-15l0-10l9,0c0,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" e="0" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0130.svg b/test/ns-afl-svg/0130.svg
new file mode 100644
index 0000000..1c3111a
--- /dev/null
+++ b/test/ns-afl-svg/0130.svg
@@ -0,0 +1,210 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_rm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0" ra_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="url000000000" l="0"/>
+0<h d="0" f="0"/>
+0
+0<stop r="0" f="0"/>
+0<stop r="0" f="0"/>
+0
+0<stop or="0" of="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0<stop or="0" et="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<ph d="0"/>0
+0<ci r="0" cx="0"/><stop st="0" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<op sr="0" et="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="0"/>
+0<path d="000000000000000000000000000" fill="url0000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l000-0000-00l00000000000000000000000000000000000,000,0000,000000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="000,000000000000000000,0000,00000,000000,000,0000,000,000,00000000000000000000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l000000,0000000000C00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,00000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-00-60.070,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-00,020,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,00-20,004-00l0-22c0-7,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<irccle r="0" cx="0" cy="0" ll="0"/>0
+0<circle r="," fill="url(#0000)"/>
+0<ath d="0" fl="0"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" zx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,,00000000000000t00000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx=")"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circla r="0" cx="0" fl="0"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,10-00,020,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<cercle r="0" cx="0" ll="0"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,00-20,124-00l0-22c0-7,0-10,10-10l24,0c0,0,00-7,14-10l0-10l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0131.svg b/test/ns-afl-svg/0131.svg
new file mode 100644
index 0000000..9ab5551
--- /dev/null
+++ b/test/ns-afl-svg/0131.svg
@@ -0,0 +1,4 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="none"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text xml:space="0" t-e="0" ll="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0132.svg b/test/ns-afl-svg/0132.svg
new file mode 100644
index 0000000..6d3dca9
--- /dev/null
+++ b/test/ns-afl-svg/0132.svg
@@ -0,0 +1,12 @@
+<vg xml="0">
+0<![CDATA[0]]><Ћdefs>
+0<linent id="0" gradienrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0<![CDATA[0]]><Ћdefs>
+0<linent id="0" gradienrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0
+0‹ \ No newline at end of file
diff --git a/test/ns-afl-svg/0133.svg b/test/ns-afl-svg/0133.svg
new file mode 100644
index 0000000..0fccaa0
--- /dev/null
+++ b/test/ns-afl-svg/0133.svg
@@ -0,0 +1,358 @@
+<svg w="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" m="0">
+0<stop stop-color="#000" offset=".6"/>0<stop stop-color="#000" offset="1"/>
+0
+0
+0<stop stop-color="a0q0" offset="0"/>
+0<stop stop-color="000000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#00000"/>0
+0<circle r="4" x="0" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="z" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" e="0" fill="#000"/>
+0<circle r="" cx="0" i="0" style="fill: 0000000000000"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,00L000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-00000000010000000000000000000000000000000000000 0000000000000000000000000000" x="0" y="0" fill="url(#pyYellow"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-0000-0M00000000000000000000000000000000000000000000000000000000000,000000,000,0000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<paZh d="0" id="0004" style="0"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#00000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,00000000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,000-00l0-00c0-0,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" x="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,004-00l0-00c0-0,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" x="0" y="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" x="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,10-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,00..000,00000000 000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="z" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0
+
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c00000,00000000-000 000-00-000000000000000000000,000000000000000,0000000000" id="0004" stylel="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-20,024-00l0-00c0-0,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,10-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0134.svg b/test/ns-afl-svg/0134.svg
new file mode 100644
index 0000000..2d05ad3
--- /dev/null
+++ b/test/ns-afl-svg/0134.svg
@@ -0,0 +1,6 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="d0n0"/>0
+0<path d="M0,0h0l0,0z" stroke="#000" fill="d0n0"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-0v00z" fill="#000"/>0
+0<text x="0" y="z" fill="0"/>0
+0<text x="0" y="0" t-e="0" fill="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0135.svg b/test/ns-afl-svg/0135.svg
new file mode 100644
index 0000000..77d2237
--- /dev/null
+++ b/test/ns-afl-svg/0135.svg
@@ -0,0 +1,104 @@
+<svg olns="0" Box="0">0<è
+>0<t x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKent id="0" grorm="0">
+0
+0<è
+` m="">
+0<è
+` m="">
+0
+0
+0
+0<linent id="0" grorm="0">
+0
+0<è
+`>
+0<è
+`>
+0<è
+`>
+0
+0<è
+` m="">
+0<è
+` g="">0 0<è
+svw olns="0" Box="0">
+0<è
+`>
+0<è
+`>
+0<lefè00>
+0<è
+`>
+0<è
+`>
+0<è
+`>0
+0
+0<è
+`>
+0<è
+`>0 0<lefè
+svw olns="0" Box="0">
+0<è
+`>
+0<è
+`>
+0<è
+`>0
+0<defs>0
+0
+0<è
+`>
+0<è
+`>0 0<lefè
+svw s="0" Box="0">
+0<è
+`>
+0<lefè
+`>
+0<lefè00>
+0<lefè
+`>
+0<lefè
+` m="">
+0<lefè
+`>0
+0
+0<lefè
+` m="">
+0<lefè
+`>0 0<lefè
+svw olns="0" Bfx="0">
+0<lefè
+` m="">
+0<lefè
+`>
+0<lefè
+` x="">0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0<lefè
+`>
+0<lefè
+`>0
+0
+0<lefè
+`>
+0<lefè
+`>0 0<lefè
+svw olns="0" Box="0">
+0<lefè
+`>
+0<lefè
+` m="">
+0<lefè
+`>0
+0<defs>0
+0
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0136.svg b/test/ns-afl-svg/0136.svg
new file mode 100644
index 0000000..8cf5839
--- /dev/null
+++ b/test/ns-afl-svg/0136.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="c" cy="cm" r="1" style="fill:r0d0" m="0"/>
+0<circle cx="cm" cy="cm" r="D" style="stroke:o0f00tlw000id000000" transform="translate(0,0"/>
+0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0137.svg b/test/ns-afl-svg/0137.svg
new file mode 100644
index 0000000..f9437ba
--- /dev/null
+++ b/test/ns-afl-svg/0137.svg
@@ -0,0 +1,79 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l" stroke="#000" fill="o0n0"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<path d="00000000" stroke="#000" fill="c0y0"/>0
+0
+0
+0<path d="M0,0v0J0" fill="c0y0"/>0
+0
+0
+0<path d="M0,0h0l0,0v0J" stroke="0000" fill="o0n0"/>0
+0
+
+0
+0
+0
+0<path d="M0,0v0l0,0l" stroke="#000" fill="o0n0"/>0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<ellipse rx="2" ry="1" transform="rotate(000000,0000" stroke="#000" fill="c0y0"/>0
+
+0
+0
+0<path d="M0,0h0l0,0v0l0,0h0v000z" stroke="#000" fill="o0n0"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<path d="00000000" stroke="#000" fill="c0y0"/>0
+0
+0
+0<path d="M0,0h0l0,0v0J" stroke="#000" fill="o0n0"/>0
+0
+0
+0
+0
+0
+0<path d="M0,0h00l00,00v00l0,00l0" stroke="#000" fill="o0n0"/>0
+0
+0
+0
+0
+0
+0
+0<path d="M00,0h00l00,00v00l0,00h000l000-00v0z" stroke="#000" fill="o0n0"/>0
+0
+0
+0<ellipse rx="0" ry=")" fill="#000"
+o="0"/>0</svg>
diff --git a/test/ns-afl-svg/0138.svg b/test/ns-afl-svg/0138.svg
new file mode 100644
index 0000000..976f71f
--- /dev/null
+++ b/test/ns-afl-svg/0138.svg
@@ -0,0 +1,35 @@
+<sv0 xmlns="00000000000000000000000000" Bo0="0">
+0<pat0 d="0" in0="0" xmlns:sodipodi="00" xmlns:in0scape="000"
+th="0" height="0" id="0" sodipodi:ion="0" in0scape:von="0" sodipodi:docname="0" in0scape:output_extension="0">
+0<defs id="0">
+0<linearGradient id="0" grads="0" x0="0" y0="0" x2="0" y2="0">
+0<stop
+tyle="0" offset="0"/>
+0<stop style="0" offset="0" id="0"/>
+0</linearGradient>
+0</defs>
+0<g in0scape:xmlns="0" n="">
+0<rect sodi="0" xmlth="0" height="0" id="0" sodipodi:ion="0" in0scape:von="0" sodipodi:docname="0" in0scape:output_extension="0">
+0<defs id="0">
+0<linearGradient id="0" Units="0" x0="0" y0="0" x2="0" y2="0">0
+0
+0<stop style="0" offset="0" id="0"/>
+0</linearGradient>
+0</defs>
+0<g in0scape:xmlns="0" e="">
+0<defs id="0">
+0<linearGradient
+d="0" grads="0" x0="0" y0="0" x2="0" y2="0">
+0<stop
+le="0"
+set="0"
+d="0"/>
+0<stop style="0" offset="0" id="0"/>
+0</linearGradient>
+0</defs>
+0<g in0scape:xmlns="0" n="">
+0<re sodi="0" xmlth="0"
+t="0" id="0" sodipodi:ion="0" in0scape:von="0" sodipodi:docname="0" in0scape:output_extension="0">
+0<defs id="0">
+0<linent id="0" grits="0" x0="0" y0="0" x2="0" y2="0">
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0139.svg b/test/ns-afl-svg/0139.svg
new file mode 100644
index 0000000..2e0609b
--- /dev/null
+++ b/test/ns-afl-svg/0139.svg
@@ -0,0 +1,2 @@
+<svg xmlns="0000" viewBox="0">0<path d="M0000000000000000000000000000000000000000000000000000,000000000000000000000000,0q00,00000000000000000000000000000000000000,0000000,00000,0,0,000,0,00,000" fill="w0e00"/>0
+<path d="M0000 00000c00000,0000000000,00000q000,0000000,00000000,00000,000000,00000,00000,000,00000,000,0000,00000000000000000000000000000000000000,0000000,00000,0,0,000,0,00,000" fill="w0e00"/>0<path e="0" fill="w0e00"/>0</svg>
diff --git a/test/ns-afl-svg/0140.svg b/test/ns-afl-svg/0140.svg
new file mode 100644
index 0000000..7ed5e8d
--- /dev/null
+++ b/test/ns-afl-svg/0140.svg
@@ -0,0 +1,33 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="00" xmlns:inkscape="0t" width="0" height="7" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:doe="0" inkscape:tput_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0</defs>0
+0<g l="0" inkscape:groupmode="0" transform="scale(000 000">
+0<rect style="fill: m0y00blu0;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill: m0y00blu0;"
+p-h="0" id="0" width="0" height="0" x="0" y="0" transform="scale(00,05)"/>
+0</svg>0
+0
+0<rect style="fill: m0y00blu0;"
+p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 7 6">
+0<rect style="fill: m0y00blu0;" p-h="0"
+d="0" width="0" height="0" x="0" y="0" transform="scale(00,05)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0141.svg b/test/ns-afl-svg/0141.svg
new file mode 100644
index 0000000..ccb609a
--- /dev/null
+++ b/test/ns-afl-svg/0141.svg
@@ -0,0 +1,5 @@
+<svg id="0" xmlns="000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l0,00h000l000-0M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="t0t00nsf000on0"/>0
+0<path d="M0,0h0l0,0v0l" stroke="#000" fill="t0t00nsf000on0"/>0
+0<patQ d="0" fill="0"/>0
+0<text x="0" y="0" t-e="0" fill="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0142.svg b/test/ns-afl-svg/0142.svg
new file mode 100644
index 0000000..62d8674
--- /dev/null
+++ b/test/ns-afl-svg/0142.svg
@@ -0,0 +1,27 @@
+<svg xmlns="0000000000" mlns="0" viewBox="0 0 5 6">0<path d="M000 0c00-0-000 00-00-00-000" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h00000,00v00l000,00h000 00-00 000
+0-00-000-00-0-000 0-000 0-000-0-00" fill="l0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000 00-00 000-00 00-00 0000-00 00 0 00-000 00-000-00-00-000-00-000 00-000 00
+000 00 00000-00l000-00v000z" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000 00-000 000 0 000 0000 0 00 00 00
+0 00 0 00 00 00 0 00 0 00 00 00 000 000 000 000 000 000 000-000 00?000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000 00-00 0000-00 00 0 00-000 00-000-00-00-000-00-000 00-000 000-000 0000-000
+00000-00-000-00-000 00-000-00-000 00-000 000-000 000 000 000 000 000 00 000-000 000-000 000-000 000
+000 000 000-00 0000-00 000-00 000 0 000000!000000000000000000000000000" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000 00-00 0000-00 00 0 00-000 00-000-00-00-000-00-000 00-000 000-000 0000-000
+000 0-00 00-000 00-000 0-000 0-000-0-000-0-00-0-00-0-000-00-00-0-00-0000-000-000-00-0 00-0 000 0 000 0000 0 00 00 00
+0 00 0 00 00 00 0 00 0 00 00 00 000 000 000 000 000 000 000-0-00-000-00z" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000 00-000 000 0 000 0000 0 00 00 00
+0 00 0 00 00 00 0 00 00 0 000 000-00-000 00-000 000 000 000 00
+000 00 00000-00l000-00v000z" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000 00-00 0000-00 00 0 00-000 00-000-00-00-000-00-000 00-000 000-000 0000-000
+00000-00-000-00-000 00-000-00-000 00-000 000-000 000 000 000 000 000 00 000-000 000-000 000-000 000
+000 000 000-000 000-00 000 0 0 00 00 00 000 000 000 000 000 000 000-000 00?000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000 00-00 0000-00 00 0 00-000 00-000-00-00-000-00-000 00-000 000-000 0000-000
+00000-00-000-00-000 00-000-00-000 00-000 000-000 000 000 000 000 000 00 000-000 000-000 000-000 000
+000 000 000-000 000-00 000 0 000000!000000000000000000000000000" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000 00-00 0000-00 00 0 00-000 00-000-00-00-000-00-000 00-000 000-000 0000-000
+000 0-00 00-000 00-000 0-000 0-000-0-000-0-00-0-00-0-000-00-00-0-00-0000-000-000-00-0 00-0 000 0 000 0000 0 00 00 00
+0 00 0 00 00 00 0 00 0 00 00 00 000 000 000 000 000 000 000-000 00?00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000 00-00 0000-00 00 0 00-000 00-000-000000000le00000,00"/>0<ellipse rx=" "/>0<p rx="0" y="0" transform="0" fill="0"
+o="0"/>0</svg>
diff --git a/test/ns-afl-svg/0143.svg b/test/ns-afl-svg/0143.svg
new file mode 100644
index 0000000..9921819
--- /dev/null
+++ b/test/ns-afl-svg/0143.svg
@@ -0,0 +1,321 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<patH d="000,0000000000000000000000000000000000000000000000000000000000" fill="url(#000000)"/>
+0<Tath d="0" id="0" style="0" fill="0"/>
+0<path d="M00,00c000-0,00-00,000,0000" fill="url(#0000)"/>0
+0<cirClE r="4" x="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000000c0000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,000,00-00,000-000000000000000000000000000000,0c0,0,00,0,00,0000,0000,000000000000,000,0000,000,000,0000000,0000" fill="url(#0000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c00000,0000,0,00,0,00,00c0,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0-0,00-00,000-0000000c000,0000,000000000000000,000000000000000000,0000000000000000,00000000000000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000 00-00 0000-00 00 0 00-000 00-000-00-00-000-00-000 00-000 000-00T00000-000
+000 0-00 00000000 000000,000000000-000000c0,0000,00000,000000,000,0000,000,000,00000000000000000000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#0000)"/>0
+0<circle r="$" fill="url(#000000000000,0l0000000000000000000000000000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l000000,0000000000C0000000,0000M0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,00000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-00-000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#00000"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000000000,000000000000,000,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000 00000000,0000000000000000000" x="0" y="0" fill="url(#000000)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000000000000"/>0
+0<circle r="4" cx="0"/>
+0
+0
+0
+
+0<circle r="4" cx=")"/>
+0<path d="00,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,00000000,00000000000,00,0000000,000000000000000,000000000000000000,00,0000000000000000,00000000000000000000,0000000000000000,00000000"/>
+0<circle r="4" y="0" fill="url(#00000"/>0
+0<circcle r="0" x="0" y="0" fill="0"/>0
+0<circle r="," fill="url(#0000)"/>
+0<ath d="0" fill="0"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<aircle r="0" x="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#0000)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#0000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000"/>0
+0<cirCle r="4" cx=")"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circla r="0" x="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#0000000000000000000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<ce r="0" x="0" fill="0"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#0000)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00" fill="url(#0000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#000000)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="0" fill="url(#0000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000000)"/>0
+0<AirCle r="0" x="0" y="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#0000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" x="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0
+
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#00000000)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="0000000000000"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#00000000)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000 00000000,0000000000000000000" cx="0" cy="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="" fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#00000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCcle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#00000000)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0144.svg b/test/ns-afl-svg/0144.svg
new file mode 100644
index 0000000..d9ff66c
--- /dev/null
+++ b/test/ns-afl-svg/0144.svg
@@ -0,0 +1,5 @@
+<svg xmlns="00000000">
+0
+0<I x="0"/>
+0<P r="0" x="0" cy="0"/>0<N x="0"/>
+0<C r="0" cx="0" cy="0"/>0</svg>
diff --git a/test/ns-afl-svg/0145.svg b/test/ns-afl-svg/0145.svg
new file mode 100644
index 0000000..2efad13
--- /dev/null
+++ b/test/ns-afl-svg/0145.svg
@@ -0,0 +1,167 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="m0a00iew000"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,,0c0,0-0,00-00,00ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ00000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="000,0000000000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000,00000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="0000" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c097-0,13-03,120,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+
+0<circle r="$" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c097-0,13-03,120,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-0S0000000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l00,00000000000000000=00,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,0000000C000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000,0000000,000000000000000,000000000000000000000000000i0000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-04-6-001000000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00000,00-00,00,00-00,000000,000,0000,000,0l0,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c097-0,13-03,120,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c097-0,13-03,120,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c097-0,13-03,120,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-04-6-001000000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c097-0,13-03,120,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0
+
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0146.svg b/test/ns-afl-svg/0146.svg
new file mode 100644
index 0000000..3113872
--- /dev/null
+++ b/test/ns-afl-svg/0146.svg
@@ -0,0 +1,5 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0l0-0z" stroke="#000" fill="n0k00lud000e"/>0
+0<path d="M0,0h0l0,0v0l0,0#" fill="n0n00d"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-e="0" l="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0147.svg b/test/ns-afl-svg/0147.svg
new file mode 100644
index 0000000..4aa6ada
--- /dev/null
+++ b/test/ns-afl-svg/0147.svg
@@ -0,0 +1,8 @@
+<vg ts="0" Box="0" stroke-width="0">
+0
+0
+<![CDATA[0]]
+0
+0]]><Ê‹defs>0<![CDATA[0]]><Ê‹defs>
+0<Ê‹defs>
+0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0148.svg b/test/ns-afl-svg/0148.svg
new file mode 100644
index 0000000..1a64ed8
--- /dev/null
+++ b/test/ns-afl-svg/0148.svg
@@ -0,0 +1,78 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" gra_ieorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop sr="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<gp top-color="0" ot="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,0-00,00-00c00,0,00,0,00,00l0,00c0,0-0,00-00,00000ZZZZZZZZZZZZZZZZZ00000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="M00,00c0,0-8,00-20,00000000000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" cx="0" id="0" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00000000,00L0000000000000000000000000"/>
+0<path d="M00,00c097-0,13-00,120,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,00L000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-04-6-000080000000000000000000000000000000000000.0000000000000000.0000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c097-0,13-03,120,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-04-6-000080000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0149.svg b/test/ns-afl-svg/0149.svg
new file mode 100644
index 0000000..d98d6f7
--- /dev/null
+++ b/test/ns-afl-svg/0149.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" Box="0">
+0<rect style="fill:o0u0;" clip-path="0" id="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="'" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:o0u0;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0150.svg b/test/ns-afl-svg/0150.svg
new file mode 100644
index 0000000..921880a
--- /dev/null
+++ b/test/ns-afl-svg/0150.svg
Binary files differ
diff --git a/test/ns-afl-svg/0151.svg b/test/ns-afl-svg/0151.svg
new file mode 100644
index 0000000..cf4daf0
--- /dev/null
+++ b/test/ns-afl-svg/0151.svg
@@ -0,0 +1,361 @@
+<svg ĉ="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+</svg>0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0152.svg b/test/ns-afl-svg/0152.svg
new file mode 100644
index 0000000..6b8910f
--- /dev/null
+++ b/test/ns-afl-svg/0152.svg
@@ -0,0 +1,15 @@
+<svg xmlns="00000000000000000000000000" d="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient x1="0" y1="0" x2="0" y2="0" d="0">
+0<p ot="0" stop-colo0="0" p-0="0"/>
+0<sp e0="0" stop-color="0" ty="0"/>
+0<op ot="0" or="0" sy="0"/>
+0</linearGradient>
+0</defs>
+0<g transform="scale(9)">
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="#000000"/>
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="#000000"/>
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="u0s00ema000ar0000"/>
+0<path fill="none" stroke="#000" stroke-width="6" d="M0 0A0 0 0 0 0 0,0A0 0 0 0 0 0 00z" transform="matrix(0,0,0,0,0,0"/>
+0<rect fill="#000" stroke="none" width="0" height="0" x="0" y="0" transform="matrix(0..0.0,0,0,0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0153.svg b/test/ns-afl-svg/0153.svg
new file mode 100644
index 0000000..56534f4
--- /dev/null
+++ b/test/ns-afl-svg/0153.svg
@@ -0,0 +1,92 @@
+<svg xmlns="0000000000" o="0" t-x="0">
+0<defs>
+0<linearGradient id="py0ello0" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="c0t0" offset="0"/>
+0
+0<dp r="0" f="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,0c00,0,00,0,20,120c0,0-0,00-10,12l-24,0c00,0-00,0-14,10l0,00l-9,0c00,0-00-0-10-20c0-00,0-00,0-20,0,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="0" cx="z" id="0" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000000"/>
+0<path d="M70,80c000-0,00-00,100,50v1" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0000" style="fill: url(#00000" fill="url(#0000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l000M0000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="000,0000,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" c="0" y="0" fill="url(#py0ello0)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ello0)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,00000,000000000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000e)"/>
+0<path d="M00,80c000-0,00-00,124,50v1" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle s="0" cx="v" fill="url(#py0ello0)"/>0
+0<cirCle r="0" cx="0" y="0" l="0"/>
+0<circle r="0" cx="0" y="0" fi="0"/>0
+0<path d="0" cx="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" y="0" ll="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" y="0" i="0"/>
+0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" y="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" y="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" y="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" y="0" fill="0"/>
+0<circle r="0" cx="0" y="0" fill="0"/>0
+0<path d="0" cx="0" u="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" y="0" fill="0"/>
+0<circle r="0" cx="0" y="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0" cx="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" y="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" y="0" fill="0"/>
+0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" y="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" id="0000" tyle="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" y="0" fill="0"/>
+0<circle r="0" cx="0" y="0" fill="0"/>0</svg>
diff --git a/test/ns-afl-svg/0154.svg b/test/ns-afl-svg/0154.svg
new file mode 100644
index 0000000..ef45e58
--- /dev/null
+++ b/test/ns-afl-svg/0154.svg
@@ -0,0 +1,35 @@
+<?l?>
+<svg version="0" xmlns="0000000000">0<circle d="0" cx="0" cy="0" r="5" stroke="l0s00aic0"
+stroke-width="3"/>0
+0
+0
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g d="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0w00aic0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/0155.svg b/test/ns-afl-svg/0155.svg
new file mode 100644
index 0000000..878ba9d
--- /dev/null
+++ b/test/ns-afl-svg/0155.svg
@@ -0,0 +1,23 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(0)">
+0<stop stop-color="rg00000000000" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="00000000000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,00-20,120,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,0,00000000000 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" z="0" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: u0l0;" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="00000000000000000000000" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0156.svg b/test/ns-afl-svg/0156.svg
new file mode 100644
index 0000000..13249d8
--- /dev/null
+++ b/test/ns-afl-svg/0156.svg
@@ -0,0 +1,8 @@
+<svg xmlns="000000000000000000" W="0">
+0<path d="M00,0h00l00,00v00l0,00h000l000-00v0z" stroke="#000" fill="v0n0"/>0
+0<path d="M00,0h00l00,00v00l0,00h000l000-00v0z" fill="#000"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00v00l0,00h000l000-00v0z" stroke="#000" fill="v0n0"/>0
+0<path d="M00,0h00l00,00v00l0,00h000l000-00v0z" fill="#000"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0157.svg b/test/ns-afl-svg/0157.svg
new file mode 100644
index 0000000..240b523
--- /dev/null
+++ b/test/ns-afl-svg/0157.svg
@@ -0,0 +1,27 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="000p0000000000000000000000" xmlns:k="0" xmlns:sodipodi="00" xmlns:inkscape="0t" width="0" height="0" id="0" sodipodi:on="0" inkscape:von="0" sodipodi:doe="0" inkscape:output_extension="0">
+0<defs id="0">
+0<linearGradient id="linearGradient0100" gradientUnits="00000000000000" x1="0" y1="0" x2="0" y2="0">
+0<stL l0="0"
+et="0"
+d="0"/><!--0-->0<svg
+xmlns:k="0" xmlns:ape="0t"
+th="0" height="0" id="0" sodipodi:ion="0" inkscape:von="0" sodipodi:docname="0"
+ape:output_extension="0">
+0<defs id="0">
+0<linearGradient id="0" s="0" x0="0" y0="0" x2="0" y2="0">
+0<stop style="stop-color:000;" offset="2"
+d="0"/>
+0<stov
+le="0"
+set="0" id="0"/>
+0</linearGradient>
+0</defs>
+0<g inkscape:label="0" inkscape:groupmode="0" id="0">
+0<rect yle="0" id="0" dth="0" height="0" x="0" y="0"/>
+0</g>0</svg></linearGradient>
+0</defs>
+0<g inkscape:label="0" inkscape:groupmode="0" id="0">
+0<rect style="fill:url(#linearGradient0100);" id="0" width="0" height="0" x="0" y="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0158.svg b/test/ns-afl-svg/0158.svg
new file mode 100644
index 0000000..158ed26
--- /dev/null
+++ b/test/ns-afl-svg/0158.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="0000000000" c="0" r="0" style="fill:g0e00oke000dt0000000" transform="0">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="0" r="1" style="fill:g0e00oke000dt0000000" trore="0" transform="translate(0,0)"/>
+0<ciRcle Ox="0" cy="cm" r="1" style="fill:stroke:00000000000000000000000" trore="0" transform="translate(0,0)"/>
+0<ciRcle Ox="0" cy="cm" r="1" style="fill:00stroke:000000000000000" transform="0"/>0<circle cx="cm" cy="cm" r="1" style="fill:g0e00oke000dt0000000" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00oke000dt0000000" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0159.svg b/test/ns-afl-svg/0159.svg
new file mode 100644
index 0000000..158a986
--- /dev/null
+++ b/test/ns-afl-svg/0159.svg
@@ -0,0 +1,31 @@
+<?l?>
+<svg version="0" xmln="0" width="0" height="0" style="0" n="0">
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0m00ric000or00000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/0160.svg b/test/ns-afl-svg/0160.svg
new file mode 100644
index 0000000..5be3a9b
--- /dev/null
+++ b/test/ns-afl-svg/0160.svg
@@ -0,0 +1,40 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="v0e0" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>0
+0
+0<stop stop-color="#000" offset=".4" cy="0" ll="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0,0-0,00-00,000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="00000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00000000,000000000000000000000000000000000000000=00,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<patj d="0" id="0" ty="0" fl="0"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0161.svg b/test/ns-afl-svg/0161.svg
new file mode 100644
index 0000000..0664eb7
--- /dev/null
+++ b/test/ns-afl-svg/0161.svg
@@ -0,0 +1,133 @@
+<svg s="0" vietBox="0">
+0<defs>0<linearGradient id="py0ello0" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="u0s00v" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000,000000,0000" Z="0"/>
+0<path d="M00,00c0,000,000000-0,0-00,0c0,000,00000,0000000000000000000000000000000000000000000000000000000000000,000,0,0000,000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000000000000000000000000000000000000000 0000070000000000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000,00000000,000,0000000000000000000,00000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000,00" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,104,50v1" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-0S0000000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l00,00000000000000000=00,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00(000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M70,87c0,73-030-20-6-24108.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ello0)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ello0)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,00-00,00,00-00,000000,000,0000,000,0l0,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M04,80c090-0,00-00,124,50v1" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ello0)"/>0
+0<cZrcle r="0" fl="0"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="1" fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,000000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#0000)"/>
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#py0ello0)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M70,80c0,73-230-20-0-24100.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ello0)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ello0)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0
+
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0162.svg b/test/ns-afl-svg/0162.svg
new file mode 100644
index 0000000..bcfbdb1
--- /dev/null
+++ b/test/ns-afl-svg/0162.svg
@@ -0,0 +1,7 @@
+<svg v='0' xmlns='000' fill='s0q00rer' ke='0'>
+0<path d='000000000000000000000000000000000000000' fill='s0b00tax000nc00000' stroke='black'/>0
+0<path d='00000000000000000000000000000000000000000000' fill='s0_00tax000nc00000' stroke='black'/>0
+0<path d='M00,000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000' fill='s0_00tax000nc00000' stroke='black'/>0
+0<path d='M00,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0000' fill='s0_00tax000nc00000' stroke='black'/>0
+0<path d='M00,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,c000,000,00000' fill='s0_00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,00000,000000,0c0,0,000,000000,000,0000000,0000,00000000000,0000000,0000,0000000000000000000,000000000,000,0,0,0000,0,00,00,00,00000,000,000000000000000000' fill='s0l00tax000nc00000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/0163.svg b/test/ns-afl-svg/0163.svg
new file mode 100644
index 0000000..48afa14
--- /dev/null
+++ b/test/ns-afl-svg/0163.svg
@@ -0,0 +1,30 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>0<stop stop-color="u0s00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000,00000000,0000,0000,0000,0000,0000000000,0000,00000000000,0000,0000,000000000000,000000000000000000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="0000"/>0
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#00000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,00,0,00,0000,0000,00000,000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000000" l="0"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-8,10-20,020,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#000000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000000000,000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0164.svg b/test/ns-afl-svg/0164.svg
new file mode 100644
index 0000000..f69f405
--- /dev/null
+++ b/test/ns-afl-svg/0164.svg
@@ -0,0 +1,9 @@
+<svg viewBox='0 0 1 1' xmlns='000000000000000000'>0<path d='0000000000000000000000000000'/>
+0<path d='M00,00l000-0l00-0l000-00l00,00l0-000l0,00l00-00l000,00l00,0l000,0l00,00l000-00l00,00z' fill='#000' stroke='c0b0'/>
+0<path d='00000000' nb='0' fill='#000'/>0
+0<path d='M00,00l000-0l00-0l000-00l00,00l0-00l0,00l00-00l000,00l00,0l000,0l00,00l000-00l00,00z' fill='#000' stroke='c0b0'/>
+0<path d='M0,00000l000000000000000000000000000000000000000000000000' Fl='0' stroke='c0b0'/>
+0<path d='M0,00l00' b='0' fill='#000'/>
+0
+0
+</svg>
diff --git a/test/ns-afl-svg/0165.svg b/test/ns-afl-svg/0165.svg
new file mode 100644
index 0000000..9bef993
--- /dev/null
+++ b/test/ns-afl-svg/0165.svg
@@ -0,0 +1,117 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' he='0' fill='black' stroke='red'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00wel000'/>0<c cx='0' cy='0' r='0' fill='0'/>0<path d='M000 0A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" n="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" fill="none" s="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g m="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="00000">&i;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport2;</g>
+0<g d="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg o="0" Box="0"
+h="0" heé00="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg pro="0" vix="0"
+idth="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presctRatio="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g m="0"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" wid_h="0" height="0">&Smile;</svg></g>
+0<g m="0"><text y="0">0</text>&Viewport2;
+0<svg tiv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g m="0"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&Viewport2;
+0<svg pspecBox="0" width="0" height="0">&Smile;</svg></g>
+0<g trunsform="0"><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000000000000000000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" wid_h="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport2;
+0<svg tiv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="000000000000000"><text y="0">0</text>&Viewport2;
+0<svg pspecBox="0" width="0" height="0">0
+0&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pdth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg preRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0166.svg b/test/ns-afl-svg/0166.svg
new file mode 100644
index 0000000..bffc854
--- /dev/null
+++ b/test/ns-afl-svg/0166.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="T0,0h0l0,0v0l0,0h000l000-00v0z" stroke="#000" fill="none"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0167.svg b/test/ns-afl-svg/0167.svg
new file mode 100644
index 0000000..50c2a91
--- /dev/null
+++ b/test/ns-afl-svg/0167.svg
@@ -0,0 +1,246 @@
+<svg xmlns="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="o0s00n" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000000000,0000,000000000,0000000,000000,0000" fill="url(#0000)"/>
+0<path d="M00,00c0,000,00000000,0-0000000000000000000000000000000000000000,000,0000000000,00000000000000000=00,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,,000,00v0" fill="url(#0000)"/>
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="0" cx="0" cy="0" fill="#000"/>
+0<path d="000,00000000000000000000000000000000"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="0" cx="0" cy="0" fill="#000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,000000,0000,000,000,000M000000 0" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-0000000000" fill="u0e0"/>
+0<path d="M74,87c0,73-230-20-0-24108.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#005000000000000000000000000000000000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000000000000000000800000000000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<ctrCle r="0" x="0" y="0" fill="0"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,70-000-00-60.800,103.0000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="u000000000000"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,100-00l0-02c0-0,0-00,-20000.000000000000,000.0000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx=")"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,100-00l0-02c0-0,0-00,-20000.000000000000,000.0000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-000v0" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,120-10l0-20c0-0,0-12,10-00l20,0c0,0,00-0,14-15l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fll="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0168.svg b/test/ns-afl-svg/0168.svg
new file mode 100644
index 0000000..bb0bcbd
--- /dev/null
+++ b/test/ns-afl-svg/0168.svg
@@ -0,0 +1,273 @@
+<svg xmlns="00000000000000000000000" fill="0" n="0">
+0<script ype="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="0" e="0">
+0<circle id="0" cx="0" cy="0" r="0" stroke="0"
+stroke-width="0"/>
+0<text x="0" y="0">0</text>
+0<lefè00>0
+0
+0<linent id="0" grorm="0">
+0
+0<lefè00 m="">
+0<lefè00 m="">
+0<lefè00 x="">
+0
+0<lefè00 m="">
+0<lefè00 g="">0 0<lefè000 s="" B="">
+0<lefè00 m="">
+0<lefè00 m="">
+0<lefè00>
+0<lefè00 m="">
+0<lefè00 m="">
+0<lefè00>0
+0
+0<lefè00 m="">
+0<lefè00>0 0<lefè000>
+0<lefè00>
+0<lefè00>
+0<lefè00 x="">0
+0<defs>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè000>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>0
+0<lefè00>
+0<lefè00 x="">0 0<lefè000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0<lefè00 m="">
+0<le>
+0
+0<lefè00>
+0<Pefè00>0 0<lefè000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0<defs>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000 s="">
+0<lefè00>
+0<lefè00 m="">
+0<lefè00 B="">
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<le>
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lVfè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000 x="">
+0<lefè00>
+0
+0
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>0 0<lefè000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0
+0
+0<lefè00>
+0<leWè00>0 0<lefè000>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>0<lefè00>
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0<defs>0
+0
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<leWè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0<lefè00>
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0<defs>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè000>
+0<lefè00>
+0<le>
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>0
+0
+0<defs>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<le>
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0è00 \ No newline at end of file
diff --git a/test/ns-afl-svg/0169.svg b/test/ns-afl-svg/0169.svg
new file mode 100644
index 0000000..782c197
--- /dev/null
+++ b/test/ns-afl-svg/0169.svg
@@ -0,0 +1,371 @@
+<svg width="g" viewBox="0 0 1 1">0<defs>0<linearGradient id="pyYellow" a_m="0">0<stop stop-color="#000" offset=".6"/>0<stop stop-color="000"/>
+0<stop stop-color="q0a0" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop s="0" offset="t" style="0" fl="0"/>
+0<h d="0" fl="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0000000000000000000000000000000000"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="00000000000000000000000000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l000 0000-00 000-000 00000 000000,00000000000000000=0000000000000000000000000000000000000000000000" id="0000" style="fill: u00000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-6-00000000007000000000000000000000000000000000000 0000000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,5,00-2,00l-50-00000,c0,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fl="0"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCme r="0" cx="0" cy="0" fl="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000e)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000ac000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,004-00l0-00c0-0,0-00,10-10l24,0c0,0,00-0,04-15l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" f="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-10l24,0c0,0,00-0,14-15l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0170.svg b/test/ns-afl-svg/0170.svg
new file mode 100644
index 0000000..d060dd4
--- /dev/null
+++ b/test/ns-afl-svg/0170.svg
@@ -0,0 +1,92 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>0
+0<stop stop-color="rgb(0llo000fa000000"/>0
+0<cirCle r="0" x="0" y="0" fill="0"/>
+0<circle r="0" x="0" y="0" offset="0"/>
+0<stop p-c="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,0-00,00,000,00,0c00,0,0000,00000000,000000000,0000000,000000,0000" fill="url(#0000)"/>
+0<path d="M00,000l0,000-0,0c00,0-00-0-00-00c0-00,0-00,00-00l00,0l0-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,00000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy=")"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000,0000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#00=00"/>
+0<path d="M70,80c090-0,00-00,120,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,000000-0,00-00,000-00l00000000,0000,00000000,000,00,000,0000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#00=00"/>
+0<path d="000,00000000,00000,0000,0000,000000000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c097-0,00-0,0,03,0,00,00c0,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#00=00"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,000,00-00,000-00000000000,0000,000000000000000,000000000000=00,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M700,160c0,10,5,27-2,48l-50-175c0,0,0-00300 14-49-50 00-80 000-59 120
+-70 000-139 000-80-40-00000000000000000000000000000000000000000000000000000000i0000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,000000000000000000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#00=00"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#0000)"/>
+0<pAth d="000,0000,000,0000000000000000000000000000000000000000,0000000,0000000000000000000,000000,000000000000000,0000,00000000,000,0000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00" style="fill: url(#000000" fill="url(#00=00"/>
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,,00000000c00000,00000,000000000000000,0000,00000000,000,0,000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00000,00000000 0 00000000,00000000 000000,000000000z" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000000000,000000,000,0000,000,000,000000000000000000000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,00000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000,00000000000000000000000000000,000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,000,00000000,0c0,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,0000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,00,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,80c090-8,00-20,104-10l0-20c0-7,0-12,12-12l00c00000,00000,000000000000000,0000,00000000,000,0,000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,000000000000000000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#0000)"/>
+0<pAth d="000,0000,000,000000000000,0000000000" id="0" style="fill: ur00000000000000" fill="u0e0"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00000,0000000000 0000@000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00-00-00-000 000-0 000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="c" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0171.svg b/test/ns-afl-svg/0171.svg
new file mode 100644
index 0000000..c855af1
--- /dev/null
+++ b/test/ns-afl-svg/0171.svg
@@ -0,0 +1,27 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:xlink="00" xmlns:sodipodi="00" xmlns:inkscape="0t" width="0" height="0" id="0" sodipodi:ersion="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs id="0">
+0<linearGradient id="0">
+0<stop le="0" offset="0" id="0"/>
+0<stop sle="0" et="0" id="0"/>
+0</linearGradient>
+0<linearGradient xlink:href="0" id="linearGradient0100" x1="0" y1="0" x2="0" y2="0" gradientUnits="0" gradientTransform="scale(0,0)translate(0,0)rotate(0)scale(0,0">
+0</linearGradient>
+0<radialGradient id="000000000000000000">
+0<stop yle="0" offset="0"/>
+0<stop e="0" ot="0"/>
+0</radialGradient>
+0<radialGradient xlink:href="0" id="000000000000000000" cx="0" cy="0" fx="0" fy="0" r="0"
+ts="0"
+rm="0">
+0</radialGradient>
+0</defs>
+0<g>
+0<rect style="fill:url(#linearGradient0100);" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="fill:url(#r00000000000000000);" id="0"
+tl="0" height="0" x="0" y="0"/>0
+0<rect id='0' x="0" y="0" width="0" height="0" rx="0" ry="0" style="fill:#000000;stroke:000000 stroke-width:10px;"/>
+0
+0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0172.svg b/test/ns-afl-svg/0172.svg
new file mode 100644
index 0000000..8ee5b03
--- /dev/null
+++ b/test/ns-afl-svg/0172.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE s00 PUBLIC "0" "0">
+<svg r="0" style="fill:p0o00rsv0">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e0 stroke:black;" transform="0000000,0"/>0
+0<circle cU="0" cy="cm" r="1" style="fill:g0e0 stroke:black;" transform="0,00000000,0000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e0 stroke:black;" transform="0000000000000,0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0173.svg b/test/ns-afl-svg/0173.svg
new file mode 100644
index 0000000..49e8bb6
--- /dev/null
+++ b/test/ns-afl-svg/0173.svg
@@ -0,0 +1,57 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="000000000000000000" xmlns:k="0" xmlns:sodipodi="0" style="fill: s0y00blu0;" xmlns:inkscape="000" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlu inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+eight="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" ip-path="0" id="0" width="0" height="0" x="0" y="0"/>
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+eight="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" ip-path="0"
+d="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill: s0y00blu0;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill: s0y00blu0;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0174.svg b/test/ns-afl-svg/0174.svg
new file mode 100644
index 0000000..31cff64
--- /dev/null
+++ b/test/ns-afl-svg/0174.svg
@@ -0,0 +1,117 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='red'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='c'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M000 000A00000000' stroke-width=' ' stroke='black' strokg-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='a0u0'/>">]><svg width="px" height="30px" on="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" ht="0"
+fill="none" stroke="b0u0"/>
+0<g fze="0">
+0<text x="0" y="0">0</text>
+0<g trm="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport0;</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" vie="0"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg psctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg esctRatio="0" ew="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pectRatio="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prt="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg eservRtio="0" viewBox="0 0 3 4" width="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg psetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg pectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" vix="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&t;
+0<svg preseAsp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0175.svg b/test/ns-afl-svg/0175.svg
new file mode 100644
index 0000000..2ca81b4
--- /dev/null
+++ b/test/ns-afl-svg/0175.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill: i0b00e;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0176.svg b/test/ns-afl-svg/0176.svg
new file mode 100644
index 0000000..070699e
--- /dev/null
+++ b/test/ns-afl-svg/0176.svg
@@ -0,0 +1,28 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M00,0h000000000000" stroke="#000" fill="d0v0"/>0
+0<path d="M00,0000l00,00000l000000000000000000-000" fill="#000"/>0
+0
+0<path d="M00,0000l0000000000000000-00l000-00v000z" stroke="#000" fill="d0v0"/>0
+0<path d="M00,0000l00,0000l000-00v000z" stroke="#000" fill="d0v0"/>0
+0<path d="M00,0000l00,00000l000,00h000l000-00v000z" fill="#000"/>0
+0
+0<path d="M00,0000l00,00000l000,00h000l000-00v000z" stroke="#000" fill="d0v0"/>0
+0<path d="M00,0000l00,0000000000000s0000000000000" fill="#000"/>0
+0
+0<path d="M00,0000l00,00v00l0000000-00000000000000000000000000000000000000-0000000" stroke="#000" fill="d0v0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="d0v0"/>0
+0<path d="M00,0h00l00,0000l000-00v000z" stroke="#000" fill="d0v0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="d0v0"/>0
+0<path d="M00,0h00" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l00000000000000000000000000000" fill="#000"/>0
+0
+0<path d="M00,0h00l00-00z" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/0177.svg b/test/ns-afl-svg/0177.svg
new file mode 100644
index 0000000..0bf3f5e
--- /dev/null
+++ b/test/ns-afl-svg/0177.svg
@@ -0,0 +1,19 @@
+<svg xmlns="00000000000000000000000000" xmlns:k="0" viewBox="0 0 1 2">
+0<radialGradient o="0" x="0" c="0" r="0" s="0"><p t="0" p-c="0"/><p ot="0"/></radialGradient>
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000C000,00 00,00 00,000C000,00 00,00 00,00" i="0" fill="urc00cle00"/>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" g="0"><sp ot="0" sp-c="0"/><sp ot="0"/></radialGradient>
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000C00000000 00,00 00,00 00,00" id="0" fill="urc00cle00"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c000000000000000 00,00 00,00 00,00" id="0" fill="urc00cle00"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c000,0-00000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0" id="0" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000c0000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0178.svg b/test/ns-afl-svg/0178.svg
new file mode 100644
index 0000000..7f69ec3
--- /dev/null
+++ b/test/ns-afl-svg/0178.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle l0="0" cy="cm" r="1" style="fill:r0d0 stroke:black;" wransform="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0a00blu000e stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" s="0" style="stroke:b0a00blu000e" transforx="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0179.svg b/test/ns-afl-svg/0179.svg
new file mode 100644
index 0000000..1e00b08
--- /dev/null
+++ b/test/ns-afl-svg/0179.svg
@@ -0,0 +1,35 @@
+<?m?>
+<!DOCTYPE s00 PUBLIC "0" "0">
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0--><!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0--><!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0--><!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0--><!--0-->
+<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0180.svg b/test/ns-afl-svg/0180.svg
new file mode 100644
index 0000000..af1a461
--- /dev/null
+++ b/test/ns-afl-svg/0180.svg
@@ -0,0 +1,98 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='i' fill='l0_00anc000ey'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00w'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='b0i00'/>0<path d='M000 0A00 0 0 0 0 00 00' stroke='black' otroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='d'
+fill='n0s0' stroke='blue'/>">]><svg width="px" hei="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" fill="none" s="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g m="0">&Smile;</g>0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport0;</g>
+0<g d="0" transform="000000">0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+h="0" t="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg pro="0" vix="0"
+idth="0" e="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+h="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" vox="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg preserveetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg preecight="0">&Smile;</svg></g>
+0<g tvansform="0"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg preectRatio="0" viawBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g trensform="0"><text y="0">0</text>&i;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0181.svg b/test/ns-afl-svg/0181.svg
new file mode 100644
index 0000000..438ca19
--- /dev/null
+++ b/test/ns-afl-svg/0181.svg
@@ -0,0 +1,45 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a00iew000"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,0c0,0-0,00-00,00ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="00000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" l="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="00000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c097-8,03-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000000000000000000000000000000000000000000000000000000000000000000000000000000=0000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,03-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="0000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0182.svg b/test/ns-afl-svg/0182.svg
new file mode 100644
index 0000000..bbe6896
--- /dev/null
+++ b/test/ns-afl-svg/0182.svg
@@ -0,0 +1,379 @@
+<svg xmlns="0000" fill="url(#pyYellow)" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" m="0">
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="#000" offset=","/>
+0
+0
+0
+0<path d="0" fill="0"/>0
+0<e r="0" x="0"/>
+0
+0<stop stop-color="#000" offset=".4"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#+00" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0,0-0,00-01,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: 0" fill="url000000000"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000000000000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#000e)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0000000000000l000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l-02-000c00000000" fill="u0e0"/>
+0<path d="M00,0000000000000000,000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000000000000000000000000000000000000M000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-00c0-0,0-00,02-00l04,00000000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-00-600000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="M00,00c0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#000w)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000e)"/>
+0<path d="M00,00000000,0000000000"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,020-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-00l0-00l9,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00000,00000,00000000000c000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000e)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" x="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000e)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000e)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" iill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-00c0-0,0-00,00-00l04,0c0,0,00-0,00-10l0-00l9,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000ac000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,10-00l04,0c0,0,00-0,04-10l0-00l9,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,120-00l0-00c0-0,0-00,02-00l00,0c0,0,00-0,14-10l0-10l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" iill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="ur00000000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,004-00l0-02c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" ficx="0" cy="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-02c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000w)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,124-00l0-02c0-0,0-00,10-00l24,0c0,0,00-0,14-10l0-10l9,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-02c000,0000,00000000,0c0,0,0000,000000000000,000,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" iill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AimCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0183.svg b/test/ns-afl-svg/0183.svg
new file mode 100644
index 0000000..14c42cf
--- /dev/null
+++ b/test/ns-afl-svg/0183.svg
@@ -0,0 +1,9 @@
+<svg Rs="0" xmlns:xlin0="0" viewBox="0 0 1 2">
+0<radialGradient id="0" cx="0" cy="0" r="0" grntUnits="0"><op ot="0" p-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M0,0A0,0 0,0,0 0,00C00,00 00,00 00,0C000,00 00,00 00,0C000,00 00,00 00,00" id="0" fill="l0c00cle00"/>0
+0<radialGradient id="0" cx="0" cy="0" r="0" g="0"><stop ot="0" top-c="0"/><stop ot="0"/></radialGradient>
+0<path d="000000000000000000000000000000000000000000000000000000000000000,00" id="0" fill="l0c00cle00"/>0
+0<radialGradient id="0" cx="0" cy="0" r="0" grntUnits="0"><stop ot="0" top-c="0"/><stop ot="0"/></radialGradient>
+0<path d="00000,00" id="0" fill="l0c00cle00"/>
+0<use xlin0:href="0" transform="0"/>0
+0<use xlin0:href="0" transform="0"/>0</svg>
diff --git a/test/ns-afl-svg/0184.svg b/test/ns-afl-svg/0184.svg
new file mode 100644
index 0000000..7883d9c
--- /dev/null
+++ b/test/ns-afl-svg/0184.svg
@@ -0,0 +1,47 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" rm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0
+0<stop stop-color="q0c00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0,0000000,0,00,0000,0000,00000000000000000,0000000000,000000,0000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0-8,00-20,000-000c000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#000000)"/>
+0<qAth d="0" ll="0"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0/0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,0000,000000,0000" fill="url(#00B00"/>
+0<pAth d="M00,00c0,0-8,00-20,000-0000000c000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#0000)"/>
+0<qAth d="0" fl="0"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0185.svg b/test/ns-afl-svg/0185.svg
new file mode 100644
index 0000000..0d93204
--- /dev/null
+++ b/test/ns-afl-svg/0185.svg
@@ -0,0 +1,14 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="c" cy="cm" r="1" style="fill:r000000000 stroke:" w="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0t00blu000e stroke-width:00m" transform="translate(0,0)"/>
+0
+0
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0t00blu000e stroke-width:00m" transform="translate(0,0)"/>
+0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0186.svg b/test/ns-afl-svg/0186.svg
new file mode 100644
index 0000000..8093f3c
--- /dev/null
+++ b/test/ns-afl-svg/0186.svg
@@ -0,0 +1,6 @@
+<svg xmlns="http0//0000000org/0000/svg" x="0">
+0<vg xmlns="http0//0000000org/0000/svg" ox="0">
+0<path d="0" stroke="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" xt-ar="0"><![CDATA[0]]><![CDATA[0
+0]]><![CDATA[0
diff --git a/test/ns-afl-svg/0187.svg b/test/ns-afl-svg/0187.svg
new file mode 100644
index 0000000..54cb3bd
--- /dev/null
+++ b/test/ns-afl-svg/0187.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" x="p" y="0" font-size="0" fill="#000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-0v00z" stroke="#000" fill="none"/>0
+0<path d="M0,0h0l0,0v0-" fill="#000"/>0
+0<text x="p" y="0" font-size="0" l="0" t-r="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0188.svg b/test/ns-afl-svg/0188.svg
new file mode 100644
index 0000000..c62adc8
--- /dev/null
+++ b/test/ns-afl-svg/0188.svg
@@ -0,0 +1,57 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='w0d00' stroke='red'/>0<g transform='translate(0,0)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='1' fill='black'/>0<circle cx='0' cy='0' r='5' f='0'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t "">
+<!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" n="0" xmlns="0000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="b0u0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport2;</g>
+0<g id="0" height="px" n="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="b0u0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&i;</g>
+0<text x="0" y="0">0</text>0<svg io="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg ro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&o;
+0<svg io="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg io="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg io="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg io="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg ro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg re="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg re="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg io="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg ro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg prtRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0189.svg b/test/ns-afl-svg/0189.svg
new file mode 100644
index 0000000..35bf0ae
--- /dev/null
+++ b/test/ns-afl-svg/0189.svg
@@ -0,0 +1,380 @@
+<svg s="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="pyYellow" rm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>0<stop stop-color="u0s00sty000s" offset="0"/>
+0</linearGradient>
+0
+0</defs>0
+0<path d="000000,0000000000000000000000000000000000000000,000,00000,000000,0000,0000,0000,0000,00000,0000,00000000000000000,0000,0000000000,000,0,0000000000000000000000000000,000000,000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" id="0000" style="fill: 000" fill="url00000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000000"/>
+0<path d="M00,00c097-0,13-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" id="0000" ye="0" fill="url(#0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l000,L0,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-000000000070000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-000000000070000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#00)"/>
+0<path d="M00,00c097-0,03-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,00"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c097-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" cy="0" fi="0"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,13-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fi="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fi="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,00..000,00000000 000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-00c0-0,0-00,02-00l20,0c0,0,00-0,00-10l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,03-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c097-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000 00000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-00c0-0,0-00,02-00l20,0c0,0,00-0,00-10l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#000000000"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0190.svg b/test/ns-afl-svg/0190.svg
new file mode 100644
index 0000000..a9f62bd
--- /dev/null
+++ b/test/ns-afl-svg/0190.svg
@@ -0,0 +1,14 @@
+<svg xmlns="00" iewBow="0">0<circle fill="#000" r="5" cx="0" cy="0"/>
+0<pathKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKnKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKbKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKMKKKext d="0" e="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKCKKKKKKKKKKKKKKTKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLLLLLLLLLLLLLLLt ty="0" rx="0"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/0191.svg b/test/ns-afl-svg/0191.svg
new file mode 100644
index 0000000..efcd92b
--- /dev/null
+++ b/test/ns-afl-svg/0191.svg
@@ -0,0 +1,9 @@
+<svg xmlns="0000000000" qie000x="0">
+0<I x="0"/>
+0<patKKKKKKKKKKKKKKKKex...................................................................................................................0.....KKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKRKKKKKKKKKKKKKKKKKKKKKKSKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLL............................................................................................................................2.....KKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKRKKKKKKKKKKKKKKKKKKKKKKSKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLLLLLLLLLLLLLLLt ty="0" rx="0"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/0192.svg b/test/ns-afl-svg/0192.svg
new file mode 100644
index 0000000..523b7dd
--- /dev/null
+++ b/test/ns-afl-svg/0192.svg
@@ -0,0 +1,37 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="6"/>
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000000000,00,0,00,000000000000000000000000000000000000000000000000000000000000000000000,0000" fill="url(#000000"/>
+0<pAth d="M00,00c0,0-8,00-23,024-0000000c000,0000,00000000,000000000000000000000000000000000000000000000000000000000000000000000,000,000,0000000,0000" fill="url(#py0ellow"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M70,80c090-8,10-20,100,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#00=00"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#000000)"/>
+0<pAth d="M00,00c0,0-8,00-23,024-00l00000000000000000000000000000000000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0/0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000 00-00 000-00 0000-00 000-000 000-00-0000000000000000000000000000000000000000000000000000000000000000000,0000000,00000000 000000,00000000000000000000000000000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,00,000,0000,0l0,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0193.svg b/test/ns-afl-svg/0193.svg
new file mode 100644
index 0000000..c5bce01
--- /dev/null
+++ b/test/ns-afl-svg/0193.svg
@@ -0,0 +1,18 @@
+<svg viewBox='0 0 1 1' xmlns='000p00000000000000'>
+0<linearGradient y1='0' x1='0' id='tgrad' gradientUnits='00000000000000'>
+0<stop stop-color='#000' offset='0'/>
+0<stop stop-color='#000' offset='0'/>
+0</linearGradient>0<path i0='0' stroke='url(#tgrad)' d='M0,0c0,0-0,0-0,0h0' fill='n0n00sta000lo0000000' stroke-width='6'/>0
+0
+0<linearGradient y0='0' x0='0' id='0' gnits='0'>
+0<stop sr='0' offset='0'/>
+0<stop stop-color='0' offset='0'/>
+0</linearGradient>0<path st-lin='0' stroke='url(#tgrad)' d='M0,0,0-0,0-0,0' fill='n0n00sta000lo0000000' stroke-width='6'/>0
+0
+0<linearGradient y0='0' x0='0' id='0' gnits='0'>
+0<stop sr='0' offset='0'/>
+0<stop stop-color='0' offset='0'/>
+0</linearGradient>0<path st-lin='0' stroke='url(#tgrad)' d='M0,0c0,0-0,0-0-0M0,0h0' fill='n0n00sta000lo0000000' stroke-width='6'/>0
+0
+
+0<path st-lin='0' stroke='url(#tgrad)' d='M0,0c0,0-0,0-0-0M0,0h0' fill='n0n00sta000lo0000000' stroke-width='6'/>0</svg>
diff --git a/test/ns-afl-svg/0194.svg b/test/ns-afl-svg/0194.svg
new file mode 100644
index 0000000..e11a9b9
--- /dev/null
+++ b/test/ns-afl-svg/0194.svg
@@ -0,0 +1,47 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="o0s00n" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000" fill="url(#00B00"/>
+0<path d="M00,00c00000,000000-0,0-00,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#00=00"/>
+0<path d="M70,00c090-0,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#00B00"/>
+0<pAth d="00000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 0000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M70,80c090-0,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,00,000,0000,0l000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,0000,0000,000000000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-0,0,10,0,00,00c0,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,000,00-00,000-00000000000,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000,000000,000000-0-00000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,00000000000000000000000000000000000000000-000 000-00-00-00-000 000-0 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,00,000,0000,0l0,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0195.svg b/test/ns-afl-svg/0195.svg
new file mode 100644
index 0000000..29159a0
--- /dev/null
+++ b/test/ns-afl-svg/0195.svg
@@ -0,0 +1,49 @@
+<svg width="0" Box="0">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="00000">
+0<stop stop-color="#0000s0" offset="0"/>
+0<stop stop-color="t0u0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<p op-cor="0" t="0"/>0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000" fill="url(#0000)"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#00000"/>0
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<ath d="0"/>0
+0<circle r="4" cx=")"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="0000" style="fill: url(#00000" fi0l="0"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="0000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cidCle r="0" c="0" cy="0" fill="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,000000000000000000000000000000000-0,00-00,00l000,0l0,0l00,0000)"/>
+0<ath d="0"/>0
+0<circle r="4" cx=")"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="0000" style="fill: url(#00000" fi0l="0"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0196.svg b/test/ns-afl-svg/0196.svg
new file mode 100644
index 0000000..2b2d4d4
--- /dev/null
+++ b/test/ns-afl-svg/0196.svg
@@ -0,0 +1,25 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="R" r="t" transform="translate(0,0)"/>0<circle cx="cm" cy="cm" r="1" style="fill:b0u00bla00;"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u00bla00;stroke-width:0K;" transform="translate(0,0)"/>0<circle cx="cm" cy="cm" r="1" style="fill:b0u00bla00;"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u00bla00;stroke-width:0K000" t="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u00bla00;"/>
+0<circle cx="cm" cy="0" r="1" style="fill:b0u00bla00;"/>
+0<circle cx="cm" cy="0" r="1" style="fill:b0u00bla00;stroke-width:000a00;" transform="translate(0,0)"/>0<circle cx="cm" cy="cm" r="1" style="fill:b0u00bla00;"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u00bla00;stroke-width:0K000" t="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u00bla00;"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u00bla00;stroke-width:0k;" transform="translate(0,0)"/>0<circle cx="cm" cy="cm" r="1" style="fill:b0u00bla00;"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u00bla00;stroke-width:0K000" trarx="0"/>
+0
+0
+0<circle cx="c" cy="cm" r="1" style="fill:green;stroke:black;" transform="translate(0,0)"/>0<circle cx="cm" cy="cm" r="1" style="fill:b0u00bla00;stroke-width:000a00;" transform="translate(0,0)"/>0<circle cx="cm" cy="cm" r="1" style="fill:b0u00bla00;"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u00bla00;stroke-width:0K000" trarx="0"/>
+0
+0
+0<circle cx="c" cy="cm" r="1" style="fill:green;stroke:black;" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0197.svg b/test/ns-afl-svg/0197.svg
new file mode 100644
index 0000000..2e6ad79
--- /dev/null
+++ b/test/ns-afl-svg/0197.svg
@@ -0,0 +1,15 @@
+<svg xmlns="00000000000000000000000000000000000000000000000" fill="url(#00)00" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="0000000000" width="0" height="0" id="0" sodipodi:ion="0" inkscape:von="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs id="0">
+0<linearGradient id="0" s="0" x0="0" y1="0" x2="0" y2="0">
+0<stop
+tyle="0"
+t="0"
+d="0"/>
+0<stop
+le="0"
+et="0" id="0"/>
+0</linearGradient>
+0</defs>
+0<g inkscape:label="0" inkscape:groupmode="0" id="0_">
+0<rect style="0" width="0" height="0" x="0" y="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0198.svg b/test/ns-afl-svg/0198.svg
new file mode 100644
index 0000000..a549481
--- /dev/null
+++ b/test/ns-afl-svg/0198.svg
@@ -0,0 +1,4 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='red'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='5' fl='0'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M0 0A0 0 0 0 0 0 0' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY V "">]><svg width="pc" height="px" version="0" xmlns="000000000000000000">
+0<g transform="matrix(0,0,0,0,0,0">
+0&Smile;
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0199.svg b/test/ns-afl-svg/0199.svg
new file mode 100644
index 0000000..0fea0b6
--- /dev/null
+++ b/test/ns-afl-svg/0199.svg
@@ -0,0 +1,119 @@
+<?l?><!DOCTYPE s000 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='e'/>0<g transform='translate(0)0'>0<circle cx='0' cy='0' r='1' fill='y0a00'/>0<circle cx='0' cy='0' r='5' fill='b0a00'/>0<path d='M0 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='b0u0'/>">]><svg width="px" height="30px" ion="0" xmlns="0000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" wth="0" he="0"
+fill="none" st="0"/>
+0<g f="0">
+0<text x="0" y="0">0</text>
+0<g tform="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&r;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&Viewport2;</g>
+0<g id="0" trarm="0">&Viewport2;</g>
+0<g id="0" trorm="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t;
+0<svg tio="0" Box="0"
+th="0" heé00="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg pro="0" vix="0"
+idth="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&t0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" view="0" vox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" wid_h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg tiv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pspecBox="0" width="0" height="0">&Smile;</svg></g>
+0<g trunsform="0"><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4"
+id_h="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport2;
+0<svg tiv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pspecBox="0" width="0" height="0">0
+0&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pdth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preRatio="0" viewBox="0 0 3 9" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0200.svg b/test/ns-afl-svg/0200.svg
new file mode 100644
index 0000000..deed96c
--- /dev/null
+++ b/test/ns-afl-svg/0200.svg
@@ -0,0 +1,13 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 0 0">
+0<CDATApath d="0" se="0" fill="0"/>0
+<EMPTYpath d="0" fill="0"/>0
+0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKh d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKOKKKKKKKKKK0KKKKKKipLLLLLLLLLLLLLLLLLLLt y="0" rx="0"/>
+0
+0
+0
+</svg>
diff --git a/test/ns-afl-svg/0201.svg b/test/ns-afl-svg/0201.svg
new file mode 100644
index 0000000..cf9247e
--- /dev/null
+++ b/test/ns-afl-svg/0201.svg
@@ -0,0 +1,9 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0l0,0l0,0h0l0-0z" stroke="s0q0" fill="n0e0"/>0
+<path d="M0,0h0l0-0z" fill="#K00"/>0
+<path d="M0,0h0l0,0v0l0,0h0l0-0v00z" stroke="s0q0" fill="n0e0"/>0
+0<path d="M0,0h0l0,0v0l0,0l0-0v00z" fill="#K00"/>0
+0<text x="0" y="0" nt-se="0" fill="0" t-r="0"><![CDATA[0]]></text>
+0<path d="M00,0h00l00,00v00l000,00h0l0-00v000z" stroke="s0q0" fill="n0e0"/>0
+0<path d="M00,0h00l00,00v00l000,00l0-00v000z" fill="#K00"/>0
+0<text x="0" y="0" nt-se="0" fill="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0202.svg b/test/ns-afl-svg/0202.svg
new file mode 100644
index 0000000..95ab927
--- /dev/null
+++ b/test/ns-afl-svg/0202.svg
@@ -0,0 +1,72 @@
+<svg Ks="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" et="0"/>
+0<stop stop-color="000"/>
+0<stop st="0"/>
+0
+0<stop stop-color="#000" offset=".4"/>
+0
+0
+0<stop stop-color="#000" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0" ra_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="000000" offset="0"/>
+0
+0
+0<stop stop-color="url(#000000)" ll="0"/>
+0<path d="0" of="0"/>
+0
+0<stop or="0" of="0"/>
+0<stop sr="0" of="0"/>
+0
+0<stop st="0" of="0"/>
+0
+0
+0<stop sr="0" ot="0"/>
+0
+0<stop sr="0" offset="0"/>
+0<ì000 t=""/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient></defs>0
+0<path d="0"/>0
+0<circle r="0" cx="0"/><ou st="0" et="0"/>
+0
+0<st sr="0" ot="0"/>
+0<sp op-c="0" et="0"/>0</linearGradient>
+0</defs>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00000000?0000,000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000 00-00-00 00-00 000-00 0000-000000 000000,00000000 0" id="0" style="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0203.svg b/test/ns-afl-svg/0203.svg
new file mode 100644
index 0000000..2428e1d
--- /dev/null
+++ b/test/ns-afl-svg/0203.svg
@@ -0,0 +1,15 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h00l00,00v00l0,00h000l000-00v000z" stroke="#000" fill="n0n00e"/>0
+0<path d="M00,0h00l0000000000000000000000000000000000000-00,00h000000000000000" stroke="#000" fill="n0n00e"/>0
+0<path d="M00,0h00000000i000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#000" fill="n0n00e"/>0
+0<path d="M00,0h00l00,00000000s0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000"/>
+0
+0
+0<path d="M000000000000000,0000000000C000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0204.svg b/test/ns-afl-svg/0204.svg
new file mode 100644
index 0000000..1e1a2f5
--- /dev/null
+++ b/test/ns-afl-svg/0204.svg
@@ -0,0 +1,20 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h00l00,00v00l000,,00h000l000" stroke="#000" fill="m0n0"/>0
+0<path d="M00,0h00l00,00v000C00,000" stroke="#000" fill="m0n0"/>0
+0<path d="M00,0000l00,00v000C00,00000" stroke="#000" fill="m0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0
+0
+0
+0
+0
+0
+0<path d="M00,0h00l00,00v000C00,000" stroke="#000" fill="m0n0"/>0
+0
+0
+0
+0
+0
+<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+f="0"
+t="0"/>0</svg>
diff --git a/test/ns-afl-svg/0205.svg b/test/ns-afl-svg/0205.svg
new file mode 100644
index 0000000..8af6490
--- /dev/null
+++ b/test/ns-afl-svg/0205.svg
@@ -0,0 +1,212 @@
+<svg s="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="py0ellow" grorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop top-color="0" offset="0"/>
+0<stop stop-color="a0s00s" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000" y="0" ll="0"/>
+0
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="z" id="0000" style="fill: url(#rad,0Z" fill="url(#000000)"/>0
+0
+0<pAth d="M00,00c0,000,00-00,000-00l00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="z" id="0000" style="fill: url(#000000" fill="url(#000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00,0,00,00c0,00-0,00-00,00l000,0l0,00000000)00000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-00000000007000000000000000000000000000000000000 0000000000000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-60.870,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx=")"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c00000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fSll="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,0000000000000000000000000)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circue r="0" fill="0"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0206.svg b/test/ns-afl-svg/0206.svg
new file mode 100644
index 0000000..d930e05
--- /dev/null
+++ b/test/ns-afl-svg/0206.svg
@@ -0,0 +1,79 @@
+<svg lns="" viewBox="0 0 1 1">0<path d="M00,0h00l00,000l" e="0" ill="0"/>0
+0
+0
+<svg s="0" viewBox="" fill="m&lt;o"/>0
+0&lt;0
+0
+0
+<svg s="0" viewBox="" fill="m&lt;o"/>0
+0
+0&lt;0
+0
+0
+<svg olns="0" viewBox="0">
+0<path d="M00,0h00l00,00v0h000l000-00v0z" stro="0" fill="m&lt;o"/>0
+0
+0
+<svg lns="0" viewBox="" fill="m&lt;o"/>0
+0<path d="M00,0h00l00,0,00" e="0" fill="m&lt;o"/>0
+0
+0
+<svg olns="0" viewBox="" fill="m&lt;o"/>0
+0
+0
+<svg
+olns="0" viewBox="" fill="m&lt;o"/>0
+0
+0&lt;0
+0
+0
+</svg>
+0
+<svg lns="0" viewBox="" fill="m&lt;o"/>0
+0
+0
+<svg olns="0" viewBox="0">
+0<path d="M00,0h00l00,00v00l0,00h000l000-00v0z" stroke="000000000000000000000" e="0" fill="m&lt;o"/>0
+0
+0
+<svg olns="0" viewBox="" fill="m&lt;o"/>0
+0<paQh d="0" ke="0" fill="0"/>0
+0
+0
+<svg s="0" viewBoke="0" ke="0" fill="m&lt;o"/>0
+0
+0
+<svg lns="0" viewBox="" fill="m&lt;o"/>0
+0<path d="M00,0h00l00,0,00" ke="0" fill="m&lt;o"/>0
+0
+0
+<svg olns="0" viewBox="" fill="m&lt;o"/>0
+0
+0
+<svg olns="0" viewBox="" fill="m&lt;o"/>0
+0
+0&lt;0
+0
+0
+</svg>
+0
+<svg lns="0" viewBox="" fill="m&lt;o"/>0
+0
+0
+<svg olns="0" viewBox="0">
+0<path d="M00,0h00l00,00v00l0,00h000l000-00v0z" stroke="000000000000000000000" ke="0" fill="m&lt;o"/>0
+0
+0
+<svg olns="0" viewBox="" fill="m&lt;o"/>0
+0<paQh d="0" ke="0" fill="0"/>0
+0
+0
+<svg s="0" viewBox="" fill="m&lt;o"/>0
+0
+0
+<svg lns="0" viewBox="" fill="m&lt;o"/>0
+0
+0&lt;0
+0
+0
+</svg>0</svg>
diff --git a/test/ns-afl-svg/0207.svg b/test/ns-afl-svg/0207.svg
new file mode 100644
index 0000000..d53c9fa
--- /dev/null
+++ b/test/ns-afl-svg/0207.svg
@@ -0,0 +1,7 @@
+<svg xmlns="00000000000000000000000000" viewBod="0">
+0<path d="M00,0h00l00,00v00l000000" stroke="#000" fill="o0a00e"/>0
+0<path d="00000000000000000000000" stroke="#000" fill="o0a00e"/>0
+0<path d="0000000000000000000000000000000,000000000000000000" stroke="#000" l="0"/>0
+0<path d="M00,0h00l00,00v00l000,0l000-0B0" stroke="#000" fill="o0a00e"/>0
+0<path d="000,000,00000" fill="#000"/>0
+</svg>
diff --git a/test/ns-afl-svg/0208.svg b/test/ns-afl-svg/0208.svg
new file mode 100644
index 0000000..2430248
--- /dev/null
+++ b/test/ns-afl-svg/0208.svg
@@ -0,0 +1,139 @@
+<?l?>
+<svg version="0" xmlns="0000000000">0<circle d="0" cx="0" cy="0" r="5" stroke="l0s00aic0"
+stroke-width="3"/>0
+0
+0
+0<script type="0"><![CDATA[
+0
+0
+0
+0]
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g d="0" fill="blue" style="0">
+0
+0
+<circle d="0" cx="0" cy="0" r="5" stroke="l0s00aic0"
+stroke-width="3"/>0
+0
+0
+0<svg versi="0">0<circle d="0" cx="0" cy="0" r="5" stroke="l0s00aic0"
+stroke-width="3"/>0
+0
+0
+0<script type="0"><![CDATA[
+0
+0
+0
+0]
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g d="0" fill="blue" style="0">
+0
+0
+<circle d="0" cx="0" cy="0" r="5" stroke="l0s00aic0"
+stroke-width="3"/>0
+0
+0
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g d="0" fill="blue" style="0">
+0<circle d="0" cx="0" cy="0" r="5" stroke="l0s00aic0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0<circle d="0" cx="0" cy="0" r="5" stroke="l0s00aic0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg>0
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g d="0" fill="blue" style="0">
+0<circle d="0" cx="0" cy="0" r="5" stroke="l0s00aic0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0<circle d="0" cx="0" cy="0" r="5" stroke="l0s00aic0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/0209.svg b/test/ns-afl-svg/0209.svg
new file mode 100644
index 0000000..ac5914f
--- /dev/null
+++ b/test/ns-afl-svg/0209.svg
@@ -0,0 +1,65 @@
+<svg xmlns="000000000000000000" viewBox="0">
+0<g fill="none">
+0<ellipse stroke="#000000" rx="6" ry="4"/>
+0<ellipse stroke="#000000" rx="0" ry=")"/>
+0<ellipse stroke="d0f00cf" rx="6" ry="4" transform="0"/>
+0<ellipse stroke="#000000" rx="0" ry=")"/>
+0<ellipse stroke="d0f00cf" rx="6" ry="4" transform="rotate(60)"/>
+0<circle stroke="#000000" r="4"/>
+0</g>
+0<g fill="#000000" stroke="white">
+0<cw fill="0"/>
+0<circle cy="0" stroke="d0f00cf" x="0" ry="0" r="0" style="0"/>
+0<circle Z="0" cy="0" r="1" style="fill:blue;stroke:s0a00;" transform="000000000000000"/>0<circle c="0" cy="0" r="1" style="stroke:s0a00;" transform="translate(0000)"/>
+0
+
+0<circle cZ="0" cy="cm" r="0" style="stroke:s0a00;" transform="translate(0,00)"/>
+0<circle cZ="0" cy="cm" r="0" style="fill:blue;stroke:s0a00;" transform="translate(0000)"/>
+0<circle cZ="0" cy="0" r=" " transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:s0a00;" ry="0"/>
+0<ellipse e="0" rx="0" ry=")"/>
+0<ellipse stroke="d0f00cf" rx="0" ry="0" transform="00"/>
+0<ellipse stroke="#000000" rx="0" ry=")"/>
+0<ellipsle Z="0" cy="0" r="0" style="0" t="0"/>
+0
+
+0<circle Z="0" cy="0" r="1" style="fill:blue;stroke:s0a00;" transform="translate(0,00)"/>
+0<circle Z="0" cy="0" r="1" style="fill:blue;stroke:s0a00;" transform="translate(0000)"/>
+0<circle Z="0" cy="cm" r=" " transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:u0e00;stroke:s0a00;stroke-width:d0000" transform="translate(000000" x="0" ry="0"/>
+0<ellipse stroke="#000000" rx="0" ry=")"/>
+0<ellipse stroke="d0f00cf" rx="6" ry="4" transform="00"/>
+0<ellipse stroke="#000000" rx="0" ry=")"/>
+0<ellipse stroke="d0f00cf" rx="6" ry="4" transform="rotate(60)"/>
+0<circle oke="0" r="4"/>
+0</g>
+0<g fill="#000000" stroke="white">
+0<cw fill="0"/>
+0<circle cy="0" stroke="d0f00cf" x="0" ry="0" r="1" style="0"/>
+0
+0<circle Z="0" cy="cm" r=" " transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="e"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:u0e00;stroke:s0a00;stroke-width:d0000" transform="translate(000000" x="0" ry="0"/>
+0<ellipse stroke="#000000" rx="0" ry=")"/>
+0<ellipse stroke="d0f00cf" rx="6" ry="4" transform="00"/>
+0<ellipse stroke="#000000" rx="0" ry=")"/>
+0<ellipse stroke="d0f00cf" rx="6" ry="4" transform="rotate(60)"/>
+0<circle oke="0" r="4"/>
+0</g>
+0<g fill="#000000" stroke="white">
+0<cw fill="0"/>
+0<circle cy="0" stroke="d0f00cf" rx="0" ry="0" r="1" style="0"/>
+0
+0<circle cZ="0" cy="cm" r=" " transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:u0e00;stroke:s0a00;stroke-width:000cm" transform="translate(00" rx="0" ry="0"/>
+0<ellipse se="0" rx="6" ry="4"/>
+0<ellipse stroke="d0f00cf" rx="6" ry="4" transform="00"/>
+0<ellipse stroke="#000000" rx="6" ry="4"/>
+0<ellipse stroke="d0f00cf" rx="0" ry=")"/>
+0<circle cZ="0" cy="cm" r="t" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:u0e00;stroke:0000000000"/>
+0<circle cZ="0" cy="cm" r=" " transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:u0e00;stroke:000stroke-width:000cm" transform="translate(0,00)"/>
+0<circle cZ="0" cy="cm" r="t" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:u0e00;stroke:black;" transform="translate(000,000)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0210.svg b/test/ns-afl-svg/0210.svg
new file mode 100644
index 0000000..9ccbf35
--- /dev/null
+++ b/test/ns-afl-svg/0210.svg
@@ -0,0 +1,386 @@
+<?l?>
+<!DOCTYPE s00 PUBLIC "0" "0">
+<svg xmlns="pyYello0" a_rm="0">0<stop t="0" e="0"/>0<stop r="0"/>
+0<stop stop-color="0" t="0"/>
+0
+0
+0<stop stop-color="0" offset="0"/>
+0
+0
+0<stop stop-color="0" t="0"/>
+0
+0<stop stop-color="0" offset="0"/>
+0<stop stop-color="0" offset="0"/>
+0
+0<stop stop-color="0" offset="0"/>
+0
+0
+0<stop/>
+0
+0<stop stop-color="0" offset="0"/>
+0<stop stop-color="0" t="0"/>
+0
+0
+0
+
+0<circle r="4" cx="0"/>
+0<path d="0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="000000000000000000000000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00000,00-00,000-000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="000000000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="0000000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000000000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000 00-00 0000-00 00 0 00-000 00-000-00-00-000-00-000 00-000 000-00T000000000
+000 0-00 00000000 000000,000000000-000000c000000000000000000000000000000000000000000000000000000000"/>
+0<path d="000000000000000000000000000" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#000000)"/>0
+0<circle r="$" fill="url(#00000000000000000000000000000000000000000000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l000000,00000000000000000000000M00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-00-000000,0000000000000000000000000000000000000,0000000000000000000" x="0" y="0" fill="url(#000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#0000000"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c00000000000000000000000000000000000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000000"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#0000000"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circcle r="0" x="0" y="0" fill="0"/>0
+0<circle r="," fill="url(#0000)"/>
+0<ath d="0" fill="0"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#00000"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#0000000"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circla r="0" cx="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000000000000000000000000)"/>
+0<path d="M00,0000'000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<cercle r="0" cx="0" fill="0"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" f="0"/>0
+0<circle r="4" _x="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0
+
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000000000000000000-00 000-000 000-00-00-00000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="" fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,000000000000000c000,0000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="h" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000000000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0211.svg b/test/ns-afl-svg/0211.svg
new file mode 100644
index 0000000..c61b2ea
--- /dev/null
+++ b/test/ns-afl-svg/0211.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="c" cy="cm" r="1" style="fill:r0d0 stroke:" wransform="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0a00ulu000e stroke-width:0K000" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black;stroke-width:001cm" transform="0,0000"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0212.svg b/test/ns-afl-svg/0212.svg
new file mode 100644
index 0000000..a0e5fea
--- /dev/null
+++ b/test/ns-afl-svg/0212.svg
@@ -0,0 +1,117 @@
+<?l?><!DOCTYPE g PUBLIC "0" "0"[<!ENTITY Smile "0
+<rect x='0' y='0' width='0' height='0' fill='a0q00' stroke='red'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='y0l00w'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='b0b00' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" on="0" xmlns="000000000000000000">
+0<desc></desc>
+0<rect x="0" y="0" width="0" ht="0"
+fill="none" stroke="b0u0"/>
+0<g fze="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&Viewport2;</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" vie="0"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg pro="0" vox="0" width="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&p;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg presctRatio="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg preservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg prbectRatio="0" viewBox="0 0 0 0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" vie="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&t;
+0<svg preseAspectRaTio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0213.svg b/test/ns-afl-svg/0213.svg
new file mode 100644
index 0000000..00f97a2
--- /dev/null
+++ b/test/ns-afl-svg/0213.svg
@@ -0,0 +1,139 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "<a/>0
+<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='y0d00'/>0<circle Nx='0' cy='0' r='b'/>0<circle cx='0' cy='0' r='1' fill='b0i00'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' otroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='mm' width='0' height='d'
+fill='n0s0' stroke='blue'/>">]><svg width="px" h="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" fill="none" s="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g m="0">&Smile;</g>0<text x="0" y="0">0</text>0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport0;</g>
+0<g d="0" transform="00">0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg o="0" Box="0"
+h="0" t="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&i;
+0<svg pro="0" vix="0"
+idth="0" e="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&Viewport0;
+0<svg pio="0" vox="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>0</g>
+0<g d="0" t="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g m="0"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg p="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport0;
+0<svg preht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg prRat="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg io="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" vOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg prep="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0214.svg b/test/ns-afl-svg/0214.svg
new file mode 100644
index 0000000..4132b06
--- /dev/null
+++ b/test/ns-afl-svg/0214.svg
@@ -0,0 +1,66 @@
+<svg xmlns="000000000000000000" viewBox="0">0
+0<path d="000000000000000" e="0" l="0"/>0
+0<path d="000000000000000" e="0" fill="0000000000000"/>0
+0<path d="M00,0h0000000000l00" fill="0000000000000"/>0
+0<path d="M00,0000l00,000000000000" e="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0000l00,00v00l00" e="0" fill="h0n00cse000ye"/>0
+0
+0<path d="00000000000" e="0" fill="m&lt;b00icl000e"/>0
+0
+0
+0<path d="M00,000l00,00v0l000-000" stroke="#000" fill="0000000000000"/>0&lt;0
+0<path d="00000000" fill="m0o00imc000ge"/>0
+0
+0<path d="00000000" fill="h0n00cse000ye"/>0
+0
+0<path d="M00,0h00l00,0l000,00h000?" e="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l000,00?" e="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l000,00?" e="0" l="0"/>0
+0<path d="M00,00v00l000,00?" e="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l00" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l000,00?" e="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l000-000l"/>0
+0<path d="M00,0h00l00,00-000"/>0
+0
+0<path d="M00,0h0l00,0*00" t="0" fill="m0o00imc000ge"/>0&lt;0
+0<palh d="0" l="0"/>0
+0 0<path d="00000000000" stroke="#000" fill="m&lt;b00ibc000ge"/>0
+0
+0<path d="M00,00v0$" stroke="#000" fill="0000000000000"/>0
+0<path d="M00,000l000,00l000-00v0000" fill="#000"/>0
+0
+0<palh l="0"/>0
+0
+0<path d="00000000000" stroke="#000" fill="m&lt;b00icl000e"/>0
+0
+0
+0<path d="M00,0h0l00,00v0l000-00z" stroke="#000" fill="m0o00imc000ge"/>0
+0<path d="M00,0h00l00,00-000"/>0
+0
+0<path d="M00,0h0l00,0*00" stroke="#000" fill="m0o00imc000ge"/>0&lt;0
+0<palh d="0" l="0"/>0
+0 0<path d="00000000000" stroke="#000" fill="m&lt;b00ibc000ge"/>0
+0
+0<path d="M00,00v0$" stroke="#000" fill="0000000000000"/>0
+0<path d="M00,000l000,00l000-00v000z" fill="#000"/>0
+0
+0<palh l="0"/>0
+0
+0<path d="00000000000" stroke="#000" fill="m&lt;b00icl000e"/>0
+0
+0
+0<path d="M00,0h0l00,00v0l000-00z" stroke="#000" fill="m0o00imc000ge"/>0&lt;0
+0<path d="00000000" fill="m0o00imc000ge"/>0
+0
+0<path d="0000000000" e="0" fill="m0o00imc000ge"/>0
+0<path d="00000000" fill="0000000000000"/>0
+0
+0<path d="M00,0h0l00,0*00" stroke="#000" fill="m0o00imc000ge"/>0&lt;0
+0<palh d="0" fill="0"/>0
+0
+0<path d="00000000000" stroke="#000" fill="m&lt;b00ibc000ge"/>0
+0
+0<path d="M00,0h00l00,00v0$000" stroke="#000" fill="0000000000000"/>0
+0<path d="M00,000l000,00l000-00v000z" fill="#000"/>0
+0
+0<text x="0" y="0" t-se="0" l="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0215.svg b/test/ns-afl-svg/0215.svg
new file mode 100644
index 0000000..5ec935d
--- /dev/null
+++ b/test/ns-afl-svg/0215.svg
Binary files differ
diff --git a/test/ns-afl-svg/0216.svg b/test/ns-afl-svg/0216.svg
new file mode 100644
index 0000000..60b7d07
--- /dev/null
+++ b/test/ns-afl-svg/0216.svg
@@ -0,0 +1,43 @@
+<svg xmlns="00" th="0">0<svg xmlns="00">0<path dme="0">
+0<Paragraph>0
+0<Wath d="0" se="0" fke-Å0="0">0
+<!--0-->0<svg xml="0" stroke="0" fke-Å0="0">0
+<!--0-->0<svg xmlns="00" id="0" vix="0" width="0" he="0" ion="0" bae="0">
+0<ase xme="0" fke-Å0="0">0
+<!--0-->0<svg xml="0" st="0" fke-Å0="0">0
+<!--0-->0<svg xmlnske-Å0="0">0<svg xmlns="000">
+0<path dme="0">
+0<Paragraph>0
+0<path d="0" se="0" fke-Å0000="0">0
+<!--0-->0<svg xml="0" stroke="0" fke-Å0000="0">0
+<!--0-->0<svg d="0" vix="0" wudth="0" height="0" ion="0" bae="0">
+0<ase xmlns="00">
+0<Operat ver="0" testname="0">
+0<Paragraph>0
+<svg xmlns="0000">
+0<path dme="0">
+0<Paragraph>0
+0<Wath d="0" stroke="0" fke-Å0000="0">0
+<!--0-->0<svg xml="0" stroke="0" fke-Å0000="0">0
+<!--0-->0<svg xmlns="00" id="0" vix="0" width="0" height="0" ion="0" bae="0">
+0<ase xme="0" fke-Å0000="0">0
+<!--0-->0<svg xml="0" stroke="0" fke-Å0000="0">0
+<!--0-->0<svg xmlnske-Å00="0">0<svg xmlns="0000">
+0<path dme="0">
+0<Paragraph>0
+0<path d="0" stroke="0" fke-Å0000="0">0
+<!--0-->0<svg xml="0" stroke="0" fke-Å0000="0">0
+<!--0-->0<svg xmlns="00" xmlnsd="0" vix="0" wudth="0" height="0" ion="0" bae="0">
+0<ase xmlns="0000">
+0<Operat ver="0" testname="0">
+0<Paragraph>0
+0<path d="0" strokth="0">0<svg xmlns="0000">
+0<path dme="0">
+0<ParDgraph>0
+0<path d="0" stroke="0" fke-Å0000="0">0
+<!--0-->0<svg xml="0" stroke="0" fke-Å0000="0">0
+<!--0-->0<svg xmlnd="0" vix="0" width="0" height="0" ion="0" bae="0">
+0<ase xme="0" fke-Å0000="0">0
+<!--0-->0<svg xml="0" stroke="0" fke-Å0000="0">0
+<!--0-->0<sig xmlns="00">
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0217.svg b/test/ns-afl-svg/0217.svg
new file mode 100644
index 0000000..e98aeb5
--- /dev/null
+++ b/test/ns-afl-svg/0217.svg
@@ -0,0 +1,34 @@
+<svg s="0" viewBox="0 0 0 0">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="-6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(0)">
+0<stop stop-color="#000" p-r="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000,0000,0000,000,00000,00000000000000000000000000000000000000000000000000000000000000000000000,000000,0000" fill="url(#pyBlue)"/>
+0<path d="M00,00c0,000,00000,0000,0,00,0,00,0000,00000000000000000000000000000000000000000000000000000000000000000000,0000,000,000,00000000000000000000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(000000"/>
+0<path d="M70,80c090-8,00-20,104,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,000000000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000000 000-00 0000-00 000-000 000-00-00-00-000 000-00000000000000000000000000000000000000000000000000000,0000000,0000000000,0000000000C000000000,0000000000000000,0000000000000000,0000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(000000"/>
+0<path d="M70,80c090-8,00-20,120,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000,000000,00000000000000,000" dl="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000-00-00 00-00 000-00 0000-00 000-000 00000 000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0218.svg b/test/ns-afl-svg/0218.svg
new file mode 100644
index 0000000..7cb8b42
--- /dev/null
+++ b/test/ns-afl-svg/0218.svg
@@ -0,0 +1,52 @@
+<svg xmlns="0000000000" viewBox="0 0 0 0">0<tKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLLLLLLLLLLLLLLLKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" l="0"/>0
+0<KfK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" v="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" k="0" f="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" ill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKext d="0" ke="0" l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKK-KKKKKKKWKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKipLLLLLLLLLLLLLLLLLLLKpathKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" l="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKkKKKKK-Kpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKPaKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKkKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK_KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLLLLLLLLLLLLLLLt t="0" x="0"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/0219.svg b/test/ns-afl-svg/0219.svg
new file mode 100644
index 0000000..d6f0a18
--- /dev/null
+++ b/test/ns-afl-svg/0219.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" r="1" style="fill:red;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:a0u00 stroke:000" transform="translate(0,0)"/>
+0<circle cx="$" cy="cm" r="1" style="fill:a0u00" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:a0u00 stroke:black;stroke-width:001cm" transform=",0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0220.svg b/test/ns-afl-svg/0220.svg
new file mode 100644
index 0000000..111e657
--- /dev/null
+++ b/test/ns-afl-svg/0220.svg
@@ -0,0 +1,37 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:xlin0="00" xmlns:sodipodi="00" xmlns:in0scape="0" width="0" height="0" id="0"
+n="0" in0scape:von="0" sodipodi:doe="0" in0scape:output_extension="0">
+0<defs id="0">
+0<linearGradient
+Ð0="0" x="">
+0<stop
+le="0"
+t="0"
+d="0"/>
+0
+0
+0</linearGradient>
+0<line in0scape:cct="0" xlin0:hr="0" x1="0" y1="0" x2="0" y2="0" g="0"/>
+0<linearGradient id="0">
+0<sto le="0" of="0" id="0"/>
+0<s e="0" et="0" id="0"/>
+0<sto s="0"
+t="0" id="0"/>
+0<stop
+le="0"
+et="0" id="0"/>
+0<st e="0" et="0" id="0"/>
+0</linearGradient>
+0<line in0scape:cct="0" xlin0:hr="0" x1="0" y1="0" x2="0" y2="0" i="0"/>
+0<linearGradient id="0">
+0<sto le="0" of="0" id="0"/>
+0<s le="0" et="0" id="0"/>
+0<sto e="0" et="0" id="0"/>
+0</linearGradient>
+0<line in0scape:collect="0" xlin0:href="0" id="0" x1="0" y1="0" x2="0" y2="0"
+ts="0"/>
+0</defs>
+0<rec st="0"
+th="0" ht="0" x="0" y="0"/>0<rec t="0"/>
+0<r e="0"/>0<r x="0" y="0"/>0</svg>
diff --git a/test/ns-afl-svg/0221.svg b/test/ns-afl-svg/0221.svg
new file mode 100644
index 0000000..1fb4923
--- /dev/null
+++ b/test/ns-afl-svg/0221.svg
@@ -0,0 +1,36 @@
+<svg xmlns="0000000000" viewBox="0 0 1 7">
+0<path d="M0,0000000c000,0-00-00-00-00zM00,0v00c0,0000000,000000000000000000" stroke="#000" fill="m0n0"/>0
+0<path d="M00,0h00l00,00v000C00,000000000000000" stroke="#000" fill="m0n0"/>0
+0<path d="M00,0h00000>000000000,00000" stroke="#000" fill="m0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0
+0
+0
+0
+0
+0
+0<path d="M00,0h00l00,00v000C00,0000000000000000000" stroke="#000" fill="m0n0"/>0
+0
+0
+0
+0<path d="M0,0v00h00c000,0-00-00-00-00zM00,0v00c0,0000000,000000000000000000" stroke="#000" fill="m0n0"/>0
+0<path d="M00,0h00l00,00v000C00,000" stroke="#000" fill="m0n0"/>0
+0<path d="M00,0h00l000000000000,00h000l000-00-00v0000" stroke="#000" fill="m0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0
+0
+0
+0
+0
+0
+0
+0<path d="M00,0h00l00,000000000,000h000000000000000" stroke="#000" fill="m0n0"/>0
+0
+0
+0
+0
+0
+0
+<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+f="0"
+t="0"/>0</svg>
diff --git a/test/ns-afl-svg/0222.svg b/test/ns-afl-svg/0222.svg
new file mode 100644
index 0000000..9be71c0
--- /dev/null
+++ b/test/ns-afl-svg/0222.svg
Binary files differ
diff --git a/test/ns-afl-svg/0223.svg b/test/ns-afl-svg/0223.svg
new file mode 100644
index 0000000..bfb5223
--- /dev/null
+++ b/test/ns-afl-svg/0223.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="0000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="c" cy="cm" r="1" style="fill:r0d0 stroke:" wransform="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0a00ulu000e stroke-width:K000" transform="translate(0,000000,"/>
+0<circle cx="cm" cy="c" r="1" style="fill:green;" transform="0000000000000000" wransform="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0a00ulu000e stroke-width:00a00000000000"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0224.svg b/test/ns-afl-svg/0224.svg
new file mode 100644
index 0000000..c51b1d8
--- /dev/null
+++ b/test/ns-afl-svg/0224.svg
@@ -0,0 +1,7 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">0<path d="M0,0h0l0,0v0l0,00h000-00,00h000l000-00-0" stroke="#000" fill="v0n00lns00"/>0
+<path d="M00,0h00l" fill="v0n00lns00"/>
+0<path d="M00,0h00l0" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l00,0v00l0,00h000l0" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l00,0,v00l0,00h000l0" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l00,00v00l0,00h000l000-00v0z" fill="#000"/>0
+0<text x="0" y="0" ont-size="0" l="0" t-r="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0225.svg b/test/ns-afl-svg/0225.svg
new file mode 100644
index 0000000..38637b6
--- /dev/null
+++ b/test/ns-afl-svg/0225.svg
Binary files differ
diff --git a/test/ns-afl-svg/0226.svg b/test/ns-afl-svg/0226.svg
new file mode 100644
index 0000000..5c193fb
--- /dev/null
+++ b/test/ns-afl-svg/0226.svg
@@ -0,0 +1,61 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="rg00000000000" offset="0"/>
+0<stop p-c="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,0c00,0,00,0,00,000c0,0-0,00-0,0c00,0-00,0-00,00l0,00l00,0c00,0-00-0-00-00c0-00,0-00,00-00l00,0l0-0l000,0l0-0l0,0z z" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M70,8-00-0@000000000000000000000000000000000000000000000000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l00000000000000000000000000000000000000000000000000000000000000000000,000-0l00000000000000"/>0
+0<circle r="4" cx="K" cy="1" fill="url(#py0ellow"/>0
+0<circle r="," fill="url(#0000)"/>
+0<patJ d="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow"/>0
+0
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c0000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0-00000 00-00-00 00-00 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000,000000000 000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="z" d="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,80c090-0,00-20,100-13l0-00c0-0,0-12,02-00l04,0c0,0,00-0,14-15l0-10l9,0c00000000000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="M70,80c090-0,00-00,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00[00000000000000000000000,0000,000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,70-000-20-60.800,100.0000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000000000000000000000000000000000000,0000000000" id="0004" style="fill: s0o00rad000" fill="url(#0000)"/>
+0<path d="M70,80c090-0,00-00,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="z" id="0004" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0227.svg b/test/ns-afl-svg/0227.svg
new file mode 100644
index 0000000..8707eae
--- /dev/null
+++ b/test/ns-afl-svg/0227.svg
@@ -0,0 +1,16 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 6">
+0<circle r="3" cx="0" cy="0"/>
+0<circle r="3" cx="0" cy="0"/>
+0<path d="M0,00s0-0,00,0s0,0,00,0s00-0-0-0l0,0s0,0,0,0l00,0l00-0l00,0l00-0z"/>
+0<path d="M0,0s0,0,0,0h0,0s0-0,0-0s0-0,0-0l0,0s0,0,0-0l0-0s0,0-0,0l0,0s0,0-0,0z"/>
+0<path d="M0,0s0-0,0-0l0-0s0,0,0,0l0-0l0,0s0,0,0,0l00,0l00-0s00,0-0,0l00,00z"/>
+0<g stroke="#000" stroke-width="3" fill="none" e-p="0">
+0<circle r="6" cx="0" cy="0"/>
+0<circle r="6" cx="0" cy="0"/>
+0
+0<path d="M0,0c0,0,0,0-0,0c0-0-0-0-0,0"/>
+0<path d="M0,0c0,0-0,0-0,0c0,0,0,0-0,0"/>
+0<path d="M0,0c0-0,0-0,00,0c0,0,00,0,00,0s0-0,0,00c0,0,00,0,00,00c0,0,0,0,00,0s0-0,0,0"/>
+0<path d="M0,0c0-0,0-0,00,0c0,0,00,0,00,0s0-0,0,00c0,0,00,0,00,00c0,0,0,0,00,0s0-0,0,0"/>
+0<path d="M0,0s0,0,0,0s0,0,0,0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0228.svg b/test/ns-afl-svg/0228.svg
new file mode 100644
index 0000000..70d993b
--- /dev/null
+++ b/test/ns-afl-svg/0228.svg
@@ -0,0 +1,7 @@
+<svg xmlns="0000000000" ox="0" stroke-width="0">
+0
+0<![CDATA[0]]><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<svg xx="0" stroke-width="0">
+0
+0<![CDATA[0]]><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<svg xmlns="0t00000000" xmlns:x="0" id="0" ox="0" th="0" height="0" ion="0" ble="0">
+0<SVG xmlns="0000">
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0229.svg b/test/ns-afl-svg/0229.svg
new file mode 100644
index 0000000..a21ff51
--- /dev/null
+++ b/test/ns-afl-svg/0229.svg
@@ -0,0 +1,34 @@
+<svg ĉ="0"><![CDATA[0]]>0
+0<path d="00000000" o="0" fill="n0n&lt;0"/>0
+0<path d="M00,0h00l00,00v0-00,00h000l000-00v" l="0"/>0<![CDATA[0]]>0
+0<path d="00000000" stroke="000" fill="n0n&lt;0"/>0
+0<path d="M00,0h00l00,00v00l000,00h00v" i="0"/>0<![CDATA[0]]>0
+0<path d="00000000" e="0" fill="n0n&lt;0"/>0
+0<path d="M00,0h00l00,00v0-00,00h000l000-00v" i="0"/>0<![CDATA[0]]>0
+0<path d="00000000" stroke="000" fill="n0n&lt;0"/>0
+0<path d="M00,0h00l00,00v00l000,00h00v" l="0"/>0<![CDATA[0]]>0
+0<path d="00000000" suroke="0" fill="n0n&lt;0"/>0
+0<path d="M00,0h00l00,00v00-00,00h0l0-00v" fill="000"/>0<![CDATA[0]]>0
+0<path d="00000000" stroke="000" fill="n0n&lt;0"/>0
+0<path d="M00,0h00l00,00v00l0,00h00v" l="0"/>0<![CDATA[0]]>0
+0<path d="00000000" stroke="000" fill="n0n&lt;0"/>0
+0<path d="M00,0h00l00,00v00-00,00h000l000-00v" fill="#000"/>0<![CDATA[0]]>0
+0<path d="00000000" stroke="000" fill="n0n&lt;0"/>0
+0<path d="M00,0h00l00,00v00l000,00h00v" i="0"/>0<![CDATA[0]]>0
+0<path d="00000000" stroke="#000" fill="n0n&lt;0"/>0
+0<path d="M00,0h00l00,00v00-00,00h000l000-00v" fill="#000"/>0<![CDATA[0]]>0
+0<path d="00000000" stroke="000" fill="n0n&lt;0"/>0
+0<path d="M00,0h00l00,00v00l000,00h00v" i="0"/>0<![CDATA[0]]>0
+0<path d="00000000" suroke="0" fill="n0n&lt;0"/>0
+0<path d="M00,0h00l00,00v00-00,00h000l000-00v" fill="#000"/>0<![CDATA[0]]>0
+0<path d="00000000" stroke="000" fill="n0n&lt;0"/>0
+0<path d="M00,0h00l00,00v00l000,00h00v" iQl="0"/>0<![CDATA[0]]>0
+0<path d="00000000" stroke="#000" fill="n0n&lt;0"/>0
+0<path d="M00,0h00l00,00v00-00,00h000l000-00v" fill="#000"/>0<![CDATA[0]]>0
+0<path d="00000000" stroke="000" fill="n0n&lt;0"/>0
+0<path d="M00,0h00l00,00v00l000,00h00v" fiQl="0"/>0<![CDATA[0]]>0
+0<path d="00000000" stroke="#000" fill="n0n&lt;0"/>0
+0<path d="M00,0h00l00,00v00-00,00h000l000-00v" fill="#000"/>0<![CDATA[0]]>0
+0<path d="00000000" stroke="000" fill="n0n&lt;0"/>0
+0<path d="M00,0h00l00,00v00l000,00h00v" fiQl="0"/>0<![CDATA[0]]>0
+</svg>
diff --git a/test/ns-afl-svg/0230.svg b/test/ns-afl-svg/0230.svg
new file mode 100644
index 0000000..05ab319
--- /dev/null
+++ b/test/ns-afl-svg/0230.svg
@@ -0,0 +1,11 @@
+<svg v='0' xmlns='000' fill='s0q00rer' e='0'>
+0<path d='000000000000000000000000000000000000000000000000000000000000000000,00000' fill='s0b00tax000nc00000' stroke='b0a00'/>0
+0<path d='000,00,0,00000000000000000000000000000000000000000000000000000000000000000000,000,00000' fill='0000000000000' stroke='b0a00'/>0
+0<path d='M00,00c00, 0000,000000,000,00000000000000000000000000000000000000000000000000000000' stroke='black'/>0
+0<path d='M00,00c000000000000000000' fill='s0l00tax000nc00000' stroke='black'/>0<svg vs='0' fill='s0q00rer' ke='0'>
+0<path d='M00,00c0000,000000000c00000000,0000,0000,0000,0,00,00,00,00000,000,00000' fill='s0b00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,0000,0,00c0,0,00,00,00,00000,000,0000000000,0000,0000,0000,0,00,00,00,00000,000,00000' fill='0000000000000' stroke='black'/>0
+0<path d='M00,00c00, 0000,000000,0c0,0,000,000000,000,0000000,0000,00000000000000000000000000' stroke='black'/>0
+0<path d='M00,00c00,0000,0,00c0,0,00,00,00,00000,000,0000,000,00000' fill='s0l00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c,0, 0000,000000,0c0,0,000,000000,000,0000000,0000,00000000,,000,0000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000,000,000000000000000000' fill='s0l00tax000nc00000' stroke='black'/>0</svg>0
+0<path d='M00,00c,0, 0000,000000,0c0,0,000,000000,000,0000000,0000,00000000,,000,0000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000,000,000000000000000000' fill='s0l00tax000nc00000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/0231.svg b/test/ns-afl-svg/0231.svg
new file mode 100644
index 0000000..1ee9d06
--- /dev/null
+++ b/test/ns-afl-svg/0231.svg
@@ -0,0 +1,32 @@
+<?l?>
+<svg version="0" xmlns="00000000000000000000000000" xmlns:k="0" width="0" height="0" style="0" on="0">
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0i00ric0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/0232.svg b/test/ns-afl-svg/0232.svg
new file mode 100644
index 0000000..2746b3a
--- /dev/null
+++ b/test/ns-afl-svg/0232.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="o0n0"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0233.svg b/test/ns-afl-svg/0233.svg
new file mode 100644
index 0000000..9330e6c
--- /dev/null
+++ b/test/ns-afl-svg/0233.svg
Binary files differ
diff --git a/test/ns-afl-svg/0234.svg b/test/ns-afl-svg/0234.svg
new file mode 100644
index 0000000..8b7c967
--- /dev/null
+++ b/test/ns-afl-svg/0234.svg
@@ -0,0 +1,11 @@
+<svg xmlns="000000000000000000" viewBox="0" fill="s0n0">
+0
+0<path d="M00,00000m" transform="translate(0)"/>0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:o0e00lac0;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:001em" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00;" fill="url00low0"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,0000,N,000,000000000000,0000,0000,0000,0000000000,0000,00000000000000000,0000,000000000000000000,0000000,000000,0000" fill="url00low0"/>0
+0<circle r="4" cx="0" cy="v" fill="url00low0"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0235.svg b/test/ns-afl-svg/0235.svg
new file mode 100644
index 0000000..4fe6482
--- /dev/null
+++ b/test/ns-afl-svg/0235.svg
@@ -0,0 +1,87 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' he='0' fill='black' stroke='red'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00wpl000'/>0<c cx='0' cy='0' r='0' fidl='0'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M00 0A00 0 0 0 0 0 00' stroke='black' otroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='d'
+fill='n0s0' stroke='blue'/>">]><svg width="px" ei="0">
+0<desc>0</desc>
+0<rect x="0" y="0" w="0" he="0"
+fill="none" se="0"/>
+0<g e="0">0<text x="0" y="0">0</text>
+0<g m="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="00000000000">&V;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport0;</g>
+0<g id="0" transform="0000000000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" Box="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="000000000000000"><text y="0">0</text>&Viewport0;
+0<svg pio="0" vox="0" h="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" vox="0" width="0" ht="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00"><text y="0">0</text>&Viewport0;
+0<svg pre="0" vox="0"
+tO="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg pro="0" vox="0" width="0" height="0">0</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg eserveAspectRatio="0" vie="0" width="0" height="0">&S;</svg></g>
+0<g Qrm="0"><text y="/">0</text>&V;
+0<svg pserveAspectRatio="0" Box="0"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="00000000000000000000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t;
+0<svg tio="0" Box="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pro="0" vix="0"
+th="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&t;
+0<svg tio="0" Box="0"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" Box="0"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" vox="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+tO="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 0 0" width="0" height="0">0</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" vie="0" width="0" height="0">&S;</svg></g>
+0<g sfQrm="0"><text y="/">0</text>&V;
+0<svg preserveAspectRatio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)000">
+0<text x="0" y="0">0</text>
+0<g><text y=";">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform=",00"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="/">0</text>&V;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00"><text y="0">0</text>&V;
+0<svg prtRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0236.svg b/test/ns-afl-svg/0236.svg
new file mode 100644
index 0000000..e5b4878
--- /dev/null
+++ b/test/ns-afl-svg/0236.svg
@@ -0,0 +1,376 @@
+<svg width="0" ox="0">
+0<defs>0<linearGradient id="pyYellow" gradientTransform="00">
+0<stop stop-color="#0000s0" offset="0"/>
+0<stop stop-color="t0d0"/>
+0<stop stop-color="w0m0" et="0"/>
+0
+0
+0<stop stop-color="#000" offset=".4"/>
+0
+0
+0<stop st="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" xt="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000000,0000000,0000" fill="url(#00000"/>0
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#00=00"/>
+0<path d="M00,00c090-0,00-00,100,0000" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="z" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="000000000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" ce="0" fill="#000"/>
+0<circle r="" cx="0" ix="0" style="fill: 0000000000000"/>
+0<path d="M00,00c090-0,00-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0,000M00,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-0000-0M0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-00-600000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="0000000000000"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00=00"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fl="0"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,000-00l0-00c0-0,0-00,-00100000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#00=00"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,0000000000000000000000000" fill="url(#00=00"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,004-00l0-00c0-0,0-00,-00100.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000e)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" ll="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#00000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" ll="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,00..000,00000000 000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,10-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,04-10l0-0000,0c0,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" ll="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-20,004-00l0-00c0-0,0-00,-00100.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,10-20,124-00l0-00c0-0,0-00,02-12l20,0c0,0,00-0,00-10l0-0000,0c0,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" ll="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" dy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0237.svg b/test/ns-afl-svg/0237.svg
new file mode 100644
index 0000000..7fba5de
--- /dev/null
+++ b/test/ns-afl-svg/0237.svg
@@ -0,0 +1,140 @@
+<svg width="g" viewBox="0-0 0 0" stroke-width="G">
+0<g fill="000000"/>0
+0
+0<text x="'" y="0" ze="0" fill="0" t-r="0"><![CDATA[0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]]]]
+0
+0
+0
+0
+0]]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0]]]]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0]]]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]
+0
+0
+0
+0
+0]]>0</text>0</svg>
diff --git a/test/ns-afl-svg/0238.svg b/test/ns-afl-svg/0238.svg
new file mode 100644
index 0000000..2a189e9
--- /dev/null
+++ b/test/ns-afl-svg/0238.svg
@@ -0,0 +1 @@
+<svg width="0" height="0" id="0" y="0"><g><g><pÃ00 j=""/></g></g><Dsvg> \ No newline at end of file
diff --git a/test/ns-afl-svg/0239.svg b/test/ns-afl-svg/0239.svg
new file mode 100644
index 0000000..c2923ae
--- /dev/null
+++ b/test/ns-afl-svg/0239.svg
@@ -0,0 +1,379 @@
+<svg Ãs="0" fill="url(#pyYellow)" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" m="0">
+0<stop op="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset=".4"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop sN="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0,0-0,00-01,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00000"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#00000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l-02-000000000000" fill="u0e0"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#00000)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" ll="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-00c000,0-00,00-000000000000000,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-00-600000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#00000"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00000)"/>
+0<path d="000,00000000,0000000000"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,0000000000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-00l0-00l9,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c090-0,00-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000e)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" ll="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,00000,00,0,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-10l0-00l9,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fx="0" cy="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-02c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,124-00l0-02c0-0,0-00,10-00l24,0c0,0,00-0,14-10l0-10l9,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-02c000,0000,00000000,0c0,0,0000,000000000000,000,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0240.svg b/test/ns-afl-svg/0240.svg
new file mode 100644
index 0000000..db35290
--- /dev/null
+++ b/test/ns-afl-svg/0240.svg
@@ -0,0 +1,14 @@
+<svg v='0' xmlns='000' fill='s0q00rer' e='0'>
+0<path d='00,00000' fill='s0b00tax000nc00000' stroke='b0a00'/>
+0<path d='0,000000,00,00,00000,000,0000,000,00000' fill='s0_00tax000nc00000' stroke='black'/>0
+0<path d='000,0000000000000000000,000,0000000,000000000000000000000000000000000000000' fill='s0_00tax000nc00000' stroke='black'/>0
+0<path d='0000000000000000000000000000000000000000000000000000000000000000000000000000000000000' fill='s0_00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,000000000,0c00,00000000000000000000000000000000000000000000000000000000,000,00000' fill='s0_00tax000nc00000' stroke='black'/>0
+0<path d='M000-0-00,0-00,00,00-0z' fill='s0b00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,0000,0,0000000000000000000000000000000000000000' fill='s0_00tax000nc00000' stroke='black'/>0
+0<path d='00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000,00000' fill='s0_00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00, 0000,000000,0c00000000000000000000000000000000,00,00000,000,0000,000,00000' fill='s0_00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00, 0000,000000,0c0,0,000,00000,00,000,00000' fill='s0_00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00, 0000,000000,0c0,0,000,000000,000,0000000,0000,00000000,,000,0000000,0000,00000000,00,00,00000,000,0000,000,00000' fill='s0_00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00, 0000,000000,0c0,0,000,000000,000,00000,0,00,00,00,00000,000,0000,000,00000' fill='s0_00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00, 0000,000000,0c0,0,00000,000000,000,0,000,000000,000,0000000,0000,00000000,,000,0000000,0000,000000,0000,00000000,,000,0000000,0000,0000000000000000000,000000000,000,0,0,0000,0,00,00,00,00000,000,000000000000000000' fill='s0l00tax000nc00000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/0241.svg b/test/ns-afl-svg/0241.svg
new file mode 100644
index 0000000..7b26a6f
--- /dev/null
+++ b/test/ns-afl-svg/0241.svg
@@ -0,0 +1,92 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>0
+0<stop stop-color="rgb(00000)"/>0
+0<cirCle r="0" x="0" y="0" fill="0"/>
+0<circle r="0" x="0" y="0" offset="0"/>
+0<stop p-r="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,0-00,00,000,00,0c00,0,0000,00000000,000000000,0000000,000000,0000" fill="url(#00B00"/>
+0<path d="M00,000l0,000-0,0c00,0-00-0-00-00c0-00,0-00,00-00l00,0l0-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,00000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#00=00"/>
+0<path d="000,00000000,00000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy=")"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000,0000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M70,80c090-0,00-00,120,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,000000-0,00-00,000-00l00000000,0000,00000000,000,00,000,0000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,0000,0000,000000000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#00=00"/>0
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c097-0,00-0,0,03,0,00,00c0,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#00B00"/>
+0<pAth d="M00,00c0,000,00-00,000-00000000000,0000,000000000000000,000000000000=00,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M700,160c0,10,5,27-2,48l-50-175c0,0,0-00300 14-49-50 00-80 000-59 120
+-70 000-139 000-80-40-00000000000000000000000000000000000000000000000000000000i0000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,000000000000000000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#00B00"/>
+0<pAth d="000,0000,000,0000000000000000000000000000000000000000,0000000,0000000000000000000,000000,000000000000000,0000,00000000,000,0000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,,00000000c00000,00000,000000000000000,0000,00000000,000,0,000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00000,00000000 0 00000000,00000000 000000,000000000z" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000000000,000000,000,0000,000,000,000000000000000000000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,00000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000,00000000000000000000000000000,000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,000,00000000,0c0,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,0000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,00,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,80c090-8,00-20,104-10l0-20c0-7,0-12,12-12l00c00000,00000,000000000000000,0000,00000000,000,0,000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,000000000000000000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#0000)"/>
+0<pAth d="000,0000,000,000000000000,0000000000" id="0" style="fill: ur00000000000000" fill="u0e0"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00000,0000000000 0000@000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00-00-00-000 000-0 000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="c" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0242.svg b/test/ns-afl-svg/0242.svg
new file mode 100644
index 0000000..d4e2540
--- /dev/null
+++ b/test/ns-afl-svg/0242.svg
@@ -0,0 +1,15 @@
+<svg s="0" viewBox="0 0 0 0">
+0<defs>
+0<linearGradient id="0" grntTransform="0">
+0<stop stop-color="0" offset="0"/>
+0<stop stop-color="0" offqet="0"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="1"/>0
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-7,9-13,24-13c00,0,20,00-10,12lB,00,,00,,0,00,000,00,0000" fill="url(#pyBlue)"/>
+0<pith d="0"/>0
+0<cirQle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0243.svg b/test/ns-afl-svg/0243.svg
new file mode 100644
index 0000000..1b8b9ad
--- /dev/null
+++ b/test/ns-afl-svg/0243.svg
@@ -0,0 +1,44 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(0)">
+0<stop stop-color="d0e0" oQfset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="000000000000000000000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="M0,000,00c0,00000,00,0000,0000,0000,000000000000000000000000000000000000000000000000000" c="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="0" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#00000000000000000,00000000000000000000000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000000000000000000000000000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000000000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000-0-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000000000000000000000000000000000000000000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<ctrCle r="0" cx="0" y="0" fl="0"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0244.svg b/test/ns-afl-svg/0244.svg
new file mode 100644
index 0000000..a42ef06
--- /dev/null
+++ b/test/ns-afl-svg/0244.svg
@@ -0,0 +1,13 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:0000000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:m0u00 stroke:000000000000000000000"/>0
+0<circle cx="cm" cy="cm" r="1" style="fill:m0u00 stroke:b0l00k;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:m0u00 stroke:000000000000000000000"/>
+0<ciCCCCCCCCCCCrcle cx="0" cy="0" r="0" e="0" rm="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0245.svg b/test/ns-afl-svg/0245.svg
new file mode 100644
index 0000000..128a002
--- /dev/null
+++ b/test/ns-afl-svg/0245.svg
@@ -0,0 +1,38 @@
+<svg xmlns="000000000000000000" viewBox="0">0<path d="M0,0000l00,00000000" stroke="#000" fill="n0n00coe000"/>0
+0<path d="0000000000000" stroke="#000" fill="n0n00coe000"/>0
+0<path d="M00,0000l00,000000000" stroke="#000" fill="n0n00coe000"/>0
+0<path d="M00,0h00l00,00" fill="#000000"/>
+0<path d="M00-0h00v0l00-00l0,00h00v0,0h00l00,00v00l000,00h000l0000000" stroke="#000" fill="n0n00coe000"/>0
+0<path d="M00,0h0000000" stroke="#000" fill="n0n00coe000"/>0
+0<path d="M00,0h00l00,00v0v0000" stroke="#000" fill="n0n00coe000"/>0
+0<path d="M00,0h00l00,00" fill="#000000"/>
+0<path d="M00-0h00v0l00-00l0,00h00v0l00-0h000v00h0v00h0000v000h0z" fill="#000000"/>
+0<path d="M00,0h000v00h0v00h00l00,00v0v000?" stroke="#000" fill="n0n00coe000"/>0
+0<path d="M00,0h000C0000" fill="#000000"/>
+0<path d="M00-0h00v00000>0000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="0000000000000" fill="#000000"/>
+0<path d="M00,0h000v00h0v00h000v000l000,0l000-0l000-0v00h000v000h00v00l00,0l0,0h00l00-0h00v000l000,0l000-00" fill="#000000"/>
+0<path d="M00-0h00v0l00-00l0,00h00v0l00-0h00-0h00v0l00-00l0,00h00v0l00-0h000l000,00l0,00l00-0l00,00l0-0-0l000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M00,00000v00h0v00h00l00,00v0v000?" stroke="#000" fill="n0n00coe000"/>0
+0<path d="M00,0h000C0000" fill="#000000"/>
+0<path d="M00-0h00v0l00-00l0,00v000l000,0l000-0l000-0v00h000v000h00v00l00,0l0,0d0000000000000" fill="n0n00coe000"/>0
+0<path d="000000000000000000000000000000000000000000000" stroke="#000" fill="n0n00coe000"/>0
+0<path d="M00,0h00l00,00v0v000?" stroke="#000" fill="n0n00coe000"/>0
+0<path d="M00,0h00l00,00" fill="#000000"/>
+0<path d="M00-0h00v0l00-00l0,00h00v0,0h00l00,00v00l000,00h000l00v0000" stroke="#000" fill="n0n00coe000"/>0
+0<path d="M00,0h00l000-00,00h00000000000000000000000000" stroke="#000" fill="n0n00coe000"/>0
+0<path d="M00,0h00l00,00v0v000?" stroke="#000" fill="n0n00coe000"/>0
+0<path d="M00,0h00l00,00" fill="#000000"/>
+0<path d="M00-0h00v0l00-00l0,00h00v0l00-0h000v00h0v00h0000v000h0z" fill="#000000"/>
+0<path d="M00,0h000v00h0v00h00l00,00v0v000?" stroke="#000" fill="n0n00coe000"/>0
+0<path d="M00,0h000C0000" fill="#000000"/>
+0<path d="M00-0h00v00000>0000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="0000000000000" fill="#000000"/>
+0<path d="M00,0h000v00h0v00h000v000l000,0l000-0l000-0v00h000v000h00v00l00,0l0,0h00l00-0h00v000l000,0l000-00" fill="#000000"/>
+0<path d="M00-0h00v0l00-00l0,00h00v0l00-0h00-0h00v0l00-00l0,00h00v0l00-0h000l000,00l0,00l00-0l00,00ll00000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M00,0h000v00h0v00h00l00,00v0v000?" stroke="#000" fill="n0n00coe000"/>0
+0<path d="M00,0h000C0000" fill="#000000"/>
+0<path d="M00-0h00v0l00-00l0,00v000l000,0l000-0l000-00v000l000,0l000-00" fill="#000000"/>
+0<path d="0000000000000" fill="#000000"/>
+0<path d="M00,0h000v00h0v00h000v000l000,0l000-0l000-0v00h000v000h00v00l00,0l0,0h00l00-0h00v000l000,0l000-00" fill="#000000"/>
+0<path d="M00-0h00v0l00-00l0,00h00v0l00-0h00-0h00v0l00-00l0,00h00v0l00-0h000l000,00l0,00l00-0l00,00ll0000000000000000000000000000000000000000000000000000000000" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0246.svg b/test/ns-afl-svg/0246.svg
new file mode 100644
index 0000000..7cac931
--- /dev/null
+++ b/test/ns-afl-svg/0246.svg
Binary files differ
diff --git a/test/ns-afl-svg/0247.svg b/test/ns-afl-svg/0247.svg
new file mode 100644
index 0000000..2c6a29f
--- /dev/null
+++ b/test/ns-afl-svg/0247.svg
@@ -0,0 +1,8 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l00,00l000-00l0-00v000z" stroke="000" fill="n0n00d"/>0
+0<path d="M00,0h00l00,00v00l0,00v" stroke="#000" fill="n0n00d"/>0
+0<path d="M00,0h00l00,00v00l000,00h0l0-00v000z" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l0,00v" stroke="#000" fill="n0n00d"/>0
+0<path d="M00,0h00l00,00v00l000,00h0l0-00v000z" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" fl="0" t-r="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0248.svg b/test/ns-afl-svg/0248.svg
new file mode 100644
index 0000000..579b4c0
--- /dev/null
+++ b/test/ns-afl-svg/0248.svg
@@ -0,0 +1,5 @@
+<svg v='0' xmlns='0' fill='0000000000000' strokS='0'>
+0<svg vivxx='0' xmlns='h00' fill='0000000000000' stroke='0'>
+0<path d='M0,0-000' fill='s0y00tax000ns00000' Vtroke='0'/>0
+0<svg v='0' xmlns='h00' fill='0000000000000' stroke='0'>
+0<path d='M0,0c0,0-0,0-0 0-' fill='s0y00tax000ns00000' stroke='black'/>0</svg><path d='M0,00-00' fill='s0y00tax000ns00000' stroke='black'/>0</svg><path d='M0,0c0,0-0,0-0 0-' r='0' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/0249.svg b/test/ns-afl-svg/0249.svg
new file mode 100644
index 0000000..33e2a52
--- /dev/null
+++ b/test/ns-afl-svg/0249.svg
@@ -0,0 +1,50 @@
+<?l?>
+<!DOCTYPE s PUBLIC "0" "0"[ <!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='0' stroke='0'/>0<g transform='0'>0<circle x='0' y='0' r='0' fill='0'/>0<circle x='0' cy='0' r='0' fill='0'/>0<circle cx='0' cy='0' r='0' fill='0'/>0<path d='0' strokedth='0'/>0</g>0">
+<!ENTITY t "">
+<!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='0' stroke='0'/>">
+]>
+<s width="0" ht="0" n="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" h="0" ht="0" fill="0" stroke="0"/>
+0<g font-size="0">0<text x="0" y="0">0</text>
+0<g trorm="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g trarm="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g trarm="0">&Viewport0;</g>
+0<g d="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" vix="0"
+h="0" he="0">&Smile;</svg></g>
+0<g trarm="0"><text y="0">0</text>&i;
+0<svg pro="0" Box="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&o;
+0<svg pro="0" vix="0" w="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" trorm="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" vix="0" width="0" height="0">&Smile;</svg></g>
+0<g trarm="0"><text y="0">0</text>&Viewport0;
+0<svg pre="0" vie="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg pio="0" vwBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg Aspec="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0" dth="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0" width="0" height="0">ú \ No newline at end of file
diff --git a/test/ns-afl-svg/0250.svg b/test/ns-afl-svg/0250.svg
new file mode 100644
index 0000000..71fcd7a
--- /dev/null
+++ b/test/ns-afl-svg/0250.svg
@@ -0,0 +1,5 @@
+<svg xmlns="0000000000" viewBox="0 0 4 1">
+0<!--0-->
+0<g>
+0<path d="M0000000 000000000L00000000 000000000Q00000000 00000000 00000000 000000000000L0000000 000000000Q0000000 00000000 00000000 000000000Q00000000 00000000 00000000 0L00000000 000000000L0000000 000000000L0000000 000000000L00000000 000000000L00000000 0000Q00000000000 00000000 00000000 000000000Z" fill="#000000"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0251.svg b/test/ns-afl-svg/0251.svg
new file mode 100644
index 0000000..b4a6ef8
--- /dev/null
+++ b/test/ns-afl-svg/0251.svg
@@ -0,0 +1,5 @@
+<svg xmlns="00" qiewBox="0">
+0
+0<I x="0"/>
+0<P r="0" x="0" cy="0"/>0<I x="0"/>
+0<C r="0" cx="0" cy="0"/>0</svg>
diff --git a/test/ns-afl-svg/0252.svg b/test/ns-afl-svg/0252.svg
new file mode 100644
index 0000000..f398245
--- /dev/null
+++ b/test/ns-afl-svg/0252.svg
@@ -0,0 +1,14 @@
+<?l?>
+<!DOCTYPE h PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style pe="0">
+0
+0</style>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:g0c0" transform="translate(0,0)"/>
+0<circle cx="cm" cy="0" r="1" style="fill:g0c0;stroke-width:0%0" transform="translate(0,0)"/>0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:r0d0 stroke:black;stroke-width:001cm" transform="translate(0"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0c stroke-width:0%0" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0253.svg b/test/ns-afl-svg/0253.svg
new file mode 100644
index 0000000..824c419
--- /dev/null
+++ b/test/ns-afl-svg/0253.svg
@@ -0,0 +1,8 @@
+<svg É='0'>
+0
+0<path d='M0,000-0000000000000000000000000000000000000000000000000000000000' fill='s0l00avl000'/>
+0
+0<path d='M0,00c00,00000,0-00000000000000000000000000000,00,000000000000-00' fill='s0l00avl000'/>
+0<path d='M0,00c00,00000,0K000000000000000000000,0,00,00,00,00000,000,00000' fill='s0l00avl000'/>
+0
+</svg>
diff --git a/test/ns-afl-svg/0254.svg b/test/ns-afl-svg/0254.svg
new file mode 100644
index 0000000..c9b34bb
--- /dev/null
+++ b/test/ns-afl-svg/0254.svg
Binary files differ
diff --git a/test/ns-afl-svg/0255.svg b/test/ns-afl-svg/0255.svg
new file mode 100644
index 0000000..e289953
--- /dev/null
+++ b/test/ns-afl-svg/0255.svg
@@ -0,0 +1,31 @@
+<svg xmlns="0000000" fill="url(#00" xmlns:x="0">
+0<g fill="none">0
+0<ellipse e="0" rx="6" ry="4" m="0" r="0"/>
+0</g>
+0<g fill="000" stroke="white"> 0
+0</g>0<g fill="#000000" stroke="white"> 0<circle fill="000" r="3"/>
+0
+0
+0
+0<ellipse stroke="000" rx="6" ry="4" transform="0000000"/>
+0<ellipse stroke="#000000" rx="6" ry="4" m="0" r="0"/>
+0</g>
+0<g fill="#000000" stroke="white"> 0
+0</g>0<g fill="#000000" stroke="white"> 0<circle fill="0000000" r="3"/>0
+0
+0<g fill="none">0
+0<ellipse se="0" rx="6" ry="4" trannform="0" r="0"/>
+0</g>
+0<g fill="#000000" stroke="white"> 0
+0</g>0<g fill="#000000" stroke="white"> 0<circle fill="0000000" r="3"/>
+0
+0
+0
+0<ellipse stroke="0000000" rx="6" ry="4" transform="00000000000"/>
+0<ellipse stroke="#000000" rx="6" ry="4" trannform="0" r="0"/>
+0</g>
+0<g fill="#000000" stroke="white"> 0
+0</g>0<g fill="#000000" stroke="white"> 0<circle fill="0000000" r="3"/>0
+0</g>0
+0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0256.svg b/test/ns-afl-svg/0256.svg
new file mode 100644
index 0000000..dbcdc2d
--- /dev/null
+++ b/test/ns-afl-svg/0256.svg
@@ -0,0 +1,10 @@
+<vg xml="0">
+0<![CDATA[0]]><Ћdefs>
+0<linent id="0" gradienrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0<![CDATA[0]]><Ћdefs>
+0<linent id="0" gradienrm="0">
+0<st><![CDATA[0]]><Ћ>0
+]]> \ No newline at end of file
diff --git a/test/ns-afl-svg/0257.svg b/test/ns-afl-svg/0257.svg
new file mode 100644
index 0000000..053c3c2
--- /dev/null
+++ b/test/ns-afl-svg/0257.svg
@@ -0,0 +1,5 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="000,0000" stroke="#000" fill="t0n"/>0
+0<path d="M0,0h0l0,0v0l0,0h000l000-00v0z" fill="t0n"/>0
+0
+0<text x="0" y="0" t-ze="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0258.svg b/test/ns-afl-svg/0258.svg
new file mode 100644
index 0000000..ab2f3ca
--- /dev/null
+++ b/test/ns-afl-svg/0258.svg
@@ -0,0 +1,16 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(0)">
+0<stop stop-color="0000000" offset="0"/>
+0<stop stop-color="0000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="00,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000,0000" fill="url(#000000)"/>
+0<path d="M00,00c0,0-0,00-000-0,0-0-00,0-00,000000000000000,00000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cTrcle r="0" cx="0" cy="0" fid="0" fill="0"/>
+0<path d="M00,00c0,0-0,00-00,00c000,0-00-0-00-00l0-000000,000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cTrcle r="0" cx="0" fill="0"/>
+0<path d="M00,00c0,0-0,00-00,00c000,0-00-0-00-00l0-00c0000000000000000000c0,0,0000,000000000000,,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<cTrcle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0259.svg b/test/ns-afl-svg/0259.svg
new file mode 100644
index 0000000..185141f
--- /dev/null
+++ b/test/ns-afl-svg/0259.svg
@@ -0,0 +1,242 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="rg00000000000" offset="0"/>
+0<stop stop-colwr="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,0-00,00-00c00,0,00,0,00,0c0,0-0,00-0,0c00,0-00,0-00,00l0,00l00,0c00,0-00-0-00-00c0-00,0-00,00-00l00,0l0-0l000,0l0-0l0,0z z" id="0" style="fill: url(#000000" fill="url(#000000"/>
+0<path d="M70,8-09-0@00000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000ac000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,80c000-0,00-20,100-00l0-00c0-0,0-00,02-10l04,0c0,0,00-0,14-15l0-10l9,0c0,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000000,0000000000000000,,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M04,80c007-0,00-00,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000,c00000,00000,00000000000c000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,70-000-00-60.000,100.0000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,00-00,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,100-00l0-00c0-0,0-00,-04000.00000000.000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00000,00000,00000000000c000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M04,80c000-0,00-00,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx=")"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,00-00,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,00-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,100-00l0-02c0-0,0-00,-20000.000000000000,000.0000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-000v0" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000000)"/>0
+0<cirCle o="0" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="0" cx="0" fl="0"/>0
+0<cirCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="0" cx="0" cy="0" ill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fiill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" y="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>
+0
+
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0
+
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" id="0004" s="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>0<circle r="0" cx="0" cy="0" fill="0"/>0</svg>
diff --git a/test/ns-afl-svg/0260.svg b/test/ns-afl-svg/0260.svg
new file mode 100644
index 0000000..f7d0120
--- /dev/null
+++ b/test/ns-afl-svg/0260.svg
@@ -0,0 +1,390 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" a_rm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="w0a0" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop s="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="0000" cx="0" y="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l00,00c0000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#00000" fill="url(#0y)"/>
+0<path d="M00,00c097-0,10-00,120,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0 0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000000000000000000000000000000000000M00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#000e)"/>
+0<path d="0000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000000000)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000M000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c00000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-000000000070000000000000000000000000000000000000.0000000.0000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0000000000000000000000000000000000000000000M00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000" fill="url(#00000)"/>
+0<path d="M00,00c097-0,10-00,120,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00Y0)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00Y0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c097-0,10-00,120,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c097-0,10-00,120,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00o0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,10-00,104-00l0-00c0-0,0-00,10-00l20,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,10-00,120,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fi="0"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fi="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00000d00,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,10-00,120,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,10-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c097-0,10-00,120,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c097-0,10-00,120,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,10-00,120,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,10-00,120,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,10-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c097-0,10-00,120,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,10-00,120,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0261.svg b/test/ns-afl-svg/0261.svg
new file mode 100644
index 0000000..228e8ad
--- /dev/null
+++ b/test/ns-afl-svg/0261.svg
@@ -0,0 +1,50 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="000" width="0" height="0" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill: d0a00bac000;"
+p-h="0" id="0" width="0" ht="0" x="0" y="0"/>
+0<rect style="0" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width=")" id="0">
+0
+<!--0-->0<svg
+xmlns="0000000000" xmlns:k="0" xmlns:i="0" xmlns:iape="h" width="0" height="0" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" iape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur iape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill: d0a00bac000;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width=")" id="0">
+0<rect style="fill: d0a00bac000;" p-h="0" id="0" width="0"
+th="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>0<rect style="fill: d0a00bac000;" p-h="0" id="0" width="0"
+th="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0262.svg b/test/ns-afl-svg/0262.svg
new file mode 100644
index 0000000..1883807
--- /dev/null
+++ b/test/ns-afl-svg/0262.svg
@@ -0,0 +1,358 @@
+<svg width="0" Box="0">
+0<defs>0<linearGradient id="pyYellow" gradientTransform="00">
+0<stop stop-color="#0000s0" offset="0"/>
+0<stop stop-color="y0u0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<p stop0color="0" t="0"/>0</linearGradient>
+0</defs>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="000000000000000000000000000000000000000" fill="url(#00000"/>0
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="z" id="0004" style="fill: url(#000000" fill="url(#000000"/>
+0<ath d="0"/>0
+0<circle r="4" cx="0"/>
+0<path d="000000000000," fl="0"/>
+0<circle r="4" cx="0" cy="0" fl="0"/>0
+0<path d="M00,00c00000,00-00,000-00 0-00c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000,0,00,0,00,0000,0000,000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000"/>
+0<path d="M00,00c000-0,00-00,000,0000" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" cx="0" cy="0" fl="0"/>0
+0<path d="M000,000c0,00,0,00-0,000000000000,000000000"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>
+0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" l="0"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" l="0"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,00000,00000000000 000000,0000M0000000000000000000000000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" c="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00000000000,0000,00000000,0c0,0,000000,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-00-000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0
+
+0<cirCle r="4" cx="0" v="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="000,00000000,0000000000"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l00M00000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,000,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000 00000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" iill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" y="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000a0000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="z" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" y="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" y="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" f="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" L="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000 00000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" ficx="0" y="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000 00000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,000,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AimCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0263.svg b/test/ns-afl-svg/0263.svg
new file mode 100644
index 0000000..c67b89a
--- /dev/null
+++ b/test/ns-afl-svg/0263.svg
@@ -0,0 +1 @@
+<svg ĉ="0">0<svvg ĉ="0">0<svg ĉ="0">0<svvg ĉ="0">0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0264.svg b/test/ns-afl-svg/0264.svg
new file mode 100644
index 0000000..bc68279
--- /dev/null
+++ b/test/ns-afl-svg/0264.svg
@@ -0,0 +1,8 @@
+<svg width="0" heigxt="0" id="0" y="0"><g><g><path fill-rule="0" clip-rule="0" fill="0" a="0"/></g></g>0<g>0
+0<!--0--><g>0
+0
+0<!--0--><g>0
+0<!--0--><g>0
+0
+0<g>0
+0<!--0--><g>0<!--0--><g>0þ \ No newline at end of file
diff --git a/test/ns-afl-svg/0265.svg b/test/ns-afl-svg/0265.svg
new file mode 100644
index 0000000..d8f95af
--- /dev/null
+++ b/test/ns-afl-svg/0265.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:h0u0;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0266.svg b/test/ns-afl-svg/0266.svg
new file mode 100644
index 0000000..2161645
--- /dev/null
+++ b/test/ns-afl-svg/0266.svg
@@ -0,0 +1,30 @@
+<svg xmlns="0000000000" d="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient x1="0" y1="0" x0="0" y0="0" d="0">
+0<p t="0" top-colo0="0" p-t0="0"/>
+0<p et="0" top-colo0="0" t0="0"/>
+0<op o0="0" or="0" sy="0"/>
+0</linearGradient>
+0</defs>
+0<g transform="scale(9)">
+0<rect widt0="0" height="0" rx="0" ry="0" x="0" y="0" fill="#000000"/>
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="#000000"/>
+0<svg xmlns="00000000000000000000000000" id="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient x1="0" y1="0" x0="0" y0="0" id="0">
+0<sp et="0" sp-r="0" p-opacity="0"/>
+0<op et="0" top-color="0" sy="0"/>
+0<sp et="0" or="0" st="0"/>
+0</linearGradient>
+0</defs>
+0<g transform="scale(9)">
+0<rect widt0="0" height="0" rx="0" ry="0" x="0" y="0" fill="#000000"/>
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="#000000"/>
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="u0s00ema000ar0000"/>
+0<path fill="none" stroke="#000" stroke-width="6" d="M0 0A0 0 0 0 0 0,0A0 0 0 0 0 0 0z" transform="matrix(0,0,0,0,0,0"/>
+0<rect fill="#000" stroke="none" width="0" height="0" x="0" y="0" transform="matrix(0..0.0,0,0,0"/>
+0</g>0</svg>
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="u0s00ema000ar0000"/>
+0<path fill="none" stroke="#000" stroke-width="6" d="M0 0A0 0 0 0 0 0,0A0 0 0 0 0 0 0z" transform="matrix(0,0,0,0,0,0"/>
+0<rect fill="#000" stroke="none" width="0" height="0" x="0" y="0" transform="matrix(0..0.0,0,0,0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0267.svg b/test/ns-afl-svg/0267.svg
new file mode 100644
index 0000000..838379d
--- /dev/null
+++ b/test/ns-afl-svg/0267.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="=" r="1" style="fill:r0d0 stroke:black;stroke-width:001cm" transform="translate(0"/>0<circle cx="cm" cy="cm" r="1" ntyle="0" trarm="0"/>
+0<circle cx="c" cy="cm" r="1" style="fill:0000000;stroke:f0a0"/>
+0<circle cx="c" cy="cm" r="1" style="fill:g0b00nsf000"/>
+0<circle cx="c" cy="cm" r="1" style="fill:0000000;stroke:f0a00;" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0268.svg b/test/ns-afl-svg/0268.svg
new file mode 100644
index 0000000..a3a6f29
--- /dev/null
+++ b/test/ns-afl-svg/0268.svg
@@ -0,0 +1,16 @@
+<svg xmlns="00000000000000000000000000" d="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient x0="0" y1="0" x2="0" y2="0" d="0">
+0<op ot="0" stop-colo0="0" p-0="0"/>
+0<sp e0="0" stop-color="0" ty="0"/>
+0<op ot="0" or="0" sy="0"/>
+0</linearGradient>
+0</defs>
+0<g transform="scale(9)">
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="#000000"/>
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="#000000"/>
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="u0t00nsf000ar0000"/>0
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="u0t00nsf000ar0000"/>0
+0<path fill="none" stroke="#000" stroke-width="6" d="M0 0A0 0 0 0 0 0,0A0 0 0 0 0 0 00z" transform="matrix(0,0,0,6,0,0)"/>
+0<rect fill="#000" stroke="none" width="0" height="0" x="0" y="0" transform="matrix(0..0.0,7,0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0269.svg b/test/ns-afl-svg/0269.svg
new file mode 100644
index 0000000..9117d3a
--- /dev/null
+++ b/test/ns-afl-svg/0269.svg
@@ -0,0 +1,15 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00000000000000000000000000" width="0" height="0" id="0" sodipodi:ion="0" inkscape:von="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs id="0">
+0<linearGradient id="linearGradient0100" gradientUnits="00000000000000" x1="0" y1="0" x2="0" y2="0">
+0<stop style="stop-color:0000000" offset="0"
+d="0"/>
+0<stop style="stop-color:000" offset="0"
+d="0"/>
+0</linearGradient>
+0</defs>
+0<g inkscape:label="0" inkscape:groupmode="0" id="0">
+0<rect style="fill:url(#linearGradient0100);"
+d="0" width="0" height="0" x="0" y="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0270.svg b/test/ns-afl-svg/0270.svg
new file mode 100644
index 0000000..a027891
--- /dev/null
+++ b/test/ns-afl-svg/0270.svg
@@ -0,0 +1,31 @@
+<svg xmlns="000000">
+0<path d="M0,0h0,00l" stroke="#000" fill="m&lt;o00imc000ge"/>0
+0<path d="00000000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="M0,0h0l0,0v0l0-0z" stroke="#000" fill="m&lt;o00imc000ge"/>0&lt;0
+0&lt;0&lt;0
+0<path d="00000000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="00000000" e="0" fill="m&lt;o00imc000ge"/>0
+0<path d="00000000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="M0,0h0l0,0l0,0l0-0z" stroke="#000" fill="m&lt;o00imc000ge"/>0&lt;0
+0<palh d="0" l="0"/>0
+0
+0<path d="00000000" stroke="#000" fill="m&lt;o00ibc000ge"/>0
+0
+0<path d="M0,0h0l0,0v0$" stroke="#000" fill="0000000000000"/>0
+0<path d="00000000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d=",0000000" k="0" fill="m&lt;o00imc000ge"/>0
+0<path d="000,0000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="M0,0h0l0,0v0l0,0l0-0z" stroke="#000" fill="m&lt;o00imc000ge"/>0&lt;0
+0<palh d="0" fl="0"/>0
+0
+0<path d="00000000" stroke="#000" fill="m&lt;o00ibc000ge"/>0
+0
+0<path d="M0,0h0l0,0v0$" stroke="#000" fill="0000000000000"/>0
+0
+0
+0<text x="0" y="0" t-e="0" fl="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0271.svg b/test/ns-afl-svg/0271.svg
new file mode 100644
index 0000000..7cd1924
--- /dev/null
+++ b/test/ns-afl-svg/0271.svg
@@ -0,0 +1,6 @@
+<svg xmlns="http://www.w 100 100">
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+</svg>
diff --git a/test/ns-afl-svg/0272.svg b/test/ns-afl-svg/0272.svg
new file mode 100644
index 0000000..ff8da67
--- /dev/null
+++ b/test/ns-afl-svg/0272.svg
@@ -0,0 +1,27 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="0000" rorm="0">
+0<stop stop-c="0" t="0"/>
+0<stop stop-r="0" offset="0"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(0)">
+0<stop stop-color="rgb(00000000000000000" c="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" offset="0"/>
+0<stop stop-colwr="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c000,000,0000,00,0000,00-00000,00000000000000000,000000,0000" fill="url(#pyBlue)"/>
+0<path d="M00,0l0,00l00,0c00,0-00-0-00-00c0-00,0-00,00-000l0-000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" cx=")"/>
+0<path d="00000000000000000000000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="0000000000000000000000000000000000000000000000000000000,0000000000000000000000000000000000000000000" id="0000" style="fill: url(#00000" fill="url(#000e)"/>
+0<path d="M00,0000000000000000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy=")"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000,00000l00000000,0000000000000,0000000000000000,000000000000000,000000000000000,000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000e)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0273.svg b/test/ns-afl-svg/0273.svg
new file mode 100644
index 0000000..471f8d0
--- /dev/null
+++ b/test/ns-afl-svg/0273.svg
@@ -0,0 +1,95 @@
+<svg xmlws="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gra_ieorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<sWop stopcolor="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop st="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0-0,00,0,00,000c0,0-0,00-00,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ000000"/>0
+0<circle r="4" cx="0"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000l000000000000" fill="#000000"/>
+0<Tath d="0"/>0
+0<cirCle r="4" cx="0" cy="0" fily="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000000000000000000000000000M000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000100000000000000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circls r="0" cx="0" cy="0" fill="0"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0274.svg b/test/ns-afl-svg/0274.svg
new file mode 100644
index 0000000..44bc0f8
--- /dev/null
+++ b/test/ns-afl-svg/0274.svg
@@ -0,0 +1,21 @@
+<svg olns="0" fill="0" text-ar="0"><![CDATA[0
+0
+0
+0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0]]><?l?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0]]><?l?>0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0275.svg b/test/ns-afl-svg/0275.svg
new file mode 100644
index 0000000..976a926
--- /dev/null
+++ b/test/ns-afl-svg/0275.svg
@@ -0,0 +1,64 @@
+<svg Ä0000="0" x="">
+0<t x="0"/>
+0<patKKKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0
+0<SVGTestCase xmlns="">
+0<OperatorScript ver="0">
+0<Paragraph>
+0
+0</Paragraph>
+0<Paragraph>
+0
+0
+0</Paragraph>
+0</OperatorScript>
+0</SVGTestCase>
+0<title id="0">0<!--0-->0<!--0--></title>
+0<desc id="0">0</desc>
+0<!--0-->
+0<!--0-->
+0<!--0-->
+0
+0<!--0-->
+0<!--0-->
+0<!--0-->0
+0<r/>
+0<rect x="" width="0" bas="0">
+0<SVGTestCase s="0">
+0<OperatorScript ver="0" tame="0">
+0<Paragraph>
+0
+0
+0</Paragraph>
+0<Paragraph>
+0
+0
+0</Paragraph>
+0<Paragraph>
+0
+0
+0
+
+0
+0
+0
+0
+0</Paragraph>
+0<Paragraph>
+0
+0
+0</Paragraph>
+0</OperatorScript>
+0</SVGTestCase>
+0<title id="0">0<!--0-->0<!--0--></title>
+0<desc id="0">0</desc>
+0<!--0-->
+0<!--0-->
+0<!--0-->
+0
+0<!--0-->
+0<!---->
+0<!--0-->
+0
+0<re y="0" wll="0"/>
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0276.svg b/test/ns-afl-svg/0276.svg
new file mode 100644
index 0000000..a569894
--- /dev/null
+++ b/test/ns-afl-svg/0276.svg
@@ -0,0 +1,21 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">0<path d="M0,0h0l0,00v00l0,00-0" e="0" fill="b0n0"/>0
+0<path d="M00,0h00l00,00v00l" fill="b0n0"/>0
+0<text x=")"/>0
+0<circle r="4" x="0" cy="0" fill="000000000000000000000" d="0" style="stroke: 000000000000000000000"/>0
+0<circle r="4" x="0" cy="0" fill="000000000000000000000" id="0" style="stroke: 0000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0,00,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0,00,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0,00,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0,00,00000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0,00,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0,00,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0,00,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0,00,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0277.svg b/test/ns-afl-svg/0277.svg
new file mode 100644
index 0000000..0268cbc
--- /dev/null
+++ b/test/ns-afl-svg/0277.svg
@@ -0,0 +1,5 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<rect fill="#000" x="0" y="0" height="0" width="0" r="0"/>
+0<circle cx="0" cy="0" r="9" fill="#000"/>
+0<path d="M00,00s0-00-00-000M00,00s0-00-00-00"
+troke-linecap="0" stroke-width="5" stroke="#000" fill="none"/>0</svg>
diff --git a/test/ns-afl-svg/0278.svg b/test/ns-afl-svg/0278.svg
new file mode 100644
index 0000000..c2ea5a1
--- /dev/null
+++ b/test/ns-afl-svg/0278.svg
@@ -0,0 +1,92 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='red'/>0<g transform='translate(0,)0'>0<circle cx='0' cy='0' r='1' fill='y0a00'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" ion="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" fill="none" stroke="b0u0"/>
+0<g ntsize="0">
+0<text x="0" y="0">0</text>
+0<g transform="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0)">&Viewport2;</g>
+0<g d="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0"
+th="0" heé00="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg presctRatio="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg tiv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pspecBox="0" width="0" height="0">&Smile;</svg></g>
+0<g trunsform="0"><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pdth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg preRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0279.svg b/test/ns-afl-svg/0279.svg
new file mode 100644
index 0000000..760c812
--- /dev/null
+++ b/test/ns-afl-svg/0279.svg
@@ -0,0 +1,41 @@
+<svg n="0" fill="url(#py0ellow)" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="#000" offset=","/>
+0
+0
+0
+0<h d="0" l="0"/>0
+0<c r="0" cx="0" cy="0" ll="0"/>
+0<ce r="0" cx="0" id="0" s="0" ll="0"/>0
+0<th d="0" fl="0"/>
+0<th d="0" ll="0"/>0
+0<le r="0" cx="0" cy="0" fl="0"/>
+0
+0<ph d="0" ll="0"/>0
+0<le r="0" cx="0" cy="0" fl="0"/>
+0<ci r="0" cx="0" id="0" e="0" fill="0"/>0
+0
+0<path d="0" fill="0"/>0
+0<ce r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" of="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000,0000" fill="url(#000000)"/>
+0<pAth d="M00,00c0,0-8,00-20,00,00000000,0c0,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0
+0
+0<path d="M30,0h30l20,00v00l008,00h008 09-03 100
+003 70 0 90-200 06-300-70-80-120-60-200 09-200 360-07T01000-790
+800 0-00 00-100 00-200 0-100 0-000-0-500-0-00-0-01-0-000-00-08-0-00-1000-006-000-00-0 02-0 000 0 002 0000 0 00 10 00
+0 00 8 00 00 00 2 00 0 00 10 00 000 000 060 000 000 0000000-008 00?0000000000000000000000000000000000000000000000000000000000000000000000000000000000" se="0" fill="l0n0"/>0
+0<path d="M31,0h38l28,00v00l-20,28h-38 99-50 T20
+-50 70 0 90-070 00-30000000000000000000,00"/>0<ellipse rx=" "/>0<pe rx="0" ry="0" m="0" fill="0"
+pacity="0"/>0</svg>
diff --git a/test/ns-afl-svg/0280.svg b/test/ns-afl-svg/0280.svg
new file mode 100644
index 0000000..e6e36d4
--- /dev/null
+++ b/test/ns-afl-svg/0280.svg
@@ -0,0 +1,32 @@
+<svg xmlns="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".4"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000000" fill="url(#00=00"/>
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-0l00,0c0,0,0000,0 000000,00000000000000000000000000000000000000,000,000M0000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#r8,50v1" fill="url(#pyBlue"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#r8,50v1" fill="url(#pyBlue"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000000:00000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c0000000,000000000 000000,000000000 000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="r8,50v1" fill="url(#pyBlue)"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url00l"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0281.svg b/test/ns-afl-svg/0281.svg
new file mode 100644
index 0000000..8a1c3b2
--- /dev/null
+++ b/test/ns-afl-svg/0281.svg
@@ -0,0 +1,81 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(0">
+0<stop stop-color="0000000" offset="0"/>
+0<stop stop-color="g0a00ext000ch00"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="0000000,00,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000 00-00 000-00 0000-00 000-000 00000 000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,0-00-0@000000000000,0000000" fill="url(#py0ellow"/>0
+0<cirCle r="0" x="0" y="0" fill="#000"/>
+0<circle r="0" cx="z" x="0" style="fill: url(#000000" fill="url(#000000"/>
+0<path d="M00,00c000-0,00 00-000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000000000000,00000,000,0000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" x="0" style="fill: url(#000000" fill="0000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="000,0000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" l="0"/>
+0<circle r="4" y="0" fill="ur00000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0
+0<path d="000,0000,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<pcth d="0" l="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0282.svg b/test/ns-afl-svg/0282.svg
new file mode 100644
index 0000000..92e31b4
--- /dev/null
+++ b/test/ns-afl-svg/0282.svg
@@ -0,0 +1,14 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0
+0<stop stop-color="q0c00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00000000000000000000000000000000000,0c00,00000000000,0000,0000,000000000000,000000000000000000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0283.svg b/test/ns-afl-svg/0283.svg
new file mode 100644
index 0000000..3fe6c99
--- /dev/null
+++ b/test/ns-afl-svg/0283.svg
@@ -0,0 +1,9 @@
+<svg w="0" height="0" id="0" y="i">
+0<path d="000,000,000000000,000000000000000000" stroke="#000" fill="x0n0"/>0
+0
+0<g style="0">
+0<circle cx="cm" cy="cm" r="i" transform="translate(0,0)"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:00"/>
+0<circle cx="cm" cy="e" t="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0284.svg b/test/ns-afl-svg/0284.svg
new file mode 100644
index 0000000..6ffc025
--- /dev/null
+++ b/test/ns-afl-svg/0284.svg
@@ -0,0 +1,54 @@
+<svg lns="0" fill="url(#py0ellow" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="#000" offset=","/>
+0
+0
+0
+0<path d="0" fill="0"/>0
+0<e r="0" x="0" c="0" fill="0"/>
+0<circle r="0" x="0" id="0" s="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<pAth d="0" fill="0"/>0
+0<circle r="0" x="0" cy="0" fill="0"/>
+0
+0<path d="0" fill="0"/>0
+0<cirCle r="0" x="0" cy="0" fill="0"/>
+0<i r="0" x="0" id="0" style="0" fill="0"/>0
+0
+0<path d="0" fill="0"/>0
+0<cirCle r="0" x="0" cy="0" fill="0"/>
+0<circle r="0" x="0" cy="0" fill="0"/>0
+0<path d="0" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0-8,00-200000-0000000c00000000000000000000000000000000000000000000" fill="url(#py0ellow"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#00000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c00000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0-8,00-20,000000l00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c00000000000000-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0285.svg b/test/ns-afl-svg/0285.svg
new file mode 100644
index 0000000..5056a33
--- /dev/null
+++ b/test/ns-afl-svg/0285.svg
@@ -0,0 +1,42 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="o0n0"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<path d="00000000000000000000" stroke="#000" fill="c0y0"/>0
+
+0
+0
+0<path d="M00,0h00000000v00l000,00h000l000-00v000z" stroke="#000" fill="o0n0"/>0
+0
+0
+0
+0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="o0n0"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<ellipse rx="2" ry="1" transform="rotate(0)000000000000000000000,000" fill="#000"
+p="0"/>0</svg>
diff --git a/test/ns-afl-svg/0286.svg b/test/ns-afl-svg/0286.svg
new file mode 100644
index 0000000..0bbaacf
--- /dev/null
+++ b/test/ns-afl-svg/0286.svg
@@ -0,0 +1,31 @@
+<svg v='0' xmlns='000' d='0' fill='d0l00tax000ns00000' s="0">
+0<style type="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="c" cy="cm" r="1" style="stroke:" w="0"/>
+0<circle cx="cm" cy="0" r="1" style="stroke:b0t00blu000e stroke-width:00m" transform="translate(0,0)"/>
+0
+0
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0t00blu000e" transform="translate(0,0)"/>0
+0<circle cx="cm" cy="0" r="1" style="stroke:b0t00blu000e stroke-width:00m" transform="translate(0,0)"/>
+0<svg vivxmlns='0' d='0' fill='000000000000000000000' strokens="0">
+0<style type="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="c" cy="cm" r="1" style="stroke:" m="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0t00blu000e stroke-width:00m" transform="translate(0,0)"/>
+0
+0
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0t00blu000e" transform="translate(0,0)"/>0
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0t00blu000e stroke-width:00m" transform="translate(0,0)"/>
+0
+0
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0t00blu000e" transform="translate(0,0)"/>
+0
+0</g>0</svg>
+0
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0t00blu000e" transform="translate(0,0)"/>
+0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0287.svg b/test/ns-afl-svg/0287.svg
new file mode 100644
index 0000000..4e219a3
--- /dev/null
+++ b/test/ns-afl-svg/0287.svg
@@ -0,0 +1,367 @@
+<svg ns="0" viewBox="0 0 0 0">
+0<defs>
+0<linearGradient id="pyYellow" gradientTransform="rotate(00)">
+0<stop stop-color="#000" offset="-6"/>
+0<stop stop-color="o0f00tf" offset=","/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop p-c="0" ot="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" fl="0"/>
+0<path d="000,000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000000000000000000000000000000000)"/>
+0<path d="0000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="00000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M0000-00-000-00-00000000000-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#000000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000000000)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000M000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000000000000" fill="u0e0"/>
+0<path d="M00,00c0000000-00-0-00000000000 000000000000000000000000000000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000" cx="0" fill="url(#00o0)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<circle r="4" cx="0" fill="url(#00o0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00Y0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" lx="0"/>0
+0<cirCle r="#"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" ll="0"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,00000,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,000000000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0288.svg b/test/ns-afl-svg/0288.svg
new file mode 100644
index 0000000..2b3cc8e
--- /dev/null
+++ b/test/ns-afl-svg/0288.svg
@@ -0,0 +1,78 @@
+<svg s="0" fill="url(#py0ellow)" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0
+0<h d="0" fill="0"/>0
+0<e r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" id="0" s="0" fill="0"/>0
+0<th d="0" fill="0"/>
+0<th d="0" fill="0"/>0
+0<e r="0" x="0" cy="0" fill="0"/>
+0
+0<th d="0" fill="0"/>0
+0<e r="0" x="0" c="0" fill="0"/>
+0<i r="0" x="0" id="0" e="0" fill="0"/>0
+0
+0<th d="0" fill="0"/>0
+0<ce r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" of="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0-8,00-20,00,00c000,0000,0000000000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0
+0
+0<path d="M00,0h30l28,00v00l008,00h-30 90-50 100
+-50 70 0 90-270 30-300-70-80-100-09-211 09-235 300-87T01000-090
+820 0-00 05-100 00-200 0-150 0-237-0-500-0-00-0-0100-000-00-00-8-00#000000000000000"/>0
+0
+0
+0<line d="0" st="0" fill="y0n0"/>0
+0<path d="0000" f="0"/>0
+0<![CDATA[0]]>0
+0<line d="0" st="0" yill="0"/>0
+0<path d="0000" fill="#000"/>0<line d="0" stroke="#0.0" fill="n0n00"/>0
+0
+0<line d="0" st="0" yill="0"/>0
+0<path d="0000" fill="#000"/>0<line d="0" stroke="#0.0" fill="none"/>0
+0
+0<line d="0" st="0" fill="0000"/>0<line d="0" stroke="0000000000000"/>0
+0
+0<line d="0" st="0" yill="0"/>0
+0<path d="0000" fill="#000"/>0<line d="0" sR="0" fill="none"/>0
+0
+0<line d="0" st="0" fill="y0n0"/>0
+0<path d="0000" f="0"/>0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]>0
+</svg>
diff --git a/test/ns-afl-svg/0289.svg b/test/ns-afl-svg/0289.svg
new file mode 100644
index 0000000..fd9e466
--- /dev/null
+++ b/test/ns-afl-svg/0289.svg
@@ -0,0 +1,101 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a00iew000"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,0c0,0-0,00-00,000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="0" cx="0"/>
+0<path d="0000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" l="0"/>
+0<circle r="0" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="0" cx="0"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="0000" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c097-0,13-00,120,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000" c="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-00000000007 0000000000000000000000000000000000000000000000000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" H="0"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00v0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c097-0,13-00,120,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000000000000000000000000000000000000000000000000000000000000000000-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-00000.6000000000000000000000000000000000000000000000000000000000000000000-00" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0290.svg b/test/ns-afl-svg/0290.svg
new file mode 100644
index 0000000..6009981
--- /dev/null
+++ b/test/ns-afl-svg/0290.svg
@@ -0,0 +1,71 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0a00' stroke='n0d'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='!' r='1' fill='y0`00w'/>0<circle cx='0' cy='0' r='5' fill='b0a00'/>0<circle cx='0' cy='0' r='1' fill='b0a00'/>0<path d='M00 000A' stroke='black' stroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='q0q0' stroke='blue'/>">
+]>
+<svg width="px" height="30px" i="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" hght="0"
+fill="none" stroke="b0u0"/>
+0<g fontsize="0">0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&Viewport0;</g>
+0<g id="0" transform="translate(0 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pro="0" vhewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" tansform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg preservetio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" vidth="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0291.svg b/test/ns-afl-svg/0291.svg
new file mode 100644
index 0000000..a639b7a
--- /dev/null
+++ b/test/ns-afl-svg/0291.svg
@@ -0,0 +1,346 @@
+<svg lns="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" gradientTransform="rotate(0">
+0<stop stop-color="0000000" offset="0"/>
+0<stop stop-color="f0a0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000-00 00-00 000-00 0000-00 000-000 00000 0000000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#000000" fill="url(#000e)"/>
+0<path d="M00,0-00-0@000000000000000000000000000000000000000000000000000" fill="url(#pyYellow"/>0
+0<cirCle r="4" x="0" cy="0" fill="#000"/>
+0<circle r="4" x="0" cy="0" fill="#000"/>0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow"/>0
+0<cirCle r="4"/>0
+0<circle r="4" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" x="0" cy="0" fill="#000"/>
+0<circle r="4" x="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" x="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000000000c00000000000000000000000000000000M000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-00000,c0,0000000000000000,00000000000000000=00,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000e)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fWll="0"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000 00000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000e)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" x="0" y="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" x="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000a0000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" y="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0292.svg b/test/ns-afl-svg/0292.svg
new file mode 100644
index 0000000..ce09e81
--- /dev/null
+++ b/test/ns-afl-svg/0292.svg
@@ -0,0 +1,98 @@
+<svg ns="0" viewBox="0 0 0 0">
+0<path d="M0,000,00" fill="q0n&lt;0"/>0
+0
+0<text x="'" y="0" nze="0" fill="0" t-ar="0"><![CDATA[0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]
+0
+0
+0
+0
+0]]>0</text>0</svg>
diff --git a/test/ns-afl-svg/0293.svg b/test/ns-afl-svg/0293.svg
new file mode 100644
index 0000000..e4b8f6a
--- /dev/null
+++ b/test/ns-afl-svg/0293.svg
@@ -0,0 +1,5 @@
+<svg v='0' xmlns='000' fill='s0l00rer' e='0'>
+0<path d='M0,00c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0,0000000000000000000000000000000' fill='s0l00rer' stroke='black'/>0
+0<path d='M0000000000-0-,0,0000000000000000000000000,00000' fill='s0l00tax000nc00000' stroke='b0a00'/>0
+0<path d='M00,00c00,000000000000,0c0,0,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00,00,000000000,000,000,00000' fill='s0l00rer' stroke='black'/>0
+0<path d='M00,00c00,0000,0,00c0,0,00,00,00,00,0,0,0,0,000,000000000000000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/0294.svg b/test/ns-afl-svg/0294.svg
new file mode 100644
index 0000000..6fb19c9
--- /dev/null
+++ b/test/ns-afl-svg/0294.svg
@@ -0,0 +1,7 @@
+<svg xmlns="http://www.w 100 100">0
+0<path d="M0,0h00l00,00v00l0,0v0z" stroke="#000" fill="l0n00wid00"/>0
+0<path d="M00,0h00l00,00v00l0,00h00l" stroke="#000" fill="l0n00wid00"/>0
+0<path d="M00,0h00v00l0,00l000-00v000z" stroke="#000" fill="l0n00wid00"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l0000000000000000000000000000000000000" fill="#000"/>0
+0<text x="0" y="0" font-size="0" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0295.svg b/test/ns-afl-svg/0295.svg
new file mode 100644
index 0000000..10fe1f6
--- /dev/null
+++ b/test/ns-afl-svg/0295.svg
Binary files differ
diff --git a/test/ns-afl-svg/0296.svg b/test/ns-afl-svg/0296.svg
new file mode 100644
index 0000000..152fdce
--- /dev/null
+++ b/test/ns-afl-svg/0296.svg
@@ -0,0 +1,10 @@
+<svg olns="0" Box="0">
+0<è
+` m="">
+0<l00è
+`>
+0<l00è
+` r="">
+0<l00è
+` r="">
+0è00 \ No newline at end of file
diff --git a/test/ns-afl-svg/0297.svg b/test/ns-afl-svg/0297.svg
new file mode 100644
index 0000000..6239677
--- /dev/null
+++ b/test/ns-afl-svg/0297.svg
@@ -0,0 +1,6 @@
+<svg xmlns="00" viewBox="0 0 5 6">0<path d="M00 00000c000-00-00-000 00-000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-000 0000000000000000000-0-0000-00-000-000 0-00 00-00 000-00 00 00 000 00 000-00 00-00 00-00 0000-00 00 0 00-000 00-00V0000000000-00-00000000000000000000000000000000000000000000000000 0-000 0-000-0-000-0-00-0-00-0-000-00-00-0-00-00-000-00-000-00-000-000-000-00-000-000-000-00-00T000-000000-0-000-00-000 00-000 00 0 00-0 00-0000000000000000000-0-0000-00-000-000 0-00 00-00 000-00 00 00 000 00 000-00 00-00 00-00 0000-00 00 0 00-000 00-000-0000000000000000 00-000 000-000 00000000000000000 00-000 00-000 0-000 0-000-0-000000000000000000000000000000000000000000000000000-000-000-00-00000000000000000000000000000000000000000000000000000000000000000000000000000000000-000 000 000 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
+transform="0,0,00"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(000,0000)"
+fill="#000" py="0"/>
+0
+0
+</svg>
diff --git a/test/ns-afl-svg/0298.svg b/test/ns-afl-svg/0298.svg
new file mode 100644
index 0000000..a550075
--- /dev/null
+++ b/test/ns-afl-svg/0298.svg
@@ -0,0 +1,10 @@
+<svg Ãs="0" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l0,00h000l000-00v0 0 0 00-00-00-0 0-0 00-00 00-00 0-00A00-0-0-0 0-00 00-00 0-00 00 00 0 00 0-00 00-00 00-00 000 0000"
+transform="translate(0,0)scale(0-0"/>0<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+fill="#000" pa="0"/>
+0
+0<path d="M00,0h00l00,00v00l000,00h0l0-00v00-00 00-00 0-000 000-00-00-00-000 000-000 00-00 00-00 0-00A00-0-000-000 0-00 00-00 000-00 00 00 000 00 000-00 00-00 00-00 000 0000"
+transform="translate(0,0)scale(0-0"/>0<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+fill="#000" opa="0"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/0299.svg b/test/ns-afl-svg/0299.svg
new file mode 100644
index 0000000..528495a
--- /dev/null
+++ b/test/ns-afl-svg/0299.svg
@@ -0,0 +1,32 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="t" xmlns:inkscape="00" width="0" height="0" d="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:put_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="">
+0<rect style="fill: l0y00mlu0;" p-h="0" id="0" width="0"
+th="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0">
+0<rec th="0" ht="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0">
+0<rect style="fill: l0y00mlu0;" p-h="0" id="0" width="0" height="0" x="0" y="0" transform="000000,000"/>
+0</svg>0
+0<t
+le="0" p-h="0" id="0"
+th="0"
+it="0" x="0" y="0" transform="0"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0300.svg b/test/ns-afl-svg/0300.svg
new file mode 100644
index 0000000..58fc707
--- /dev/null
+++ b/test/ns-afl-svg/0300.svg
@@ -0,0 +1,13 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">0
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="H" style="fill: i0g00ero000bl000;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="H" style="fill: i0g00ero000bl000;stroke-width:0cm" transform="translate(0,0)"/>
+0
+<circle cx="cm" cy="cm" r="H" style="fill: i0g00ero000bl000;stroke-width:000cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0301.svg b/test/ns-afl-svg/0301.svg
new file mode 100644
index 0000000..a4ac8d3
--- /dev/null
+++ b/test/ns-afl-svg/0301.svg
@@ -0,0 +1,30 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0e0'/>0<g transform='translate(0,0)'>0<circle cx='0' cy='0' r='1' fill='y0l00w'/>0<circle cx='0' cy='0' r='S' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M000 0A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='n0n0' stroke='blue'/>">]><svg width="px" height="30px" n="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" fill="none" stroke="blue"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport2;</g>
+0<g d="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" foÅ0="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0302.svg b/test/ns-afl-svg/0302.svg
new file mode 100644
index 0000000..4e497b8
--- /dev/null
+++ b/test/ns-afl-svg/0302.svg
@@ -0,0 +1,19 @@
+<svg xmlns="000000">
+0<path d="M0,0h00,00l" stroke="#000" fill="m&lt;o00imc000ge"/>0
+0<path d="000,0000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="M00,0h0l00,00v0l0-00z" stroke="#000" fill="m&lt;o00imc000ge"/>0&lt;0
+0<path d="000,0000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="0,0000000" e="0" fill="m&lt;o00imc000ge"/>0
+0<path d="000,0000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="M00,0h0l00,00v00l000,00l0-00z" stroke="#000" fill="m&lt;o00imc000ge"/>0&lt;0
+0<palh d="0" l="0"/>0
+0
+0<path d="000000000" stroke="#000" fill="m&lt;o00ibc000ge"/>0
+0
+0<path d="M00,0h00l00,00v0$0,00" stroke="#000" fill="0000000000000"/>0
+0<path d="M00,000l000,00h000l000-00v000z" fill="#000"/>0
+0
+0<text x="0" y="0" t-e="0" fl="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0303.svg b/test/ns-afl-svg/0303.svg
new file mode 100644
index 0000000..89be030
--- /dev/null
+++ b/test/ns-afl-svg/0303.svg
@@ -0,0 +1,26 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0z" stroke="#000" fill="d0n"/>0
+0<path d="M0,0h0l0,0v0l0,0l0-0z" stroke="#000" fill="d0n"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="d0n"/>0
+0<text x="'" y="0" e="0" l="0" t-r="0"><![CDATA[0]]]
+0
+0
+0
+0]]]
+0
+0
+0
+0
+0
+0
+0
+0]]
+0
+0
+0
+0]]]
+0
+0
+0
+0
+0]]>0</text>0</svg>
diff --git a/test/ns-afl-svg/0304.svg b/test/ns-afl-svg/0304.svg
new file mode 100644
index 0000000..f44343b
--- /dev/null
+++ b/test/ns-afl-svg/0304.svg
@@ -0,0 +1,359 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="u0d00n" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000000000000000000000000000000" fill="url(#00000)"/>
+0<path d="M00,00c00000,000000-0,0-00,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,80c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#000000)"/>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#000000)"/>
+0<pAth d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c000,0000000000-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 0000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,80c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,00,000,0000,000,000000000000000"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,000000,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,70-000-00-60.000,100.0000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#000w)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="000,00000000,0000000000"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,000-03l0-02c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000e)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" y="0" fi="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,00000000 000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" y="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" y="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,100-10l0-20c0-0,0-00,10-00l20,0c0,0,00-0,10-05l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M70,80c000-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,100-00l0-02c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fi="0" y="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,80c000-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,80c007-0,00-20,100-10l0-20c000,0000,00000000,0c0,0,0000,000000000000,000,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Y="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" y="0" fi="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0305.svg b/test/ns-afl-svg/0305.svg
new file mode 100644
index 0000000..1faee8c
--- /dev/null
+++ b/test/ns-afl-svg/0305.svg
@@ -0,0 +1,55 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[ <!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c00ext000ch0000'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l'/>0<circle cx='p' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0">
+<!ENTITY t "">
+<!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='n0n0' strokT='0'/>">
+]>
+<svg width="px" height="30px" n="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" h="0" ill="0" stroke="b0u0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&Viewport2;</g>
+0<g d="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+h="0" t="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>0
+0<svg pro="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg ctRatio="0" viewBox="0 0 3 4" width="0" height="U">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pserveAio="0" viewcox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg presatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0306.svg b/test/ns-afl-svg/0306.svg
new file mode 100644
index 0000000..e946aa6
--- /dev/null
+++ b/test/ns-afl-svg/0306.svg
@@ -0,0 +1,19 @@
+<?l?>
+<!DOCTYPE s00 PUBLIC "0" "0">
+<svg r="0" style="fill:p0b00rsv0">
+0<style e="0">
+0
+0</style>
+0<g>0
+0
+<svg r="0" style="fill:p0b00rsv0">
+0<style pe="0">
+0
+0</style>
+0<g>0
+0
+0<circle cx="c" style="fill:red;stroke:black;stroke-width:000cm" transform="translate(0,0)"/>
+0<ce cx="0" cy="0" r="0" tyle="0" rorm="0"/>
+0<le cx="0" cy="0" r="0" s="0" m="0"/>
+0</g>0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0307.svg b/test/ns-afl-svg/0307.svg
new file mode 100644
index 0000000..cf194d9
--- /dev/null
+++ b/test/ns-afl-svg/0307.svg
@@ -0,0 +1,4 @@
+<svg xmlns="0000000000" vie="0">
+0<!--0--><g>0
+0<!--0--><g>0
+0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0308.svg b/test/ns-afl-svg/0308.svg
new file mode 100644
index 0000000..719678e
--- /dev/null
+++ b/test/ns-afl-svg/0308.svg
@@ -0,0 +1,13 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="R" r="1" style="fill:red;stroke:black;" transform="translate(0,0)"/>0<circle cx="cm" cy="cm" r="1" style="fill:b0u00bla00;"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke-width:0K00;" transform="translate(0,0)"/>0<circle cx="cm" cy="cm" r="1" style="fill:b0u00bla00;"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u00bla00;stroke-width:0K000" transforx="0"/>
+0
+0<circle cx="c" cy="0" r="1" style="fill:green;stroke:black;" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0309.svg b/test/ns-afl-svg/0309.svg
new file mode 100644
index 0000000..2d57ced
--- /dev/null
+++ b/test/ns-afl-svg/0309.svg
@@ -0,0 +1,364 @@
+<svg ns="0" fill="url(#pyYellow)" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" m="0">
+0<stop stop-color="0" offset="C"/>
+0<jP p-r="0" ot="0"/>
+0<stop stop-color="#000" offset=","/>
+0
+0
+0
+0<th d="0" fl="0"/>0
+0<ce r="0" cx="0" cy="0" ll="0"/>
+0<circle r="0" cx="0" id="0000" s="0" ll="0"/>0
+0<th d="0" ll="0"/>
+0<th d="0" ll="0"/>0
+0<le r="0" cx="0" ll="0"/>0
+0<cc r="0" cx="0" cy="0" ll="0"/>0
+0<stop stop-color="p0c00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>
+0<path d="M00,00c000-0,00-00,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-00000000000000" fill="u0e0"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-00000,c0,0000000000000000,00000000000000000000,0000000000000000,000000000-000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00000"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fWll="0"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000e)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" ll="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0310.svg b/test/ns-afl-svg/0310.svg
new file mode 100644
index 0000000..0f78f4d
--- /dev/null
+++ b/test/ns-afl-svg/0310.svg
@@ -0,0 +1,37 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0"[ <!ENTITY Smile "0
+<rect x='0' y='0' width='0' height='0' fill='a0a' stroke='red'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='y0l00w'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<path d='M0 0A0 0 0 0 0 0 0' stroke='b0b00' stroke-width='2'/>0</g>0">
+<!ENTITY t "">
+<!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" i="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" ht="0"
+fill="none" stroke="blue"/>
+0<g f="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport2;</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg t="0" viewBox="0 0 1 4"
+th="" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg o="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg io="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0</g>
+0<g transform="translate(0,0)"><text y="0">0</text>&t0;
+0<svg presatio="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0311.svg b/test/ns-afl-svg/0311.svg
new file mode 100644
index 0000000..5a9c22b
--- /dev/null
+++ b/test/ns-afl-svg/0311.svg
@@ -0,0 +1,15 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="0" cy="cm" r="1" style="fill:red;stroke:b0a00g stroke-width:001cm" transform="translate(0,00)"/>0
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:b0a00g stroke-width:001cm" transform="translate(0,00)"/>0<circle cx="0" r="1" style="fill:red;stroke:b0a00g" transform="000000"/>0<circle cx="0" cy="cm" r="1" style="fill:green;stroke:b0a00g" transform="translate(0,00)"/>0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:00000000" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:w0e00;stroke:b0a00g stroke-width:001cm" t="0"/>
+0<circle cx="0" r="h" transform="translate(000,000)"/><circle cx="0" r="1" style="fill:red;stroke:b0a00g" transform="0000000000"/>0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:b0a00g" transform="translate(0,00)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:00000000" transform="translate(00,000)"/>
+0<circle cx="0" cy="cm" r="1" style="fill:w0e00;stroke:b0a00g stroke-width:001cm" t="0"/>
+0<circle cx="0" r=":" transform="translate(000,000)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0312.svg b/test/ns-afl-svg/0312.svg
new file mode 100644
index 0000000..31deb8b
--- /dev/null
+++ b/test/ns-afl-svg/0312.svg
@@ -0,0 +1,46 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="u0s00n" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000" fill="url(#00B00"/>
+0<path d="M00,00c00000,000000-0,0-00,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#00=00"/>
+0<path d="M70,00c090-0,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#00B00"/>
+0<pAth d="00000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 0000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M70,80c090-0,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,00,000,0000,0l000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,0000,0000,000000000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-0,0,10,0,00,00c0,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,000,00-00,000-00000000000,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000,000000,000000-0-00000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,00000000000000000000000000000000000000000-000 000-00-00-00-000 000-0 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,00,000,0000,0l0,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0313.svg b/test/ns-afl-svg/0313.svg
new file mode 100644
index 0000000..e6922b0
--- /dev/null
+++ b/test/ns-afl-svg/0313.svg
Binary files differ
diff --git a/test/ns-afl-svg/0314.svg b/test/ns-afl-svg/0314.svg
new file mode 100644
index 0000000..092899c
--- /dev/null
+++ b/test/ns-afl-svg/0314.svg
@@ -0,0 +1,5 @@
+<svg xos="0" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-0v0?" stroke="#000" fill="n0n00cse000"/>0
+0<path d="M0,0h0l0,0v0l0,00h0v0?" stroke="#000" fill="n0n00cse000"/>0
+0<path d="00000000" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" l="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0315.svg b/test/ns-afl-svg/0315.svg
new file mode 100644
index 0000000..1cae74a
--- /dev/null
+++ b/test/ns-afl-svg/0315.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:r0d;stroke:b0a00g stroke-width:001cm" transform="translate(0,0)"/>0<circle cx="0" r="1" style="fill:red;stroke:b0a00g" transform="translate(0,0)"/>0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:b0a00g" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:00000000" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:b0a00g stroke-width:001cm" t="0"/>
+0<circle cx="0" r=":" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0316.svg b/test/ns-afl-svg/0316.svg
new file mode 100644
index 0000000..ad0de6d
--- /dev/null
+++ b/test/ns-afl-svg/0316.svg
@@ -0,0 +1,19 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:b0a00;stroke-width:01cm" m="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:000000000000"/>
+0<circle cx="cm" cy="0" r="1" style="fill:g0m00mmm000me000000;stroke-width:001cm" transform="0" d="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:000000000000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0m00mmm000me000000;stroke-width:000r0000000000000;" transform="0" m="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:000000000000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0m00mmm000me000000;stroke-width:001cm" transform="translate(0,0)"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:g0m00mmm000me000000;" transform="translate(0,0)"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:g0m00mmm000me000000;stroke-width:001cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0317.svg b/test/ns-afl-svg/0317.svg
new file mode 100644
index 0000000..9d22cf6
--- /dev/null
+++ b/test/ns-afl-svg/0317.svg
@@ -0,0 +1,3 @@
+<?l?>
+<!DOCTYPE s00 PUBLIC "0" "0"[ <!ENTITY S "">
+! \ No newline at end of file
diff --git a/test/ns-afl-svg/0318.svg b/test/ns-afl-svg/0318.svg
new file mode 100644
index 0000000..8093dd5
--- /dev/null
+++ b/test/ns-afl-svg/0318.svg
@@ -0,0 +1,103 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c00ext000ch0000'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l'/>0<circle cx='p' cy='0' r='5' fill='b0a00'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='n0n0' strokT='0'/>">]><svg width="px" height="30px" n="0" xmlns="000000000000000000">
+0<desc></desc>
+0<rect x="0" y="0" width="0" e="0" ill="0" stroke="b0u0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0<g d="0" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+h="0" t="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>0
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(00 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presctRatio="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g m="0"><text y="0">0</text>&Viewport2;
+0<svg preservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(00,0)"></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg t="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg ectRaTio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0319.svg b/test/ns-afl-svg/0319.svg
new file mode 100644
index 0000000..9f3abbf
--- /dev/null
+++ b/test/ns-afl-svg/0319.svg
@@ -0,0 +1,63 @@
+<svg height="m"><![CDATA[0]]>0
+0<g fill="n0o00">0<ellipye soke="0" x="0"/>0<ellipse stroke="#0?0000" rx="6" ry="4" transform="rotate(60)"/>
+0<ellipse stroke="#00~000" rx="6" ry="4" transform="0"/>
+0<circle stroke="#0000P0" r="4"/>
+0</g>
+0<g fill="#00'000" stroke="000000000000000000000"
+transform="0">
+0<![CDATA[0]]>0
+0<g fill="n0o00">
+0<ellipye t="0" x="0" y="0"/>
+0<ellipse stroke="#0?0000" rx="6" ry="4" transform="rotate(60)"/>
+0<ellipse stroke="#00~000" rx="6" ry="4" transform="0"/>
+0<circle stroke="#0000P0" r="4"/>
+0</g>
+0<g fill="#00'000" stroke="000000000000000000000"
+transform="0">
+0<ellipye e="0" x="0" ry="0"/>
+0<ellipse stroke="#0?0000" rx="6" ry="4" transform="rotate(60)"/>
+0<ellipse stroke="#00~000" rx="6" ry="4" transform=",0"/>
+0<circle stroke="#0000P0" r="4"/>
+0</g>
+0<g>
+0<ellipye st="0" rx="0"/>
+0<ellipse stroke="#0?0000" rx="6" ry="4" transform="rotate(60)"/>
+0<ellipse stroke="#00~000" rx="6" ry="4" transform="0"/>
+0<circle stroke="#0000P0" r="4"/>
+0</g>
+0<g fill="#00'000" stroke="000000000000000000000"
+transform="0">
+0<![CDATA[0]]>0
+0<g fill="n0o00">
+0<ellipye soke="0" rx="0" ry="0"/>
+0<ellipse stroke="#0?0000" rx="6" ry="4" transform="rotate(60)"/>
+0<ellipse stroke="#00~000" rx="6" ry="4" transform="0"/>
+0<circle stroke="#0000P0" r="4"/>
+0</g>
+0<g fill="#00'000" stroke="000000000000000000000"
+transform="0">
+0<ellipye se="0" rx="0" ry="0"/>
+0<ellipse stroke="#0?0000" rx="6" ry="4" transform="rotate(60)"/>
+0<ellipse stroke="#00~000" rx="6" ry="4" transform="0"/>
+0<circle stroke="#0000P0" r="4"/>
+0</g>
+0<g fill="#00'000" stroke="000000000000000000000"
+transform="translate(0,0)0"/>0<ellipse rx="2" ry="1" transform="0"
+fill="#000" opy="0"/>
+0<ellipye se="0" rx="0" ry="0"/>
+0<ellipse stroke="#0?0000" rx="6" ry="4" transform="rotate(60)"/>0<ellipse stroke="#00~000" rx="6" ry="4" transform="0"/>
+0<circle stroke="#0000P0" r="4"/>
+0</g>
+0<g fill="#00'000" stroke="000000000000000000000"
+transform="translate(0,0)0"/>0<ellipse rx="2" ry="1" transform="0"
+fill="#000" city="0"/>0<ellipse rx="5" ry="2" fill="#00'000" stroke="000000000000000000000"
+transform="translate(0,0)0"/>0<ellipse rx="2" ry="1" transform="0"
+fill="#000" opy="0"/>
+0<ellipye se="0" rx="0" ry="0"/>
+0<ellipse stroke="#0?0000" rx="6" ry="4" transform="rotate(60)"/>0<ellipse stroke="#00~000" rx="6" ry="4" transform="00,0"/>
+0<circle stroke="#0000P0" r="4"/>
+0</g>
+0<g fill="#00'000" stroke="000000000000000000000"
+transform="translate(0,0)00"/>0<ellipse rx="2" ry="1" transform="0,0"
+fill="#000" city="0"/>0<ellipse rx="3" ry="2" transform=",0" fill="#000"
+city="0"/>0</svg>
diff --git a/test/ns-afl-svg/0320.svg b/test/ns-afl-svg/0320.svg
new file mode 100644
index 0000000..6368fa6
--- /dev/null
+++ b/test/ns-afl-svg/0320.svg
@@ -0,0 +1,8 @@
+<vg th="0" viewBox="0" stroke-width="0">
+0<g fill="0">
+0<llipye____________________________________________________________________________________________________________________________________________________________________________________________________ stroke="0" rx="0" ry="0"/>
+0<ellipse okt="0" rx="0" ry="0" transform="0"/>
+0<ellipse stroke="0" rx="0" ry="0" transform="0"/>
+0<ci stroke="0" r="0"/>
+0</g>
+0
diff --git a/test/ns-afl-svg/0321.svg b/test/ns-afl-svg/0321.svg
new file mode 100644
index 0000000..2c44759
--- /dev/null
+++ b/test/ns-afl-svg/0321.svg
@@ -0,0 +1,74 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="c0a0" offset="0"/>
+0
+0<stop stop-color="#000" of="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M07,0c0,0,00,0,20,120c0,0-0,00-10,12l-24,0c00,0-04,0-14,10l0,00l-9,0c-8,0-10-0-00-20c0-00,0-00,0-24i0000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" id="0" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00000000,00L0000000000000000000000000"/>
+0<path d="M70,00c090-0,00-00,100,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#r0000" fill="url(#00000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c00000000000000000000000000000000000000000000000000000000000000000,00000,000000,000,0l00,0000000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M70,80c0,73-230-20-0-24108.0000000000000000000000000000000000000000000000000000000000000000000-00" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000=00,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,80c090-0,00-03,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="1" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M70,80c0,73-230-24-0-24108.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="1" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0322.svg b/test/ns-afl-svg/0322.svg
new file mode 100644
index 0000000..62a69ed
--- /dev/null
+++ b/test/ns-afl-svg/0322.svg
@@ -0,0 +1,32 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 6">
+0<circle r="3" cx="0" cy="0"/>
+0<circle r="3" cx="0" cy="0"/>
+0<paih d="0"/>
+0<g stroke="i0t0" stroke-width="0" fill="000000000000000000000"/>
+0<path d="0000000000000000"/>
+0<path d="M00,00s0,0,0,0s00-0,0-00l0,0s00-0,0-0l0,0s0,0,0-00-00000000000000000000000"/>
+0<path d="M00,00s00-00,0-00l0-0s0,0,0,0l0-0l0,0s0,0,0,00l00,0l00-0s00,0-0,0l00,00z"/>
+0<g stroke="i0t0" stroke-width="3" fill="n0n0" p="0">0<circle r="6" cx="0" cy="0"/>
+0<circle r="6" cx="0" cy="0"/>
+0<path d="00000000000000"/>
+0<g stroke="i0t0" stroke-width="0" fill="000000000000000000000"/>
+0<path d="00000000000000000"/>
+0<g stroke="i0t0" stroke-width="0" fill="0000000000000"/>
+0<paih d="0"/>
+0<g stroke="i0t0" stroke-width="0" fill="000000000000000000000"/>
+0<path d="0000000000000000"/>
+0<path d="M00,00s0,0,0,0s00-0,0-00l0,0s00-0,0-0l0,0s0,0,0-0000L0s0000000000000000000"/>
+0<path d="M00,00s00-00,0-00l0-0s0,0,0,0l0-0l0,0s0,0,0,00l00,0l00-0s00,0-0,0l00,00z"/>
+0<g stroke="i0t0" stroke-width="3" fill="n0n0" p="0">0<circle r="6" cx="0" cy="0"/>
+0<circle r="6" cx="0" cy="0"/>
+0<path d="00000000000000"/>
+0<g stroke="i0t0" stroke-width="0" fill="000000000000000000000"/>
+0<path d="00000000000000000"/>
+0<g stroke="i0t0" stroke-width="0" fill="0000000000000"/>
+0<path d="00000000000000000000000000000000000"/>
+0<path d="M000,00c0,0,00,0,00,00c0,0,0,0,00,000000000"/>
+0<path d="M00,00s0,0,0,0s00000000000"/>
+0</g>0<th d="0"/>
+0<path d="M000,00c0,0,00,0,00,00c0,0,0,0,00,000000000"/>
+0<path d="M00,00s0,0,0,0s00000000000"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0323.svg b/test/ns-afl-svg/0323.svg
new file mode 100644
index 0000000..7843b10
--- /dev/null
+++ b/test/ns-afl-svg/0323.svg
@@ -0,0 +1 @@
+<svg viewBox='0 0 8 5' xmlns='000000000000000000'>0<g transform='scale(01)'>0<path d='M00,000c00,00-00,00-00,00c0,00,00,0,00,0c00-00-0-00-00-00'/>0<path d='M000,0c000,0-00,00-00,000c000,00-00,00,0,00c00,00,00,00,00,000000c00,0,00-00,00-00c00-00,00-00,0-00l0000-000c000-00-00-00-00-00' fill='#000000'/>0<path d='M000,00c00,0-00,0-00,00l0000,000c00,0-0,00,0,00c0,0,00,00,00,000000c00,0,00-0,00-00c0-0,0-00,0-00l0000-000c00-00-00-00-00-00M000,000l000,000h0000z'/>0<path d='M000,000l00,0l0,0l0000,00h00c00,0-0,0-00,00c00,0-0,00,0,00c0,0,00,00,00,00h0l000-00l0,0l0-0zM000,000l0,00l000,0h0000c0-0,0-0,0-00'/>0<path d='M000,00c0,0,0,00,0,00c00,00-00,00-00,00l0000-00v0h00zM000,000l00,00l00,0l000-00v00c00-0-0-0-0-00'/>0<path d='M000,000v00h000v000h000l00,0l00,0l00,0c0,0-0,0-0,0h00c00,0-0,0-0,0c00,0-0,0-0,0l00,0c0,0-0,0-0,0h00c0,0-0,0-0,0l00-0c00,0-0-0-0-0c00-0,0-0-0-0l00-0c00-0-0-0-0-0c00,0-0,0-0-0c0-0,0-0-0-0v00v00z'/>0<path d='M000,000c0,0-0,00-00,00c00,0-00-0-00-00c0-0,00-00,00-0000000c000000000000000000' fill='#000000'/>0<path d='M000,00c00,0-00,0-00,00l0000,000c00,0-0,00,0,00c0,0,00,00,00,00h000c00,0,00-0,00-00c0-0,0-00,0-00l0000-000c00-00-00-00-00-00M000,000l000,000h0000z'/>0<path d='M000,000l00,0l0,0l0000,00h00c00,0-0,0-00,00c00,0-0,00,0,00c0,0,00,00,00,00h0l000-00l0,0l0-0zM000,000l0,00l000,0h0000c0-0,0-0,0-0z'/>0<path d='M000,00c0,0,0,00,0,00c00,00-00,00-00,00l0000-00v0h00zM000,000l00,00l00,0l000-00v00c00-0-0-0-0-0z'/>0<path d='M000,000v00h000v000h000l00,0l00,0l00,0c0,0-0,0-0,0h00c00,0-0,0-0,0c00,0-0,0-0,0l00,0c0,0-0,0-0,0h00c0,0-0,0-0,0l00-0c00,0-0-0-0-0c00-0,0-0-0-0l00-0c00-0-0-0-0-0c00,0-0,0-0-0c0-0,0-0-0-0v00v00z'/>0<path d='M000,000c0,0-0,00-00,00c00,0-00-0-00-00c0-0,00-00,00-00c0,0,00,00,00,00'/>0<path d='M000,000c0,0-0,00-00,00c00,0-00-0-00-00c0-0,00-00,00-00c0,0,00,00,00,00'/>0<path d='M000,000c0,0-0,00-00,00c00,0-00-0-00-00c0-0,00-00,00-00c0,0,00,00,00,00'/>0<path d='M000,000c0,0-0,00-00,00c00,000000000000,0,00,00,00,00'/>0<path d='M000,000c0,0-0,00-00,00c00,0-00-0-00-00c0-0,00-00,00-00c0,0,00,00,00,00'/>0<path d='M000,000c0,0-0,00-00,00c00,0-00-0-00-00c0-0,00-00,00-00c0,0,00,00,00,00'/>0<path d='M000,000c0,0-0,00-00,00c00,0-00-0-00-00c0-0,00-00,00-00c0,0,00,00,00,00'/>0<path d='M000,000c00,0-0,0-0,0c0,0,0,0,0,00c00,00,00,00,00,00v0h000c00,0-0,00-00,00c00,0-00-0-00-00h00c0,0-0,0-0,0c00,0-0-0-0-0h000c00,0-00,0-00,00c0,0,0,00,00,00h000c0,0,0,0,0,0h0000c00,0-00,0-00,00c0,0,0,00,00,00h000c0,0,0,0,0,0h0000c00,0000,0000,000,00000,00,0,00c00,00,00,00,00,000000000,0,00000,00000000000,00000,0000000000000000' fill='#000000'/>0<path d='M000,00c00,0-00,0-00,00l0000,000c00,0-0,00,0,00c0,0,00,00,00,00h000c00,0,00-0,00-00c0-0,0-00,0-00l0000-000c00-00-00-00-0,000h0000z'/>0<path d='M000,000l00,0l0,0l0000,00h00c00,0-0,0-00,00c00,0-0,00,0,00c0,0,00,00,00,00h0l000-00l0,0l0-0zM000,000l0,00l000,0h0000c0-0,0-0,0-0z'/>0<path d='M000,00c0,0,0,00,0,00c00,00-00,00-00,00l0000-00v0h00zM000,000l00,00l00,0l000-00v00c00-0-0-0-0-0z'/>0<path d='M000,000v00h000v000h000l00,0l00,0l00,0c0,0-0,0-0,0h00c00,0-0,0-0,0c00,0-0,0-0,0l00,0c0,0-0,0-0,0h00c0,0-0,0-0,0l00-0c00,0-0-0-0-0c00-0,0-0-0-0l00-0c00-0-0-0-0-0c00,0-0,0-0-0c0-0,0-0-0-0v00v00z'/>0<path d='M000,000c0,0-0,00-00,00c00,0-00-0-00-00c0-0,00-00,00-0000000c000000000000000000' fill='#000000'/>0<path d='M000,00c00,0-00,0-00,00l0000,000c00,0-0,00,0,00c0,0,00,00,00,00h000c00,0,00-0,00-00c0-0,0-00,0-00l0000-000c00-00-00-00-00-00M000,000l000,000h0000z'/>0<path d='M000,000l00,0l0,0l0000,00h00c00,0-0,0-00,00c00,0-0,00,0,00c0,0,00,00,00,00h0l000-00l0,0l0-0zM000,000l0,00l000,0h0000c0-0,0-0,0-0z'/>0<path d='M000,00c0,0,0,00,0,00c00,00-00,00-00,00l0000-00v0h00zM000,000l00,00l00,0l000-00v00c00-0-0-0-0-0z'/>0<path d='M000,000v00h000v000h000l00,0l00,0l00,0c0,0-0,0-0,0h00c00,0-0,0-0,00-000c0,0,0,00,00,00000000,0,0,0,0,00000000,0000,0000,0000,0,0,00,00,0000000000,00,000,00,0000000000000000000,000000000,0000000000000000'/>0</g>0</svg>
diff --git a/test/ns-afl-svg/0324.svg b/test/ns-afl-svg/0324.svg
new file mode 100644
index 0000000..3c2fc0d
--- /dev/null
+++ b/test/ns-afl-svg/0324.svg
@@ -0,0 +1,12 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="0" rm="0">
+0<stop stop-c="0" of="0"/>
+0<stop stop-color="0" offset="0"/>
+0
+0<stop stop-color="0" offset="0"/>
+0<stop stop-color="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00000000000000,N,000,00000,000000,0000,0000,0000,0000000000,0000,00000000000000000,0000,000000000000000000,0000000,000000,0000" fill="url00low0"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0325.svg b/test/ns-afl-svg/0325.svg
new file mode 100644
index 0000000..6fff0e8
--- /dev/null
+++ b/test/ns-afl-svg/0325.svg
@@ -0,0 +1,117 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_eorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="000" t="0"/>0
+0
+0<stop stop-color="p0t0" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="000" e="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<p op-c="0" et="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0" a_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="url(00"/>
+0<h d="0" f="0"/>
+0
+0
+0<stop stolor="0" f="0"/>
+0
+0<stop r="0" f="0"/>
+0
+0
+0<stop r="0" offset="0"/>
+0
+0<stop r="0" offset="0"/>
+0<stop r="0" t="0"/>
+0
+0
+0<stop r="0" offset="0"/>
+0
+0<stop r="0" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="0"/>0
+0<ci r="0" cx="0"/><stop st="0" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop sr="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c000,00,0,00-0,0000000000000000000)"/>0
+0<circle r="4" cx="r"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="00000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#000000"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" ky="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c00000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c00000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00,00l0-00l0,0c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000000000000000000000000000000000000000000000000000000000000000000000000,000000l000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0326.svg b/test/ns-afl-svg/0326.svg
new file mode 100644
index 0000000..8879250
--- /dev/null
+++ b/test/ns-afl-svg/0326.svg
@@ -0,0 +1,380 @@
+<svg ns="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="pyYellow" rm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>0<stop stop-color="q0s00s" offset="0"/>
+0</linearGradient>
+0
+0</defs>0
+0<path d="000000,0000000000000000000000000000000000000000,000,00000,000000,0000,0000,0000,0000,00000,0000,00000000000000000,0000,0000000000,000,0,0000000000000000000000000000,000000,000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" id="0000" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,00-000000000,000,0,L0,0,00,0000,0000,00000000"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" id="0000" s="0" fill="url(#0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000,L0,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-000000000070000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,000,,0c0,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,0000,000000000000,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-000000000070000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,00-00000,00"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,02-00l04,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#00000)"/>
+0<path d="M00,00000000,?0000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fi="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,000000000000000c000,0000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fi="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0327.svg b/test/ns-afl-svg/0327.svg
new file mode 100644
index 0000000..e5c21b0
--- /dev/null
+++ b/test/ns-afl-svg/0327.svg
@@ -0,0 +1,65 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a00ffs000"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,00,,00c0,0-0,00-00,000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,10-20,100,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="000,0000000,000000000000000000000000000000000000000000000000000000000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,000000,000,0000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,000,0,00c0,000000000000000000000000000000000000000000000000000000000000000000000000" x="0" c="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0000000000000000000000000000000000l00,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,000,0,00c0,0000,000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000000000,0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l00000000000000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000000/0000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,000000000,0000000000000000000000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c0000000,000000000 000000,000000000 000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0004" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url00l"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0328.svg b/test/ns-afl-svg/0328.svg
new file mode 100644
index 0000000..709144f
--- /dev/null
+++ b/test/ns-afl-svg/0328.svg
@@ -0,0 +1,40 @@
+<?l?>
+<svg in="0" ns="0" width="e" height="0" style="0" on="0">
+0<scrDDDDfffffffffffffffffffffffffffffDDDDDDcDDDDffDDDDDDDipt typx="0" y="0" rx="0"/>
+0
+0
+0
+0
+0<svg version="0" ns="0" width="e" height="0" style="0" on="0">
+0<scrDDDDfffffffffffffffffffffffffffffDDDDDDcDDDDffDDDDDDDipt typx="0" y="0" rx="0"/>
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+fill="#000" pa="0"/>0<ellipse rx="3" ry="2" transform="rotate(0 0,0" fill="#000"
+opacity="0"/>0</svg>
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+fill="#000" pa="0"/>0<ellipse rx="3" ry="2" transform="rotate(0 0,0" fill="#000"
+opacity="0"/>0</svg>
diff --git a/test/ns-afl-svg/0329.svg b/test/ns-afl-svg/0329.svg
new file mode 100644
index 0000000..1c232fd
--- /dev/null
+++ b/test/ns-afl-svg/0329.svg
@@ -0,0 +1,28 @@
+<?l?>
+<svg version="0" ns="0" width="e" height="0" style="0" on="0">
+0<scrDDDDfffffffffffffffffffffffffffffDDDDDDcDDDDffDDDDDDDipt tx="0"
+fl="0"/>0<ellipse rx="5" ry="2" transform="rotate(,0-0,0)" fl="0"
+ty="0"/>0
+0
+0
+0<ellipse cx="0" cy="0" rx="6" ry="9" fill="#000"/>
+0
+0
+0
+0
+0<ellipse cx="0" cy="0" rx="6" ry="9" fill="#000"/>
+0<path d="M0,0-00-0P0000000000000000000000000000000000000000000000000000000"
+filfill="0"
+ty="0"/>0
+0
+0
+0<ellipse cx="0" cy="0" rx="6" ry="9" fill="#000"/>
+0<path d="M0,0-00-0P0000000000000000000000000000000000000000000000000000000"
+filfill="0"
+ty="0"/>0
+0
+0
+0<ellipse cx="0" cy="0" rx="6" ry="9" fill="#000"/>
+0<path d="M,0 0-0-000000000000000000000000000000000000000000000000000,00000"
+fl="0"/>0<ellipse rx="5" ry="2" rm="0" ll="0"
+ity="0"/>0</svg>
diff --git a/test/ns-afl-svg/0330.svg b/test/ns-afl-svg/0330.svg
new file mode 100644
index 0000000..f41255f
--- /dev/null
+++ b/test/ns-afl-svg/0330.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h000l000-00v0z" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="M00,00-0" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0331.svg b/test/ns-afl-svg/0331.svg
new file mode 100644
index 0000000..9381e8d
--- /dev/null
+++ b/test/ns-afl-svg/0331.svg
@@ -0,0 +1,9 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00,0z" e="0" fill="n0d0"/>0
+0
+0<path d="M0,0h0l0,00v00l000,00l0-00z" stroke="#000" fill="n0d0"/>0
+0<path d="M00,0h00l00,00v00l000,00h0l0-00l00,00v00l0,0z" stroke="#000" fill="n0d0"/>0
+0
+0<path d="M00,0h00l00,00v00l0,00l000-00z" stroke="#000" fill="n0d0"/>0
+0<path d="M00,0h00l00,00v00l0,00h000l000-00v0z" fill="#000"/>0
+0</svg>
diff --git a/test/ns-afl-svg/0332.svg b/test/ns-afl-svg/0332.svg
new file mode 100644
index 0000000..9e55e3b
--- /dev/null
+++ b/test/ns-afl-svg/0332.svg
@@ -0,0 +1,100 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" a_rm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="d0o00"/>0
+0<e r="0" c="0" y="0" o="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0,0-0,00-00,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ00000000000"/>0
+0<circle r="4" cx="u"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="u0y00llo00"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l000 0000-00 000-000 00000 000000,00000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: u00000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-04-6-001000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle w="0" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<cCle r="0" cx="0" y="0" l="0"/>
+0<circle r="0" cx="0" fl="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<ci r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>
+0<path d="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<cY r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" id="0" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circlk r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<ple r="0" cx="0" cy="0" fill="0"/>0</svg>
diff --git a/test/ns-afl-svg/0333.svg b/test/ns-afl-svg/0333.svg
new file mode 100644
index 0000000..8bd709b
--- /dev/null
+++ b/test/ns-afl-svg/0333.svg
@@ -0,0 +1,9 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M0+0h0l0,0v0l0,0z" stroke="#000" fill="n0n00che000"/>0
+0
+0<path d="M0,0h00l00,00v00l000,00l0-00z" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h00l00,00v0a0"/>0
+0
+0<path d="M00,0h00l00,00v00l0,00l000-00z" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h00l00,00v00l000,00h0l0-00v00l0,00h000l000-00v0z" fill="#000"/>0
+0<text x="j" transform="0"/>0</svg>
diff --git a/test/ns-afl-svg/0334.svg b/test/ns-afl-svg/0334.svg
new file mode 100644
index 0000000..3c467d2
--- /dev/null
+++ b/test/ns-afl-svg/0334.svg
@@ -0,0 +1,380 @@
+<svg ns="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="pyYellow" om="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>0<stop stop-color="u0s00inc000ee0" offset="0"/>
+0</linearGradient>
+0
+0</defs>0
+0<path d="000000,0000000000000000000000000000000000000000,000,00000,000000,0000,0000,0000,0000,00000,0000,00000000000000000,0000,0000000000,000,0,0000000000000000000000000000,000000,000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" id="0000" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000000"/>
+0<path d="M00,00c097-0,13-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" id="0000" s="0" fill="url(#0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l000,L0,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-000000000070000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-000000000070000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#00000)"/>
+0<path d="M00,00c097-0,03-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,00"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00)"/>
+0<path d="M00,00c097-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#0" fill="url(#00000)"/>
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" cy="0" fi="0"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,13-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fi="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fi="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,00..000,00000000 000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-00c0-0,0-00,02-00l20,0c0,0,00-0,00-10l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,03-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c097-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000 00000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-00c0-0,0-00,02-00l20,0c0,0,00-0,00-10l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#000000000"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0335.svg b/test/ns-afl-svg/0335.svg
new file mode 100644
index 0000000..5db4730
--- /dev/null
+++ b/test/ns-afl-svg/0335.svg
@@ -0,0 +1,76 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='w0d00' stroke='r0d'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='1' fill='b0a00'/>0<circle cx='0' cy='0' r='5' f='0'/>0<path d='M00 0A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" on="0" xmlns="0000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="blue"/>
+0<g te="0">
+0<text x="0" y="0">0</text>0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0<g id="0" height="px" on="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="blue"/>
+0<g ze="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0
+0<g><text y="0">0</text>&o;
+0<svg io="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg ro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg resctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg spectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>0
+<svg tio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presetRatio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0336.svg b/test/ns-afl-svg/0336.svg
new file mode 100644
index 0000000..b67cdae
--- /dev/null
+++ b/test/ns-afl-svg/0336.svg
@@ -0,0 +1,364 @@
+<svg xx="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" m="0">
+0<stop stop-color="#000" offset=".6"/>0<stop stop-color="#000" offset="1"/>
+0
+0
+0<stop stop-color="a0m0" offset="0"/>
+0<stop stop-color="000000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000000000000000000000000000000000" fill="url(#000000"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#00000"/>0
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#00=00"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="z" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" e="0" fill="#000"/>
+0<circle r="" cx="0" x="0" style="fill: 0000000000000"/>
+0<path d="M00,00c097-0,10-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,00L00000000000000000000000000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-000000000070000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-0000-0M0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<paZh d="0" id="0000" ye="0"/>
+0<path d="M00,00c097-0,10-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#00000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,00000000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,000-00l0-00c0-0,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#0000w0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#00=00"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#00=00"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,10-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000e)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,00..000,00000000 000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,02-12l20,0c0,0,00-0,00-10l0-0000,0c0,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-20,024-00l0-00c0-0,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="A" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,02-12l20,0c0,0,00-0,00-10l0-0000,0c0,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,10-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0337.svg b/test/ns-afl-svg/0337.svg
new file mode 100644
index 0000000..98e967d
--- /dev/null
+++ b/test/ns-afl-svg/0337.svg
@@ -0,0 +1,6 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0" stroke="#000" fill="n0i00wid00"/>0
+0<path d="0" fill="n0i00wid00"/>0
+0<path d="M0,0h0l0,00h0l0-00v000z" stroke="#000" fill="n0i00wid00"/>0
+0<path d="M00,0D00" fill="#000"/>0
+0<text x="0" y="0" t-e="0" l="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0338.svg b/test/ns-afl-svg/0338.svg
new file mode 100644
index 0000000..a7f644c
--- /dev/null
+++ b/test/ns-afl-svg/0338.svg
@@ -0,0 +1,22 @@
+<svg xmlns="0000000000">0
+0<path d="000,0,00" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M0,0h00l00,00000l000,00h000v00l000,00h000l000" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>0
+0<path d="M00,0h00l00,0,000--00" stroke="#0#0" fill="none"/>0
+0<pËÑ00000/>0
+0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00v00l000,00h000v00l000,00h000l000" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00v00l000,0000-00" stroke="#0#0" fill="none"/>0
+0<pËÑ00000/>0
+0<text>0<![CDATA[0]]></text>0<text>0<![CDATA[0]]></text>
+0
+0<path d=""/>0
+0<text>0<![CDATA[0]]></text>
+0
+0<text>0<![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0339.svg b/test/ns-afl-svg/0339.svg
new file mode 100644
index 0000000..5a40a72
--- /dev/null
+++ b/test/ns-afl-svg/0339.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="m0n0"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0340.svg b/test/ns-afl-svg/0340.svg
new file mode 100644
index 0000000..d50bfc9
--- /dev/null
+++ b/test/ns-afl-svg/0340.svg
@@ -0,0 +1,7 @@
+<?l?>
+<!DOCTYPE s00 PUBLIC "0" "0"[ <!ENTITY S "">
+<!ENTITY V "">
+]>
+<svg width="0" height="0" er="0" xmlns="00">
+0<g transform="0">
+0&S0;<![CDATA[0
diff --git a/test/ns-afl-svg/0341.svg b/test/ns-afl-svg/0341.svg
new file mode 100644
index 0000000..c873d58
--- /dev/null
+++ b/test/ns-afl-svg/0341.svg
@@ -0,0 +1,16 @@
+<?l?>
+<!DOCTYPE v0 PUBLIC "0" "0">
+<svg xmlns="00000000vg">0
+0<xmlns e="">
+0
+0
+0
+0<stop stop-color='0' offset='0'/>
+0<vg xmlns="00000000vg">
+0<xmlns e="">0
+0<xmlns>
+0
+0
+0
+0<stop stop-color='0' offset='0'/>
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0342.svg b/test/ns-afl-svg/0342.svg
new file mode 100644
index 0000000..c917a7b
--- /dev/null
+++ b/test/ns-afl-svg/0342.svg
@@ -0,0 +1,35 @@
+<vg xmx="0" stroke0Ù000000="0">0<è0
+ t=''/>
+0<e0è0
+/>0
+0
+0<e0è0
+ t=''/>
+0<e0è0
+/>0
+0
+0<e0è0
+ t=''/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<efÇ0/>0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<efÇ0/>0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0343.svg b/test/ns-afl-svg/0343.svg
new file mode 100644
index 0000000..5f768c8
--- /dev/null
+++ b/test/ns-afl-svg/0343.svg
@@ -0,0 +1,8 @@
+<svg s='0'>
+0<path d='0000000,0' fill='d0t00tax000ts00000' stroke='black'/>0
+0
+0
+0<path d='0000000,0' fill='d0t00tax000ts00000' stroke='black'/>0
+0
+0<path d='000,0,000,0' fill='d0t00tax000ts00000' stroke='black'/>0
+0<path d='000,0,000,00000' fill='d0t00tax000ts00000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/0344.svg b/test/ns-afl-svg/0344.svg
new file mode 100644
index 0000000..3c41cb7
--- /dev/null
+++ b/test/ns-afl-svg/0344.svg
@@ -0,0 +1,4 @@
+<svg mlKs="0" viewBox="0">
+0<path d='M0,0a0,0 0,0,0-0,0l0,0a,' fill-rule='0'/>0
+0<path d='M0,0a0,0 0,0,0-0,0l0,0l0,0a,' fill-rule='0'/>0
+0<path d='M0,0a,,,' fill-rule='0'/>0</svg>
diff --git a/test/ns-afl-svg/0345.svg b/test/ns-afl-svg/0345.svg
new file mode 100644
index 0000000..41b7a56
--- /dev/null
+++ b/test/ns-afl-svg/0345.svg
@@ -0,0 +1,4 @@
+<svg ŃÉ="0" xmlns:xlin0="0" viewBox="0 0 1 2">
+0<radialGradient id="0" cx="0" cy="0" r="0" ts="0"><stop ot="0" o000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M0,0A0,0 0,0,0 0,0C0,0 0,0 0,0C0,00 00,00 00,000C0,00 00,00 00,00" ij="0" fill="l0c00ulm00"/>
+0<u0e xlin0:href="0" rm="0"/>0</svg>
diff --git a/test/ns-afl-svg/0346.svg b/test/ns-afl-svg/0346.svg
new file mode 100644
index 0000000..4e79d94
--- /dev/null
+++ b/test/ns-afl-svg/0346.svg
Binary files differ
diff --git a/test/ns-afl-svg/0347.svg b/test/ns-afl-svg/0347.svg
new file mode 100644
index 0000000..d0758c3
--- /dev/null
+++ b/test/ns-afl-svg/0347.svg
@@ -0,0 +1,16 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l000,00h000l000-0v000?" e="0" fill="h0n00cse000"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,00,0000000000C000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: ur000000" e="0" fill="h0n00cse000"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#000000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0348.svg b/test/ns-afl-svg/0348.svg
new file mode 100644
index 0000000..1dafffe
--- /dev/null
+++ b/test/ns-afl-svg/0348.svg
@@ -0,0 +1,26 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="7" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+ight="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill: t0r00tde0;" ip-th="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect yle="0"
+p-th="0" id="0" dtc="0" height="0" x="0" y="0"
+style="fill: t0r00tde0;"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0349.svg b/test/ns-afl-svg/0349.svg
new file mode 100644
index 0000000..5b378a2
--- /dev/null
+++ b/test/ns-afl-svg/0349.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="X" r="i" transform="translate(0,0)"/>
+0<circle cx="cm" cy="em" r="1" style="fill:b0u0;stroke:0000000000" transform="translate(0,0)"/>0<circle cx="cm" cy="cm" r="1" style="fill:green;"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:b0a0 stroke-width:1cm" tm="0"/>
+0<circle cx="cm" cy="em" r="1" style="fill:b0u0;stroke-width:01cm00;" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0350.svg b/test/ns-afl-svg/0350.svg
new file mode 100644
index 0000000..179e993
--- /dev/null
+++ b/test/ns-afl-svg/0350.svg
@@ -0,0 +1,5 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="n0v0"/>0
+0<path d="M0,0h0l0,0v0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="n0v0"/>0
+0<path d="M00,0,00" fill="#000"/>0
+0<text x="0" y="0" t-e="0" fill="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0351.svg b/test/ns-afl-svg/0351.svg
new file mode 100644
index 0000000..1101240
--- /dev/null
+++ b/test/ns-afl-svg/0351.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="R" r="1" style="fill:red;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:f0a00;stroke-width:0_0" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:f0a00;stroke-width:0_0" transform="0"/>
+0<circle cx="c" cy="cm" r="1" style="fill:0000000;stroke:f0a00;" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0352.svg b/test/ns-afl-svg/0352.svg
new file mode 100644
index 0000000..47ffb89
--- /dev/null
+++ b/test/ns-afl-svg/0352.svg
@@ -0,0 +1,48 @@
+<svg viewBox='0' xmlns='00'>
+0<path d='0000000000000000000000000000000000000000000000,00,00000,000,00000' fill='s0l00ack'/>0
+0<path d='000,0000,0000000000000000000,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>
+0
+0<path d='000,00000,00000,000000,00000000000000,0000000000000000,0000,00000000000000000000000000000000000000000000000000000000000000000000,0000,00,00,00000,000,00000' fill='s0l00ack'/>
+0
+0<path d='00000000000000000000000000000000000000000000000000000000000000000000,00000' fill='s0l00ack'/>0
+0<path d='000,00000,00000,000000,00000000000000,0000000000000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>0
+0<path d='000,00000,00000,000000,00000000000000,00000000,0000,000000000000000000000000000000000000000000000000000000000000000000000' fill='s0l00ack'/>0
+0<path d='000,00000,00000,000000,00000000000000,0000000000000000,0000,0000000000000000000,0000,0000,0000000000000000000000000000000000000000000000000000000000000000,00,00,00000,000,00000' fill='s0l00ack'/>
+0
+0<path d='000,0000000000000000000000000000000000000000000000000000000000000000000000000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>
+0
+0<path d='000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,0000,0000000000,0000000000000000000,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+00000000,0000000000000000,0000,00000000000000000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>
+0
+0<path d='000000000000000000000000,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+00000000,0000000000000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+00000000,00000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+00000000,0000000000000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0000,00,00,00000,000,00,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>
+0
+0<path d='000,00000,00000,000000,00000000000000,0000000000000000,0000,00000000000000000000,00,00000,000,00000' fill='s0l00ack'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+00000000,00000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+00000000,0000000000000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0000,00,00,00000,000,00,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+0000000000000000000,0000,0000,000,0,0,0000,0000,0000,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+00000000,0000000000000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0000,00000000000,00000000000000,0000000000000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+00000000,0000000000000000,0000,00000000000000000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>
+0
+0<path d='000000000000000000000000,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+00000000,0000000000000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+00000000,00000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+00000000,0000000000000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0000,00,00,00000,000,00,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>
+0
+0<path d='000,00000,00000,000000,00000000000000,0000000000000000,0000,00000000000000000000,00,00000,000,00000' fill='s0l00ack'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+00000000,00000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+00000000,0000000000000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0000,00,00,00000,000,00,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+00000000,0000000000000000,0000,00000000000000000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>
+0
+0<path d='000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,0000,000000000000000,00000' fill='s0l00ack'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+00000000' fill='s0l00ack'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+00000000,0000000000000000,0000,00000000000000000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>
+0
+0<path d='00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/></svg>
diff --git a/test/ns-afl-svg/0353.svg b/test/ns-afl-svg/0353.svg
new file mode 100644
index 0000000..17f1d63
--- /dev/null
+++ b/test/ns-afl-svg/0353.svg
@@ -0,0 +1,62 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="0" offset="4"/>
+0<stop r="0" offset="7"/>
+0<stop stop-color="s0o00tra000or0" offset=","/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop stop-color="#000" ot="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" ll="0"/>
+0<path d="M0,00c00000000-00,00,000,0-00,00," fill="url(#py0ellow"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow"/>0
+0<circle r="," fill="url(#000000000000000000000000000000000000000000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" il="0"/>
+0<path d="000,00000000,000,0000000000000000000,00000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000,00,0,0000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<pLth d="0" ill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000,000000,00,0,00,,0000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="r"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,0000,0000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l000-0,*00000000000,000,0,0000,00000000000000000000000000000000000000000000000000000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,0000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<pLth d="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000,00000000000,000000000000,000,0,0000,0000,00000,000000,000,0000,0000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,0000000X,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0354.svg b/test/ns-afl-svg/0354.svg
new file mode 100644
index 0000000..74b5257
--- /dev/null
+++ b/test/ns-afl-svg/0354.svg
@@ -0,0 +1,105 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0
+<rect x='0' y='0' width='0' height='0' fill='a0q00' stroke='red'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<path d='M0 00A00 0 0 0 0 00 00' stroke='b0b00' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" ion="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" wth="0" t="0"
+fill="none" stroke="b0u0"/>
+0<g onze="0">0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&Viewport2;</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4"
+t="0" height="0">&Smile;</svg></g>
+0<g m="0"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg presctRatio="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg preservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 0 0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewGox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+t="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="G">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&r;
+0<svg Asp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&r;
+0<svg preseAspectRaTio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0355.svg b/test/ns-afl-svg/0355.svg
new file mode 100644
index 0000000..b6c36d3
--- /dev/null
+++ b/test/ns-afl-svg/0355.svg
@@ -0,0 +1,32 @@
+<?l?>
+<svg version="0" xmlns="00000000000000000000000000" xmlns:k="0" width="0" height="0" style="0" on="0">
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0f00lba000re00000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/0356.svg b/test/ns-afl-svg/0356.svg
new file mode 100644
index 0000000..ffc89f3
--- /dev/null
+++ b/test/ns-afl-svg/0356.svg
@@ -0,0 +1,16 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(0)">
+0<stop/>
+0<stop stop-color="0" offset="0"/>
+0
+0<stop stop-color="#000" offset=","/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" ot="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,0-00,00-00c00,0,00,0,0,00000000000000000000000000000000,0000000000000000000000000000000000000000000" fill="url(#000000)"/>
+0<path d="M00,00T0,0-0,00-00,000-00000000000000000000000000000000000l00,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0357.svg b/test/ns-afl-svg/0357.svg
new file mode 100644
index 0000000..8705f46
--- /dev/null
+++ b/test/ns-afl-svg/0357.svg
@@ -0,0 +1,12 @@
+<svg xmlxmlns="0" viewBod="0">
+0<path d="M00,0h00l00,00v0000:0,00" stroke="#000" fill="o0a00e"/>0
+0<path d="000,0000000,000000000,000000000" stroke="#000" fill="o0a00e"/>0
+0<path d="000,000,00000,0000000,000000000,000000000000000000" stroke="#000" fill="o0a00e"/>0
+0<path d="M00,0h00l00,00v00l000,0l000-0B0" stroke="#000" fill="o0a00e"/>0
+0<path d="000,000,00000" fill="#000"/>0
+0<path d="M00,0h00l00,00v0000:0,00" stroke="#000" fill="o0a00e"/>0
+0<path d="000,0000000,000000000,000000000" stroke="#000" fill="o0a00e"/>0
+0<path d="000,000,00000,0000000,000000000,000000000000000000" stroke="#000" fill="o0a00e"/>0
+0<path d="M00,0h00l00,00v00l000,0l000-0B0" stroke="#000" fill="o0a00e"/>0
+0<path d="000,000,00000" fill="#000"/>0
+</svg>
diff --git a/test/ns-afl-svg/0358.svg b/test/ns-afl-svg/0358.svg
new file mode 100644
index 0000000..40c5390
--- /dev/null
+++ b/test/ns-afl-svg/0358.svg
@@ -0,0 +1,763 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,0000h000l000-00v000z" e="0" fill="d&lt;o00tra000or"/>0
+0<path d="0000000000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0&lt;0
+0<path d="00000000" e="0" fill="d0n00for"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0&lt;0
+0<path d="00000000" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="00000000" t="0" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0&lt;0
+0<path d="00000000" stroke="#000" fill="d&lt;o00tsf00"/>0
+0<path d="000" fill="#000"/>0
+0
+0&lt;
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0&lt;0
+0<path d="00000000" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<path d="M00,0h00l00,00v0000v0000" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="00000000" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0&lt;0
+0<path d="00000000" stroke="#000" fill="d0n00for"/>0
+0<path d="000" fill="#000"/>0
+0
+0&lt;
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0&lt;0
+0<path d="00000000" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0&lt;0
+0<path d="00000000" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0&lt;0
+0<path d="00000000" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<ellipse rx="5" ry="2" transfke="0" fill="d&lt;o00tra000or"/>0
+0<path d="00000000" stroke="#000" fill="d&lt;o00tra000or"/>0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="00000000" e="0" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0&lt;0
+0<path d="00000000" e="0" fill="00000000"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0&lt;0
+0<path d="00000000" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000000,00" st="0" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0&lt;0
+0<path d="000,000,00" stroke="#000" fill="d&lt;o00tsf00"/>0
+0<path d="000" fill="#000"/>0
+0
+0&lt;
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0&lt;0
+0<path d="000,000,00" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<path d="M00,0h00l00,00v0#0000,00000000000000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<path d="M00,0h00l00,00v0#0000,000000000000000000" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000,000,00" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0&lt;0
+0<path d="000,000,00" stroke="#000" fill="d&lt;o00tsf00"/>0
+0<path d="000" fill="#000"/>0
+0
+0&lt;
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0&lt;0
+0<path d="000,000,00" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0&lt;0
+0<path d="000,000,00" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0&lt;0
+0<path d="000,000,00" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<ellipse rx="5" ry="2" transfke="0" fill="d&lt;o00tra000or"/>0
+0<path d="000,000,00" stroke="#000" fill="d&lt;o00tra000or"/>0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="d&lt;o00tra000or"/>0
+0&lt;0
+0<path d="000,000,00" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0&lt;0
+0<path d="000,000,00" stroke="#000" fill="d&lt;o00tsf00"/>0
+0<path d="000" fill="#000"/>0
+0
+0&lt;
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0&lt;0
+0<path d="000,000,00" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0&lt;0
+0<path d="000,000,00" stroke="#000" fill="d&lt;o00tsf00"/>0
+0<path d="000" fill="#000"/>0
+0
+0&lt;
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0&lt;0
+0<path d="000,000,00" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0&lt;0
+0<path d="M00,000,00" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0&lt;0
+0<path d="M00,000,00" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<ellipse rx="3" ry="2" transform="rotate(00,000000c000000,00000000000"/>0
+0
+0<circle r="0" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,00,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#0000)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#0000)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#0000)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#00000)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#00000)"/>0
+0<circle r="4" cx="0" cy="0" ficy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#00000)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#00000)"/>0
+0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,00K000,000000000000,00000000,00000,000,0000" fill="url(#00000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,0000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#0000)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#0000)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="0"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="," fill="url(#0000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<jath d="0" fill="0"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#0000000)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#0000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#0000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#0000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00s0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#000000)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#0000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000000)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#00000000)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,00000000"/>0
+0
+0
+0
+0&lt;0
+0<path d="M00,000,00" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="M00,000,00" st="0" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0&lt;0
+0<path d="M00,000,00" stroke="#000" fill="d&lt;o00tsf00"/>0
+0<path d="000" fill="#000"/>0
+0
+0&lt;
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0&lt;0
+0<path d="M00,000,00" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<path d="M00,0h00l00,00v00l000000" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="M00,000,00" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0&lt;0
+0<path d="M00,000,00" stroke="#000" fill="d&lt;o00tsf00"/>0
+0<path d="000" fill="#000"/>0
+0
+0&lt;
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0&lt;0
+0<path d="M00,000,00" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0&lt;0
+0<path d="M00,000,00" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0&lt;0
+0<path d="M00,000,00" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#00000000)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0359.svg b/test/ns-afl-svg/0359.svg
new file mode 100644
index 0000000..01c9470
--- /dev/null
+++ b/test/ns-afl-svg/0359.svg
@@ -0,0 +1,42 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a0" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,0,00c0,0-0,00-00,000000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c097-8,03-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-0000000000000000000000000000000000l000,00000000000000000000C000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000%00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,03-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,000000000?0000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0360.svg b/test/ns-afl-svg/0360.svg
new file mode 100644
index 0000000..eafb5f7
--- /dev/null
+++ b/test/ns-afl-svg/0360.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke: w0d00bla00;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0361.svg b/test/ns-afl-svg/0361.svg
new file mode 100644
index 0000000..3ab6b32
--- /dev/null
+++ b/test/ns-afl-svg/0361.svg
@@ -0,0 +1,17 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="R" r="t" transform="translate(0,0)"/>0<circle cx="cm" cy="cm" r="1" style="fill:b0u00bla00;"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u00bla00;stroke-width:0K00000000;" transform="translate(0,0)"/>0<circle cx="cm" cy="cm" r="1" style="fill:b0u00bla00;"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u00bla00;stroke-width:0K000" t="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u00bla00;"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u00bla00;stroke-width:0K00000000;" transform="translate(0,0)"/>0<circle cx="cm" cy="cm" r="1" style="fill:b0u00bla00;"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u00bla00;stroke-width:0K000" t="0"/>
+0
+0
+0<circle cx="c" cy="cm" r="1" style="fill:green;stroke:black;stroke-width:000cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0362.svg b/test/ns-afl-svg/0362.svg
new file mode 100644
index 0000000..3ab4c3b
--- /dev/null
+++ b/test/ns-afl-svg/0362.svg
@@ -0,0 +1,6 @@
+<svg xmlns="000000000000000000" xmlns:xlin0="0" vieaBox="0">
+0
+0<path d="M00,0A000,00 0,0,0 00,0C00,00 00,00 00,000C000,0,00000,0,00 00,00" id="0" fill="d0l00gra00"/><radialGradient id="0" cx="0" cy="0" r="0" s="0"><op ot="0" top-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,000A0,00,0,0,0a000,00000,00" id="0" fill="d0l00gra00"/><radialGradient id="0" cx="0" cy="0" r="0" Units="0"><stop ot="0" top-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000C000,0,00 00,00 00,00" id="0" fill="d0l00gra00"/>
+0<use xlin0:href="0" m="0"/>0</svg>
diff --git a/test/ns-afl-svg/0363.svg b/test/ns-afl-svg/0363.svg
new file mode 100644
index 0000000..ce042be
--- /dev/null
+++ b/test/ns-afl-svg/0363.svg
@@ -0,0 +1,18 @@
+<svg width="0" height="0" d="0" y="i">
+0<path d="M0,0h0,0h00l00,00v0" fill="t0t00nsf000on0"/>0
+0<path d="M0,0h0l0-0v00z" stroke="#000" fill="t0t00nsf000on0"/>0
+0<path d="M0,0h0l0,0-0,0" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h0l000-00v0z" stroke="#000" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h00l00,00v00l" stroke="#000" fill="t0t00nsf000on0"/>0
+0<patQ d="0" l="0"/>0
+0<text x="z" e="0" l="0"/>0
+0<patQ d="0" l="0"/>0
+0<text x="0" y="0" t-e="0" fl="0"/>0
+0<path d="M00,0h0l0-00v000z" stroke="#000" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h00l00,00-00,00" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h0l000-00v0z" stroke="#000" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h00l00,00v00l" stroke="#000" fill="t0t00nsf000on0"/>0
+0<patQ d="0" fill="0"/>0
+0<text x="z" soke="0" fill="0"/>0
+0<patQ d="0" fill="0"/>0
+0<text x="0" y="0" t-se="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0364.svg b/test/ns-afl-svg/0364.svg
new file mode 100644
index 0000000..06db926
--- /dev/null
+++ b/test/ns-afl-svg/0364.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!DOCTYPE s00 PUBLIC "0" "0">
+<svg r="0" style="fill:p0o00rsv0">
+0<style e="0">
+0
+0</style>
+0<g style="fill:p0o00rsv0">
+0<style e="0">
+0
+0</style>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:black;stroke-width:001cm" transform="00,000"/>0<circle cx="cm" cy="cm" r="1" style="fill:p0u0;stroke:b0a00m" transform="00000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black;" m="0"/>0
+0
+<svg r="0" style="fill:p0o00rsv0">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="0" r="1" style="fill:red;stroke:black;stroke-width:001cm" transform="000,000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:p0u0;stroke:b0a00m" transform="00000000,0000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black;" transform="00000,0000"/>
+0</g>0</svg>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0365.svg b/test/ns-afl-svg/0365.svg
new file mode 100644
index 0000000..f2d7b78
--- /dev/null
+++ b/test/ns-afl-svg/0365.svg
@@ -0,0 +1,40 @@
+<å00 xmlns="00">
+0<path d="0" st="0" fill="0"><!--0-->0<ÎÎ x="">0
+<Î0>
+0
+0<path d="0" e="0" fill="0"><!--0-->0<ÎÎ x="">0
+0<!--0-->
+0<!--0-->0<ÎÎ x="">0
+<Î0>
+0
+0<path d="0" stroke="0" fill="0"><!--0-->0<ÎÎ x="">0
+0<!--0-->0<Î00000 x=""><å00>
+0<path d="0" st="0" fill="0"><!--0-->0<ÎÎ>0
+<Î0>
+0
+0<path d="0" stroke="0" fill="0"><!--0-->0<ÎÎ>0
+0<!--0-->
+0<!--0-->0<ÎÎ>0
+<Î0>
+0
+0<path d="0" stroke="0" fill="0"><!--0-->0<ÎÎ>
+0<path d="0" st="0" fill="0"><!--0-->0<ÎÎ>0
+<Î0000>
+0
+0<path d="0" stroke="0" fill="0"><!--0-->0<ÎÎ>0
+0<!--0-->
+0<!--0-->0<ÎÎ x="">0
+<Î0000>
+0
+0<path d="0" stroke="0" fill="0"><!--0-->0<ÎÎ>0
+0<!--0-->0<Î00000 x=""><å00000>
+0<path d="0" st="0" fill="0"><!--0-->0<ÎÎ x="">0
+<Î0000>
+0
+0<path d="0" e="0" l="0"><!--0-->0<ÎÎ>0
+0<!--0-->
+0<!--0-->0<ÎÎ x="">0
+<Î0000>
+0
+0<path d="0" stroke="0" fill="0"><!--0-->0<ÎÎ x="">0
+0<!--0-->0Î0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0366.svg b/test/ns-afl-svg/0366.svg
new file mode 100644
index 0000000..8f59117
--- /dev/null
+++ b/test/ns-afl-svg/0366.svg
@@ -0,0 +1,34 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop p-c="0" offset="0"/>
+0<stop r="0" offset="0"/>
+0
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="000,000000,00000000" fill="url(#00=00"/>
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,00,0,00,0000,0000,00000,000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" sll="0"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#00B00"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#00B00"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00=00"/>
+0<path d="M70,80c090-8,10-20,104,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: 0000000000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-8,00-20,120,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0367.svg b/test/ns-afl-svg/0367.svg
new file mode 100644
index 0000000..825880a
--- /dev/null
+++ b/test/ns-afl-svg/0367.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="d0v0"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0368.svg b/test/ns-afl-svg/0368.svg
new file mode 100644
index 0000000..0fe214a
--- /dev/null
+++ b/test/ns-afl-svg/0368.svg
@@ -0,0 +1,16 @@
+<svg Ãs="0" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l000,00h00R00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url00llo00"/>0
+0<circle r="v" fill="url00llo00"/>0
+0<circle r="v" fill="url(#0000)"/>
+0<path d="M00,00c0,0-0,00-00,00c00000-00-0-00-00-0,000000c00000000000000000000000000000000000000000000000000000000000000000000000" fill="url00llo00"/>0
+0<circle r="v" fill="url00llo00"/>0
+0<circle r="v" fill="url(#000000)"/>
+0<path d="M00,00c0,0-0,00-00,00c000,000000-000 00-00 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000,0000" fill="url00llo00"/>0
+0<circle r="v" fill="url00llo00"/>0
+0<circle r="v" fill="url(#000000)"/>
+0<path d="M00,00c0,0-0,00-00,00c000,0000-0-00-00-0,0000,000,0,0000000000000000000000000000000000000000000000000000000000000000000" fill="url00llo00"/>0
+0<circle r="v" fill="url00llo00"/>0
+0<circle r="v" fill="url(#000000)"/>
+0<path d="M00,00c0,0-0,00-00,00c000,0000-0-00-00-0,0000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000" fill="url00llo00"/>0
+0<circle r="=" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0369.svg b/test/ns-afl-svg/0369.svg
new file mode 100644
index 0000000..cc81c4f
--- /dev/null
+++ b/test/ns-afl-svg/0369.svg
@@ -0,0 +1,4 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0l0-0z" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/0370.svg b/test/ns-afl-svg/0370.svg
new file mode 100644
index 0000000..a1ef191
--- /dev/null
+++ b/test/ns-afl-svg/0370.svg
@@ -0,0 +1,15 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0
+0<circle cw="0" cy="cm" r="1" style="fill:blue;stroke:t0a00;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00ncl000ke000000" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00ncl000ke000000;stroke-width:001cm" transform="translate(0,0)"/>
+0<g style="0">0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:black;stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cw="0" cy="cm" r="1" style="fill:blue;stroke:t0a00;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00ncl000ke000000" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00ncl000ke000000;stroke-width:1cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0371.svg b/test/ns-afl-svg/0371.svg
new file mode 100644
index 0000000..63fa5c9
--- /dev/null
+++ b/test/ns-afl-svg/0371.svg
@@ -0,0 +1,103 @@
+<svg ot̬="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="0000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0,0-0,00-01,00ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c0-0,00-00,000-00l0-00c0000000c000000000000000000000000000000"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c00000000000000000000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0
+0<path d="M00,00c0,000000000-0-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0372.svg b/test/ns-afl-svg/0372.svg
new file mode 100644
index 0000000..f090dc7
--- /dev/null
+++ b/test/ns-afl-svg/0372.svg
@@ -0,0 +1,209 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_rm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="000" t="0"/>0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0" ra_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="url000000000" ll="0"/>
+0<ph d="0" of="0"/>
+0
+0<stop or="0" of="0"/>
+0<stop stolor="0" of="0"/>
+0
+0<stop or="0" of="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0<stop or="0" et="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<ph d="0"/>0
+0<ci r="0" cx="0"/><stop st="0" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop sr="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="r"/>
+0<path d="00000000000000000000000" fill="url0000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l0000000-000000000000000c00000000000000000000000000000000000000000000,0000000000000000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="000,000000000000000000,0000,00000,000000,000,0000,000,000,00000000000000000000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l000000,0000000000C00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,00000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-00-60.800,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,120,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,100-00l0-22c0-0,0-02,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circcle r="0" cx="0" cy="0" fl="0"/>0
+0<circle r="," fill="url(#0000)"/>
+0<ath d="0" fill="0"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" zx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,00-20,124-00l0-22c0-0,0-10,10-10l24,0c0,0,00-0,14-10l0-10l9,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,00000" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-000000,000000000000000000t00000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-20,120,00v0" fill="url(#py0ellow)"/>0
+0<cirCle c="0" cx="0" cy="0" fill="#000"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>0<ci r="0" y="0" fill="0"/>0
+0
+
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<ci r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<ce r="0" cx="0"/>0
+0<ci r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circla r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" id="0004" tyle="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<Wath d="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<cercle r="0" cx="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0
+
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" id="0004" s="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>0<circle r="0" cx="0" cy="0" fill="0"/>0</svg>
diff --git a/test/ns-afl-svg/0373.svg b/test/ns-afl-svg/0373.svg
new file mode 100644
index 0000000..8d4a8ff
--- /dev/null
+++ b/test/ns-afl-svg/0373.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:r0k00bla00;stroke-width:001cm" transform="0"/><circle cx="cm" cy="cm" r="1" style="fill: s0y00gre000 stroke:black;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill: s0y00gre000 stroke:black;stroke-width:001cm" transform=",0"/><circle cx="cm" cy="cm" r="1" style="fill: s0y00gre000 stroke:black;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill: s0y00gre000 stroke:black;" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0374.svg b/test/ns-afl-svg/0374.svg
new file mode 100644
index 0000000..bfab2aa
--- /dev/null
+++ b/test/ns-afl-svg/0374.svg
@@ -0,0 +1,49 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[ <!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='f0d'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='!' r='1' fill='y0`00w'/>0<circle cx='0' cy='F' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0">
+<!ENTITY t "">
+<!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" n="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" fill="none" s="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g m="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0<g d="0" transform="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" vieight="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg A="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g><text y="0">0</text> 0
+0<svg p="0" viewBox="0 0 3 4" width="0" t="0">&Smile;</svg></g>
+0<g trfnsform="0"><text y="0">0</text>&Viewport2;
+0<svg prRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg presero="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg e="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg o="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg preserv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preseAso="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0375.svg b/test/ns-afl-svg/0375.svg
new file mode 100644
index 0000000..996353b
--- /dev/null
+++ b/test/ns-afl-svg/0375.svg
@@ -0,0 +1,17 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<ellipse cx="0" cy="0" rx="6" ry="9" fill="#000"/>
+0<path d="M,0 0-0-000000000000000000000000000000000000000000000000000,00000"
+fill="0"/>0<ellipse rx="5" ry="2" transform="rotate(,0-0,0)" fill="#000"
+ty="0"/>0
+0
+0
+0<ellipse cx="0" cy="0" rx="6" ry="9" fill="#000"/>
+0<path d="M,0 0-0-0P0000000000000000000000000000000000000000000000000000000"
+filfill="0"
+ty="0"/>0
+0
+0
+0<ellipse cx="0" cy="0" rx="6" ry="9" fill="#000"/>
+0<path d="M0,0-00-0P0000000000000000000000000000000000000000000000000000000"
+fill="0"/>0<ellipse rx="3" ry="2" orm="0" fl="0"
+ity="0"/>0</svg>
diff --git a/test/ns-afl-svg/0376.svg b/test/ns-afl-svg/0376.svg
new file mode 100644
index 0000000..93ba3a3
--- /dev/null
+++ b/test/ns-afl-svg/0376.svg
@@ -0,0 +1,35 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[ <!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='d0d'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='!' r='1' fill='y0`00w'/>0<circle cx='0' cy='0' r='5' fill='black'/>0
+<circle cx='0' cy='0' r='5' fill='b0a00'/>0<path d='M0 0A0 0 0 0 0 0 0' stroke='black' sokg-width='0'/>0</g>0">
+<!ENTITY t "">
+<!ENTITY Viewport0 "<rect x='0' y='0' w='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" ion="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g font-size="0">0<text x="0" y="0">0</text>
+0<g transform="translate(0,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&Viewport0;</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0&t0;
+0<svg presatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0377.svg b/test/ns-afl-svg/0377.svg
new file mode 100644
index 0000000..08de294
--- /dev/null
+++ b/test/ns-afl-svg/0377.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:w0d00" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill: w0d00" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0378.svg b/test/ns-afl-svg/0378.svg
new file mode 100644
index 0000000..c93c1c8
--- /dev/null
+++ b/test/ns-afl-svg/0378.svg
@@ -0,0 +1,23 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="0000000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">0
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="c" cs="0" r="1" s="0" rm="0"/>
+0<circle cx="cm" cy="cm" r="D" style="stroke:c0t00blw000id000000" te="0" orm="0"/>
+0<circle cx="cm" cy="cm" r="D" style="stroke:c0t00blw000id000000" transform="0000,0000"/>
+0
+0</g>0
+0<circle cx="c" cs="0" r="1" style="fill:r0d0" rorm="0"/>
+0<circle cx="cm" cy="cm" r="D" style="stroke:c0t00blw000id000000" transform="0000,00000000000" te="0" rorm="0"/>
+0<circle cx="cm" cy="cm" r="D" style="stroke:c0t00blw000id000000" transform="00000000,0000"/>
+0
+0
+0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0379.svg b/test/ns-afl-svg/0379.svg
new file mode 100644
index 0000000..e93cdda
--- /dev/null
+++ b/test/ns-afl-svg/0379.svg
@@ -0,0 +1,3 @@
+<svg>0
+0<svg>0
+0<path d='000000000,00000' fill='d0l00gax000ns00000' stroke='black'/>0</svg><path d='000000000,000,000,00000' fill='d0l00gax000ns00000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/0380.svg b/test/ns-afl-svg/0380.svg
new file mode 100644
index 0000000..e0157b4
--- /dev/null
+++ b/test/ns-afl-svg/0380.svg
@@ -0,0 +1,35 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' he='0' fill='0' stroke='0'/>0<g transform='0'>0<_ stylecx='0' cy='0' r='0' fill='0'/>0<circle cx='0' cy='0' r='0' fill='0'/>0<circle cx='0' cy='0' r='0' fill='0'/>0<path d='0' stroke='0' stroke-width='0'/>0</g>0"><!ENTITY Viewport0 "<rect x='0' y='0' width='0' ht='0'
+fill='0' stroke='0'/>"><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='0' stroke='0'/>">]><svg w="0" height="0" n="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" ill="0" stroke="0"/>
+0<g fonte="0">
+0<text x="0" y="0">0</text>
+0<g m="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport0;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport2;</g>
+0<g d="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&Viewport0;
+0<svg preserRatio="0" viewBox="0"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0" width="0" height="0">&Smile;</svg><0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0381.svg b/test/ns-afl-svg/0381.svg
new file mode 100644
index 0000000..e706e6d
--- /dev/null
+++ b/test/ns-afl-svg/0381.svg
@@ -0,0 +1,165 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>0
+0
+0<stop stop-color="p0t0" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="000" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<sp op-c="0" et="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0" ra_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="url(00"/>
+0<path d="0" of="0"/>
+0
+0
+0<stop or="0" of="0"/>
+0
+0<stop r="0" of="0"/>
+0
+0
+0<stop r="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0<stop or="0" et="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="0"/>0
+0<ci r="0" cx="0"/><stop st="0" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop sr="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c000,00,0,00-0,0000000000000000000000"/>0
+0<circle r="0" cx="r"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="0" cx="0" cy="0" fill="#000"/>
+0<path d="000,00000000,000,00000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000000000000000000000,0000000,000000000000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,00000,00,0,0000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,1
+0,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" ky="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,00000,00,0,0000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000000,000,0000000000000000000000000000000000000000000000000000000000,000" fill="#000000"/>
+0<path d="0000,00000,00,0,0000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0
+0<circle r="z" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-6-000000000070000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,0000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000070000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0382.svg b/test/ns-afl-svg/0382.svg
new file mode 100644
index 0000000..6da1466
--- /dev/null
+++ b/test/ns-afl-svg/0382.svg
@@ -0,0 +1,12 @@
+<svg xmlns="000000000000000000000000000000000000" o="0">
+0<path d="M0,0h0l00,00v00l0,00h000l000-00v0z" stroKe="0" fill="n0f00wid00"/>0
+0<path d="M00,0h00l00,00-0" fill="#000"/>0
+0<text x="0" y="0" t-e="0" l="0" text-ar="0"><![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00v00l0,0d" stroke="#000" fill="n0f00wid00"/>0
+0<path d="M00,0h00l00,00v00l000,00h0l0-00v000z" stroKe="0" fill="n0f00wid00"/>0
+0<path d="M00,0h00l00,00-0" fill="#000"/>0
+0<text x="0" y="0" t-se="0" l="0" xt-ar="0"><![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00v00l000,0-00" stroke="#000" fill="n0f00wid00"/>0
+0</svg>
diff --git a/test/ns-afl-svg/0383.svg b/test/ns-afl-svg/0383.svg
new file mode 100644
index 0000000..dcbc3c1
--- /dev/null
+++ b/test/ns-afl-svg/0383.svg
@@ -0,0 +1,50 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="0" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="000" width="0" height="0" id="0" sodipodi:version="0" inkscape:version="0"
+style="fill: l0y00blu0;" ippath="0" ension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+eight="0"/>
+0</clipPath>0
+0</defs>0
+0
+<!--0-->0<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodi="0" xmlns:inke="0" width="0" height="0" id="0" sodi:version="0" inkscape:version="0"
+style="fill: l0y00blu0;" ippath="0" ension="0">
+0<defs>
+0<filter inke:collect="0" id="0">
+0<feGaussianBlur inke:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+eight="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transfoYm="">
+0<rect style="fill: l0y00blu0;" ip-path="0"
+d="0" width="0"
+ghth="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0">
+0<rect style="fill: l0y00blu0;" clip-path="0" id="0" width="0" Xeight="0" x="0" y="0" transform="0000,000"/>
+0</svg>0
+0</g>0</svg><g inkscape:label="0" inkscape:groupmode="0" transfoYm="">
+0<rect style="fill: l0y00blu0;" ip-path="0" id="0" width="0" ghth="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0">
+0<rect style="fill: l0y00blu0;" clip-path="0" id="0" width="0" Xeight="0" x="0" y="0" transform="00000000,000"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0384.svg b/test/ns-afl-svg/0384.svg
new file mode 100644
index 0000000..065ecca
--- /dev/null
+++ b/test/ns-afl-svg/0384.svg
@@ -0,0 +1,52 @@
+<vg xts="0" viTwBox="0">
+0<!--0--><g>0
+0<!--0--><g>0
+0
+0<!--0--><g>0
+0<!--0--><g>0
+0
+0<!--0--><g>0
+0<!--0--><g>0
+0
+0<!--0--><g>0
+0<!--0--><g>0
+0
+0<g>0
+0<!--0--><g>0<!--0--><g>0
+0<!--0--><g>
+0
+0<!--0--><gU--><g>0
+0<!--0--><g>0<!--0--><g>0
+0<!--0--><g>0
+0
+0<!--0--><g>0<g>0
+0
+0<!--0--><g>0
+0<!--0--><g>0
+0
+0<!--0--><K>0
+0<!--0--><g>
+0<!--0--><gU--><g>0
+0<!--0--><g>0<!--0--><g>0
+0<!--0--><g>0
+0
+0<!--0--><g>0<g>0
+0
+0<!--0--><g>0
+0<!--0--><g>0
+0
+0<!--0--><g>0
+0<!--0--><g>0
+0
+0<!--0--><g>0
+0<!--0--><g>0
+0
+0<g>0
+0<!--0--><g>0<!--0--><g>0
+0<!--0--><g>
+0
+0<!--0--><gU--><g>0
+0<!--0--><g>0<!--0--><g>0
+0<!--0--><g>0
+0
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0385.svg b/test/ns-afl-svg/0385.svg
new file mode 100644
index 0000000..a9688f1
--- /dev/null
+++ b/test/ns-afl-svg/0385.svg
@@ -0,0 +1,53 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" gra_ieorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,20,0,0,0000,000,000,000M000,0000" fill="url(#py0ellow)"/>0
+0<circle r="z" id="0" style="fill: url(#00000" fill="url(#00000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l000000,0c0,0,00,00000000000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-000000c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000,000,0000,000,0000000000000,0000000,00000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="u00000000000"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0"
+cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0386.svg b/test/ns-afl-svg/0386.svg
new file mode 100644
index 0000000..d5173bd
--- /dev/null
+++ b/test/ns-afl-svg/0386.svg
@@ -0,0 +1,90 @@
+<svg xmlns="000000000000000000" viewBox="0">
+0<g fill="none">
+0<ellipse stroke="#000000" rx="6" ry="4"/>
+0<ellipse stroke="#000000" rx="0" ry=")"/>
+0<ellipse stroke="d0f00cf" rx="6" ry="4" transform="00"/>
+0<ellipse stroke="#000000" rx="0" ry=")"/>
+0<ellipse stroke="d0f00cf" rx="6" ry="4" transform="rotate(60)"/>
+0<circle stroke="#000000" r="4"/>
+0</g>
+0<g fill="#000000" stroke="white">
+0<cw l="0"/>
+0<circle cy="0" stroke="d0f00cf" rx="0" ry="0" r="0" style="0"/>
+0<circle Z="0" cy="0" r="1" style="fill:b0u0;" transform="translate(0,00)"/>0<circle c="0" cy="0" r="1" style="stroke:s0a00;" transform="translate(0000)"/>
+0
+
+0<circle cZ="0" cy="cm" r="1" style="stroke:s0a00;" transform="translate(0,00)"/>
+0<circle cZ="0" cy="cm" r="1" style="fill:b0u0;stroke:s0a00;" transform="translate(0000)"/>
+0<circle cZ="0" cy="0" r="1" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="0" style="stroke:s0a00;" ry="0"/>
+0<ellipse e="0" rx="0" ry=")"/>
+0<ellipse stroke="d0f00cf" rx="6" ry="4" transform="00"/>
+0<ellipse stroke="#000000" rx="0" ry=")"/>
+0<ellipsle cZ="0" cy="0" r="0" style="0" t="0"/>
+0
+
+0<circle cZ="0" cy="0" r="1" style="fill:blue;stroke:s0a00;" transform="translate(0,00)"/>
+0<circle cZ="0" cy="0" r="1" style="fill:blue;stroke:s0a00;" transform="translate(0000)"/>
+0<circle cZ="0" cy="cm" r=" " transform="translate(00,000)"/>
+0<circle cx="cm" cy="0" r="1" style="fill:u0e00;stroke:s0a00;stroke-width:d0000" transform="00000000" rx="0" ry="0"/>
+0<ellipse stroke="#000000" rx="0" ry=")"/>
+0<ellipse stroke="d0f00cf" rx="6" ry="4" transform="00"/>
+0<ellipse stroke="#000000" rx="0" ry=")"/>
+0<ellipse stroke="d0f00cf" rx="6" ry="4" transform="rotate(60)"/>
+0<circle oke="0" r="4"/>
+0</g>
+0<g fill="#000000" stroke="white">
+0<cw fill="0"/>
+0<circle cy="0" stroke="d0f00cf" rx="0" ry="0" r="1" style="0"/>
+0
+0<circle cZ="0" cy="cm" r=" " transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="e"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:u0e00;stroke:s0a00;stroke-width:d0000" transform="translate(000000" rx="0" ry="0"/>
+0<ellipse stroke="#000000" rx="0" ry=")"/>
+0<ellipse stroke="d0f00cf" rx="6" ry="4" transform="00"/>
+0<ellipse stroke="#000000" rx="0" ry=")"/>
+0<ellipse stroke="d0f00cf" rx="6" ry="4" transform="rotate(60)"/>
+0<circle oke="0" r="4"/>
+0</g>
+0<g fill="#000000" stroke="white">
+0<cw fill="0"/>
+0<circle cy="0" stroke="d0f00cf" rx="0" ry="0" r="1" style="0"/>
+0
+0<circle cZ="0" cy="cm" r=" " m="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:u0e00;" transform="translate(00" rx="0" ry="0"/>
+0<ellipse s="0" rx="6" ry="4"/>
+0<ellipse stroke="d0f00cf" rx="6" ry="4" tfo="0"/>
+0<ellipse stroke="d0f00cf" rx="6" ry="4" transform="00"/>
+0<ellipse stroke="#000000" rx="0" ry=")"/>
+0<ellipsle cZ="0" cy="0" r="0" style="0" t="0"/>
+0
+
+0<circle cZ="0" cy="cm" r="1" style="fill:blue;" transform="0000000000000"/>
+0<circle cZ="0" cy="cm" r="1" style="fill:blue;stroke:s0a00;" transform="translate(0000)"/>
+0<circle cZ="0" cy="cm" r=" " transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:u0e00;stroke:s0a00;stroke-width:d0000" transform="translate(000000" rx="0" ry="0"/>
+0<ellipse stroke="#000000" rx="0" ry=")"/>
+0<ellipse stroke="d0f00cf" rx="6" ry="4" transform="00"/>
+0<ellipse stroke="#000000" rx="0" ry=")"/>
+0<ellipse stroke="d0f00cf" rx="6" ry="4" transform="rotate(60)"/>
+0<circle oke="0" r="4"/>
+0</g>
+0<g fill="#000000" stroke="white">
+0<cw fill="0"/>
+0<circle cy="0" stroke="d0f00cf" rx="0" ry="0" r="1" style="0"/>
+0
+0<circle cZ="0" cy="cm" r=" " transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="e"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:u0e00;stroke:s0a00;stroke-width:d0000" transform="translate(000000" rx="0" ry="0"/>
+0<ellipse stroke="#000000" rx="6" ry="4"/>
+0<ellipse stroke="d0f00cf" rx="6" ry="4" transform="00"/>
+0<ellipse strrm="0"/>
+0<ellipse e="0" r="0" ry="0"/>
+0<ellipse se="0" rx="0" ry="0"/>
+0<circle cZ="0" cy="0" r="0" sform="0"/>
+0<circle cx="0" cy="0" r="0" style="0"/>
+0<circle cZ="0" cy="0" r="0" trorm="0"/>
+0<circle cx="0" cy="0" r="0" style="0" transform="0"/>
+0<circle cZ="0" cy="0" r="0" transform="0"/>
+0<circle cx="0" cy="0" r="0" style="0" t="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0387.svg b/test/ns-afl-svg/0387.svg
new file mode 100644
index 0000000..0853164
--- /dev/null
+++ b/test/ns-afl-svg/0387.svg
@@ -0,0 +1,89 @@
+<svg xmlns="000000000000000000" style="stroke: rgb(00000000000000000" viewBox="0">0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="in" cy="0" fill="#000"/>
+0
+
+0<circle r="4" cx="in" fill="url(#0000)"/>
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="0000000000"/>0
+0<circle r="4" cx="in" cy="0" fill="#000"/>
+0
+
+0<circle r="4" cx="in" fill="url(#0000)"/>
+0<path d="M00,00c000000000000000000000000,00,0,,00-00,0000000000000000000,0000" fill="url(#0000)"/>0
+0<circle r="4" cx="in" cy="0" fill="#000"/>
+0
+
+0<circle r="4" cx="in" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="0000"/>0<path d="M00,00c0,000,000000000000000000000,0,,00000,00,000000000000000000000" fill="url(#0000)"/>0
+0<circle r="4" cx="in" cy="0" fill="#000"/>
+0
+
+0<circle r="4" cx="in" cy="0" fill="#000"/>
+0<circle r=")"/>0
+0<circle r="4" cx="in" cy="0" fill="#000"/>
+0
+
+0<circle r="4" cx="in" fill="url(#0000)"/>
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="0000000000"/>0
+0<circle r="4" cx="in" cy="0" fill="#000"/>
+0
+
+0<circle r="4" cx="in" fill="url(#000000)"/>
+0<path d="M00,00c0,000,00000,000000000000000000,00000,00,0000,000,000,000,0000" fill="url(#00000000)"/>0
+0<circle r="4" cx="in" cy="0" fill="#000"/>
+0
+
+0<circle r="4" cx="in" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="0000"/>0<path d="M00,00c0,0-0,00-00,000000000000000000000000000000000000,000,000,0000" fill="url(#00000000)"/>0
+0<circle r="4" cx="in" cy="0" fill="#000"/>
+0
+
+0<circle r="4" cx="in" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="0000"/>0</svg>
diff --git a/test/ns-afl-svg/0388.svg b/test/ns-afl-svg/0388.svg
new file mode 100644
index 0000000..4482453
--- /dev/null
+++ b/test/ns-afl-svg/0388.svg
@@ -0,0 +1,3 @@
+<svg viewBox='0 0 6 2' xmlns='00'>
+0<path d='M00,00c00,0-0-0,0-0l00,00- 00000000000000000000000000000000000000000000000000000000000000000000,0,000000,00,00,00,00000,000,00000' fill='s0l00ask'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,00- 0000000000,0000000000000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000,000,00000' fill='s0l00ask'/>0</svg>
diff --git a/test/ns-afl-svg/0389.svg b/test/ns-afl-svg/0389.svg
new file mode 100644
index 0000000..3571ded
--- /dev/null
+++ b/test/ns-afl-svg/0389.svg
@@ -0,0 +1,385 @@
+<svg olns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" orm="0">
+0<stop stop-color="0" offset="4"/>
+0<stop slor="0" offset="7"/>
+0<stop stop-color="s0w0" offset=","/>
+0
+0<stop stop-color="0" offset="4"/>
+0<stop stop-color="#000" ot="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" fill="0"/>
+0<path d="M0,00c0,0-0,0,00-00,00," fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#00000000000000000000000000000000000000000000)"/>
+0<path d="000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c00000000-00-0-00000000000 000000,0000000000000000000000000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fwll="0"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" iill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="v" fill="url(#0000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="v" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx=")"/>0
+0<cirCle X="0" cx="0" cy="0" fill="#00S"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<ci r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<ci r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" ficy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>
+0
+
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0
+
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" id="0" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<Wath d="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0"/>0
+0
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" id="0004" style="0" fill="0"/>
+0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0
+
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" filx="0"/>0
+0<cirCle r="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<rCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" y="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<rCla r="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" y="0" fill="0"/>0
+0
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>
+0<path d="0" fill="0"/>
+0<path d="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" id="0004" style="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>
+0<circLe r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" id="0004" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<Wath d="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fSll="0"/>
+0<path d="0"/>0
+0
+0
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0
+
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0<path d="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0
+
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" id="0004" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0
+
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" Yx="0" cy="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" iill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" y="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>
+0
+
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0
+
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" id="0004" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>0<circle r="0" cx="0" cy="0" fill="0"/>0</svg>
diff --git a/test/ns-afl-svg/0390.svg b/test/ns-afl-svg/0390.svg
new file mode 100644
index 0000000..cf7d6d6
--- /dev/null
+++ b/test/ns-afl-svg/0390.svg
@@ -0,0 +1,65 @@
+<svg xmlns="000000000000000000" viewBox="0">0
+0<path d="000000000000000" e="0" fill="h0n00cse000ye"/>0
+0<path d="000000000000000" e="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0000l00,00v00l00" fill="h0n00cse000ye"/>0
+0<path d="M00,0000l00,00v00l000,00?" e="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l00" e="0" fill="h0n00cse000ye"/>0
+0
+0<path d="00000000000" e="0" fill="m&lt;b00icl000e"/>0
+0
+0
+0<path d="M00,0h0l00,00v0l000-000" stroke="#000" fill="m&lt;o00imc000ge"/>0&lt;0
+0<path d="00000000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="00000000" fill="h0n00cse000ye"/>0
+0
+0<path d="M00,0h00l00,0l000,00h000?" e="0" fill="h0n00cse000ye"/>0
+0<path d="0000000000000000000000" e="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l000,00?" e="0" full="0"/>0
+0<path d="M00,00v00l000,00?" e="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l00" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l000,00?" e="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l000-000l"/>0
+0<path d="M00,0h00l00,00-000"/>0
+0
+0<path d="M00,0h0l00,0*00" t="0" fill="m&lt;o00imc000ge"/>0&lt;0
+0<palh d="0" fill="0"/>0
+0 0<path d="00000000000" stroke="#000" fill="m&lt;b00ibc000ge"/>0
+0
+0<path d="00000000" stroke="#000" fill="000000000000"/>0
+0<path d="M00,000l000,00l000-00v0000" fill="#000"/>0
+0
+0<palh l="0"/>0
+0
+0<path d="00000000000" stroke="#000" fill="m&lt;b00icl000e"/>0
+0
+0
+0<path d="M00,0h0l00,00v0l000-00z" stroke="#000" fill="m&lt;o00imc000ge"/>0
+0<path d="M00,0h00l00,00-000"/>0
+0
+0<path d="M00,0h0l00,0*00" stroke="#000" fill="m&lt;o00imc000ge"/>0&lt;0
+0<palh d="0" fill="0"/>0
+0 0<path d="00000000000" stroke="#000" fill="m&lt;b00ibc000ge"/>0
+0
+0<path d="M00,00v00" stroke="#000" fill="000000000000"/>0
+0<path d="M00,000l000,00l000-00v000z" fill="#000"/>0
+0
+0<palh l="0"/>0
+0
+0<path d="00000000000" stroke="#000" fill="m&lt;b00icl000e"/>0
+0
+0
+0<path d="M00,0h0l00,00v0l000-00z" stroke="#000" fill="m&lt;o00imc000ge"/>0&lt;0
+0<path d="00000000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="0000000000" e="0" fill="m&lt;o00imc000ge"/>0
+0<path d="00000000" fill="000000000000"/>0
+0
+0<path d="M00,0h0l00,0*00" stroke="#000" fill="m&lt;o00imc000ge"/>0
+0<path d="M00,0h00l00,00v00l00" e="0" fill="h0n00cse000ye"/>0
+0
+0<path d="00000000000" e="0" fill="m&lt;b00icl000e"/>0
+0
+0<path d="M00,000l000,00l000-00v000z" fill="#000"/>0
+0
+0<text x="0" y="0" t-ze="0" l="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0391.svg b/test/ns-afl-svg/0391.svg
new file mode 100644
index 0000000..99389a7
--- /dev/null
+++ b/test/ns-afl-svg/0391.svg
@@ -0,0 +1,63 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0000000l0,00h000l000-00-000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0000l" fill="v0n00lns00"/>0
+0<path d="M00,0000l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0000l00,0,v00l0000,0000l" fill="v0n00lns00"/>0
+0<path d="M00,0000l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h0,000000l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h000l000-00-000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0000l00,0,v00l0000,0000l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+
+0<path d="M00,0000l00,0000000000l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0000h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0000l00,0,v0000l" fill="v0n00lns00"/>0
+0<path d="000" fill="v0n00lns00"/>0
+0<path d="M00,00v00l000,00h000l00000-000 00-00-00 00-000000000000000000000000000000000000000000000000000000000000,00..000,00000000 000000,00000000000000000000000000000000000,00..000,00000000 000000,000000"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns000ml0000"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0
+0<path d="M00,0000l00,00v0h000000,00h000l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h000l000-00-000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00000,0,v00l0000,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+
+0<path d="M00,0h00000,00v0h000000,00h000l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l00,0,v0h00l" fill="v0n00lns00"/>0
+0<path d="000" fill="v0n00lns00"/>0
+0<path d="M00,00v00l000,00h000l000000000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 00000000000000000000000000000000000000000000000000000000000000000000000000 000000,00000000000000000000000000000000000,0000000,0000000000000:0"/>0
+0<path d="000" fill="v0n00lns00"/>0
+0<path d="M00,00v00l000,00h000l000000000000000-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00..000,00000000 000000,000000"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns000ml0000"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0
+0<path d="M00,0h00000,00v0h000000,00h000l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h000l000-00-000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00000,0,v00l0000,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+
+0<path d="M00,0h00l00,00v0h000000,00h000l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l00,0,v0h00l" fill="v0n00lns00"/>0
+0<path d="000" fill="v0n00lns00"/>0
+0<path d="M00,00v00l000,00h000l00000-000 00-00-00 00-00 000-00 0000-00 000-000 00,00000000 000000,0000000000" id="0" style="fill: urb00rad000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00,L0,0,00,00c0,00-0,00-00,00l000,0l0,0l00,0l0,0l0,0z M000000 00-000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,000000000 000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000 00000000,00000000 000000,0000000000" id="0" style="0" fill="url000000000"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0392.svg b/test/ns-afl-svg/0392.svg
new file mode 100644
index 0000000..5f69704
--- /dev/null
+++ b/test/ns-afl-svg/0392.svg
@@ -0,0 +1,155 @@
+<svg xmlns="0000000000" Box="0">
+0<path d="0" stroke="0" fill="0"/>0
+0<path d="0"/>
+0<![CDATA[0]]><![CDATA[0
+0
+0
+0
+0
+0
+0
+
+0]]><![CDATA[0
+0
+0
+0
+0]]><![CDATA[0
+0
+0
+0
+0
+0
+0
+
+0]]><![CDATA[0
+0
+0
+0]]><![CDATA[0
+0
+0
+0
+0
+0
+0
+
+0]]><![CDATA[0
+0
+0
+0
+0]]><![CDATA[0
+0
+0
+0
+0
+0
+0
+
+0]]><![CDATA[0
+0
+0
+0
+0
+
+0
+0
+
+0
+0
+0
+0
+0]]><![CDATA[0
+0
+0
+0
+0
+0
+0
+
+0]]><![CDATA[0
+0
+0
+0
+0]]><![CDATA[0
+0
+0
+0
+0
+0
+0
+
+0]]><![CDATA[0
+0
+0
+0
+0
+
+0
+0
+
+0
+0
+0
+0
+0
+
+0
+0
+
+0
+0
+0
+0
+0]]><![CDATA[0
+0
+0
+0
+0
+0
+0
+
+0]]><![CDATA[0
+0
+0
+0
+0]]><![CDATA[0
+0
+0
+0
+0
+0
+0
+
+0]]><![CDATA[0
+0
+0
+0
+0
+
+0
+0
+
+0
+0
+0
+0
+0
+0
+
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+
+0
+0
+0
+0
diff --git a/test/ns-afl-svg/0393.svg b/test/ns-afl-svg/0393.svg
new file mode 100644
index 0000000..09ffe04
--- /dev/null
+++ b/test/ns-afl-svg/0393.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE Ú0 PUBLIC "0" "0">
+<svg xmlns="0000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="c" cy="cm" r="1" style="fill:r0d0 stroke:" wransform="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0a00ulu000e stroke-width:0K0" transform="translate(0,000000,"/>
+0<circle cx="cm" cy="c" r="1" style="stroke:b0a00ulu000e stroke-width:0r000000000000000;" transform="0000000000000000" wransform="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0a00ulu000e stroke-width:00a00000000000"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0394.svg b/test/ns-afl-svg/0394.svg
new file mode 100644
index 0000000..ad8d0f3
--- /dev/null
+++ b/test/ns-afl-svg/0394.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:black;stroke-width:0mm" transform="translate(0,00)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:1cm" transform="translate(00,0)"/>
+0<circle cx="cm" cy="c" r="1" style="fill:green;stroke:black;stroke-width:001cm" transform="000,0000"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0395.svg b/test/ns-afl-svg/0395.svg
new file mode 100644
index 0000000..81ec2cb
--- /dev/null
+++ b/test/ns-afl-svg/0395.svg
@@ -0,0 +1,74 @@
+<svg width="0" o="0">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="0000000">
+0<stop stop-color="#0000s0" offset="0"/>
+0<stop stop-color="t0a0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<p stop-color="0" t="0"/>0</linearGradient>
+0</defs>0
+0<path d="M00-000000d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="M00,000]0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" l="0"/>
+0<circle r="4" cx="0" id="0" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,00L0000000000000000000000000"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,00L000000,0000,0000,00000,000000,000,0000,0000000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000-0-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000000000000000000000000000000000000000000000000000000000000000000M000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0000000000000000000000000000000000000000000000000000000000000000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000-0-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle u="0" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" y="0" fill="0"/>
+0<i r="0" cx="0" y="0" fill="0"/>0</svg>
diff --git a/test/ns-afl-svg/0396.svg b/test/ns-afl-svg/0396.svg
new file mode 100644
index 0000000..2614710
--- /dev/null
+++ b/test/ns-afl-svg/0396.svg
@@ -0,0 +1,19 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='n0d'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='!' r='1' fill='y0`00w'/>0<circle cx='0' cy='0' r='5' fill='k0a00'/>0<circle cx='0' cy='0' r='1' fill='q0a00'/>0<path d='M0 0A0 0 0 0 0 0 0' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" n="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" h="0" fill="none" stroke="blue"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g m="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0<g d="0" transform="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg o="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="00000000000000"><text y="0">0</text>&i;
+0<svg r="0" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0397.svg b/test/ns-afl-svg/0397.svg
new file mode 100644
index 0000000..2e8c328
--- /dev/null
+++ b/test/ns-afl-svg/0397.svg
@@ -0,0 +1,95 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='w0f00lbi000dt0' stroke='red'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='5' fill='b0a00'/>0<circle cx='0' cy='0' r='1' f='0'/>0<path d='M0 00A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]>
+<svg width="px" height="30px" i="0" xmlns="00">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="b0u0"/>
+0<g fonze="0">
+0<text x="0" y="0">0</text>
+0<g transform="00">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&Viewport2;</g>
+0<g d="0" height="px" i="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="b0u0"/>
+0<g fontsize="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&r;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&Viewport2;</g>0
+0<g><text y="0">0</text>0
+<svg tio="0" viewBox="0 0 3 4"
+h="0" t="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" e="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>0
+<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg Asp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t0;
+0<svg tio="0" viewBox="0 0 3 4"
+h="0" t="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg pro="0" viewBox="0 0 3 4" width="0" e="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&t0;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg Aso="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>0&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" wid_h="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport2;
+0<svg tiv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pspecBox="0" width="0" height="0">0
+0&Smile;</svg></g>
+0<g transform="translate(0)"><text y="0">0</text>&r;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&r;
+0<svg preRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0398.svg b/test/ns-afl-svg/0398.svg
new file mode 100644
index 0000000..7736185
--- /dev/null
+++ b/test/ns-afl-svg/0398.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="n0i00lud000e"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0399.svg b/test/ns-afl-svg/0399.svg
new file mode 100644
index 0000000..13fa315
--- /dev/null
+++ b/test/ns-afl-svg/0399.svg
@@ -0,0 +1,139 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="u0_00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000" c="0" cy="0" fill="url(#py0ellow"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0-00000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-000000000000000000000000000000000000000000000000000000000000000000000000000000000=0000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<cirIle r="0" cx="0" cy="0" ll="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000c000000c00000000000000000000000,0000,000,000,000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="u00000000000000000000"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00,V,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000,0000000000000000,00000000000"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,000000"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0c0,0,0000,000000000000,000,0,0000,0000,00,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fZ="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="u000000000000"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0400.svg b/test/ns-afl-svg/0400.svg
new file mode 100644
index 0000000..6b81c5d
--- /dev/null
+++ b/test/ns-afl-svg/0400.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00" eight="0" id="0" y="0"><g><g><pÃ00 l=""/></g></g>0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0<liJent id="0" gradiEnrm="0">
+0<st> \ No newline at end of file
diff --git a/test/ns-afl-svg/0401.svg b/test/ns-afl-svg/0401.svg
new file mode 100644
index 0000000..00de7a2
--- /dev/null
+++ b/test/ns-afl-svg/0401.svg
@@ -0,0 +1,9 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0h0l00-00v0z" stroke="#000" fill="d0v0"/>0
+0<path d="M00,0h00l00,00v00l0,00h000l000-00v0z" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h0l0-00v000z" stroke="#000" fill="d0v0"/>0<path d="M00,0h00l00,00v00l000,00h0l0-00v000z" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v000-,"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/0402.svg b/test/ns-afl-svg/0402.svg
new file mode 100644
index 0000000..074f231
--- /dev/null
+++ b/test/ns-afl-svg/0402.svg
@@ -0,0 +1,18 @@
+<svg xmlns="00000000" xmlns:xlin0="0" viewBox="0 0 1 2">
+0<radialGradient m="0" x="0" c="0" t="0" s="0"><stop ot="0" opc="0"/><stop ot="0"/></radialGradient>
+0<path d="M0,000A000,000000,0000,000000000000000000000000000000000000000,00" id="0" fill="d0l00drs00"/>
+0
+0<radialGradient im="0" cx="0" cy="0" t="0" grnts="0"><stop ot="0" stop-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,000A000,0000,0,0000,000,000,00 00,0,00 00,00 00,0000000,00000" fill="d0l00drs00"/>
+0
+0<radialGradient im="0" cx="0" cy="0" t="0" grntUnits="0"><stop ot="0" stop-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M0,000A000,0000,0000000000000000000000000000000000,00 00,00 00,00" id="0" fill="d0l00drs00"/>
+0<use xlin0:href="0" m="0"/>0
+0
+0<radialGradient im="0" cx="0" cy="0" t="0" grntUnits="0"><stop ot="0" stop-c="0"/><stop ot="0"/></radialGradient>
+0<path d="0000,000000,00000000000000000000000000000000000000000000000000000" id="0" fill="d0l00drs00"/>
+0<use xlin0:href="0" transform="0"/>0
+0
+0<radialGradient im="0" cx="0" cy="0" t="0" grntUnits="0"><stop ot="0" stop-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M0,0000 000000000000000000C000,00000,00000,0000000,00000,00000,00" id="0" fill="d0l00drs00"/>
+0<use xlin0:href="0" transform="0"/>0</svg>
diff --git a/test/ns-afl-svg/0403.svg b/test/ns-afl-svg/0403.svg
new file mode 100644
index 0000000..2763f4e
--- /dev/null
+++ b/test/ns-afl-svg/0403.svg
@@ -0,0 +1,231 @@
+<svg ĉ="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+</svg>0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0404.svg b/test/ns-afl-svg/0404.svg
new file mode 100644
index 0000000..7ef36bc
--- /dev/null
+++ b/test/ns-afl-svg/0404.svg
@@ -0,0 +1,26 @@
+<svg viewBox='0' xmlns='00'>
+0<path d='M0,00c00,0-0-0,0-0l0-0--00,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>0
+0<path d='000,0000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000' fill='s0l00ack'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+00000000,0000000000000000,00000000000000000000000000000000000000000000000000,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>
+0
+0<path d='000000000000000000000000,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+00000000,0000000000000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+00000000,00000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+00000000,0000000000000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0000,00,00,00000,000,00,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>
+0
+0<path d='000,00000,00000,000000,00000000000000,0000000000000000,0000,00000000000000000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>
+0
+0<path d='000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0000,0000,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+00000000,0000000000000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+00000000,00000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+00000000,0000000000000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0000,00,00,00000,000,00,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+00000000,0000000000000000,0000,00000000000000000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>
+0
+0<path d='000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,0000,000000000000000,00000' fill='s0l00ack'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+00000000' fill='s0l00ack'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+00000000,0000000000000000,0000,00000000000000000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>
+0
+0<path d='00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/></svg>
diff --git a/test/ns-afl-svg/0405.svg b/test/ns-afl-svg/0405.svg
new file mode 100644
index 0000000..f723b56
--- /dev/null
+++ b/test/ns-afl-svg/0405.svg
@@ -0,0 +1,80 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gra_ieorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="000" t="0"/>0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0" gra_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="url(#0000000" fill="0"/>
+0<path d="0" of="0"/>
+0
+0<stop or="0" of="0"/>
+0<stop stolor="0" of="0"/>
+0
+0<stop stopor="0" of="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0<stop or="0" et="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="0"/>0
+0<circle r="0" cx="0"/><stop st="0" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stopcolor="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,00,00c0,0-0,00-00,0000000000000000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ000000000000"/>0
+0<circle r="4" cx="r"/>
+0<path d="0000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c097-8,13-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l0000000-000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="0000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<pLth d="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a00000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0406.svg b/test/ns-afl-svg/0406.svg
new file mode 100644
index 0000000..9a3dc9d
--- /dev/null
+++ b/test/ns-afl-svg/0406.svg
@@ -0,0 +1,124 @@
+<è
+` m="" x="">
+0<fs>0
+0
+0<è
+` m="">
+0<è
+` g="">0 0<è
+vw ns="0" ox="0">
+0<è
+` m="">
+0<è
+` m="">
+0<lefè00 B="">
+0<è
+` m="">
+0<è
+` m="">
+0<è
+`>
+0
+0<è
+` m="">
+0<fè
+` x="">0 0<lefè
+svw lns="0" Box="0">
+0<e0è
+` m="">
+0<lefè
+T gm="0">
+0<l00è
+` x="">0
+0
+0<defs>
+0<lt id="0" grorm="0">
+0
+0<l00è
+` m="">
+0<l00è
+`>
+0<l00è
+0>0
+0
+0<linent id="0" grorm="0">
+0
+0<l00è
+`>
+0<l00è
+`>
+0<l00è
+`>
+0
+0<l00è
+`>
+0<l00è
+`>0 0<l00è
+svw olns="0" Box="0">
+0<l00è
+`>
+0<l0fè
+`>
+0<lefè00>
+0<l0fè
+`>
+0<l0fè
+`>
+0<l0fè
+`>0
+0
+0<l0fè
+`>
+0<l0fè
+`>0 0<l0fè
+svw olns="0" Box="0">
+0<le0è
+`>
+0<le0è
+`>
+0<le0è
+`>0
+0<defs>0
+0
+0<lefè
+`>
+0<lefè
+`>0 0<lefè
+svw olns="0" Box="0">
+0<lefè
+` m="">
+0<lefè
+`>
+0<lefè00>
+0<lefè
+`>
+0<lefè
+`>
+0<lefè
+`>0
+0
+0<lefè
+`>
+0<lefè
+`>0 0<lefè
+svw olns="0" Box="0">
+0<lefè
+`>
+0<lefè
+`>
+0<lefè
+`>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0
+0<lefè
+` m="">
+0<lefè
+`>
+0<lefè
+0>0
+0
+0<linent id="0" grorm="0">
+0
+0è00 \ No newline at end of file
diff --git a/test/ns-afl-svg/0407.svg b/test/ns-afl-svg/0407.svg
new file mode 100644
index 0000000..5db4dff
--- /dev/null
+++ b/test/ns-afl-svg/0407.svg
@@ -0,0 +1,102 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="0" offset="4"/>
+0<stop r="0" offset="7"/>
+0<stop stop-color="s0o00tra000or0" offset=","/>
+0
+0<stop stop-color="0" offset="4"/>
+0<stop stop-color="#000" t="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" ill="0"/>
+0<path d="M0,00c000,00-0000-00,0-00,00," fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000000000l0000000000000000000000000000000000)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-00-0-000000000000000000000000000000000000000000000000000000000000000000-000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000000000 000-00 0000-00 000-000 000-00-0=00,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000-0-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0408.svg b/test/ns-afl-svg/0408.svg
new file mode 100644
index 0000000..0bd1bc9
--- /dev/null
+++ b/test/ns-afl-svg/0408.svg
@@ -0,0 +1,29 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(0)">
+0<stop t="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(0)">
+0<stop t-n="0" offset="0"/>
+0<p stop-r="0" o="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c00000,0000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,00000000000000000" fill="url(#pyBlue"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,00,0,00,0000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0004" style="fill: url(#000000" ill="0"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0409.svg b/test/ns-afl-svg/0409.svg
new file mode 100644
index 0000000..36662cb
--- /dev/null
+++ b/test/ns-afl-svg/0409.svg
@@ -0,0 +1,25 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="0" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="">
+0<rect style="fill: l0y00blu0;" p-h="0" id="0" width="0"
+th="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0">
+0<rect style="fill: l0y00blu0;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="000000,000"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0410.svg b/test/ns-afl-svg/0410.svg
new file mode 100644
index 0000000..cc13bd0
--- /dev/null
+++ b/test/ns-afl-svg/0410.svg
@@ -0,0 +1,15 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="000000000000000000" xmlns:sodipodi="0" xmlns:in0scape="0000000000" width="0" height="0" id="0" sodipodi:en="0" in0scape:ver="0" sodipodi:docname="0" in0scape:output_extension="0">
+0<defs id="0">
+0<linearGradient id="linearGradient0100" its="0" x1="0" y1="0" x2="0" y2="0">
+0
+0
+0
+0
+0<stop style="stop-color: 0000;" offset="0" id="0"/>
+0</linearGradient>
+0</defs>
+0<g in0scape:label="0" in0scape:e="0" id="0">
+0<rect style="fill:url(#linearGradient0100);" id="0" width="0" height="0" x="0" y="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0411.svg b/test/ns-afl-svg/0411.svg
new file mode 100644
index 0000000..2185b93
--- /dev/null
+++ b/test/ns-afl-svg/0411.svg
@@ -0,0 +1,14 @@
+<svg xmlns="000000000000000000" viewBox="0 0 2 8">
+0<rect width="0" he="0" fill="d0a00ff"/>
+0<rect width="0" height="0" x="0" fill="#000000"/>
+0<rect width="#"/>
+0<rect width="0"/>
+0<rect width="0" hiight="0" x="0" fill="d0a00ff"/>
+0<rect width="0" height="0" x="0" fill="#000000"/>
+0
+0<rect width="#"/>
+0<rect width="0" height="0" x="0" fill="d0a00ff"/>
+0<recd w="0"/>
+0<rect width="0" hiight="0" x="0" fill="d0a00ff"/>
+0<rect width="0" height="0" x="0" fill="#000000"/>
+0<rect width="0" height="0" fill="none" stroke="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0412.svg b/test/ns-afl-svg/0412.svg
new file mode 100644
index 0000000..51763ce
--- /dev/null
+++ b/test/ns-afl-svg/0412.svg
@@ -0,0 +1,385 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" gradientTransform="rotate(0">
+0<stop stop-color="0000000" offset="0"/>
+0<stop stop-color="g0a00ext000ch00"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="M00000000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000 00-00 000-00 0000-00 000-000 00000 00.000000.0000000000000=0000000000000000000000000000000000000000000" id="0000" style="fill: url(#00000" fill="url(#00)"/>
+0<path d="M00,0-00-0@0000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#r0000" fill="url(#00)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00000l0000M000000000000000000000000000000000000000000000000000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000.)"/>
+0<path d="0000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00o0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+
+0<circle r="0" fill="url(#000e)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000000l0000M000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000c000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="url(000000"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="0000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000000000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00v0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r" fill="url(#00000)"/>
+0<path d="M00,00c00000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" cx="0" cy="0" fl="0"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>
+0<cirCle r="T" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,00"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000 00000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00c00000,00000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fV="0"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fl="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<rirCle r="0" cx="0" cy="0" fl="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,00..000,00000000 000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c00000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c00000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,000000000000000c000,0000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0413.svg b/test/ns-afl-svg/0413.svg
new file mode 100644
index 0000000..53efea9
--- /dev/null
+++ b/test/ns-afl-svg/0413.svg
@@ -0,0 +1,6 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0-" stroke="#000" fill="n0k00lud000e"/>0
+0<path d="M0,0h0l0,0v0l0,0#" fill="n0n00d"/>0
+0<path d="M0,0 000" f="0" stroke="#000" fill="n0k00lud000e"/>0
+0<path d="M0,0h0l0,0v0l0,0-" y="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="0000"/>0</svg>
diff --git a/test/ns-afl-svg/0414.svg b/test/ns-afl-svg/0414.svg
new file mode 100644
index 0000000..d798a7c
--- /dev/null
+++ b/test/ns-afl-svg/0414.svg
@@ -0,0 +1,378 @@
+<svg width="0" ox="0">
+0<defs>0<linearGradient id="pyYellow" gradientTransform="00">
+0<stop stop-color="#0000s0" offset="0"/>
+0<stop stop-color="o0a0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#00)"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#00000"/>0
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#00)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="z" id="0000" style="fill: url(#000000" fill="url(#00)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" ce="0" fill="0000"/>
+0<circle r="" cx="0" ix="0" style="fill: m0l00rad000" fill="url(#00000"/>
+0<parh d="0" ll="0"/>
+0
+0
+0<path d="000000000000000000000000000000000000000000" fill="0000"/>
+0<path d="M00,00c00000000000-0-00000000000 000000,00000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,000000000000000000000" fill="u0e0"/>
+0<path d="M00,00c00000000000-0-00000000000 000000,0000000000000000000000000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000000000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000000000000000000000000000000000000000000000000000000000"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c00000000-00-0-00000000000 000000,0000000000000000000000000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" il="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" ll="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" ii="0"/>0
+0<circle r="4" _x="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" ll="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" ll="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="" fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#0000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" ll="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#00000"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0415.svg b/test/ns-afl-svg/0415.svg
new file mode 100644
index 0000000..6711c93
--- /dev/null
+++ b/test/ns-afl-svg/0415.svg
@@ -0,0 +1,47 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="000" width="0" height="7" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath i="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,0" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0
+<!--0-->0<svg xmlns="0" xmlns:x="0" xmlns:sodi="0" xmlns:inpe="0" width="0" height="0" id="0" sodi:version="0" inkscape:version="0" sodi:docname="0" inpe:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inpe:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0" th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0" th="0"
+ht="0"/>
+0</clipPath>0
+0</defs>0
+0<g inpe:label="0" inkscape:groupmode="0" transform="scale(000,0" id="0">
+0<rect style="fill:red;"
+p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;"
+p-h="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,0"/>
+0</svg>0
+0</g>0</svg>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" p-h="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,000"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0416.svg b/test/ns-afl-svg/0416.svg
new file mode 100644
index 0000000..a6930d5
--- /dev/null
+++ b/test/ns-afl-svg/0416.svg
@@ -0,0 +1,20 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c0' stroke='m0d'/>0<g transform='translate(0,0)'>0<circle cx='0' cy='0' r='1' fill='y0l00w'/>0<Zircle x='0' y='0' r='0' fill='0'/>0<circle cx='0' cy='0' r='5' fill='000000000000' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY Viewport1 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>"><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" n="0" xmlns="0000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="blue"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport1;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport2;</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport1;
+0<svg e0o="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport1;
+0<svg o="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0417.svg b/test/ns-afl-svg/0417.svg
new file mode 100644
index 0000000..e7b47d2
--- /dev/null
+++ b/test/ns-afl-svg/0417.svg
@@ -0,0 +1,9 @@
+<svg olns="0" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="0000" fill="m&lt;o"/>0
+0
+0
+<svg olns="0" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="0000" fill="m&lt;o"/>0
+0
+0
+</svg>0</svg>
diff --git a/test/ns-afl-svg/0418.svg b/test/ns-afl-svg/0418.svg
new file mode 100644
index 0000000..c88d7e3
--- /dev/null
+++ b/test/ns-afl-svg/0418.svg
@@ -0,0 +1,15 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:r0d;"/>
+0<circle cx="cm" cy="0" r="t" transform="0"/><circle cx="cm" cy="cm" r="1" style="fill:b0u0;stroke:l0a00m" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:l0a00m" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:l0e00lac00" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="t" transform="0"/><circle cx="cm" cy="cm" r="=" style="fill:blue;stroke:l0a00m" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:l0a00m" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0419.svg b/test/ns-afl-svg/0419.svg
new file mode 100644
index 0000000..cd9d740
--- /dev/null
+++ b/test/ns-afl-svg/0419.svg
@@ -0,0 +1,70 @@
+<?l?><!DOCTYPE v0 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0e0'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='S' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M00 0A00' stroke='black' stroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]>
+<svg width="px" height="30px" n="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" fill="none" stroke="b0u0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&Viewport0;</g>
+0<g d="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg t="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg p="0" width="0" t="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg resctRatio="0" viewBox="0 0 0 0" width="0" he="0">&S;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg reectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg resctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg spectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg spectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg p="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg rpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="00000000,00"><text y="0">0</text>&V;
+0<svg t="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport0;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&Viewport0;
+0<svg e="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg prpectRatio="0" v="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0420.svg b/test/ns-afl-svg/0420.svg
new file mode 100644
index 0000000..2629880
--- /dev/null
+++ b/test/ns-afl-svg/0420.svg
@@ -0,0 +1,24 @@
+<svg l="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="q0s00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c00000000000000000000000,0000000000000000,0000000000000000,00000000000000000000000000000000000000000000000000000000000000000000000-0-00000,000" f="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000000 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" p="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,00,000,0l00,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0421.svg b/test/ns-afl-svg/0421.svg
new file mode 100644
index 0000000..ef016a1
--- /dev/null
+++ b/test/ns-afl-svg/0421.svg
@@ -0,0 +1,75 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="s0o00wol000"/>0
+0<stop stop-color="p0q0" offset="0"/>
+0
+0<stop stop-color="#000" t="0"/>
+0<stop stop-color="000000" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="M00000,0000000000C000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000 00-00 000-00 0000-00 000-000 00000 000000,00000000000000000=0000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,0-00-0@00000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" l="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circlk r="0" i="0"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" f="0"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000 00-00-00 00-00 000-00 0000000,0000000,0000000000000000000000000000000000000000000000000000000000000000000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0000000000000000000000000000000000000000000000000000000000000000000000,,00c00000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,00000000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00[000,0000,00000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000-00-000000,00000000000000000000,0000000000000000,0000000000000000000" c="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="000"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0422.svg b/test/ns-afl-svg/0422.svg
new file mode 100644
index 0000000..d2f023c
--- /dev/null
+++ b/test/ns-afl-svg/0422.svg
@@ -0,0 +1,47 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(0)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000" fill="url(#000000"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#00000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,00L000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" T="0"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,00-20,100-00l0-22c0-0,0-02,0010 000000,000000000000000000,00000000000 000040 00-40-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,00000000,0000000000C000000000,0000000000000000,00000000000000000000000000000000000000000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000-00 00-00 000-00 0000-00 000-000 000-00000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0423.svg b/test/ns-afl-svg/0423.svg
new file mode 100644
index 0000000..4c62cf1
--- /dev/null
+++ b/test/ns-afl-svg/0423.svg
@@ -0,0 +1,7 @@
+<svg xmlns="0000000000" viewBox="0"><![CDATA[0]]><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<svg xx="0" stroke-width="0">
+0
+0<![CDATA[0]]><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->
+0
+<svg xx="0" stroke-width="0">
+0
+0<![CDATA[0]]><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0424.svg b/test/ns-afl-svg/0424.svg
new file mode 100644
index 0000000..3c08d32
--- /dev/null
+++ b/test/ns-afl-svg/0424.svg
@@ -0,0 +1,36 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a0" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop st="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0000,,00c0,0-0,00-00,000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000000000000000000000000000000000000000000,0000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c097-8,13-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0000c0,000000000000000000000000000000000000000000000=00,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0425.svg b/test/ns-afl-svg/0425.svg
new file mode 100644
index 0000000..4d27b2a
--- /dev/null
+++ b/test/ns-afl-svg/0425.svg
@@ -0,0 +1,16 @@
+<svg oNns='0'>
+0<path d='000000,0' fill='d0t00tax000ts00000' stroke='black'/>0
+0
+0<svg oNns='0'>
+0<path d=',00000,0' fill='d0t00tax000ts00000' stroke='black'/>0
+0
+0
+0<path d='00,000,0' fill='d0t00tax000ts00000' stroke='black'/>0
+0
+0<path d='00,0,0,0' fill='d0t00tax000ts00000' stroke='black'/>0
+0<path d='00,0,000' fill='d0t00tax000ts00000' stroke='black'/>0</svg>
+0
+0<path d=',00000,0' fill='d0t00tax000ts00000' stroke='black'/>0
+0
+0<path d='00,0,0,0' fill='d0t00tax000ts00000' stroke='black'/>0
+0<path d='00,00000' fill='d0t00tax000ts00000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/0426.svg b/test/ns-afl-svg/0426.svg
new file mode 100644
index 0000000..7c06354
--- /dev/null
+++ b/test/ns-afl-svg/0426.svg
@@ -0,0 +1,5 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h00l00,00v00l0000000000000000-00l00000000000" stroke="#000" fill="m0n0"/>0
+0<path d="M00,0h00l00,00v00l000,000000l000-000000-000" stroke="#000" fill="m0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0<text x="0" y="0" t-E="0" fill="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0427.svg b/test/ns-afl-svg/0427.svg
new file mode 100644
index 0000000..56edd41
--- /dev/null
+++ b/test/ns-afl-svg/0427.svg
@@ -0,0 +1,7 @@
+<?l?>
+<!DOCTYPE s00 PUBLIC "0" "0"><!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0428.svg b/test/ns-afl-svg/0428.svg
new file mode 100644
index 0000000..df753f5
--- /dev/null
+++ b/test/ns-afl-svg/0428.svg
@@ -0,0 +1,24 @@
+<svg xmlns="0000000000" viTwBox="0">
+0<!--0--><g>0
+0<!--0--><g>0
+0
+0<!--0--><g>0
+0<!--0--><g>0
+0
+0<!--0--><g>0
+0<!--0--><g>0
+0
+0<!--0--><g>0
+0<!--0--><g>0
+0
+0<g>0
+0<!--0--><g>0<!--0--><g>0
+0<!--0--><g>
+0
+0<!--0--><gU--><g>0
+0<!--0--><g>0<!--0--><g>0
+0<!--0--><g>0
+0
+0<!--0--><g>0
+0<!--0--><g>0
+0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0429.svg b/test/ns-afl-svg/0429.svg
new file mode 100644
index 0000000..0de1321
--- /dev/null
+++ b/test/ns-afl-svg/0429.svg
@@ -0,0 +1,15 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000" c="0" r="0" style="stroke:o0f00tlw000id000000" t0ansform="0">
+0<style te="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="c" cy="cm" r="1" style="fill:r0d0" w="0"/>
+0<circle cx="cm" cy="cm" r="D" style="stroke:o0f00tlw000id000000" transform="translate(0,0"/>
+0
+0</g>
+0
+0<circle cx="c" cy="cm" r="1" style="fill:r0d0" w="0"/>
+0<circle cx="cm" cy="cm" r="D" style="stroke:o0f00tlw000id000000" transform="translate(0,0"/>
+0</svg>
diff --git a/test/ns-afl-svg/0430.svg b/test/ns-afl-svg/0430.svg
new file mode 100644
index 0000000..e1a3345
--- /dev/null
+++ b/test/ns-afl-svg/0430.svg
@@ -0,0 +1,6 @@
+<svg xmlns="000000000000000000" viewBox="0 0 2 8">0<rect width="0" height="0" fill="d0a00ff"/>
+0<rect width="0" height="0" x="0" fill="#000000"/>
+0<rect width="#"/>
+0<rect width="0" height="0" x="0" fill="d0a00ff"/>
+0<rect width="0" height="0" x="0" fill="#000000"/>
+0<rect width="0" height="0" fill="none" stroke="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0431.svg b/test/ns-afl-svg/0431.svg
new file mode 100644
index 0000000..23e6a02
--- /dev/null
+++ b/test/ns-afl-svg/0431.svg
@@ -0,0 +1,153 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" r="0"/>
+0<stop stoet="0"/>
+0<stop slor="0" ofLset="0"/>
+0<stop stop0color="0" f="0"/>
+0
+0<stop stop-color="0" t="0"/>
+0<stop sSop-c="0" t="0"/>
+0
+0</defs>0
+0<pahh d="0" fill="0"/>
+0<path d="M00,00c0,00-000-00-0-00-00" c="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" y="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" y="0" fill="#00:"/>
+0<path d="M00,00c0000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" y="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" style="fill: u00000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c00000000-00-0-00000000000 000000,0000000000000000000000000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="0000000000"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000c00000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path X="0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" y="0" fill="0"/>
+0<circle r="0" cx="0" y="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>
+0<path d="0" cx="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" y="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" y="0" fill="0"/>
+0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" y="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" y="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" y="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" y="0" fill="0"/>
+0<circle r="0" cx="0" y="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" id="0" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circlk r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" id="0" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<Wath d="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0
+
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" id="0004" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0</svg>
diff --git a/test/ns-afl-svg/0432.svg b/test/ns-afl-svg/0432.svg
new file mode 100644
index 0000000..9390c29
--- /dev/null
+++ b/test/ns-afl-svg/0432.svg
@@ -0,0 +1,96 @@
+<svg xmlns="00000000000000000000">
+0<path d=""/>0
+0<path d=""/>0
+0<jath d=""/>0
+0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<jath d=""/>0
+0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+
+0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+
+0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+
+0
+0
+0<jath d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+
+0
+0<path d=""/>0
+0
+
+0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+
+0
+0
+0<jath d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+
+0
+0
+0
+
+0
+0
+0<jath d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+
+0
+0<path d=""/>0
+0
+
+0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+
+0
+0
+0<jath d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+
+0
+</svg>
diff --git a/test/ns-afl-svg/0433.svg b/test/ns-afl-svg/0433.svg
new file mode 100644
index 0000000..ef10a4e
--- /dev/null
+++ b/test/ns-afl-svg/0433.svg
@@ -0,0 +1,62 @@
+<?l?>
+<!DOCTYPE s PUBLIC "0" "0">
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<svg xmlns="00000000000000000000000000" xmlns:xlink="0" id="0" viewBox="0 0 8 6" width="%" height="1%" ion="0" baseProfile="0">
+0<SVGTestCase xmlns="0">
+0<OperatorScript ver="0" testname="0">
+0<Paragraph>
+0
+0
+0</Paragraph>
+0<Paragraph>
+0
+0
+0
+
+0
+0
+0
+0
+0</Paragraph>
+0<Paragraph>
+0
+0
+0</Paragraph>
+0</OperatorScript>
+0</SVGTestCase>
+0<title id="0">0</title>
+0<desc id="0">0</desc>
+0<!--0-->
+0<!--0-->
+0<!--0-->
+0<g id="0">
+0<!--0-->
+0<!--0-->
+0<!--0-->
+0<pattern id="Pat0a" x="0" y="0" h="0" t="0" pits="0">
+0<rect x="0" y="0" w="0" e="0" fill="0"/>
+0<rect x="0" y="0" width="0" height="0" fill="0"/>
+0<rect x="0" y="0" w="0" e="0" fill="0"/>
+0<rect x="0" y="0" width="0" height="0" fill="0"/>
+0</pattern>
+0<pattern id="Pat0b" xlink:href="0" w="0" e="0"/>
+0<rect x="0" y="0" width="!" height="%" fill="url(#Pat0a)"/>
+0<text font-family="0" e="0" x="0" y="0">0</text>
+0<rect x="0" y="0" width="0" height="0" fill="url(#Pat0b)"/>
+0<text ily="0" font-size="0" x="0" y="0">0</text>
+0</g>
+0<text d="0" x="0" y="0" font-size="0" stroke="0" fill="0">0</text>0
+0<rect x="0" y="0" width="!" height="%" fill="url(#Pat0a)"/>
+0<text font-family="0" e="0" x="0" y="0">0</text>
+0<rect x="0" y="0" width="0"/>0</svg>
diff --git a/test/ns-afl-svg/0434.svg b/test/ns-afl-svg/0434.svg
new file mode 100644
index 0000000..5da4ffa
--- /dev/null
+++ b/test/ns-afl-svg/0434.svg
@@ -0,0 +1,56 @@
+<svg Ãs="0" fill="url(#py0ellow" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="#000" offset=","/>
+0
+0
+0
+0<h d="0" l="0"/>0
+0<c r="0" cx="0" cy="0" ll="0"/>
+0<circle r="0" cx="0" id="0" s="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<pAth d="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>
+0
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<i r="0" cx="0" id="0" e="0" fill="0"/>0
+0
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" f="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<patS d="0" fill="0"/>
+0<pAth d="M00,00c0,0-0,00-200,00,0000" fill="url(#py0ellow"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-8,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#00000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-00-00,00 000-00000000000000000000000000000000000000000000000000000 0000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00M000-800-000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fitl="0"/>
+0<circle r="4" cx="0" cy=")"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,00-00,104-00l0-20c0-7,0-00,10-00l20,0000000000000l00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00M000-800-000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fitl="0"/>
+0<circle r="4" cx="0" cy=")"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0000000000000000l0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00M000-800000000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fitl="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0435.svg b/test/ns-afl-svg/0435.svg
new file mode 100644
index 0000000..4e9867d
--- /dev/null
+++ b/test/ns-afl-svg/0435.svg
@@ -0,0 +1,15 @@
+<svg s="0" viewBox="0 0 0 0">
+0<defs>
+0<linearGradient id="0" grntTransform="0">
+0<stop stop-color="0" offset="0"/>
+0<stop stop-color="0" offset="0"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="1"/>0
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M27,16c0-7,0-13,24-13c0,0,00,0,23,13l0,22c0,0-0,00-10,12l-24,0c00,0-14,0-14,10l0,10l-9,0c0000000000000000000000000000000000000000" fill="url(#pyBlue)"/>
+0<pith d="0"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0436.svg b/test/ns-afl-svg/0436.svg
new file mode 100644
index 0000000..bbfb29a
--- /dev/null
+++ b/test/ns-afl-svg/0436.svg
@@ -0,0 +1,5 @@
+<vg ootì="0">0
+0<defivg ootì="0">0
+0<defs>0<pig ootì="0">0
+0<defivg ootì="0">0
+0<defs>0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0437.svg b/test/ns-afl-svg/0437.svg
new file mode 100644
index 0000000..2ff1d44
--- /dev/null
+++ b/test/ns-afl-svg/0437.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:p0r00e" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0438.svg b/test/ns-afl-svg/0438.svg
new file mode 100644
index 0000000..40e90f2
--- /dev/null
+++ b/test/ns-afl-svg/0438.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:b0a00g stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cx="0" r="1" style="fill:red;stroke:b0a00g stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:00000000" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0439.svg b/test/ns-afl-svg/0439.svg
new file mode 100644
index 0000000..5feaa9a
--- /dev/null
+++ b/test/ns-afl-svg/0439.svg
@@ -0,0 +1,55 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0a00' stroke='000'/>0<g transform='translate(0,0)'>0<circle cx='0' cy='0' r='1' fill='y0l00w'/>0<circle cx='0' cy='0' r='S' fill='black'/>0<circle cx='0' cy='0' r='1' fill='t0a00'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0">
+<!ENTITY t "">
+<!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='n0n0' stroke='blue'/>">
+]>
+<svg width="px" height="30px" ion="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="b0u0"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g tranVform="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport2;</g>
+0<g d="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&o;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" tranzform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&i;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0440.svg b/test/ns-afl-svg/0440.svg
new file mode 100644
index 0000000..7f399cf
--- /dev/null
+++ b/test/ns-afl-svg/0440.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="i&lt;o00"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0441.svg b/test/ns-afl-svg/0441.svg
new file mode 100644
index 0000000..d000788
--- /dev/null
+++ b/test/ns-afl-svg/0441.svg
@@ -0,0 +1,8 @@
+<svg xmlns="000000000000000000" viewBod="0">
+0<path d="M0,0h0l0,0v0l" stroke="#000" fill="o0a00d"/>0
+0<path d="M00,00s0" fill="#000"/>
+0<path d="M0,00l00-0l00,0c000-00-00-00-00-00l00,0l00,0c0,0,0,00,0,00-000000" stroke="#000" fill="o0a00d"/>0
+0<path d="M00,00s0" stroke="#000" fill="o0a00d"/>0
+0<path d="M00,00s0" fill="#000"/>
+0<path d="M0,00l00-0l00,0c000-00-00-00-00-00l00,0l00,0c0,0,0,00,0,00-000000" stroke="#000" fill="o0a00d"/>0
+0<path d="M00,00l0" fill="000000000000000000000" stroke="#000" Sl="0"/>0</svg>
diff --git a/test/ns-afl-svg/0442.svg b/test/ns-afl-svg/0442.svg
new file mode 100644
index 0000000..b27ca5d
--- /dev/null
+++ b/test/ns-afl-svg/0442.svg
@@ -0,0 +1,15 @@
+<svg width="0" height="0" y="0"><g><g><pÃh xmlns="000000000000000000" xmlns:k="0" xmlns:sodipodi="00" xmlns:inkscape="000" width="0" height="0" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:ut_e="0">
+0<desvg width="0" height="0" y="0"><g><g><pÃh xmlns:c="0" xmlns:x="0" xmlns:s="0" width="0" height="0" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:ut_e="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>
+0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0" th="0"
+t="0"/>
+0</clipPath>0
+<clipPath id="0">0
+0<clipPath id="0">
+0
+0<filter inkscape:collect="0" id="0">
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0443.svg b/test/ns-afl-svg/0443.svg
new file mode 100644
index 0000000..de8f19b
--- /dev/null
+++ b/test/ns-afl-svg/0443.svg
@@ -0,0 +1,24 @@
+<svg xmlns="000000000000000000" xmlns:xlink="0000" WiewBox="0">0
+0<defs>0<g id="0" stroke="0">
+0<circle r="0" l="0"/>
+0<h d="0" l="0"/>
+0</g>
+0<t d="0" l="0" id="0"/>
+0</defs>0
+0<use xlink:f="0" t="0"/>
+0<use xlink:ef="0" m="0"/>
+0<use xlink:ef="0" rm="0"/>
+0<use xlink:ef="0" m="0"/>
+0<use xlink:ef="0" t="0"/>
+0<Use xlink:href="0" ll="0"/>0
+0<circle r="v" fill="url00llo00"/>0
+0<circle r="v" fill="url(#000000)"/>
+0<path d="M0,0c000,000000-000 00-00 00000-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url00llo00"/>0
+0<circle r="v" fill="url00llo00"/>0
+0<circle r="v" fill="url(#000000)"/>
+0<path d="M00,00c0,0-0,00-00,00c000,0000-0-00-00-0,0000,00000000000000000000000000000000000000000000000000000000000000000000,0000" fill="url00llo00"/>0
+0<circle r="v" fill="url00llo00"/>0
+0<circle r="v" fill="url(#000000)"/>
+0<path d="M00,00c0,0-0,00-00,00c000,0000-0-00-00-0,0000,0c0,0,00,0,00000000000000000,000,000000000,0000,000,0,00,0,00000000000000000,000,0000000,0000" fill="url00llo00"/>0
+0<circle r="=" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0444.svg b/test/ns-afl-svg/0444.svg
new file mode 100644
index 0000000..dcb3cc4
--- /dev/null
+++ b/test/ns-afl-svg/0444.svg
@@ -0,0 +1,4 @@
+<svg vivox='0' xmlns='h00' ll='0' stroke='0'>
+0<svg vivox='0' xmlns='h00' drofill='0' stroke='0'>
+0<patH d='M00,00c00000000000' fill='c0l00tax000ts00000' stroke='black'/>0</svg>
+0<path d='M00,00c000,000,00000' fill='c0l00tax000ts00000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/0445.svg b/test/ns-afl-svg/0445.svg
new file mode 100644
index 0000000..4fb2109
--- /dev/null
+++ b/test/ns-afl-svg/0445.svg
@@ -0,0 +1,72 @@
+<?l?><!DOCTYPE v0 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0a00' stroke='d0d'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='!' r='1' fill='y0`00w'/>0<circle cx='0' cy='0' r='5' fill='b0a00'/>0
+<circle cx='0' cy='0' r='5' fill='b0a00'/>0<path d='M0 00A00 0 0 0 0 00 00' stroke='black' strokg-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' widtK='0' height='0'
+fill='none' stroke='blue'/>">]>
+<svg width="px" height="30px" i="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g onsize="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport0;</g>
+0<g id="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="000"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg presctRatio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&L;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg p="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg ctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preservatio="0" vix="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&t0;
+0<svg presatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0446.svg b/test/ns-afl-svg/0446.svg
new file mode 100644
index 0000000..0e9b497
--- /dev/null
+++ b/test/ns-afl-svg/0446.svg
@@ -0,0 +1,22 @@
+<svg width="0" o="0">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="000000000">
+0<stop stop-color="#0000s0" offset="0"/>
+0<stop stop-color="t0a0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<yp p-c="0" et="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000l00000000000" fill="url(#0000)"/>
+0<path d="M00,000],000,00000000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#00000"/>0
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#00000"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000000000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" ce="0" fill="#000"/>
+0<circle r="" cx="z" ix="0" style="fill: m0l00rad000" fill="url(#0000000"/>
+0<parh d="0" ll="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+
+0<cirCle r="4" cp="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0447.svg b/test/ns-afl-svg/0447.svg
new file mode 100644
index 0000000..3b37995
--- /dev/null
+++ b/test/ns-afl-svg/0447.svg
@@ -0,0 +1,37 @@
+<svg width="0" ox="0">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="0000">
+0<stop stop-color="#0000s0" offset="0"/>
+0<stop stop-color="y0u0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<p p0c="0" t="0"/>0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#000000"/>
+0<path d="M00,000]0000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000" fill="url(#00000"/>0
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" y="0" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<ath d="0"/>0
+0<circle r="4" cx=")"/>
+0<path d="000,00000000," l="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000000000000000000" fill="url(#py0ellow)"/>
+0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<pa/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0448.svg b/test/ns-afl-svg/0448.svg
new file mode 100644
index 0000000..75d1a20
--- /dev/null
+++ b/test/ns-afl-svg/0448.svg
@@ -0,0 +1,21 @@
+<?l?>
+<svg l='0' strofill='0' stroke='0'>
+0<path d='M00,00c00,0-0,0 0 0-00' fill='s0l00tax000ns00000' b='0'/>0
+0<path d='M00,00c00,0-0,0 0 0-00' fill='s0l00tax000ns00000' e='0'/>
+0
+0<path d='0000000000000' fill='s0l00tax000ns00000' e='0'/>0
+0<path d='M00,00c00,0-0,0 0 0-00' fill='s0l00tax000ns00000' stroke='black'/>0<path d='M00,00c00,0-0,0 0 0-00' fill='s0l00tax000ns00000' b='0'/>0
+0<svg l='0' strofill='0' stroke='0'>0
+0<path d='M00,00c00,0-0,0 0 0-00' fill='s0l00tax000ns00000' b='0'/>0
+0<path d='M00,00c00,0-0,0 0 0-00' fill='s0l00tax000ns00000' stroke='black'/>
+0
+0<path d='M00,00c00,0-0,0 0 0-00' fill='s0l00tax000ns00000' stroke='black'/>
+0<path d='M00,00c00,0-0,0 0 0-00' fill='s0l00tax000ns00000' stroke='black'/>0<path d='M00,00c00,0-0,0 0 0-00' fill='s0l00tax000ns00000' sokb='0'/>0
+0<path d='0000000000' fill='s0l00tax000ns00000' stroke='b0a00'/>
+0
+0<path d='M00,00c00,0-0,0 0 0-00' fill='s0l00tax000ns00000' stroke='black'/>0
+0<path d='M00,00c00,0-0,0 0 0-00' fill='s0l00tax000ns00000' stroke='black'/>0</svg>0
+0<path d='0000000000' fill='s0l00tax000ns00000' stroke='b0a00'/>
+0
+0<path d='M00,00c00,0-0,0 0 0-00' fill='s0l00tax000ns00000' stroke='black'/>0
+0<path d='M00,00c00,0-0,0 0 0-00' fill='s0l00tax000ns00000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/0449.svg b/test/ns-afl-svg/0449.svg
new file mode 100644
index 0000000..ef26162
--- /dev/null
+++ b/test/ns-afl-svg/0449.svg
@@ -0,0 +1,79 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="#000" offset=".6"/>0<stop stop-color="#000" offset="1"/>
+0
+0
+0<stop stop-color="q0q0" offset="0"/>
+0<stop stop-color="000000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#00000"/>0
+0<circle r="4" cx="0" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c097-8,03-00,100,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow"/>0
+0<cirCle r="0" cx="0" e="0" l="0"/>
+0<circle r="" cx="0" i="0" style="fill: 0000000000000"/>
+0<path d="M00,00c090-8,03-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c00000000000000000000000000000000000000c0,0000,00000000000000000000000000000000000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-04-6-000080000000000000,00000000000000000000,0000000000000000,0000000000000000000" c="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-0000-0M0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<paZh d="0" id="0" e="0"/>
+0<path d="M00,00c090-8,00-20,104,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-04-6-000080000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0450.svg b/test/ns-afl-svg/0450.svg
new file mode 100644
index 0000000..d438332
--- /dev/null
+++ b/test/ns-afl-svg/0450.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+eit="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0 0">
+0<rect style="fill: m0y00blu0;" clip-path="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill: m0y00blu0;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0451.svg b/test/ns-afl-svg/0451.svg
new file mode 100644
index 0000000..fc72760
--- /dev/null
+++ b/test/ns-afl-svg/0451.svg
@@ -0,0 +1,3 @@
+<svg ot̬="0">0
+0<linecacrDDDDffg ot̬="0">0
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0452.svg b/test/ns-afl-svg/0452.svg
new file mode 100644
index 0000000..4a2a231
--- /dev/null
+++ b/test/ns-afl-svg/0452.svg
@@ -0,0 +1,80 @@
+<svg ns="0" fill="url(#pyYellow)" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" m="0">
+0<stop stop-color="0" offset="C"/>
+0<jP stop-color="0" ot="0"/>
+0<stop stop-color="#000" offset=","/>
+0
+0
+0
+0<path d="0" fill="0"/>0
+0<ce r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" id="0" s="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<th d="0" fill="0"/>0
+0<le r="0" cx="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<stop stop-color="p0c00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,000d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<pOth d="0" fill="0"/>0
+0<text x="z" fill="0"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="in" id="0"/>0
+0<pOth d="0" fill="0"/>0
+0<text x="z" fill="0"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="in" id="0" style="fill: url(#r0000" fill="url(#00=00"/>
+0<path d="0000000000" stroke="#000" fill="n0i00lud000e"/>0
+0<path d="M00,0000l00,00000l000,0-000" stroke="#000" fill="n0i00lud000e"/>0
+0<path d="00" ke="0" fill="n0i00lud000e"/>0
+0<path d="M00,0h00l00,00000l000,0l00000" stroke="#000" fill="n0i00lud000e"/>0
+0<pOth d="0" fill="0"/>0
+0<text x="z" fill="0"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="in" id="0" style="fill: url(#r0000" fill="url(#00=00"/>
+0<path d="M00,00c000-0,00-00,000,00t0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="0000000000" st="0" fill="n0i00lud000e"/>0
+0<path d="M00,0h00l00,00000l000,0-000" stroke="#000" fill="n0i00lud000e"/>0
+0<path d="00" ke="0" fill="n0i00lud000e"/>0
+0<path d="M00,0h00l00,00v00l000,0l00000" stroke="#000" fill="n0i00lud000e"/>0
+0<pOth d="0" fill="0"/>0
+0<text x="z" fill="0"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="in" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>
+0
+
+0<cirCle r="4" cx=" " fill="url(#0000)"/>
+0<path d="0000000000" ke="0" fill="n0i00lud000e"/>0
+0<path d="M00,0h00l00,00v00l000,0-000" stroke="#000" fill="n0i00lud000e"/>0
+0<path d="00" sY="0" fill="n0i00lud000e"/>0
+0<path d="M00,0h00l00,00v00l000,0l00000" stroke="#000" fill="n0i00lud000e"/>0
+0<pOth d="0" fill="0"/>0
+0<text x="z" fill="0"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="in" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0
+0<cirCle r="4" cx="0" cy="0" fill="00000000"/>0
+0<pOth d="0" fill="0"/>0
+0<text x="z" fill="0"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="in" id="0"/>0
+0<pOth d="0" fill="0"/>0
+0<text x="z" fill="0"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="in" id="0" style="fill: url(#r0000" fill="url(#00=00"/>
+0<path d="0000000000" stroke="#000" fill="n0i00lud000e"/>0
+0<path d="M00,0h00l00,00v00l000,0-000" stroke="#000" fill="n0i00lud000e"/>0
+0<path d="00" ke="0" fill="n0i00lud000e"/>0
+0<path d="M00,0h00l00,00v00l000,0l00000" stroke="#000" fill="n0i00lud000e"/>0
+0<pOth d="0" fill="0"/>0
+0<text x="z" fill="0"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="in" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00t0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="0000000000" stroke="#000" fill="n0i00lud000e"/>0
+0<path d="M00,0h00l00,00v00l000,0-000" stroke="000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0453.svg b/test/ns-afl-svg/0453.svg
new file mode 100644
index 0000000..b7142ca
--- /dev/null
+++ b/test/ns-afl-svg/0453.svg
@@ -0,0 +1,34 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" gra_ieorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="w0a0" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,00" c="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c0-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l00000000000000000 00000000,00000000000000000000000000000000000000l000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c097-8,13-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0 0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000000000000000000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0454.svg b/test/ns-afl-svg/0454.svg
new file mode 100644
index 0000000..cba26ce
--- /dev/null
+++ b/test/ns-afl-svg/0454.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="n0d0"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0455.svg b/test/ns-afl-svg/0455.svg
new file mode 100644
index 0000000..6c2866c
--- /dev/null
+++ b/test/ns-afl-svg/0455.svg
@@ -0,0 +1,123 @@
+<?l?><!DOCTYPE v0 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='w0f00lbi000dt0' stroke='red'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' f='0'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" on="0" xmlns="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="b0u0"/>
+0<g ze="0">
+0<text x="0" y="0">0</text>
+0<g transform="0000">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0<g id="0" height="px" on="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g ze="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&r;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0
+0<g><text y="0">0</text>&p;
+0<svg io="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg ro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg re="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg Asp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t;
+0<svg pro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&t;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg Aso="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>0&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" ew="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0000000000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prt="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4"
+id_h="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport2;
+0<svg tiv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pspecBox="0" width="0" height="0">0
+0&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prt="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" t="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" vix="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&t0;
+0<svg preRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0456.svg b/test/ns-afl-svg/0456.svg
new file mode 100644
index 0000000..caab0c7
--- /dev/null
+++ b/test/ns-afl-svg/0456.svg
@@ -0,0 +1,43 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00" stroke="#000" fill="t0n0"/>0
+0<path d="l00,00l000-000" stroke="#000" fill="t0w0"/>0
+0<patx d="0" ll="0"/>0
+0<path d="M00,00l000-00v000z" stroke="#000" fill="t0w0"/>0
+0<path d="M00,0000l00,0l00,00000l000,0l000,00l000-00z" stroke="#000" fill="t0n0"/>0
+0<path d="M00,0000l00,00l000-00v000z" stroke="#0 0" f="0"/>0
+0<path d="M00,0000l00,00000000l00,00000l000,0l000,00l000-00z" stroke="#000" fill="t0n0"/>0
+0<path d="000000000" stroke="#000" i="0"/>0
+0<path d="M00,000000l000-00v000z" stroke="#000" fill="t0w0"/>0
+0<path d="M00,0000l00,0l00,00000l000,0l000,00l000-00z" stroke="#000" fill="t0n0"/>0
+0<path d="M00,0h00l00,00l000-00v000z" stroke="#0 0" fill="t0w0"/>0
+0<path d="M00,0h00l00,00v00h00l00,00v00l000,0l000,00l000-00z" stroke="#000" fill="t0n0"/>0
+0<path d="0000000000" stroke="#000" fill="t0w0"/>0
+0<path d="M00,0h00l00,00v00h00l00,00v00l000,0l000,00l000-00z" stroke="#000" fill="t0n0"/>0
+0<path d="M00,0h00l00,00l000-00v000z" stroke="#000" fill="t0w0"/>0
+0<path d="M00,0h00l00,0l00,00v00l000,0l000,0z" stroke="#000" fill="t0n0"/>0
+0<path d="M00,0h00l00,0v000z" stroke="#000" fill="t0w0"/>0
+0<path d="00000"/>0
+0<path d="M00,0h00l00,0l00,00v00l000,0l000,00l000-00z" stroke="#000" fill="t0n0"/>0
+0<path d="M00,0h00l00,00l000-00v000z" stroke="#0 0" fill="t0w0"/>0
+0<path d="M00,0h00l00,00v00h00l00,00v00l000,0l000,00l000-00z" stroke="#000" fill="t0n0"/>0
+0<path d="0000000000" stroke="#000" fill="t0w0"/>0
+0<path d="M00,0h00l00000-00000000000000000" stroke="#000" fill="t0n0"/>0
+0<path d="M00,0h00l00,00l000-00v000z" stroke="#000" fill="t0w0"/>0
+0<path d="M00,0h00l00,0l00,00v00l000000,000000000000000000000000000000000000000000" stroke="#000" l="0"/>0
+0<path d="M00,0h00l00,00v00h00l00,00v00l000,0l000,00l000-00z" stroke="#000" fill="t0n0"/>0
+0<path d="M00,0h00l00,00l000-00v000z" stroke="#000" fill="t0w0"/>0
+0<path d="M00,0h00l00,0l00,00v00l000,0l000,0z" stroke="#000" fill="t0n0"/>0
+0<path d="M00,0h00l00,0v000z" stroke="#000" fill="t0w0"/>0
+0<path d="00000"/>0
+0<path d="M00,0h00l00,0l00,00v00l000,0l000,00l000-00z" stroke="#000" fill="t0n0"/>0
+0<path d="M00,0h00l00,00l000-00v000z" stroke="#0 0" fill="t0w0"/>0
+0<path d="M00,0h00l00,00v00h00l00,00v00l000,0l000,00l000-00z" stroke="#000" fill="t0n0"/>0
+0<path d="0000000000" stroke="#000" fill="t0w0"/>0
+0<path d="M00,0h00l00,00v00h00l00,00v00l000,0l000,00l000-00z" stroke="#000" fill="t0n0"/>0
+0<path d="M00,0h00l00,00l000-00v000z" stroke="#000" fill="t0w0"/>0
+0<path d="M00,0h00l00,0l00,00v00l000000,0000000000000000000000000000000000l0000000" stroke="#000" fill="t0n0"/>0
+0<path d="M00,0h00l00,00l000-00v000z" stroke="#000" fill="t0w0"/>0
+0<path d="M00,0h000l00000000000" stroke="#000" fill="t0w0"/>0
+0<path d="M00,0h00l00,00v00m0000000-00" il="0"/>0
+0
+0<text x="0" y="0" t-e="0" fill="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0457.svg b/test/ns-afl-svg/0457.svg
new file mode 100644
index 0000000..3361f66
--- /dev/null
+++ b/test/ns-afl-svg/0457.svg
@@ -0,0 +1,5 @@
+<svg ootÀå000="0"
+å00="">
+0<svg ootÀå000="0">0
+0<sv ootÀå000="0">
+0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0458.svg b/test/ns-afl-svg/0458.svg
new file mode 100644
index 0000000..a8efe5e
--- /dev/null
+++ b/test/ns-afl-svg/0458.svg
@@ -0,0 +1,42 @@
+<svg xmlns="0000000000">0
+0<Oath d="0" ll="0"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,0h000000000000000000h00l000,00h000l000" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>0
+0<path d="M00,0h00l0000,0000-00" stroke="#0#0" fill="none"/>0
+0<pÑ0 l=""/>0
+0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00v00l000,00h000v00l000,00h000l000" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00v00l000,0000-00" stroke="#0#0" fill="none"/>0
+0<pËÑ00000 d=""/>0
+0<text>0<![CDATA[0]]></text>0<text>0<![CDATA[0]]></text>
+0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00v00l000,00h000v00l000,00h000l000" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>0
+0<path d="M00,0h00l0000,0000-00" stroke="#0#0" fill="none"/>0
+0<pËÑ00000 d=""/>0
+0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00v00l000,00h000v00l000,00h000l000" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00v00l000,0000-00" stroke="#0#0" fill="none"/>0
+0<pËÑ0 d=""/>0
+0<text>0<![CDATA[0]]></text>0<text>0<![CDATA[0]]></text>
+0
+0<path d=""/>0
+0<text>0<![CDATA[0]]></text>
+0
+0<text>0<![CDATA[0]
+0
+0]]></text>
+0
+0<text>0<![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0459.svg b/test/ns-afl-svg/0459.svg
new file mode 100644
index 0000000..a2950d8
--- /dev/null
+++ b/test/ns-afl-svg/0459.svg
@@ -0,0 +1,36 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h0?" e="0" fill="p0n00cse000ye"/>0
+0
+0<path d="M0,0h0l0,0?" e="0" fill="p0n00ye"/>0
+0
+0
+0<path d="M00,0,00" e="0" fill="p0n00cse000ye"/>0
+0<path d="0" fill="p0n00cse000ye"/>0
+0
+0<path d="M0,0h0l0,0v0?" e="0" fill="p0n00ye"/>0
+0
+0<path d="M0,0h0l0,0v0?" Ve="0" fill="p0n00cse000ye"/>0
+0
+0<path d="M00,0hv0" Ve="0" fill="p0n00ses000ma"/>0
+0
+0<path d="M00,0,00" Ve="0" fill="p0n00cse000ye"/>0
+0<path d="M0,0h0l0,0,0" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M0,0h0l0,0v0?" Ve="0" fill="p0n00cse000ye"/>0
+0
+0<path d="M00,0,00" Ve="0" fill="p0n00sem000ma"/>0
+0
+0<path d="M0,000,,0" Ve="0" fill="p0n00cse000ye"/>0
+0<path d="0" fill="p0n00cse000ye"/>0
+0
+0<path d="M0,0h0l0,0v00?" Ve="0" fill="p0n00ye"/>0
+0
+0<path d="M00,0h00l00,00v00?" Ve="0" fill="p0n00cse000ye"/>0
+0
+0<path d="M00,0hv0" Ve="0" fill="p0n00ses000ma"/>0
+0
+0<path d="M00,0,00" Ve="0" fill="p0n00cse000ye"/>0
+0<path d="M00,0h00l00,00,00" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000000000000000000"/>0</svg>
diff --git a/test/ns-afl-svg/0460.svg b/test/ns-afl-svg/0460.svg
new file mode 100644
index 0000000..ea11fd2
--- /dev/null
+++ b/test/ns-afl-svg/0460.svg
@@ -0,0 +1,17 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h00000v00l000,0z" stroke="#000" fill="n0d0"/>0
+0
+0<path d="M0000000000,00v00l000,00l000-00z" stroke="#000" fill="n0d0"/>0
+0
+0<path d="M00,0000000000v00l000,00l000-00z" stroke="#000" fill="n0d0"/>0
+0<path d="M00,0h00l00,00v00l000,00h0000000000l00,00v00l000,0z" stroke="#000" fill="n0d0"/>0
+0
+0<path d="M00,0h00l00,00v00l0000000000-00z" stroke="#000" fill="n0d0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l0" fill="n0d0"/>0
+0
+0<path d="M00,0h00000000v00l000,000000000z" stroke="#000" fill="n0d0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00l00,00v00l000,0z" stroke="#000" fill="n0d0"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="n0d0"/>0
+0<path d="M000-00v000z" fill="#000"/>0
+0</svg>
diff --git a/test/ns-afl-svg/0461.svg b/test/ns-afl-svg/0461.svg
new file mode 100644
index 0000000..92cf6b2
--- /dev/null
+++ b/test/ns-afl-svg/0461.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke: c0k00ape000ne" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0462.svg b/test/ns-afl-svg/0462.svg
new file mode 100644
index 0000000..fe33a00
--- /dev/null
+++ b/test/ns-afl-svg/0462.svg
@@ -0,0 +1,364 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a00f"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0-0,00,0,000,00c0,0-0,00-00,0000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ000000000000000000000000000000000000000000000000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,00000000000000000000000000" fill="url(#000000)"/>
+0<pAth d="M00,00c0,0-0,00-00,000-00000000000" f="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c00000000000000000-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000=0000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cp="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000000000000000000000000000M00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,00000/000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c000000000000000000000000000000000000000000000000000000000000000000000000000,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-00-60.070,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,10-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0l0,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,020-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,00000000 000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,100-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,00-10l0-0000,0c0,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fiRl="0"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" stylel="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,020-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0463.svg b/test/ns-afl-svg/0463.svg
new file mode 100644
index 0000000..b29b1f7
--- /dev/null
+++ b/test/ns-afl-svg/0463.svg
@@ -0,0 +1,49 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>0</linearGradient>0</defs>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#000000"/>
+0<pAth d="M00,00c0,0-8,00-23,024-00000000000,00000000000000000000000000000000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,0,0z M00,0000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0-8,00-23,024-000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0-8,00-23,024-00000000000,0000,00000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0
+0<path d="M70,00c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,000-00l00,0c0,0,00000000,000000,0000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0-8,00-23,024-00000000000000000000000000000000000000000000,00,00c0,0000,00000,0000000000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0
+0<path d="0,0000000000000000000000000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,00000000000000000000000000000 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000,0000000,000000000000000,000000000000000000000000000i0000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,00,000,0000,0l0,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0464.svg b/test/ns-afl-svg/0464.svg
new file mode 100644
index 0000000..07ff02e
--- /dev/null
+++ b/test/ns-afl-svg/0464.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:a0b00ck;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0465.svg b/test/ns-afl-svg/0465.svg
new file mode 100644
index 0000000..3078126
--- /dev/null
+++ b/test/ns-afl-svg/0465.svg
@@ -0,0 +1,32 @@
+<?l?>
+<svg version="0" xmlns="00000000000000000000000000" xmlns:O="0" width="0" height="0" style="0" on="0">
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="s0g00uic0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/0466.svg b/test/ns-afl-svg/0466.svg
new file mode 100644
index 0000000..63df061
--- /dev/null
+++ b/test/ns-afl-svg/0466.svg
@@ -0,0 +1,92 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='n0d'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='!' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='5' fell='0'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='e' stroke='blue'/>
+0">]><svg width="px" height="30px" i="0" xmlns="00000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="b0u0"/>
+0<g fonze="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0<g d="0" transform="translate(00 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presctRatio="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspecBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0467.svg b/test/ns-afl-svg/0467.svg
new file mode 100644
index 0000000..1d08e27
--- /dev/null
+++ b/test/ns-afl-svg/0467.svg
@@ -0,0 +1,4 @@
+<svg xmlns="0000000000" vÊe0000="0"><!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->
+0
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0468.svg b/test/ns-afl-svg/0468.svg
new file mode 100644
index 0000000..deb9ee3
--- /dev/null
+++ b/test/ns-afl-svg/0468.svg
@@ -0,0 +1,22 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="000" width="0" height="5" id="0" sodipodi:verst_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0" th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0" th="0"
+eight="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect stroke="f0l00red00" ip-path="0" iX="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:a0w00;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0469.svg b/test/ns-afl-svg/0469.svg
new file mode 100644
index 0000000..c83482f
--- /dev/null
+++ b/test/ns-afl-svg/0469.svg
@@ -0,0 +1,15 @@
+<svg xmlns="00000000000000000000000000" id="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient href="0" x1=".085" y1=".085" x2=".915" y2=".915" id="Open0earchg">
+0<stop offset="0" stop-color="#000000" y="0"/>
+0<stop offset=".5" stop-color="#000000" y="0"/>
+0<stop offset="1" stop-color="#000000" y="0"/>
+0</linearGradient>
+0</defs>
+0<g transform="scale(9)">
+0<rect width="0" height="0" r="0" r0="0" x="0" y="0" fill="#000000"/>
+0<rect width="0" height="0" r0="0" ry="0" x="0" y="0" fill="#000000"/>
+0<rect width="236" height="236" r0="0" ry="0" x="0" y="0" fill="url(#Open0earchg)"/>
+0<path fill="none" stroke="#000" stroke-width="6" d="M0 0A0 0 0 0 0 0,0A0 0 0 0 0 0 00z" transform="matrix(0,0,0,6,0,0)"/>
+0<rect fill="#000" stroke="none" width="0" height="0" x="0" y="0" transform="matrix(0..0.0,7,0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0470.svg b/test/ns-afl-svg/0470.svg
new file mode 100644
index 0000000..4891f82
--- /dev/null
+++ b/test/ns-afl-svg/0470.svg
@@ -0,0 +1,16 @@
+<svg xmlns="000p000000" viewBox="0" stroke-width=" ">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(0)"><Vp p-r="0" o_et="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0<linearGradient id="000000" R="0">
+0<stZp stopor="0" of="0"/>
+0<stop stop-c="0" ot="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0" id="0" style="fill: url(#00000z" fill="url(#00000e)"/>
+0<path d="M0,0c0-0,0-0,0,0v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000z" fill="url(#00000e)"/>
+0<path d="M0,0c0-0,0-0,0,0v0" fill="url(#00000"/>0
+0
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0471.svg b/test/ns-afl-svg/0471.svg
new file mode 100644
index 0000000..a6d836d
--- /dev/null
+++ b/test/ns-afl-svg/0471.svg
@@ -0,0 +1,86 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="u0s00n" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000l00000" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" y="0" l="0"/>
+0<circle r="0" cx="0" id="0" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0000000000000000000)"/>
+0<path d="M70,80c090-8,00-00,100,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" i="0"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c00000000" fill="u0e0"/>
+0<path d="M74,87c0,73-230-24-6-24108.00000000000000000000000000000000000000000000000000.0000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="0000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="00000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="00000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" f="0"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" c="0"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00v0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0004" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,00-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M74,87c0,73-230-24-6-24108.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0472.svg b/test/ns-afl-svg/0472.svg
new file mode 100644
index 0000000..dce930c
--- /dev/null
+++ b/test/ns-afl-svg/0472.svg
@@ -0,0 +1,153 @@
+<svg É="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+</svg>0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0473.svg b/test/ns-afl-svg/0473.svg
new file mode 100644
index 0000000..9afada4
--- /dev/null
+++ b/test/ns-afl-svg/0473.svg
@@ -0,0 +1,115 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0a00' stroke='r0f00lba000d'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' f='0'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' heightght='0'
+fill='none' stroke='b0u0'/>">]><svg width="px" height="30px" ion="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" he="0" stroke="b0u0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&t0;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&Viewport2;</g>
+0<g id="0" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t;
+0<svg tio="0" Box="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>0
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="B">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg presctRatio="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg preservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" EiewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg p="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="00"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg prbvctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" wilth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&t;
+0<svg ectRaTio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0474.svg b/test/ns-afl-svg/0474.svg
new file mode 100644
index 0000000..9cc36d2
--- /dev/null
+++ b/test/ns-afl-svg/0474.svg
@@ -0,0 +1 @@
+<svg viewBox='0 0 8 5' xmlns='000000000000000000'>0<g transform='scale(01)'>0<path d='M0,000c00,00-00,00-00,0000,00,00,0,00,0c0000'/>0<path d='M000,0c000,0-00,00-00,000c000,00-00,00,0,00c00,00,00,00,00,00h000c00,0,00-00,00-00c00000,00000,0000000000000000' fill='#000000'/>0<path d='M000,00c00,0-00,0-00,00l0000,000c00,0-0,00,0,00c0,0,00,00,00,00h000c00,0,00-0,00-00c0-0,0-00,0-00l0000-000c00-00-00-00-00-00M000,000l000,000h0000z'/>0<path d='M000,000l00,0l0,0l0000,00h00c00,0-0,0-00,00c00,0-0,00,0,00c0,0,00,00,00,00h0l000-00l0,0l0-00M000,000l0,00l000,0h0000c0-0,0-0,0-0z'/>0<path d='M000,00c0,0,0,00,0,00c00,00-00,00-00,00l0000-00v0h00zM000,000l00,00l00,0l000-00v00c00-0-0-0-0-0z'/>0<path d='M000,000v00h000v000h000l00,0l00,0l00,0c0,0-0,0-0,0h00c00,0-0,0-0,0c00,0-0,0-0,0l00,0c0,0-0,0-0,0h00c0,0-0,0-0,0l00-0c00,0-0-0-0-0c00-0,0-0-0-0l00-0c00-0-0-0-0-0c00,0-0,0-0-0c0-0,0-0-0-0v00v00z'/>0<path d='M000,000c0,0-0,00-00,00c00,0-00-0-00-000000,00000,0000000000c000000000000000000' fill='#000000'/>0<path d='M000,00c00,0-00,0-00,00l0000,000c00,0-0,00,0,00c0,0,00,00,00,00h000c00,0,00-0,00-00c0-0,0-00,0-00l0000-000c00-00-00-00-00-00M000,000l000,000h0000z'/>0<path d='M000,000l00,0l0,0l0000,00h00c00,0-0,0-00,00c00,0-0,00,0,00c0,0,00,00,00,00h0l000-00l0,0l0-0zM000,000l0,00l000,0h0000c0-0,0-0,0-0z'/>0<path d='M000,00c0,0,0,00,0,00c00,00-00,00-00,00l0000-00v0h00zM000,000l00,00l00,0l000-00v00c00-0-0-0-0-0z'/>0<path d='M000,000v00h000v000h000l00,0l00,0l00,0c0,0-0,0-0,0h00c00,0-0,0-0,0c00,0-0,0-0,0l00,0c0,0-0,0-0,0h00c0,0-0,0-0,0l00-0c00,0-0-0-0-0c00-0,0-0-0-0l00-0c00-0-0-0-0-0c00,0-0,0-0-0c0-0,0-0-0-0v00v00z'/>0<path d='M000,000c0,0-0,00-00,00c00,0-00-0-00-00c0-0,00-00,00-00c0,0,00,00,00,00'/>0<path d='M000,000c0,0-0,00-00,00c00,0-00-0-00-00c0-0,00-00,00-00c0,0,00,00,00,00'/>0<path d='M000,000c0,0-0,00-00,00c00,0-00-0-00-00c0-0,00-00,00-00c0,0,00,00,00,00'/>0<path d='M000,000c0,0-0,00-00,00c00,000000000000,0,00,00,00,00'/>0<path d='M000,000c0,0-0,00-00,00c00,0-00-0-00-00c0-0,00-00,00-00c0,0,00,00,00,00'/>0<path d='M000,000c0,0-0,00-00,00c00,0-00-0-00-00c0-0,00-00,00-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' fill='#000000'/>0<path d='M000,00c00,0-00,0-00,00l0000,000c00,0-0,00,0,00c0,0,00,00,00,00h000c00,0,00-0,00-00c0-0,0-00,0-00l0000-000c00-00-00-00-0,000h0000z'/>0<path d='M000,000l00,0l0,0l0000,00h00c00,0-0,0-00,00c00,0-0,00,0,00c0,0,00,00,00,00h0l000-00l0,0l0-0zM000,000l0,00l000,0h0000c0-0,0-0,0-0z'/>0<path d='M000,00c0,0,0,00,0,00c00,00-00,00-00,00l0000-00v0h00zM000,000l00,00l00,0l000-00v00c00-0-0-0-0-0z'/>0<path d='M000,000v00h000v000h000l00,0l00,0l00,0c0,0-0,0-0,0h00c00,0-0,0-0,0c00,0-0,0-0,0l00,0c0,0-0,0-0,0h00c0,0-0,0-0,0l00-0c00,0-0-0-0-0c00-0,0-0-0-0l00-0c00-0-0-0-0-0c00,0-0,0-0-0c0-0,0-0-0-0v00v00z'/>0<path d='M000,000c0,0-0,00-00,00c00,0-00-0-00-00c0-0,00-00,00-0000000c000000000000000000' fill='#000000'/>0<path d='M000,00c00,0-00,0-00,00l0000,000c00,0-0,00,0,00c0,0,00,00,00,00h000c00,0,00-0,00-00c0-0,0-00,0-00l0000-000c00-00-00-00-00-00M000,000l000,000h0000z'/>0<path d='M000,000l00,0l0,0l0000,00h00c00,0-0,0-00,00c00,0-0,00,0,00c0,0,00,00,00,00h0l000-00l0,0l0-0zM000,000l0,00l000,0h0000c0-0,0-0,0-0z'/>0<path d='M000,00c0,0,0,00,0,00c00,00-00,00-00,00l0000-00v0h00zM000,000l00,00l00,0l000-00v00c00-0-0-0-0-0z'/>0<path d='M000,000v00h000v000h000l00,0l00,0l00,,00,00'/>0<path d='M000,000c0,0-0,00-00,00c00,0-00-0-00-00c0-0,00-00,00-00c0,0,00,00,00,00'/>0<path d='M000,000c00,0-0,0-0,0c0,0,0,0,0,00c00,00,00,00,00,00v0h000c00,0-0,00-00,00c00,0-00-0-00-00h00c0,0-0,0-0,0c00,0-0-0-0-0h000c00,0-00,0-00,00c0,0,0,00,00,00h000c0,0,0,0,0,0h0000c00,0-00,0-00,00c0,0,0,00,00,00h000c0,0,0,0,0,0h0000c00,0000,0000,000,00000,00,0,00c00,00,00,00,00,000000000,0,00000,00000000000,00000,0000000000000000' fill='#000000'/>0<path d='M000,00c00,0-00,0-00,00l0000,000c00,0-0,00,0,00c0,0,00,00,00,00h000c00,0,00-0,00-00c0-0,0-00,0-00l0000-000c00-00-00-00-0,000h0000z'/>0<path d='M000,000l00,0l0,0l0000,00h00c00,0-0,0-00,00c00,0-0,00,0,00c0,0,00,00,00,00h0l000-00l0,0l0-0zM000,000l0,00l000,0h0000c0-0,0-0,0-0z'/>0<path d='M000,00c0,0,0,00,0,00c00,00-00,00-00,00l0000-00v0h00zM000,000l00,00l00,0l000-00v00c00-0-0-0-0-0z'/>0<path d='M000,000v00h000v000h000l00,0l00,0l00,0c0,0-0,0-0,0h00c00,0-0,0-0,0c00,0-0,0-0,0l00,0c0,0-0,0-0,0h00c0,0-0,0-0,0l00-0c00,0-0-0-0-0c00-0,0-0-0-0l00-0c00-0-0-0-0-0c00,0-0,0-0-0c0-0,0-0-0-0v00v00z'/>0<path d='M000,000c0,0-0,00-00,00c00,0-00-0-00-00c0-0,00-00,00-0000000c000000000000000000' fill='#000000'/>0<path d='M000,00c00,0-00,0-00,00l0000,000c00,0-0,00,0,00c0,0,00,00,00,00h000c00,0,00-0,00-00c0-0,0-00,0-0000,00,00,000000c0,0,0,0,0,0000000000000,000000000'/>0<path d='M000,000l00,0l0,0l0000,00h00c00,0-0,0-00,00c00,0-0,00,0,00c0,0,00,00,00,00h0l000-00l0,0l0-0zM000,000l0,00l000,0h0000c0-0,0-0,0-0z'/>0<path d='M000,00c0,0,0,00,0,00c00,00-00,00-00,00l0000-00v0h00zM000,000l00,00l00,0l000-00v00c00-0-0-0-0-0z'/>0<path d='M000,000v00h000v000h000l00,0l00,0l00,0c0,0-0,0-0,0h00c00,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000-0-00-0'/>0</g>0</svg>
diff --git a/test/ns-afl-svg/0475.svg b/test/ns-afl-svg/0475.svg
new file mode 100644
index 0000000..c6a6f9a
--- /dev/null
+++ b/test/ns-afl-svg/0475.svg
@@ -0,0 +1,38 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" f="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,0-00,00-00c00,0,00,0,00,000c0,0-0,00-00,00l000,0c00,0000,000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(000000"/>
+0<path d="M70,80c090-8,00-20,104,50v1" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-000000000,000,0,0000,0000,00000,000000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" l="0" fill="url(#000000)"/>
+0
+0<path d="M00,00c0,000,00000,0000,0,00,0,00,0000,0000c0000000000000000000000000,0000,00000000,000,0,0000,000000000000,0000,000,000,00000000000000000000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="t" style="fill: url(#00000" fill="url(000000"/>
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,000000000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,00000000000000000000000000000000000000000000000000000000000000 000-0 000000000000000000000000000000000000000000000000000,0000000,0000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(000000"/>
+0<path d="M70,80c090-8,00-20,104,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" l="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,00000000000000000000000000000000000000000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,00000000 000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0476.svg b/test/ns-afl-svg/0476.svg
new file mode 100644
index 0000000..e46df0a
--- /dev/null
+++ b/test/ns-afl-svg/0476.svg
@@ -0,0 +1,42 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="w0a0" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,00,00c0,0-0,00-00,00000000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="0000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c097-8,03-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-000000000000000000000000000000000000,000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,03-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c00000000000000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0477.svg b/test/ns-afl-svg/0477.svg
new file mode 100644
index 0000000..549c762
--- /dev/null
+++ b/test/ns-afl-svg/0477.svg
@@ -0,0 +1,149 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_rm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" e="0"/>
+0
+0<stop p-r="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient r="0" ra_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="ur0000000000" l="0"/>
+0<th d="0" f="0"/>
+0
+0<stop or="0" of="0"/>
+0<stop sr="0" of="0"/>
+0
+0<stop or="0" of="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0<stop or="0" et="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<pa d="0"/>0
+0<ci r="0" cx="0"/><stop st="0" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop sr="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<pCth d="0" id="0" s="0" fl="0"/>
+0<pLth d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M0,00c0-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,00000000000000000000000000c00000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-00000000010000000000000000000000000000000000000 0000000000000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,00000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0478.svg b/test/ns-afl-svg/0478.svg
new file mode 100644
index 0000000..b6a6eb2
--- /dev/null
+++ b/test/ns-afl-svg/0478.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:u0d0 stroke:00000000" wrorm="0"/>
+0<circlE cx="cm" cy="cm" r="1" style="fill:u0d0 stroke:00000000" wrorm="0"/>
+0<circlE cx="cm" cy="cm" r="1" style="stroke-width:000k0000000000000" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:b0e00lac0;" m="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0479.svg b/test/ns-afl-svg/0479.svg
new file mode 100644
index 0000000..b787873
--- /dev/null
+++ b/test/ns-afl-svg/0479.svg
@@ -0,0 +1,54 @@
+<svg viewBox='0 0 1 1' xmlns='000000000000000000'>
+0<linearGradient y2='0' x1='0' id='tgrad' gradientUnits='00000000000000'>
+0<stop stop-color='#000' offset='0'/>
+0<stop stop-color='#000' offset='0'/>
+0</linearGradient>0<path i0='0' stroke='url(#tgrad)' d='M00,00c000,0-00,0-0000,00h00' fill='n0n00sta000lo0000000' stroke-width='6'/>0
+0
+0<linearGradient y0='0' x0='0' id='0' g='0'>
+0<sto0 s0='0' offse0='0'/>
+0<sto0 s0='0' e0='0'/>
+0</linearGradient>0<path sli0='0' stroke='url(#tgrad)' d='M00,0,0-00,0-0000,0' fill='n0n00sta000lo0000000' stroke-width='6'/>0
+0
+0<linearGradient y0='0' x0='0' id='0' g='0'>
+0<stop s0='0' offset='0'/>
+0<stop st='0' et='0'/>
+0</linearGradient>0<path stlin='0' stroke='url(#tgrad)' d='M00,00c000,0-00,0-00-00M00,00000' fill='n0n00sta000lo0000000' stroke-width='6'/>0
+0
+
+0<path st='0' stroke='url(#tgraE' d='M00,00c000000000000000000000' fill='n0n00sta000lo0000000' stroke-width='0'/>0
+0<linearGradient y0='0' x0='0' id='0' grads='0'>
+0<stop stopor='0' of='0'/>
+0<stop sr='0' offset='0'/>
+0</linearGradient>0<path in='0' stroke='url(#tgrad)' d='M00,00c000,0-00,0-0000,00h00' fill='0000000000000' stroke-width='6'/>0
+0
+0<linearGradient y0='0' x0='0' id='0' gnits='0'>
+0<stop sr='0' ot='0'/>
+0<stop stopor='0' of='0'/>
+0</linearGradient>0<path sn='0' stroke='url(#tgrad)' d='M00,0,0-00,0-0000,0' fill='n0n00sta000lo0000000' stroke-width='6'/>0
+0
+0<linearGradient y0='0' x0='0' id='0' gnits='0'>
+0<stop sr='0' ot='0'/>
+0<stop stopor='0' of='0'/>
+0</linearGradient>0<path sn='0' stroke='url(#tgrad)' d='M00,00c000,0-00,0-00-00M00,00h00' fieth='0'/>0
+0
+0<linearGradient y0='0' x0='0' id='0' g='0'>
+0<stop sr='0' offset='0'/>
+0<stop st='0' et='0'/>
+0</linearGradient>0<path st-lin='0' stroke='url(#tgrad)' d='M00,0,0-00,0-0000,0' fill='n0n00sta000lo0000000' stroke-width='6'/>0
+0
+0<linearGradient y0='0' x0='0' id='0' gnits='0'>
+0<stop sr='0' offset='0'/>
+0<stop st='0' et='0'/>
+0</linearGradient>0<path st-lin='0' stroke='url(#tgrad)' d='M00,00c000,0-00,0-00-00M00,00h00' fill='n0n00sta000lo0000000' stroke-width='6'/>0
+0
+
+0<path st='0' stroke='url(#tgraE' d='M00,00c0000000000000000000000' fill='n0n00sta000lo0000000' stroke-width='0'/>0
+0<linearGradient y0='0' x0='0' id='0' grads='0'>
+0<stop or='0' of='0'/>
+0<stop sr='0' offset='0'/>
+0</linearGradient>0<path in='0' stroke='url(#tgrad)' d='M00,00c000,0-00,0-0000,00h00' fill='0000000000000' stroke-width='6'/>0
+0
+0<linearGradient y0='0' x0='0' ill='0' strh='0'/>0
+0
+
+0<path st-lin='0' stroke='url(#tgraE' d='M00,00c000,0-00,0-00-00M00,00h00' fill='n0n00sta000lo0000000' stroke-width='6'/>0</svg>
diff --git a/test/ns-afl-svg/0480.svg b/test/ns-afl-svg/0480.svg
new file mode 100644
index 0000000..2966692
--- /dev/null
+++ b/test/ns-afl-svg/0480.svg
@@ -0,0 +1,5 @@
+<?l?>
+<!DOCTYPE s00 PUBLIC "0" "0">
+<!--0-->
+<!--0-->
+<!--0--> \ No newline at end of file
diff --git a/test/ns-afl-svg/0481.svg b/test/ns-afl-svg/0481.svg
new file mode 100644
index 0000000..16e6a1b
--- /dev/null
+++ b/test/ns-afl-svg/0481.svg
@@ -0,0 +1,378 @@
+<svg xmlns="00" ox="0">
+0<defs>0<linearGradient id="pyYello0" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="m0s00tra000or000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000000000000000000000000000000000000000" fill="url(#00)"/>
+0<path d="M00,00c0,000,00-0,00-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M70,80c000-0,00-00,124,50v0" fill="url(#pyYello0)"/>0
+0<cirCle r="0" cx="0" cy="0" fl="0"/>
+0<circle r="4" cx="0" cy="0" fl="0"/>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#00)"/>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,000,00-00,000-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,000000000000000000000" fill="u0e0"/>
+0<path d="M74,87c0,73-230-24-0-24108.00000000000000000000000000000000000000000000000000000.0000000000000000" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" ll="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>
+0<path d="00000000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<cirzle r="0" cx="0" cy="0" fl="0"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c000000000000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0l0,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>
+0
+0<circle r="4" cx="0" ll="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M70,80c000-0,00-00,124,50v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="v" fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0y)"/>
+0<path d="M70,80c000-0,00-00,124,50v0" fill="url(#pyYello0)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" ll="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000000" fill="url(#0000)"/>
+0<path d="M70,80c000-0,00-00,124,50v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-20,120-10l0-20c0-0,0-10,12-10l20,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" ll="0"/>0
+0<circle r="4" _x="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<AirCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v0" fill="url(#pyYello0)"/>0
+0<cirCla r="0" ll="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-20,120-10l0-20c0-0,0-00,10-00l04,0c0,0,00-0,10-05l0-0000,0c0,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circqe r="0" cx="0" fl="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0<path d="M00,00c000-0,00-00,100-00l0-02c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYello0)"/>0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#pyYello0)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4"
+cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-20,100-10l0-20c0-0,0-00,10-00l20,0c0,0,00-0,10-05l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000000"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" il="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<AirCle r="0" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#pyYello0)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#pyYello0)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0482.svg b/test/ns-afl-svg/0482.svg
new file mode 100644
index 0000000..ae68d22
--- /dev/null
+++ b/test/ns-afl-svg/0482.svg
@@ -0,0 +1,47 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop r="0" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<defs>
+0<linearGradient id="0" m="0">
+0<stop r="0" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<ph d="0" fl="0"/>
+0<th d="0" fl="0"/>0
+0<ce r="0" cx="0" cy="0" ll="0"/>0<stop stop-color="000000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000000000000000000000000000000000000000000000,0,0000,000000000000,000,0,00,0,00,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#0000000000" fill="url(#00B00"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,00-20,104,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,00000000000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-000000c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000,000,0000,000,0000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#0000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="u00000000000"/>
+0<path d="000,0000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#0000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,00-20,120,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-8,00-20,120,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0483.svg b/test/ns-afl-svg/0483.svg
new file mode 100644
index 0000000..28fdf75
--- /dev/null
+++ b/test/ns-afl-svg/0483.svg
@@ -0,0 +1,133 @@
+<É0 xmlns="000000000"><!--0-->
+0
+0<ci x="0" cy="0" r="" ll="" ke="" o-w="0"/>0<path d=""/>
+0<path d="0"/>0
+0<xt x="0"/>
+0<xt d=""/>0
+0<K- vl="0"/>0
+0<tt x="0"/>
+0<patt x="0"/>
+0<p vl="0"/>0
+0<tt x="0"/>
+0<Kt d="0" fl="0"/>0
+0<K d="" ll=""/>0
+0<toxt x="0"/>
+0<KKKK/>0
+0<Kh d="0" vill="0"/>0
+0<text>
+0<Kt d="0" ke="0" fill="0"/>0
+0<Kth d=""/>0
+0<text x="0"/>
+0<xt d="" fill=""/>0
+0<xt d="0"/>0
+0<th d="0"/>0
+0<text x="0"/>
+0<t d="0" ke="0" fill="0"/>0
+0<Kth d="0"/>0
+0<text x="0"/>
+0<KKKK d="0" fill="0"/>0
+0<KKext x="0"/>
+0<patxt d="0" fill=""/>0
+0<th d="0" vill="0"/>0
+0<text x="0"/>
+0<xt dke=""/>0
+0<nth l="0"/>0
+0<text x="0"/>
+0<patext d="0" ke="0" fill="0"/>0
+0<KKK d="" vill=""/>0
+0<text x="0"/>
+0<pa d="0" fill="0"/>0
+0<KKext x="0"/>
+0<patt d="0" ke="0" fill="0"/>0
+0<Kh d="0" vill="0"/>0
+0<text x="0"/>0
+0<KKh d="0" vill="0"/>0
+0<text x="0"/>
+0<pext x="0"/>
+0<pat/>0
+0<Kh d="0" vill="0"/>0
+0<text x="0"/>
+0<Kt d="0" ke="0" fill="0"/>0
+0<Kth d="0"/>0
+0<text x="0"/>
+0<h d="0" vill="0"/>0
+0<text x="0"/>
+0<pext d="0" ke="0" fill="0"/>0
+0<KKKext d="0" ke="0" qill="0"/>0
+0<KKK vill="0"/>0
+0<text x="0"/>
+0<pat ke="0" fill="0"/>0
+0<KKK d=""/>0
+0<text/>
+0<paxt dke=""/>0
+0<KKK- vill="0"/>0
+0<text x="0"/>
+0<KKKt d="0" fill="0"/>0
+0<Kth d="0" vill="0"/>0
+0<text x="0"/>
+0<xt dke=""/>0
+0<th d="0"/>0
+0<text x="0"/>
+0<xt d="0"/>0
+0<KKKK/>0
+0<text x="0"/>
+0<patth d="0" vill="0"/>0
+0<text x="0"/>
+0<Kext d="0" fill="0"/>0
+0<KK d="0" qill="0"/>0
+0<KK d="" vill=""/>0
+0<text x="0"/>
+0<pah d="0" vill="0"/>0
+0<text x="0"/>
+0<p d="0" fill="0"/>0
+0<KKh d="0" vill="0"/>0
+0<text x="0"/>
+0<Kext d="0" ke="0" fill="0"/>0
+0<KKK d=""/>0
+0<text x="0"/>
+0<pah d="0" vill="0"/>0
+0<text x="0"/>
+0<pth d="0"/>0
+0<text x="0"/>
+0<patK d=""/>0
+0<text/>
+0<KKth d="0" vill="0"/>0
+0<text x="0"/>
+0<Kext d="0" fill="0"/>0
+0<KK d="0" qill="0"/>0
+0<KK d="" vill=""/>0
+0<text x="0"/>
+0<pa d="" ke="0"/>0
+0<KKh d="0" vill="0"/>0
+0<text x="0"/>
+0<pext d="0" ke="0" fill="0"/>0
+0<KKK d=""/>0
+0<text x="0"/>
+0<KKxt dke=""/>0
+0<KKK-/>0
+0<text x="0"/>
+0<pat ke="0" fill="0"/>0
+0<KKK vill="0"/>0
+0<Kth d="0"/>0
+0<text x="0"/>
+0<h d="0" vill="0"/>0
+0<text x="0"/>
+0<pext x="0"/>
+0<pKKh d="0" vill="0"/>0
+0<text x="0"/>
+0<Kext d="0" ke="0" fill="0"/>0
+0<KKK d=""/>0
+0<toxt x="0"/>
+0<pa d="0" fill="0"/>0
+0<KK d=""/>0
+0<text/>
+0<KK d="" ke="0"/>0
+0<KKh d="0" vill="0"/>0
+0<text x="0"/>
+0<p d=""/>0
+0<text x="0"/>
+0<paxt d="0" fill=""/>0
+0<xt d="0"/>0
+0<th d="0"/>0
+0<KKh d="0" vill="0"/>0
+0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0484.svg b/test/ns-afl-svg/0484.svg
new file mode 100644
index 0000000..dfdc830
--- /dev/null
+++ b/test/ns-afl-svg/0484.svg
@@ -0,0 +1,6 @@
+<svg vivxmlns='0' d='0' fill='s0l00tax000ns00000' strofill='0' stroke='0'>
+0<path d='M0,0c0,0-0,0 0,0-' fill='s0l00tax000ns00000' stroke='black'/>0
+0<path d='M0,0c0,0-0,0 0,0-' fill='s0l00tax000ns00000' stroke='black'/>
+0
+0<path d='M0,0c0,0-0,0 0,0-' fill='s0l00tax000ns00000' stroke='black'/>0
+0<path d='M0,0c0,0-0,0 0,0-' fill='s0l00tax000ns00000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/0485.svg b/test/ns-afl-svg/0485.svg
new file mode 100644
index 0000000..6ca7f3d
--- /dev/null
+++ b/test/ns-afl-svg/0485.svg
@@ -0,0 +1,54 @@
+<?l?>
+<svg version="0" xmlns="000000000000000000" xmlns:k="0" width="0" height="0" style="0" n="0">
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0s00ric0"
+stroke-width="3"/>
+0
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0s00ric0"
+stroke-width="3"/>
+0
+0</g>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0486.svg b/test/ns-afl-svg/0486.svg
new file mode 100644
index 0000000..c028eb6
--- /dev/null
+++ b/test/ns-afl-svg/0486.svg
@@ -0,0 +1,20 @@
+<svg ns="0" viewBox="0 0 1 1">0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>0<stop stop-color="u0s00v" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00000c00000000000000000000000000000000000000000000000000000000000000000000000000000000" lZ="0"/>
+0<path d="M00,00c0,0-0,000000-00000000000000000-00,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,00-20,104,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c000,0000000000000000 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000000000000000000000000000000000000000000000000000000000000000000000000000 0" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0487.svg b/test/ns-afl-svg/0487.svg
new file mode 100644
index 0000000..e5e9ab6
--- /dev/null
+++ b/test/ns-afl-svg/0487.svg
@@ -0,0 +1,26 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop or="0" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<defs>
+0<linearGradient id="0" orm="0">
+0<stop lor="0" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<ce r="0" cx="0" cy="0" fill="0"/>0<stop stop-color="000000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,000000000000000000000000000000000000000000000000000000000000000000000,0c00,00000000000000000,0000,00000000000000000000000000,000000,0000" fill="url(#0000)"/>
+0<path d="M70,80c0,7-0-14,5-238,00000000,0000,00000l00,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0488.svg b/test/ns-afl-svg/0488.svg
new file mode 100644
index 0000000..a7005a9
--- /dev/null
+++ b/test/ns-afl-svg/0488.svg
@@ -0,0 +1,117 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c00ext000ch0000'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00w'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<circle cx='0' cy='0' r='5' fht='0' fill='l0c00ext000ch00'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" ion="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" hT="0" ill="0" se="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g t="0"
+rarm="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g sform="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&Viewport0;</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" vie="0"
+th="0" heé00="0">&Smile;</svg></g>
+0<g transform="000"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="000"><text y="0">0</text>&p;
+0<svg pre="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg Asp="0" viewBox="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" vox="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg prp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>0</g>
+0<g id="0" transform="translate(000 0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="00000000000"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" trÕ0="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" he0="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg preht="0">&Smile;</svg></g>
+0<g tform="0"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg preseAsp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0489.svg b/test/ns-afl-svg/0489.svg
new file mode 100644
index 0000000..a943ad3
--- /dev/null
+++ b/test/ns-afl-svg/0489.svg
@@ -0,0 +1,17 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 6">
+0<circle r="3" cx="0" cy="0"/>
+0<circle r="3" cx="0" cy="0"/>
+0<path d="M00,00s0-0,00,0s0,0,00,0s00-0-0-0l0,0s0,0,0,0l00,0l00-0l00,0l00-0z"/>
+0<path d="M00,00s0,0,0,0h0,0s00-0,0-00s00-0,0-0l0,0s0,0,0-0l00-0s000,0-0,00l0,0s0,0-0,0z"/>
+0<path d="M00,00s00-00,0-00l0-0s0,0,0,0l0-0l0,0s0,0,0,00l00,0l00-0s00,0-0,0l00,00z"/>
+0<g stroke="#000" stroke-width="3" fill="none" e-p="0">
+0<circle r="6" cx="0" cy="0"/>
+0<circle r="6" cx="0" cy="0"/>
+0<path d="M00,00S00,00,00,0S00,00,00,00"/>
+0<path d="M00,00l0,0M00,00l00,0"/>0
+0<path d="M00,00c000-00-00-0-00-0s0,0-0,0c00000000"/>
+0<path d="M00,00c000,0-00,0-00,0c0,0,0,0-00,0c00-0-0-0-0,0"/>
+0<path d="M00,00c00,0-0,0-0,00c0,0,0,0-00,0"/>
+0<path d="M000,00c0-0,00-0,00,0c0,0,00,0,00,0s0-0,000,00c0,0,00,0,00,00c0,0,0,0,00,0s0-0,0,0"/>
+0<path d="M00,00s0,0,0,0s00,00,00,00"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0490.svg b/test/ns-afl-svg/0490.svg
new file mode 100644
index 0000000..29affa3
--- /dev/null
+++ b/test/ns-afl-svg/0490.svg
@@ -0,0 +1,12 @@
+<svg xmlns="0000000000000000000" xmlns:xlin0="00" viewBox="0 0 1 1">
+0<radialGradient id="0" cx="0" cy="0" t="0" grntUnits="0"><sp ot="0" p-c="0"/><sp ot="0"/></radialGradient>
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000C000,00 00,00 00,00" id="0" fill="d0l00gss00"/>
+0<use xlin0:ea="0" rm="0"/>
+0
+0<radialGradient id="0" cx="0" cy="0" t="0" grntUnits="0"><op ot="0" p-c="0"/><op ot="0"/></radialGradient>
+0<path d="M0,000A00000000000000" id="0" fill="d0l00gss00"/>
+0<use xlin0:ea="0" sform="0"/>
+0
+0<radialGradient id="0" cx="0" cy="0" t="0" srntUnits="0"><op ot="0" top-c="0"/><op ot="0"/></radialGradient>
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000C000,00 00,00 00,000,00" id="0" fill="d0l00gss00"/>
+0<use xlin0:ha="0" transform="0"/>0</svg>
diff --git a/test/ns-afl-svg/0491.svg b/test/ns-afl-svg/0491.svg
new file mode 100644
index 0000000..71a6203
--- /dev/null
+++ b/test/ns-afl-svg/0491.svg
@@ -0,0 +1,12 @@
+<svg xmlns="00" viewBox="0" stroke-width="2">0<g fill="none">
+0<ellipsO stroke="0" x="0" ry="0"/>
+0<eWlipse stroke="0"/>
+0<Wllipse strkke="0" rx="0" ry="0" t="0"/>
+0<circle stroke="000" r="4"/>
+0</g>
+0<g fill="000" stroke="0">
+0<circle fill="000" r="3"/>
+0<circle cy="0" r="9"/>
+0<circle cx="0" cy=" " r="9"/>
+0<circle cx="0" cy="0" r="9"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0492.svg b/test/ns-afl-svg/0492.svg
new file mode 100644
index 0000000..d5b0fdb
--- /dev/null
+++ b/test/ns-afl-svg/0492.svg
@@ -0,0 +1,5 @@
+<svg xmlns="00000000000000000000000000" viewBod="0">
+0<path d="M00,0h00l00,00v00l0,00h000l000-00v000z" stroke="#000" fill="o0a00d"/>0
+0<path d="M00,00s0000000" fill="#000"/>
+0<path d="M0,00l00-0l00,0c000-00-00-00-00-00l00,0l000-0c0-0,00-0,00,0c0,0,0,00,0,00000-0000000" stroke="#000" fill="o0a00d"/>0
+0<path d="M0000000,0l0" fill="000000000000000000000" stroke="#000" l="0"/>0</svg>
diff --git a/test/ns-afl-svg/0493.svg b/test/ns-afl-svg/0493.svg
new file mode 100644
index 0000000..36eb3b3
--- /dev/null
+++ b/test/ns-afl-svg/0493.svg
@@ -0,0 +1,111 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='red'/>0<g transform='0'>0<circle cx='0' cy='0' r='p' fill='yellow'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY Viewport1 "<rect x='0' y='0' width='n' height='0'
+fill='none' stroke='blue'/>"><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" ven="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="blue"/>
+0<g foize="0">0<text x="0" y="0">0</text>
+0<g transform="translate(0,0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0">&Viewport1;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0">&Viewport2;</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport1;0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport1;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport1;0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0,0"><text y="0">0</text>&Viewport2;
+0<svg preservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" EiewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport2;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg prbvctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g i="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&t;
+0<svg ectRaTio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0494.svg b/test/ns-afl-svg/0494.svg
new file mode 100644
index 0000000..867a785
--- /dev/null
+++ b/test/ns-afl-svg/0494.svg
@@ -0,0 +1,74 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c0' stroke='r0d0'/>0<g transform='translate(0,00)'>0<circle cx='0' cW='0' r='1' fill='y0`00w'/>0<i/>0<circle cx='0' cy='0' r='1' fill='t0a00'/>0<circle cx='0' cy='0' r='5' fill='b0a00'/>0<path d='M0 000A00 0 0 0 0 00 00' stroke='black' strokg-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' w='0' height='0'
+fill='none' strVke='0'/>">]>
+<svg width="px" height="30px" on="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" w="0" height="0"
+fill="none" stroke="b0u0"/>
+0<g fonze="0">0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&Viewport0;</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg presctRatio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0</g>
+0<g id="0" transform="translate(0000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg presctRatio="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 0 0"
+th="0" height="0">0</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&L;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,00000">
+0<text g="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preservatio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&t0;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0495.svg b/test/ns-afl-svg/0495.svg
new file mode 100644
index 0000000..cf6d30e
--- /dev/null
+++ b/test/ns-afl-svg/0495.svg
@@ -0,0 +1,13 @@
+<svg xmlns="http://www.w 100 100">
+0<path d="M00,0h00l00,00v00l0,00-0" e="0" fill="b0n0"/>0
+0<path d="M00,0h0l00" fill="b0n0"/>0
+0
+0<path d="M00,0h00l00,00v00l00" e="0" fill="b0n0"/>0
+0<path d="M00,0h00l00,00-000" fill="b0n0"/>0
+0<text x="0" y="0" font-size="0" l="0" text-ar="0"><![CDATA[0]]></text>0
+0<path d="M00,0h00l00,00v00l000,00-000" ke="0" fill="b0n0"/>0
+0<path d="M00,0h000l0000" fill="b0n0"/>0
+0
+0<path d="M00,0h00l00,00v00l00" ke="0" fill="b0n0"/>0
+0<path d="M00,0h00l00,00-000" fill="b0n0"/>0
+0<text x="0" y="0" font-size="0" ll="0" t-r="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0496.svg b/test/ns-afl-svg/0496.svg
new file mode 100644
index 0000000..75fb087
--- /dev/null
+++ b/test/ns-afl-svg/0496.svg
@@ -0,0 +1,5 @@
+<svg odd='0' xmlns='000' drofill='0' stroke='0'>
+0<path d='M0,0c0,0-0,0-0,0-00' fill='d0q00tax000ts00000' stroke='b0a00'/>
+0
+0
+0<path d='M00,00c00,0-0,0-0,00-00' fill='d0q00tax000ts00000' stroke='b0a00'/>0</svg>
diff --git a/test/ns-afl-svg/0497.svg b/test/ns-afl-svg/0497.svg
new file mode 100644
index 0000000..c060467
--- /dev/null
+++ b/test/ns-afl-svg/0497.svg
@@ -0,0 +1,79 @@
+<svg w="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="#000" offset=".6"/>0<stop stop-color="#000" offset="1"/>
+0
+0
+0<stop stop-color="a0q0" offset="0"/>
+0<stop stop-color="000000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#00000"/>0
+0<circle r="4" cx="0" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c097-8,03-00,100,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow"/>0
+0<cirCle r="0" cx="0" e="0" l="0"/>
+0<circle r="" cx="0" i="0" style="fill: 0000000000000"/>
+0<path d="M00,00c090-8,03-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c00000000000000000000000000000000000000c0,0000,00000000000000000000000000000000000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-04-6-000080000000000000,00000000000000000000,0000000000000000,0000000000000000000" c="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-0000-0M0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<paZh d="0" id="0" e="0"/>
+0<path d="M00,00c090-8,00-20,104,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-04-6-000080000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0498.svg b/test/ns-afl-svg/0498.svg
new file mode 100644
index 0000000..e764ffd
--- /dev/null
+++ b/test/ns-afl-svg/0498.svg
@@ -0,0 +1,62 @@
+<?l?>
+<!DOCTYPE s00 PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:r0d0 stroke:b0a00;stroke-width:000cm" transform="translate(0"/>
+0<circle cx="cm" cy="cm" r=")"/>
+0
+0<circle cx="cm" cy="0" r="1" style="stroke:r0a00blu0;stroke-width:000cm" transform="translate(00"/>
+0<circle cx="cm" cy="cm" r="1" s="0"/>
+0<circle cx="cm" cy="0" r="1" style="stroke:r0a00blu0;stroke-width:000cm" transform="translate(00,0)"/>
+0<circle cx="cm" ty="0" r="1" e="0" transform="translate(000,000)"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="stroke:r0a00blu0;stroke-width:000cm" m="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0a00;stroke-width:000cm" tre="0" m="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:r0a00blu0;stroke-width:0*000" transform="translate(00,000)"/>
+0<circle cx="cm" ty="0" r="1" style="stroke:black;stroke-width:000cm" transform="translate(000,000)"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="stroke:r0a00blu0;" transform="000000"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="stroke:r0a00blu0;stroke-width:0*000" transform="translate(00"/>
+0<circle cx="cm" cy="cm" r="1" yrm="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:r0a00blu0;stroke-width:0*000" transform="translate(00,000)"/>0
+0<circle cx="c" cy="cm" r="1" style="fill:g0b00ck;stroke-width:000cm" transform="000000"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="stroke:r0a00blu0;stroke-width:0*000" transform="translate(00"/>
+0<circle cx="cm" cy="cm" r="1" srm="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:r0a00blu0;stroke-width:0*000" transform="translate(00,000)"/>
+0<circle cx="cm" ty="0" r="1" style="stroke:black;stroke-width:000cm" transform="translate(000,000)"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="stroke:r0a00blu0;stroke-width:0*000" m="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:black;stroke-width:000cm" tre="0" arm="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:r0a00blu0;stroke-width:0*000" transform="translate(00,000)"/>
+0<circle cx="cm" ty="0" r="1" style="stroke:black;stroke-width:001cm" transform="translate(000,000)"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="stroke:r0a00blu0;" transform="0000000"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="stroke:r0a00blu0;stroke-width:0*000" transform="translate(00"/>
+0<circle cx="cm" cy="cm" r="1" m="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:r0a00blu0;stroke-width:0*000" transform="translate(00,000)"/>
+0<circle cx="cm" ty="0" r="1" style="stroke:black;stroke-width:001cm" transform="translate(000,000)"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="stroke:r0a00blu0;stroke-width:0*000" m="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:black;stroke-width:001cm" tre="0" wrm="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:r0a00blu0;stroke-width:0*000" transform="translate(00,000)"/>
+0<circle cx="cm" ty="0" r="1" style="stroke:black;stroke-width:001cm" transform="translate(000,000)"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="stroke:r0a00blu0;stroke-width:0*000" transform="translate(00"/>
+0<circle cx="cm" cy="cm" r="1" m="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:r0a00blu0;stroke-width:0*000" transform="translate(00,000)"/>
+0<circle cx="cm" ty="0" r="1" style="stroke:black;stroke-width:001cm" transform="translate(000,000)"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="stroke:r0a00blu0;stroke-width:0*000" transform="translate(00"/>
+0<circle cx="cm" cy="cm" r="1" m="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:r0a00blu0;stroke-width:0*000" transform="translate(00,000)"/>
+0<circle cx="cm" ty="0" r="1" style="stroke:black;stroke-width:001cm" transform="translate(000,000)"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="stroke:r0a00blu0;stroke-width:0*000" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:black;stroke-width:001cm" tre="0" transform="translate(000,000)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0499.svg b/test/ns-afl-svg/0499.svg
new file mode 100644
index 0000000..f721832
--- /dev/null
+++ b/test/ns-afl-svg/0499.svg
@@ -0,0 +1,4 @@
+<svg xmlns="0000000000" ns="0" viewBox="0">
+0<path d="M0,000000000000$000000000000000000000000000000000000000000,00,000" fill="g0u00"/>0
+0<path d="M00,00q0-00,00-00q0-00,00-00q0000,00000000,00000,0,0,0q0,0,00,000" fill="g0u00"/>0
+0<path d="M0,0q0-00,00-00q0" fill="g0u00"/>0</svg>
diff --git a/test/ns-afl-svg/0500.svg b/test/ns-afl-svg/0500.svg
new file mode 100644
index 0000000..e4c40f8
--- /dev/null
+++ b/test/ns-afl-svg/0500.svg
@@ -0,0 +1,380 @@
+<svg s="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="pyYellow" rm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>0<stop stop-color="u0s00tyl000s" offset="0"/>
+0</linearGradient>
+0
+0</defs>0
+0<path d="000000,0000000000000000000000000000000000000000,000,00000,000000,0000,0000,0000,0000,00000,0000,00000000000000000,0000,0000000000,000,0,0000000000000000000000000000,000000,000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" id="0000" style="fill: 000" fill="url00000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000000"/>
+0<path d="M00,00c097-0,13-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" id="0000" ye="0" fill="url(#0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l000,L0,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-000000000070000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-000000000070000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#00)"/>
+0<path d="M00,00c097-0,03-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,00"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c097-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" cy="0" fi="0"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,13-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fi="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fi="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,00..000,00000000 000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-00c0-0,0-00,02-00l20,0c0,0,00-0,00-10l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,03-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c097-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000 00000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-00c0-0,0-00,02-00l20,0c0,0,00-0,00-10l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#000000000"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0501.svg b/test/ns-afl-svg/0501.svg
new file mode 100644
index 0000000..7ea51e5
--- /dev/null
+++ b/test/ns-afl-svg/0501.svg
@@ -0,0 +1,114 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='red'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0d00'/>0<circle Nx='0' cy='0' r='b'/>0<circle cx='0' cy='0' r='1' fill='b0i00'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='black' otroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='mm' width='0' height='d'
+fill='n0s0' stroke='blue'/>">]><svg width="px" h="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" fill="none" s="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g m="0">&Smile;</g>0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport0;</g>
+0<g id="0" transform="00">0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&i;
+0<svg pro="0" vix="0"
+idth="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&Viewport0;
+0<svg pio="0" vox="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg prp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>0</g>
+0<g id="0" transform="translate(000 000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="000"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g m="0"><text y="0">0</text>&Viewport0;
+0<svg preservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg preseAsp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0502.svg b/test/ns-afl-svg/0502.svg
new file mode 100644
index 0000000..52c48f6
--- /dev/null
+++ b/test/ns-afl-svg/0502.svg
@@ -0,0 +1,5 @@
+<svg olns="0" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l0,00h000l000-00v0z" stroke="#00M" fill="m&lt;o"/>0
+0
+0
+</svg>
diff --git a/test/ns-afl-svg/0503.svg b/test/ns-afl-svg/0503.svg
new file mode 100644
index 0000000..2bd91a9
--- /dev/null
+++ b/test/ns-afl-svg/0503.svg
@@ -0,0 +1,82 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="c" cy="R" r="1" style="fill:r0d;stroke:black;" rm="0"/>0<circle cx="c" cy="cm" r="1" style="0" te="0" tform="0"/>
+0
+0<circle cx="c" cy="0" r="1" style="0"/>
+0<circle cx="c" cy="0" r="1" style="0" transform="0"/>0<circle cx="c" cy="cm" r="1" style="0" te="0" t="0"/>
+0
+0<circle cx="c" cy="0" r="1" style="0"/>
+0<circle cx="c" cy="0" r="1" style="0" transform="0"/>
+0<circle cx="c" cy="cm" r="1" style="stroke:b0i00;" m="0"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u0;stroke:black;" te="0" transform="0"/>
+0
+0<circle cx="c" cy="0" r="1" style="fill:g0e00;stroke:b0i00;"/>
+0<circle cx="cm" cy="c" r="1" style="fill:b0u0;stroke:black;" m="0"/>
+0<circle cx="c" cy="cm" r="1" style="stroke:b0i00;" transform="0"/>0<circle cx="cm" cy="0" r="1" style="fill:b0u0;" transform="translate(0,0)"/>
+0<circle cx="c" cy="cm" r="1" style="stroke:b0i00;stroke-width:001cm" transform="translate(0"/>0<circle cx="cm" cy="0" r="1" style="fill:b0u0;stroke:black;" le="0" t="0"/>
+0
+0<circle cx="c" cy="cm" r="1" style="fill:g0e00;stroke:b0i00;"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:black;" transform="translate(0,0)"/>
+0<circle cx="c" cy="0" r="1" style="fill:g0e00" transform="0"/>
+0
+0<circle cx="c" cy="0" r="1" style="fill:0000000"/>
+0
+0<circle cx="c" cy="cm" r="1" style="fill:g0e00;" m="0"/>
+0<circle cx="c" cy="cm" r="1" style="0"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="0" te="0" tform="0"/>
+0
+0<circle cx="c" cy="0" r="1" style="fill:g0e00;"/>
+0<circle cx="cm" cy="0" r="1" style="0" transform="0"/>0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;" trle="0" t="0"/>
+0
+0<circle cx="c" cy="0" r="1" style="fill:green;stroke:b0i00;"/>
+0<circle cx="cm" cy="0" r="m" syle="0" transform="0"/>
+0
+0<circle cx="c" cy="0" r="1" style="0"/>
+0<circle cx="cm" cy="0" r="1" style="stroke-width:001cm" transform="0"/>
+0<circle cx="c" cy="cm" r="1" style="fill:green;stroke:l0b00e;" transform="translate(0,0)"/>
+0<circle cx="c" cy="0" r="1" style="stroke:b0i00;stroke-width:001cm" transform="translate(0"/>0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;" trle="0" m="0"/>
+0
+0<circle cx="c" cy="0" r="1" style="fill:green;stroke:b0i00;"/>
+0<circle cx="cm" cy="0" r="1" style="fill:blue;" transform="translate(0"/>
+0<circle cx="c" cy="cm" r="1" style="stroke-width:001cm" transform="0"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;" transyle="0" transform="0"/>
+0
+0<circle cx="c" cy="0" r="1" style="fill:green;"/>
+0<circle cx="cm" cy="c" r="1" style="fill:blue;stroke:black;" transform="translate(0,0)"/>
+0<circle cx="c" cy="cm" r="1" style="stroke:b0i00;stroke-width:001cm" transform="translate(0"/>0<circle cx="cm" cy="0" r="1" style="fill:blue;stroke:black;" transyle="0" t="0"/>
+0
+0<circle cx="c" cy="cm" r="1" style="fill:0000000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="c" cy="0" r="1" style="fill:green;stroke:b0i00;stroke-width:001cm" transform=",0"/>
+0
+0<circle cx="c" cy="0" r="1" style="fill:0000000"/>
+0
+0<circle cx="c" cy="cm" r="1" style="0" transform=",00"/>
+0<circle cx="c" cy="cm" r="1" style="fill:0000000"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="0" trae="0" tform="0"/>
+0
+0<circle cx="c" cy="0" r="1" style="fill:green;"/>
+0<circle cx="cm" cy="0" r="1" style="0" transform="translate(00"/>0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;" trle="0" t="0"/>
+0
+0<circle cx="c" cy="0" r="1" style="fill:green;stroke:b0i00;"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;" transform="0"/>
+0<circle cx="c" cy="cm" r="1" style="fill:green;stroke:b0i00;" m="0"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;" tyle="0" m="0"/>
+0
+0<circle cx="c" cy="cm" r="1" style="fill:green;stroke:b0i00;"/>
+0<circle cx="cm" cy="c" r="1" style="fill:blue;stroke:black;" t="0"/>
+0<circle cx="c" cy="cm" r="1" style="stroke:b0i00;" transform="translate(0000"/>0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;" syle="0" transform="00"/>
+0
+0<circle cx="c" cy="cm" r="1" style="fill:green;stroke:b0i00;"/>
+0<circle cx="cm" cy="cm" r="1" style="0" m="0"/>0<circle cx="c" cy="cm" r="1" style="fill:green;stroke:b0i00;stroke-width:001cm" transform="0,00"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0504.svg b/test/ns-afl-svg/0504.svg
new file mode 100644
index 0000000..9d4f1b0
--- /dev/null
+++ b/test/ns-afl-svg/0504.svg
@@ -0,0 +1,20 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="0" rorm="0">
+0<stop stop-c="0" t="0"/>
+0<stop stop-r="0" offset="0"/>0
+0
+0<stop Zop-color="0" of="0"/>
+0<stop top-color="0" ot="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,0-00,00-00c00,0,00,0,0,0c000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#000000)"/>
+0<path d="M00,00c0,000,00000,000000000000000000000000000000000000000000000000,0000,00-000000000,0c0,0,00,0,00,0000,0000,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0000l00,00v00l000,00h000000-00 0000-00 00 0 00-000 00-000-00-00-000-00-000 00-000 000-000 0000-0000000000000000-00-000 00-000-00-000 00-000 000-000 000 000 000 000 000 00 000-000 000-000 000-000 000
+000 000 000-00 0000-00 000-00 000 0 00000000000000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h00000,00v00l000,00h000 00-00 0000-00 00 0 00-000 00-000-00-00-000-00-000 00-000 000-00T00000-000
+000 0-00 00-000 00-000 0-000 0-000-0-000-0-00-0-00-0-000-00-00-0-00-0000-000-000-00-0 00-0 000 0 000 0000 0 00 00 00
+0 00 0 00 00 00 0 00 0 00 00 00 000 000 000 000 000 000 000-000 000 0 000
+0000000000000000000000000000000000000000000000000000000000000000000-00v0000" se="0" fill="l0n0"/>0
+0<path d="M00,0h00000,00v00l000,00h000 00-000T000-00 00 0 00-000 00-000-0000000000000000000"/>0<ellipse rx=" "/>0<pse rx="0" ry="0" m="0" fill="0"
+acity="0"/>0</svg>
diff --git a/test/ns-afl-svg/0505.svg b/test/ns-afl-svg/0505.svg
new file mode 100644
index 0000000..543fc72
--- /dev/null
+++ b/test/ns-afl-svg/0505.svg
@@ -0,0 +1,82 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c00ext000co000'/>0<g transform='000'>0<circle cx='0' cy='0' r='1' fill='y0l00w'/>0<circle cx='0' cy='0' r='5' fill='b0a00'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M000 000A00000000' stroke='black' stroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='h0n0' stroke='h0u0'/>">]>
+<svg width="px" hSight="0" n="0" xmlns="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="blue"/>
+0<g fonte="0">
+0<text x="0" y="0">0</text>
+0<g transform="00">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="000000000000,0000">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="000000000000,0000">&Viewport0;</g>
+0<g d="0" transform="00000000000000000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0"
+h="0" t="0">&Smile;</svg></g>
+0<g transform="000000000000,00"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0 0 3 4" width="0" e="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" heijht="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg preatio="0" viewBox="0 0 3 4"
+width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&V;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4"
+t="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0506.svg b/test/ns-afl-svg/0506.svg
new file mode 100644
index 0000000..51b4464
--- /dev/null
+++ b/test/ns-afl-svg/0506.svg
@@ -0,0 +1,22 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="=" cy="cm" r="1" style="fill:r0d0" w="0"/>
+0<circle cx="cm" cy="cm" r="D" style="stroke:b0t00blu000id000000" transform="0" rm="0"/>
+0
+0
+0</g>
+0
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="=" cy="cm" r="1" style="fill:r0d0" w="0"/>
+0<circle cx="cm" cy="cm" r="D" style="stroke:b0t00blu000id000000" transform="00" Um="0"/>
+0<circle cx="cm" cy="cm" r="D" style="stroke:b0t00blu000id000000" transform="translate(00,000)"/>
+0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0507.svg b/test/ns-afl-svg/0507.svg
new file mode 100644
index 0000000..b26f8e6
--- /dev/null
+++ b/test/ns-afl-svg/0507.svg
@@ -0,0 +1,354 @@
+<svg olns="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" gradientTransform="rotate(0">
+0<stop stop-color="0000000" offset="0"/>
+0<stop stop-color="g0a0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="s0g00n" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="M0000.000.000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000 00-00 000-00 0000-00 000-000 00000 00.000000.0000000000000=0000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,0-00-0@000000000000000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,000000-0000000000l00000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.00000000.00000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000,000,000,000M00000000000000000000000000000000000000000000000000000000000000,000000,00000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000,000000000000000000000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,00000,00000000000 000000,0000M0000000000000000000000000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,000000,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,0000000000000000,00000000000000000=00,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="M00,00c0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0
+
+0<cirCle r="4" cx="0" v="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c00000,0000000000"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle b="0" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<ci r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" y="0" fill="0"/>0
+0<ci r="0" cx="0" cy="0" fill="0"/>0
+0<ce r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<ci r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" id="0" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<ci r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0
+
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<ci r="0" cx="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<ci r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<ci r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<ci r="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" id="0" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<ci r="0" cx="0" cy="0" fill="0"/>0
+0<Wath d="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fiill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" y="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" y="0" fill="0"/>0
+0
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>
+0<path d="0" fill="0"/>
+0<path d="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" id="0" style="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>
+0<circLe r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fiill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" id="0" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<Wath d="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0"/>0
+0
+0
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0
+
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0<path d="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" ficx="0" cy="0" fill="0"/>0
+0<cirCle r="0"/>0
+0
+
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" id="0" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0
+
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" Yx="0" cy="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fiill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<AimCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" y="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>
+0
+
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0
+
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" id="0004" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>0<circle r="0" cx="0" cy="0" fill="0"/>0</svg>
diff --git a/test/ns-afl-svg/0508.svg b/test/ns-afl-svg/0508.svg
new file mode 100644
index 0000000..1f7a370
--- /dev/null
+++ b/test/ns-afl-svg/0508.svg
@@ -0,0 +1,16 @@
+<svw olns="0" Box="0">
+0<lefè00>
+0<lefè00 x="">
+0<lefè
+svw olns="0" Box="0">
+0<lefç00 m="">
+0<l00è
+` m="">
+0<lefè00>
+0<lefè00>
+0<lefè
+svw olns="0" Box="0">
+0<lefç00>
+0<lefè
+`>
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0509.svg b/test/ns-afl-svg/0509.svg
new file mode 100644
index 0000000..34070f6
--- /dev/null
+++ b/test/ns-afl-svg/0509.svg
@@ -0,0 +1,47 @@
+<?l?>
+<!DOCTYPE Ú0 PUBLIC "0" "0">
+<svg xmlns="000000000000000000000">
+0<style type="0">
+0
+0</style>
+0<g style="0">0<circle z="0" cy="0" r="1" style="fill:r0d0 stroke:" w="0"/>
+0<circle cx="cm" cy="0" r="1" style="stroke:b0a00ulu000e stroke-width:0K0" transform=","/>
+0<circle cx="cm" cy="c" r="1" style="stroke:b0a00ulu000e" transform="translate(0,0"/>
+0<circle cx="cm" cy="c" r="1" style="stroke:000000000000 stroke-width:t;" transform="0" wrarm="0"/>
+0
+0<circle cx="cm" cy="c" r="1" style="stroke:000000000000000000000 stroke-width:00n;" transform="0" m="0"/>
+0
+0<circle cx="cm" cy="c" r="1" style="stroke:000stroke-width:0K000" transform="translate(0,0,"/>
+0<circle cx="cm" cy="c" r="1" style="stroke:b0a00ulu000e" transform="0" wform="0"/>
+0<circle cx="cm" cy="c" r="S" style="stroke:b0a00kl stroke-width:t;" transform="0" m="0"/>
+0
+0<circle cx="cm" cy="c" r="1" style="stroke:000000000000000000000 stroke-width:t;" transform="0" m="0"/>
+0
+0<circle cx="cm" cy="c" r="1" style="stroke:b0a00ulu000e stroke-width:y" transform="translate(0,0,"/>
+0<circle cx="cm" cy="c" r="1" style="stroke:b0a00ulu000e" transform="0" wform="0"/>
+0<circle cx="cm" cy="c" r="S" style="stroke:b0a00ke" transform="translate(0,0,"/>
+0<circle cx="cm" cy="c" r="1" style="stroke:b0a00ulu000e" transform="0" m="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0a00ulu000e" w="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0a00ulu000e stroke-width:0cm" transform="translate(0,0,"/>
+0<circle cx="cm" cy="c" r="1" style="stroke:b0a00ulu000e stroke-width:0K0" transform="translate(0,0,"/>
+0<circle cx="cm" cy="c" r="1" style="stroke:b0a00ulu000e stroke-width:t;" transform="0" wrarm="0"/>
+0
+0<circle cx="cm" cy="c" r="1" style="stroke:000000000000000000000 stroke-width:t00;" transform="0" m="0"/>
+0
+0
+0<circle cx="cm" cy="c" r="1" style="stroke:b0a00ulu000e" transform="0" m="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0a00ulu000e" w="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:000stroke-width:0K000" transform="translate(0,0,"/>
+0<circle cx="cm" cy="c" r="1" style="stroke:b0a00ulu000e" transform="translate(0,00,"/>
+0<circle cx="cm" cy="c" r="1" style="stroke:b0a00ulu000e stroke-width:t;" transform="00" wrarm="0"/>
+0
+0<circle cx="cm" cy="c" r="1" style="stroke:000000000000000000000 stroke-width:t;" transform="00" m="0"/>
+0
+0<circle cx="cm" cy="c" r="1" style="stroke:b0a00ulu000e stroke-width:0K000" transform="translate(00,00,"/>
+0<circle cx="cm" cy="c" r="1" style="stroke:b0a00ulu000e" transform="00" wform="0"/>
+0<circle cx="cm" cy="cm" r="S" style="stroke:b0a00ke" transform="translate(00,00,"/>
+0<circle cx="cm" cy="c" r="1" e="0" transform="00" m="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0a00ulu000e stroke-width:0*"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0a00ulu000e"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0a00ulu000e stroke-width:0*"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0510.svg b/test/ns-afl-svg/0510.svg
new file mode 100644
index 0000000..898254a
--- /dev/null
+++ b/test/ns-afl-svg/0510.svg
@@ -0,0 +1,92 @@
+<svg xmlns="0000000000" Box="0" stroke-wiwBox="0">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="c0t0" offset="0"/>
+0
+0<dtop r="0" f="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M20,0c0,0,00,0,20,120c0,0-0,00-10,12l-24,0c00,0-00,0-14,10l0,00l-9,0c00,0-00-0-13-20c0-00,0-00,0-20i0000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" c="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c00000000000000000000000000000000000000000000000000000000000000000000000000"/>
+0<path d="M70,00c090-0,00-00,104,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00000000,00L000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M70,87c0,73-230-20-0-24108.00000000000000000000000000000000000000000000000000000.0000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c000000000000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000000000000000000000000000000000000000000000000000000000000000000-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M04,80c090-0,00-00,120,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-20,120-00l0-02c0-0,0-00,200-20-00000000000000000000,00000000000000000000,0000000000000000,000000l000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,000000000000000000000000000000000000000000000000000000000000000000,000,0000,0l0,000,00000000000,000,0,0000,000000000000,000,0,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" u="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M74,80c0,73-230-20-0-24100.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0511.svg b/test/ns-afl-svg/0511.svg
new file mode 100644
index 0000000..84bf5eb
--- /dev/null
+++ b/test/ns-afl-svg/0511.svg
@@ -0,0 +1,150 @@
+<?l?>
+<svg ion="0" xelns="0" width="D" height="0" style="0" n="0">
+0<scrDDDDDDDDDDDDDDDDDDDDDDipt typx="0"/>
+0<path d="M00,00c0000-00-00-00,0000,000,000"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" fill="0"/>0
+0<KfK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<pKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" e="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<toxt x="0"/>
+0<KKKKKKKKKKKKKKKKKext d="0" e="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" e="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKIKKKext d="0" e="0" fill="0"/>0
+0<KKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" e="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKPKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text W="0"/>
+0<KKKKKKKKKKKKKKKKKext d="0" e="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpatext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" e="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpnth d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKDKKKKKKKKKKKQKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKIKKKext d="0" e="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" e="0" qill="0"/>0
+0<KKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<teKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKOKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="n"/>0
+0<KKK-KKEKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" finl="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<pazKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKpKKKKKKKK6KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKlKKKKKKKKKKKKKKKKKKK-Kpnth d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKQKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKIKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKK0KKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKPKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK_KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLLLLKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<pKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<toxt x="0"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK0KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKmKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKLLLLLLLLLLLt ty="0" rx="0"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/0512.svg b/test/ns-afl-svg/0512.svg
new file mode 100644
index 0000000..518ec97
--- /dev/null
+++ b/test/ns-afl-svg/0512.svg
@@ -0,0 +1,351 @@
+<svg olns="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" gradientTransform="rotate(00)">
+0<stop stop-color="d0e0" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="000000000000000000000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#000000" fill="url(#000000"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow"/>0
+0<cirCle r="0" x="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#r0000" fill="url(#00=00"/>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fidl="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000a0000000000000000000000000000000000000000000000000000C00000000000000000000000000000000000000000000000000000000000000000000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,00L000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000000000000000000000000000000000000000000000000000000000" fill="url(#00=00"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c000000000000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-00-000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#00000"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00=00"/>
+0<path d="000,00000000,0000000000"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000e)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" x="0" y="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" x="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000a0000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" y="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000000,000,0,0000,00000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0513.svg b/test/ns-afl-svg/0513.svg
new file mode 100644
index 0000000..61856ef
--- /dev/null
+++ b/test/ns-afl-svg/0513.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" xmlns:xlin0="0000" viewBox="0 0 1 2">
+0<radialGradient im="0" cx="0" cy="0" t="0" grntUnits="0"><stop ot="0" op-c="0"/><op ot="0"/></radialGradient>
+0<path d="M0,0A0,0 0,0,0 0,0C0,0 0,0 0,0C0,00 00,00 00,0C000,00 00,00 00,00" id="0" fill="d0l00drs00"/>
+0<use xlin0:href="0" transform="0"/>0</svg>
diff --git a/test/ns-afl-svg/0514.svg b/test/ns-afl-svg/0514.svg
new file mode 100644
index 0000000..67c3297
--- /dev/null
+++ b/test/ns-afl-svg/0514.svg
@@ -0,0 +1 @@
+ \ No newline at end of file
diff --git a/test/ns-afl-svg/0515.svg b/test/ns-afl-svg/0515.svg
new file mode 100644
index 0000000..42cc8ec
--- /dev/null
+++ b/test/ns-afl-svg/0515.svg
@@ -0,0 +1,347 @@
+<svg wBox="0">
+0<defs>0<linearGradient id="pyYellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>0
+0
+0<stop stop-color="f0b0" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="000" e="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<p op-c="0" t="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0000" ra_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="url(00"/>
+0<path d="0" f="0"/>
+0
+0
+0<stop slor="0" f="0"/>
+0
+0<stop r="0" f="0"/>
+0
+0
+0<stop r="0" offset="0"/>
+0
+0<stop r="0" offset="0"/>
+0<stop r="0" t="0"/>
+0
+0
+0<stop r="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="0"/>0
+0<ci r="0" cx="0"/><stop st="0" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop sr="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000,00,0,0000,0000000000000000"/>0
+0<circle r="0" cx="0"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000,00000000,000,00000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000000000000000000000,0000000,000000000000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,00000,00,0,0000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,10000,0
+0,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" ky="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="000,00000000,00"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0000000000 00-00-00 00-00 000-00 0000-00 0000000000,000" fill="#000000"/>
+0<path d="M000,00000,00,0,0000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c090-0,00-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0
+0<circle r="0" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-00000,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-6-000000000070000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0"/>0
+0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,10-00l00,0c0,0,00-0,00-10l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,0000,000000000000,000000000"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000.)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="0000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00l0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-8,00-00,004-00l0-20c0-7,0-00,-00100.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" ficy="0" fill="#000"/>
+0<cihcle r="0" cx="0" cy="0" fill="0"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c097-8,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx=")"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00000,00000,000-00000000000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" nill="0"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,00000000 000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,00-00,124-00l0-20c0-7,0-00,10-00l24,0c0,0,00-0,04-10l0-10l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" iill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="h" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-8,00-00,004-00l0-20c0-7,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-000v0" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,00-00,124-00l0-20c0-7,0-00,10-00l24,0c0,0,00-0,14-10l0-10l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" iill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0516.svg b/test/ns-afl-svg/0516.svg
new file mode 100644
index 0000000..246a1d9
--- /dev/null
+++ b/test/ns-afl-svg/0516.svg
@@ -0,0 +1,7 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">0
+0<path d="M00,0h00l00,00v00l000,00h0l0-00v000z" stroke="s0q0" fill="n0e0"/>0
+0<path d="M00,0h00l00,00v00l000,00h0l0-00v000z" fill="#K00"/>0
+0<text x="0" y="0" font-size="0" l="0" text-ar="0"><![CDATA[0]]></text>
+0<path d="M00,0h00l00,00v00l0,00h000l000-00v0z" stroke="s0q0" fill="n0e0"/>0
+0<path d="M00,0h00l00,00v00l0,00h000l000-00v0z" fill="#K00"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0517.svg b/test/ns-afl-svg/0517.svg
new file mode 100644
index 0000000..9deb02a
--- /dev/null
+++ b/test/ns-afl-svg/0517.svg
@@ -0,0 +1,15 @@
+<svg xmlns="00000000000000000000000000" d="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient x1="0" y1="0" x2="0" y2="0" d="0">
+0<p ot="0" stop-colo0="0" p-0="0"/>
+0<sp e0="0" stop-color="0" ty="0"/>
+0<op ot="0" or="0" sy="0"/>
+0</linearGradient>
+0</defs>
+0<g transform="scale(9)">
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="#000000"/>
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="#000000"/>
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="u0t00nsf000ar0000"/>
+0<path fill="none" stroke="#000" stroke-width="6" d="M0 0A0 0 0 0 0 0,0A0 0 0 0 0 0 00z" transform="matrix(0,0,0,6,0,0)"/>
+0<rect fill="#000" stroke="none" width="0" height="0" x="0" y="0" transform="matrix(0..0.0,7,0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0518.svg b/test/ns-afl-svg/0518.svg
new file mode 100644
index 0000000..c2e3f8f
--- /dev/null
+++ b/test/ns-afl-svg/0518.svg
@@ -0,0 +1,37 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='n0d'/>0<g transform='translate(0,0)'>0<circle cx='0' cy='!' r='1' fill='y0`00w'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M0 0A0 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t "">
+<!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" n="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="b0u0"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport2;</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4"
+h="0" t="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0 0 3 4" width="0" e="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&o;
+0<svg pre="0" viewBox="0 0 3 4"
+idzh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg prpTctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0519.svg b/test/ns-afl-svg/0519.svg
new file mode 100644
index 0000000..5bbb105
--- /dev/null
+++ b/test/ns-afl-svg/0519.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke: i0c00cle000on0" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0520.svg b/test/ns-afl-svg/0520.svg
new file mode 100644
index 0000000..97fed4e
--- /dev/null
+++ b/test/ns-afl-svg/0520.svg
@@ -0,0 +1,2 @@
+<svg viewBox='0 0 6 2' xmlns='00'>
+0<path d='M00,00c00,0-0-0,0-0l00,00- 000000000000000000000000000000000000000000000000000000000,0000,000,0,0,0000,0,00,00,00,00000,000,00000' fill='s0l00ask'/>0</svg>
diff --git a/test/ns-afl-svg/0521.svg b/test/ns-afl-svg/0521.svg
new file mode 100644
index 0000000..cab7f12
--- /dev/null
+++ b/test/ns-afl-svg/0521.svg
@@ -0,0 +1,15 @@
+<svg xmlns="00000000000000000000000000" id="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient x1="0" y1="0" x2="0" y2="0" id="0pen0earchg">
+0<stop offset="0" stop-color="#000*00" t0="0"/>
+0<stop offset="0" stop-color="#000000" y="0"/>
+0<stop offset="0" stop-color="#@00000" y="0"/>
+0</linearGradient>
+0</defs>
+0<g transform="scale(9)">
+0<rect width="0" height="0" r="0" r0="0" x="0" y="0" fill="#000000"/>
+0<rect width="0" height="0" r="0" r0="0" x="0" y="0" fill="#000000"/>
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="url(#0pen0earchg)"/>
+0<path fill="none" stroke="#000" stroke-width="6" d="M0 0A0 0 0 0 0 0,0A0 0 0 0 0 0 00z" transform="matrix(0,0,0,6,0,0)"/>
+0<rect fill="#000" stroke="none" width="0" height="0" x="0" y="0" transform="matrix(0..0,0,7,0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0522.svg b/test/ns-afl-svg/0522.svg
new file mode 100644
index 0000000..6746c9b
--- /dev/null
+++ b/test/ns-afl-svg/0522.svg
Binary files differ
diff --git a/test/ns-afl-svg/0523.svg b/test/ns-afl-svg/0523.svg
new file mode 100644
index 0000000..b72512c
--- /dev/null
+++ b/test/ns-afl-svg/0523.svg
@@ -0,0 +1,18 @@
+<svg xmlns="000000000000000000" viewBox="0" fill="s0n0">
+0<path d="M0,00000m" transform="translate(0)"/>0<circle cpppppppppppppppppppppppppppppppppppppppppppppppppppppx="0" cy="0" r="1" style="fill:b0u0;stroke:o0e00lac0;stroke-width:001cm" trasform="0"/>
+0<circle cx="cm" cy="cm" r="N" fill="url00low0"/>
+0<circle cx="0" cy="cm" r="N" fill="url00low0"/>0
+0<circle r="4" cx="0" cy="," style="fill:blue;stroke:black;stroke-width:1em" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00;" fill="url00low0"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,0000,00l000,0000000000000000000000000,0000,000000000000000000" fill="url00low0"/>0
+0<circle r="4" cx="0" cy="0" fill="url00low0"/>
+0<circle r="4" cx="0" cy="," style="fill:blue;stroke:black;stroke-width:1em" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00;" fill="url00low0"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,0000,N,00000,000000,0000,0000,0000,0000000000,0000,000000000000000000" fill="url00low0"/>0
+0<circle r="4" cx="0" cy="0" fill="url00low0"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0524.svg b/test/ns-afl-svg/0524.svg
new file mode 100644
index 0000000..629b342
--- /dev/null
+++ b/test/ns-afl-svg/0524.svg
@@ -0,0 +1,16 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="stroke-width:001cm" transform="translate(0"/>
+0
+0<circle cx="cm" cy="pt" r=":" transform=",0"/>0<circle cx="pc" r="1" style="fill:blue;stroke:black;stroke-width:001cm" transform="translate(0"/>
+0
+0<circle cx="cm" cy="pt" r="'" transform=",0"/>0<circle cx="pc" r="1" style="fill:blue;stroke:black;stroke-width:001cm" transform="translate(0"/>
+0
+0<circle cx="cm" cy="pt" r="1" style="fill:blue;stroke:black;stroke-width:001cm" transform="translate(0"/>
+0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0525.svg b/test/ns-afl-svg/0525.svg
new file mode 100644
index 0000000..e7dc07a
--- /dev/null
+++ b/test/ns-afl-svg/0525.svg
@@ -0,0 +1,7 @@
+<s xmlns="00000000000000000000000000" x="0">
+0<ath d="0" stroke="0" ill="0"/>0
+0<ath d="0" fill="0" Box="0">
+0<path d="0" stroke="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" t-ar="0"><![CDATA[]]>0
+0<text x="0" y="0" font-size="0" fill="0" t-ar="0"><![CDATA[]]>]]> \ No newline at end of file
diff --git a/test/ns-afl-svg/0526.svg b/test/ns-afl-svg/0526.svg
new file mode 100644
index 0000000..59c5f8e
--- /dev/null
+++ b/test/ns-afl-svg/0526.svg
@@ -0,0 +1,5 @@
+<svg i='0' xmlns='h00' fill='000' strokS='0'>
+0<svg vivxx='0' xmlns='h00' fill='0000000000000' stroke='0'>
+0<path d='M0,0c0,0-0,0-0,0-' fill='s0y00tax000ns00000' stroke='black'/>0
+0<svg vivxx='0' xmlns='h00' fill='0000000000000' stroke='0'>
+0<path d='M0,0c0,0-0,0-0,0-' fill='s0y00tax000ns00000' stroke='black'/>0</svg><path d='M0,0c0,0-0,0-0,0-' fill='s0y00tax000ns00000' stroke='black'/>0</svg><path d='M0,0c0,0-0,0-0,0-' fill='s0y00tax000ns00000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/0527.svg b/test/ns-afl-svg/0527.svg
new file mode 100644
index 0000000..ff18658
--- /dev/null
+++ b/test/ns-afl-svg/0527.svg
@@ -0,0 +1,377 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="c0a0" offset="0"/>
+0
+0<stop stop-color="#000" f="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M20,0c15,0,20,6,20,122c0,0-0,0-11,12l-24,0c00,0-14,0-14,10l0,10l-9,0c00,0-13-0-13-24c0-00,0-00,0-20-00000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" id="0000" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00000000000000000000000000000000000000000000000000000000000000000000000000000"/>
+0<path d="M70,80c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#r" fill="url(#00000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0000000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-00000000000000" fill="u0e0"/>
+0<path d="M70,87c0,73-230-20-0-24108.00000000000000000000000000000000000000000000000000000.0000000000000000" x="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#00000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#00000"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M70,87c0,73-230-20-0-24108.00000000000000000000000000000000000000000000000000000.0000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000c000000c000000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" ll="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" ll="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000"/>
+0<path d="M00,00c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#000000)"/>
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" ll="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00)"/>
+0<path d="M70,80c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#0"/>
+0<path d="M70,80c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,100-10l0-20c0-0,0-00,10-10l20,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,10-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<jath d="0" ll="0"/>0
+0<cirCla r="0" ll="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,100-10l0-20c0-0,0-00,10-00l20,0c0,0,00-0,10-15l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,00-00,124,50s0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M70,80c000-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,100-00l0-02c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="" fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-20,100-10l0-20c0-0,0-00,10-00l20,0c0,0,00-0,10-15l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0528.svg b/test/ns-afl-svg/0528.svg
new file mode 100644
index 0000000..631138a
--- /dev/null
+++ b/test/ns-afl-svg/0528.svg
@@ -0,0 +1,6 @@
+<svg xmlns="00000000" xmlns:xlin0="0" viewBox="0 0 1 2">0<radialGradient d="0" x="0" cy="0" r="0" ts="0"><op ot="0" s0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000-c="0"/><sp ot="0"/></radialGradient>
+0<path d="M00,0A000,00 0,0,0 00,0C00,00 00,00 00,000C0,00 00,00 00,000C0,00 00,00 00,00" id="0" fill="l0c00qle00"/>
+0<use xlin0:r0f="0" transform="0"/>0
+0<radialGradient id="0" cx="0" cy="0" r="0" ts="0"><s00p ot="0" o0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,000A0,00 0,0,0 00,000C00,00 00,00 00,0C000,00 00,00 00,000C000,00 00,00 00,00" id="0" fill="l0c00qle00"/>
+0<use xlin0:href="0" t="0"/>0</svg>
diff --git a/test/ns-afl-svg/0529.svg b/test/ns-afl-svg/0529.svg
new file mode 100644
index 0000000..40d25da
--- /dev/null
+++ b/test/ns-afl-svg/0529.svg
@@ -0,0 +1,2 @@
+<svg xmlns="0000000000" viewBox="0">
+0<path d="M0,00q0-00,00-00q0-00,00-00q0000,00-00000000000000000,000000000000,00q00,000,000000000000000000000,0000000,00000,0,0,000,0,00,000" fill="g0u00"/>0</svg>
diff --git a/test/ns-afl-svg/0530.svg b/test/ns-afl-svg/0530.svg
new file mode 100644
index 0000000..3889531
--- /dev/null
+++ b/test/ns-afl-svg/0530.svg
@@ -0,0 +1,18 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="0000000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="c" cy="cm" r="1" style="fill:r0d0 stroke:" wransform="0"/>0<circle cx="cm" cy="cm" r="1" style="stroke:o0f00tlu000e" wransform="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:o0f00tlu000e stroke-width:0K000" m="0"/>
+0
+0
+0<circle cx="cm" cy="cm" r="1" style="stroke:o0f00tlu000e stroke-width:0K000" traWsform="0"/>
+0
+0
+0<circle cx="cm" cy="0" r=":" wransform="0"/>
+0<circle cx="cm" cy="0" r="1" style="stroke:o0f00tlu000e" w="0"/>
+0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0531.svg b/test/ns-afl-svg/0531.svg
new file mode 100644
index 0000000..58fcd1f
--- /dev/null
+++ b/test/ns-afl-svg/0531.svg
@@ -0,0 +1,48 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,0,00c0,0-0,00-00,0000000000000000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,00000000000000000000000000000000c0,00-0,00-00,00l000,0l0,00000000000000000000000=00000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c00000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,0000000X000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0532.svg b/test/ns-afl-svg/0532.svg
new file mode 100644
index 0000000..f123f1d
--- /dev/null
+++ b/test/ns-afl-svg/0532.svg
@@ -0,0 +1,285 @@
+<svg xmlns="0000000000" Box="0">
+0<path d="0" stroke="0" fill="0"/>0
+0<path d="0"/>
+0<![CDATA[0
+0
+0
+0
+0
+0
+
+0]]><![CDATA[0
+
+0
+0
+0]]><![CDATA[0
+0
+0
+0
+0
+0
+0
+
+0]
+0
+0
+0]]><![CDATA[0
+0
+0
+0
+0
+0
+0
+
+0]]><![CDATA[0
+0
+0
+0
+0]]><![CDATA[0
+0
+0
+0
+0
+0
+0
+
+0]]
+0
+0
+0
+0
+0
+0
+0
+
+0]]><![CDATA[0
+0
+0
+0
+0]]><![CDATA[0
+0
+0
+0
+0
+0
+0
+
+0]]><![CDATA[0
+0
+0
+0]]><![CDATA[0
+0
+0
+0
+0
+0
+0
+
+0]]><![CDATA[0
+0
+0
+0
+0]]><![CDATA[0
+0
+0
+0
+0
+0
+0
+
+0]]><![CDATA[0
+0
+0
+0
+0
+
+0
+0
+]]><![CDATA[0
+0
+0
+0
+0]]><![CDATA[0
+0
+0
+0
+0
+0
+0
+
+0]]><![CDATA[0
+0
+0
+0
+0
+
+0
+0
+
+0
+0
+0
+0
+0
+0
+
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+
+0
+0
+0
+0
+0
+0
+0]]><![CDATA[0
+0
+0
+0
+0
+0
+0
+
+0]]><![CDATA[0
+0
+0
+0
+0]]><![CDATA[0
+0
+0
+0
+0
+0
+0
+
+0]]><![CDATA[0
+0
+0
+0]]><![CDATA[0
+0
+0
+0
+0
+0
+0
+
+0]]><![CDATA[0
+0
+0
+0
+0]]><![CDATA[0
+0
+0
+0
+0
+0
+0
+
+0]
+0
+0
+0
+0
+0
+0
+0
+
+0]]><![CDATA[0
+0
+0
+0
+0]]><![CDATA[0
+0
+0
+0
+0
+0
+0
+
+0]]><![CDATA[0
+0
+0
+0]]><![CDATA[0
+0
+0
+0
+0
+0
+0
+
+0]]><![CDATA[0
+0
+0
+0
+0]]><![CDATA[0
+0
+0
+0
+0
+0
+0
+
+0]]><![CDATA[0
+0
+0
+0
+0
+
+0
+0
+]]><![CDATA[0
+0
+0
+0
+0]]><![CDATA[0
+0
+0
+0
+0
+0
+0
+
+0]]><![CDATA[0
+0
+0
+0
+0
+
+0
+0
+
+0
+0
+0
+0
+0
+0
+
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+
+0
+0
+0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0533.svg b/test/ns-afl-svg/0533.svg
new file mode 100644
index 0000000..90aa80c
--- /dev/null
+++ b/test/ns-afl-svg/0533.svg
@@ -0,0 +1,5 @@
+<svg ox='0' xmlns='0' drofill='0' stroke='0'>
+0<path d='M0,0c00,0-0,0-0,00-' fill='d0l00tax000ts00000' stroke='black'/>
+0<svg vivox='0' xll='0' stroke='0'>
+0<path d='M00,00c00,0-0,0-0,00-00' fill='d0l00tax000ts00000' stroke='black'/>
+0</svg>0</svg>
diff --git a/test/ns-afl-svg/0534.svg b/test/ns-afl-svg/0534.svg
new file mode 100644
index 0000000..97a55c6
--- /dev/null
+++ b/test/ns-afl-svg/0534.svg
@@ -0,0 +1,7 @@
+<svg Ãs="0" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l0,00h000l000-00v00 0-00 0-00-00-00-0 00-00v000z" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M0,0h0l0,0l0,0h0-0-00 00-00v000z" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M0,0h0l0,0l0,0h0l0-0v0l0-0v0z" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="z" l="0"/>0
+0<text x="0" y="0" t-se="0" ll="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0535.svg b/test/ns-afl-svg/0535.svg
new file mode 100644
index 0000000..0d9a490
--- /dev/null
+++ b/test/ns-afl-svg/0535.svg
@@ -0,0 +1,123 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" gra_ieorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="q0`00"/>0
+0<circle r="0" cx="0" cy="0" ot="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,00,00c0,0-0,00-00,000000000000000000000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000"/>0
+0<circle r="4" cx="u"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,000000-0,00-00,000,0000" fill="u0y00llo00"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="00000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-000
+4,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" ky="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l000000-000 00-00-00 00-00 000-00 0000-00 0l00000000000" fill="#000000"/>
+0<path d="0000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+
+0<circle r="z" fill="#000000"/>0
+0<circle r="4" cx="Y" cy=","/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000000000000000000000000000000000000000000000t0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="00000000000000000000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0000000000000000000000000000000000000000000000000000M0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<lircle r="0" fill="0"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-04-6-000080000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" film="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0536.svg b/test/ns-afl-svg/0536.svg
new file mode 100644
index 0000000..5db6c7f
--- /dev/null
+++ b/test/ns-afl-svg/0536.svg
@@ -0,0 +1,79 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0a00bac000th' stroke='r0d'/>0<g transform='translate(0,0)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='1' fill='b0a00'/>0<circle cx='0' cy='0' r='5' f='0'/>0<path d='M0 00A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" ion="0" xmlns="00">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="blue"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&Viewport2;</g>
+0<g id="0" height="px" ion="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="blue"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport2;</g>
+0
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg xro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg Aso="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&p;
+0<svg patio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presetRatio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0537.svg b/test/ns-afl-svg/0537.svg
new file mode 100644
index 0000000..8a49b82
--- /dev/null
+++ b/test/ns-afl-svg/0537.svg
@@ -0,0 +1,4 @@
+<_vg xmlns="00000000000000000000000000" o="0">
+0<path d="0" stroke="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0538.svg b/test/ns-afl-svg/0538.svg
new file mode 100644
index 0000000..f9a3722
--- /dev/null
+++ b/test/ns-afl-svg/0538.svg
@@ -0,0 +1,3 @@
+<svg é00="0"><g>0
+<svg xmlns="00000000" transform="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0539.svg b/test/ns-afl-svg/0539.svg
new file mode 100644
index 0000000..4694726
--- /dev/null
+++ b/test/ns-afl-svg/0539.svg
@@ -0,0 +1,7 @@
+<svg xmlns="00000000000000000000000000" o="0">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="n0f00wid00"/>0
+0<path d="M0,0h0l0,0-" fill="#000"/>0
+0<text x="0" y="0" t-e="0" l="0" text-ar="0"><![CDATA[0]]></text>
+0
+0<path d="M0,0h0l0,0v0l0,0d" stroke="#000" fill="n0f00wid00"/>0
+0</svg>
diff --git a/test/ns-afl-svg/0540.svg b/test/ns-afl-svg/0540.svg
new file mode 100644
index 0000000..f446a93
--- /dev/null
+++ b/test/ns-afl-svg/0540.svg
@@ -0,0 +1,37 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" r="0"/>
+0<stop set="0"/>
+0<stop slor="0" oset="0"/>
+0<stop op0c="0" t="0"/>
+0
+0<stop sp-r="0" offset="0"/>
+0<stop sSop-c="0" t="0"/>
+0
+0</defs>0
+0<pahh d="0" l="0"/>
+0<path d="M00,00c0,00-000-00-0-00-00" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0-00000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,000000000 000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,00000000000000000000000000000000000000000000000000000000000000 000-0 000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,00000000 000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000 00000000,00000000 000000,00000000 0" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00#"/>0</svg>
diff --git a/test/ns-afl-svg/0541.svg b/test/ns-afl-svg/0541.svg
new file mode 100644
index 0000000..0b96f17
--- /dev/null
+++ b/test/ns-afl-svg/0541.svg
@@ -0,0 +1,14 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="u0s00n" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,000000000d0000,0000000000000000000000000000000000000000000000000000000000000000000,00000000000000000,0000,000000000000000000,0000000,000000,0000" fill="url(#0000)"/>
+0<path d="M00,00c0,0-8,007000-7,6-00,00000l00,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0542.svg b/test/ns-afl-svg/0542.svg
new file mode 100644
index 0000000..6684150
--- /dev/null
+++ b/test/ns-afl-svg/0542.svg
@@ -0,0 +1,27 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:i="0" xmlns:inkscape="0" width="0" height="0" id="0">
+0<defs>
+0<filter inkscape:c="0"
+d="0">
+0<feGaussianBlur inkscape:collect="0"
+n="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<ec id="0" x="0" y="0" th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<ec id="0" x="0" y="0" th="0"
+eht="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" ip-path="0" id="0" width="0" height="0"/>
+0<rect style="stroke:b0a00ck;fill:none" iheight="0" x="0" y="0"/>
+0<rect style="0" x="0" y="0"/>
+0<rect style="stroke:b0a00ck;fill:none" iheight="0" x="0" y="0"/>
+0<rect style="stroke:b0a00ck;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0543.svg b/test/ns-afl-svg/0543.svg
new file mode 100644
index 0000000..b8a9bd6
--- /dev/null
+++ b/test/ns-afl-svg/0543.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" style="fill: s0y00blu0;" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill: s0y00blu0;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0544.svg b/test/ns-afl-svg/0544.svg
new file mode 100644
index 0000000..d8408f3
--- /dev/null
+++ b/test/ns-afl-svg/0544.svg
@@ -0,0 +1,5 @@
+<svg xmlns="00000000000000000000000000" x="p" y="0" t-e="0" fill="#000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v000-" fill="#000"/>0
+0<text x="p" y="0" font-size="0" stroke="0" l="0"/>0
+0<path d="M00,0h00l00,00v00l0,000-" fill="#000"/>0
+0<text x="p" y="0" font-size="0" fill="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0545.svg b/test/ns-afl-svg/0545.svg
new file mode 100644
index 0000000..0fe3db4
--- /dev/null
+++ b/test/ns-afl-svg/0545.svg
@@ -0,0 +1,28 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:xlin0="00" xmlns:sodipodi="0t" xmlns:in0scape="000" width="0" height="0" id="0" sodipodi:versio0="0" in0scape:versbo0="0" sodipodi:docnam0="0" in0scape:output_extensio0="0">
+0<defs id="0">
+0<linearGradient id="0" x1="0" x0="0">
+0<stop
+tyle="0"
+t="0" id="0"/>
+0<stop
+le="0"
+set="0" id="0"/>
+0<st0 style="0" et="0" id="0"/>
+0</linearGradient>
+0<linearGradient in0scape:collect="0" xlin0:href="0" id="linearGradient0100" x1="0" y1="0" x2="0" y2="0" gradientUnits="0"/>
+0<linearGradi in0scape:collect="0" xlin0:href="0" id="0" x0="0" y0="0" x2="0" y2="0" gradi="0"/>
+0<linearGradient id="000000000000000000">
+0<stop yle="0" of="0" id="0"/>
+0<st style="0" et="0" id="0"/>
+0<sto style="0"
+ffset="0" id="0"/>
+0</linearGradient>
+0<linearGradien in0scape:collect="0" xlin0:href="0" id="0" x0="0" y0="0" x2="0" y2="0"
+radientUnits="0"/>
+0</defs>
+0<rect style="fill:url(#linearGradient0100);" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="fill:000000000000000000000;" id="0" width="0" height="M" x="0" y="0"/>
+0<rect style="fill:url(#0000000r0000000000);" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="fill:url(#0i0000000000000000);" id="0" width="0" height="0" x="0" y="0"/>0</svg>
diff --git a/test/ns-afl-svg/0546.svg b/test/ns-afl-svg/0546.svg
new file mode 100644
index 0000000..26d3aef
--- /dev/null
+++ b/test/ns-afl-svg/0546.svg
@@ -0,0 +1,21 @@
+<svg ìå000="0">0
+<svg xmlns="00000000000000000">0
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00ncl000ke000000" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00ncl000ke000000 stroke-width:1cm" transform="translate(0,0)"/>
+0<g style="0">0<circle cx="cm" cy="0" r="1" style="fill:r0d;stroke:black;stroke-width:1cm" transform="translate(0,0)"/>
+0<circle w="0" cy="0" r="1" style="fill:b0u0;stroke:t0a00;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00ncl000ke000000" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00ncl000ke000000;stroke-width:1cm" transform="translate(0,0)"/>
+0</g>0</svg>
+0<style e="0">
+0
+0</style>
+0
+0<circle w="0" cy="cm" r="1" style="fill:b0u0;stroke:t0a00;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00ncl000ke000000" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00ncl000ke000000;stroke-width:1cm" transform="translate(0,0)"/>
+0<g style="0">0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle w="0" cy="cm" r="1" style="fill:blue;stroke:t0a00;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00ncl000ke000000" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00ncl000ke000000;stroke-width:001cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0547.svg b/test/ns-afl-svg/0547.svg
new file mode 100644
index 0000000..36ef4f0
--- /dev/null
+++ b/test/ns-afl-svg/0547.svg
@@ -0,0 +1,116 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='r0d00tyl0'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='1' fill='black'/>0<circle cx='0' cy='0' r='5' f='0'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="5px" height="" ion="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" ht="0"
+fill="none" stroke="b0u0"/>
+0<g fze="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&Viewport2;</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&p;
+0<svg psctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg esctRatio="0" ew="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg prt="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg eservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg psetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg pectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg esctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg p="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg esctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00)"><text y="0">0</text>&V;
+0<svg pht="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pservatio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg prbectRatio="0" viewBox="0 0 0 0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" vie="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" vix="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg preseAspectRaTio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0548.svg b/test/ns-afl-svg/0548.svg
new file mode 100644
index 0000000..6aee5d1
--- /dev/null
+++ b/test/ns-afl-svg/0548.svg
@@ -0,0 +1,52 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[ <!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='b0d'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='5' fill='b0a00ck'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0">
+<!ENTITY t "">
+<!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" i="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" hghg="0"
+fill="none" stroke="b0u0"/>
+0<g f="0">
+0<text x="0" y="0">0</text>0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&t0;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&Viewport2;</g>
+0<g d="0" transform="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t0;
+0<svg tio="0" vieight="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg Asp="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g><text y="0">0</text> 0
+0<svg pio="0" viewBox="0 0 3 4" width="0" h="0">&Smile;</svg></g>
+0<g trfnsform="0"><text y="0">0</text>&Viewport2;
+0<svg prRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presero="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg preserv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preseAso="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0549.svg b/test/ns-afl-svg/0549.svg
new file mode 100644
index 0000000..c183ba0
--- /dev/null
+++ b/test/ns-afl-svg/0549.svg
@@ -0,0 +1,19 @@
+<?l?>
+<!DOCTYPE s00 PUBLIC "0" "0">
+<svg r="0" style="fill:p0o00rsv0">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="0"/>
+0<circle cx="cm" cy="0" r="1" style="fill:g0e0 stroke:000;" transform="0,0"/>0
+0<circle U="0" cy="cm" r="1" style="fill:g0e0 stroke:b0a00;" transform="00,00"/>
+0<circle cx="cm" cy="0" r="1" style="fill:g0e0 stroke:b0a00;" transform="000"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e0 stroke:black;" transform="0,0"/>0<circle cx="cm" cy="cm" r="1" style="fill:g0e0 stroke:000;" transform="0,0"/>0
+0<circle U="0" cy="cm" r="1" style="fill:g0e0 stroke:black;" transform="00,0000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e0 stroke:b0a00;" transform="000"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e0 stroke:black;" transform="00000,0"/>
+0<circle cU="0" cy="cm" r="1" style="fill:g0e0 stroke:black;" transform="0,00000000,0000"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0550.svg b/test/ns-afl-svg/0550.svg
new file mode 100644
index 0000000..6f8bb45
--- /dev/null
+++ b/test/ns-afl-svg/0550.svg
@@ -0,0 +1,17 @@
+<sv0 th="0" ox="0" re-h="0">0<svg xmlns="http://www.w3.org/2000/svg/200K/svg" xmlns:xlin0="000" xmlns:sodipodi="00" xmlns:in0scape="00"
+th="0"
+ht="0" id="0" sodipodi:ion="0" in0scape:vÁ0="0">
+0<defs>
+0<fr in0scape:cot̬̀="0" e="0" in0scape:output_extension="0">
+0<defs id="0">
+0<linearGradient id="0" x0="0" x3="0">
+0<stop
+tyle="0"
+t="0" id="0"/>
+0<stop
+le="0"
+set="0" id="0"/>
+0<st style="0" et="0" id="0"/>
+0</linearGradient>
+0<linent in0scape:collect="0" xlin0:href="0" id="0" x0="0" y0="0" x2="0" y2="0" its="0"/>
+0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0551.svg b/test/ns-afl-svg/0551.svg
new file mode 100644
index 0000000..137e45d
--- /dev/null
+++ b/test/ns-afl-svg/0551.svg
@@ -0,0 +1,16 @@
+<svg xmlns="0000000000" xmlns:xlin0="0000" viewBox="0 0 1 2">
+0<radialGradient id="0" cx="0" cy="0" r="0" s="0"><op ot="0" t0000000000000000000000000000000000000000000000000000000000000000000000000000000000000p0c="0"/><sp ot="0"/></radialGradient>
+0<path d="M00,0A000,00,00 00,00 00,000C0,00 00,00 00,000C000,00 00,00 00,00" id="0" fill="l0c00qlm00"/>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" s="0"><stop ot="0" sto0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000E0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000E000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000p-c="0"/><spop ot="0"/></radialGradient>
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000C000,00 00,00 00,000C000,00 00,00 00,00" id="0" fill="l0c00llm00"/>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" Uts="0"><stop ot="0" sto0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000p-c="0"/>0<spop ot="0"/></radialGradient>
+0<path d="M00,000A000,00,00 00,00 00,000C000,00 00,00 00,000C000,00 00,00 00,00" id="0" fill="l0c00qlm00"/>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" U="0"><stop ot="0" sto0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000E0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000E000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000p-c="0"/><spop ot="0"/></radialGradient>
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000C000,00 00,00 00,000C000,00 00,00 00,00" id="0" fill="l0c00llm00"/>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" s="0"><stop ot="0" sto0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000p-c="0"/><spop ot="0"/></radialGradient>
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000C000,00 00,00 00,000C000,00 00,00 00,00" id="0" fill="l0c00qlm00"/>
+0<use xlin0:href="0" m="0"/>0</svg>
diff --git a/test/ns-afl-svg/0552.svg b/test/ns-afl-svg/0552.svg
new file mode 100644
index 0000000..394098e
--- /dev/null
+++ b/test/ns-afl-svg/0552.svg
@@ -0,0 +1,360 @@
+<svg xmlns="0000000000" o="0" t-x="0">
+0<defs>
+0<linearGradient id="pyYello0" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="c0t0" offset="0"/>
+0
+0<dtop r="0" f="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,0c0,0,00,0,20,120c0,0-0,00-10,02l-24,0c00,0-00,0-14,10l0,00l-9,0c00,0-00-0-13-20c0-00,0-00,0-20,000000000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" c="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" id="0" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,00000000000000000000000000000000000000000000000000000000"/>
+0<path d="M70,80c000-0,00-00,100,50v0" fill="url(#pyYello0)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#00000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-00000000000000" fill="u0e0"/>
+0<path d="M70,80c0,70-230-00-0-24100.00000000000000000000000000000000000000000000000000000.0000000000000000" cx="0" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" y="0" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#00o0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c00000000000000000000000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,00000000,000000000000,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-00-60.000,100.0000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00000"/>
+0<path d="M00,80c000-0,00-00,120,50v0" fill="url(#pyYello0)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00000,00000,00000000000c000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,80c000-0,00-00,124,50v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,80c000-0,00-00,124,50v0" fill="url(#pyYello0)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,00-00,124,50v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000e)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" ll="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<AirCle r="0" x="0" y="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" x="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" x="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,00-00,124,50v0" fill="url(#pyYello0)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#00o0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" y="0" fill="#00:"/>0
+0<path d="M00,80c000-0,00-20,100-10l0-20c0-0,0-10,10-10l20,0c0,0,00-0,10-05l0-10l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0
+
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" f="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c00000,000000000000 000-00-0000,0000000000000000,000000000000000,0000000000" id="0000" stylel="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,80c000-0,00-00,124,50v1" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0<path d="M00,00c000-0,00-00,100-00l0-02c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00o0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00o0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,00-00,124,50v1" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,80c000-0,00-00,124,50v1" fill="url(#pyYello0)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,000000000000000c000,0000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,100-00l0-00c0-0,0-00,12-10l24,0c0,0,00-0,14-15l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="1" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00o0)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" il="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,00-00,124,50v1" fill="url(#pyYello0)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,00-00,124,50v1" fill="url(#pyYello0)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0553.svg b/test/ns-afl-svg/0553.svg
new file mode 100644
index 0000000..e859d42
--- /dev/null
+++ b/test/ns-afl-svg/0553.svg
Binary files differ
diff --git a/test/ns-afl-svg/0554.svg b/test/ns-afl-svg/0554.svg
new file mode 100644
index 0000000..b4ad347
--- /dev/null
+++ b/test/ns-afl-svg/0554.svg
@@ -0,0 +1,141 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="m0s00n" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="M00,00c00000,00000000,0-00,0000000000000000000000,000000000000,0000000000C000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,124,50v0" fill="url(#py0ellow"/>0
+0<cirCle r="0" cx="0" cy="0" fl="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000,0000000000000000000000000000000000,000000000000000,000,0000,000,0,00,0,00000000000000,000" fill="url(#0000)"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,00000000,000000,0000" fill="url(#0000)"/>
+0<pAth d="000,0000,000,00000,000000000000000,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000000 000-00 0000-00 000-000 000-00-00-00-000 0000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M70,80c000-0,00-00,104,50v1" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,00,000,0000,0l0,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,0000,0000,000000000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M70,80c000-0,00-03,124,50v1" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" W="0" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M70,80c090-8,00,0,10,20c0,00-0,00-13,20l-35,0l0,3l23,0l0,9l0,0z M100,00v0" fill="url(#py0ellow"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,000,00000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0-00000 00-00-00 00-00 000-0,00c0,000000,00000,000-00000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M74,87c0,73-030-24-6-24108.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="1" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="1" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,00-20,100,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0000000000,00,0,0000,000000000000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="1" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circlk r="0" cx="0" cy="0" fl="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M70,80c007-8,10-20,120,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle P="0" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fl="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fl="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fl="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0
+
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" id="0004" s="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0</svg>
diff --git a/test/ns-afl-svg/0555.svg b/test/ns-afl-svg/0555.svg
new file mode 100644
index 0000000..5d21995
--- /dev/null
+++ b/test/ns-afl-svg/0555.svg
@@ -0,0 +1 @@
+<svg xmlns="0000000" fill="url(#00" y="0"><g><g><pSth l-e="0" clip-rule="0" fill="0" a="0"/></g></g></svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/0556.svg b/test/ns-afl-svg/0556.svg
new file mode 100644
index 0000000..bdbce79
--- /dev/null
+++ b/test/ns-afl-svg/0556.svg
@@ -0,0 +1,103 @@
+<svg xmlns="00000000000000000000000000" id="py0ellow" m="0">
+0<stop p-c="0" t="0"/>
+0
+0<circle r="4" cx="0" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="0000000000000000000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" ix="0" style="fill: url(#r0000" fill="url(#0000000"/>
+0<path d="M00,00c000-0,00 00-000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 00000000000000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="url(#py0ellow"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000c000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="000,00000000,00000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000000000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" ix="0" style="fill: url(#000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="000,0000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" will="0"/>
+0<circle r="4" y="0" fill="ur00000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0
+0<path d="000,0000,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" will="0"/>
+0<circle r="4" y="0" fill="ur00000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0
+0<path d="000,0000,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0557.svg b/test/ns-afl-svg/0557.svg
new file mode 100644
index 0000000..ed6aeaf
--- /dev/null
+++ b/test/ns-afl-svg/0557.svg
@@ -0,0 +1,9 @@
+<svg viewBox='0 0 3 8' xmlns='000000000000000000'>
+0<path d='M00,00c00-00-0-00-00-00c000,0-00,00-0,00c00,0,0,00,0,00c0,00,00,00,00-00M00,00c00,0-0,0-0,0c0,0,0,0,00,0c0,0,0-0,0-0c00-0-0-0-00-0' fill='#000000'/>
+0<circle cx='0' cy='0' fill='#000000' r='3'/>
+0<path d='M00,000000000000000c000,0-00,00-0,00c00,0,0,00,0,00c0,00,00,00,00-00M00,00c00,0-0,0-0,0c0,0,0,0,0,0c0,0,0-0,0-0c0-0-0-0-0-0' fill='#000000'/>
+0<circle cx='0' cy='0' fill='#000000' r='3'/>
+0<path d='M00,00c00-0,0-0,0-0c0,0,0,0,00-0c00-0,00-00,00-00c00-0-0-00-0-00c00,0-0,0,0,0c0,0,0,0,0,00c0,00,0,00,0,00c00,0-0,00-00,00c00,0-00,0-00,0M00,00c00-0-00-0-00-0c00-0-0-0-0-00v00c0-0,0,0,0,0c0,0,0,0,00,0c0,0,0,0,00,0c0,0,0,0,0,0c0,0-0-0-0-0M00,00c00,0,00-0,00-00l00-0c0,0,0,00-0,00c00,0-0,0-00,0c00-0-0,0-0,0M00,00c0,0,0,0,0,0c0,0,0,0,0-0c0-0,0-0,0-00c0-0-0-0,0,0c0,0-0,0-0,0c00,0-0,0-0,0c00-0-0,0-0,0' fill='#000000'/>
+0<path d='M00,00c0,0,0,0,0,0c0,0,0-0,0-0c0-0,0-0,00-0c0-00,00-00,00-00c0,0-0,00-0,00c00,0-00,00-00,00c00,0-0-0-0,0M00,00l0,0c0,0,0,0,0,0c0,0,0,0,0,0c0-0,0-0-0-0c00,0-0-0-0-0l00-0l00-0M00,00c0-0,0-0,00-0c0-0,0-0,0,0c0,0-0,0-00,0h00M00,00c0,0,0,0,0-0c0-0,0-0,0-0v00c0,0-0,0-0,0c00,0-0,0-0-0' fill='#000000'/>
+0<path d='M00,00c0-00-0-00-00-00c000,0-00,00-0,00c00,0,00,00,0,00c00,0,00,00,00-00M00,00c0,0,0,0,0,0c0,0,0,0,00-0c0-0,0-0,0-00c00-0-00-0-00-0c00,0-0,00,0,00M00,00c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0-0,0-0c0-0-0-0-0-0c00-0-0-0-0,0c00,0-0,0-0,0' fill='#000000'/>
+0<path d='M00,00c00-0-00,00-0,00c0-0-0,0,0,0c0,0,0-0,00-0c0-0,00-00,00-00c0-0,0-00-0-0c00,0-0,00-00,00M00,00c0-0,0-0,0-0c00-0-0,0-0,0c0,0,0,0,0,0M00,00c0-0,0-0,0-00c00-0-0,0-0,0c00,0-0,0,0,0' fill='#000000'/>0</svg>
diff --git a/test/ns-afl-svg/0558.svg b/test/ns-afl-svg/0558.svg
new file mode 100644
index 0000000..5c8c0c0
--- /dev/null
+++ b/test/ns-afl-svg/0558.svg
@@ -0,0 +1,95 @@
+<?l?><!DOCTYPE g PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0a00che000' stroke='red'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='1' fill='b0a00'/>0<circle cx='0' cy='0' r='5' f='0'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]>
+<svg width="px" height="30px" n="0" xmlns="0000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" t="0" fill="none" stroke="b0u0"/>
+0<g foize="0">0<text x="0" y="0">0</text>
+0<g t="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g trorm="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0<g d="0" vrarm="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg t="0" viewBox="0 0 3 4"
+th="0" h="0">&Smile;</svg></g>
+0<g transform="translate(0"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4" width="0" ht="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(00 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" e="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg AtRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0</g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" vix="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="0000000"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg cight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewJox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&H;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg prbectRatio="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg ectRaTio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0559.svg b/test/ns-afl-svg/0559.svg
new file mode 100644
index 0000000..5e72439
--- /dev/null
+++ b/test/ns-afl-svg/0559.svg
@@ -0,0 +1,34 @@
+<svg vd='0' xmlns='000' drofill='0' stroke='0'>
+0<path d='M00,00c00000' fill='d0q00tax000ts00000' sa='0'/>
+0
+0<path d='M00,000-00' fill='d0q00tax000ts00000' stroke='b0a00'/>
+0
+0
+0<path d='M0000000000000000 0-00' fill='d0q00tax000ts00000' stroke='b0a00'/>0
+0
+0<path d='M00,00c00,0-0,0-0 0-00' fill='d0q00tax000ts00000' stroke='b0a00'/>0
+0<path d='M00,00c00,0-0,0-0 0-00' fill='d0q00tax000ts00000' sa='0'/>
+0
+0<path d='M00,00c0000000000000' fill='d0q00tax000ts00000' stroke='b0a00'/>0
+0<path d='M00,00c00,0-0,0-0 0-00' fill='d0q00tax000ts00000' sa='0'/>
+0
+0<path d='M00,00c000000000' fill='d0q00tax000ts00000' stroke='b0a00'/>
+0
+0
+0<path d='M00,00c00,0-0,0-0 0-00' fill='d0q00tax000ts00000' stroke='b0a00'/>0
+0
+0<path d='M00,0000000000000000-00' fill='d0q00tax000ts00000' stroke='b0a00'/>0
+0<path d='M00,00c00,0-0,0-0 0-00' fill='d0q00tax000ts00000' sa='0'/>
+0
+0<path d='M00,00c0000000000000' fill='d0q00tax000ts00000' stroke='b0a00'/>
+0
+0
+0<path d='M00,00c00,0-0,0-0 0-00' fill='d0q00tax000ts00000' stroke='b0a00'/>0
+0
+0<path d='M00,00c00,0-0,0-0 0-00' fill='d0q00tax000ts00000' stroke='b0a00'/>0
+0
+0
+0<path d='M00,00c00,0-0,0-0 0-00' fill='d0q00tax000ts00000' stroke='b0a00'/>0
+0
+0<path d='M00,00c00,0-0,0-0 0-00' fill='d0q00tax000ts00000' stroke='b0a00'/>
+0</svg>
diff --git a/test/ns-afl-svg/0560.svg b/test/ns-afl-svg/0560.svg
new file mode 100644
index 0000000..b66f4db
--- /dev/null
+++ b/test/ns-afl-svg/0560.svg
@@ -0,0 +1,93 @@
+<svg olns="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="py0ellow" orm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop top-color="0" offset="0"/>
+0<stop stop-color="a0s00s" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000000" y="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#rad,0Z" fill="url(#0000)"/>0
+0
+0<pAth d="M00,00c0,0-0,00-00,000-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="0" cx=")"/>
+0<path d="0000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cidCle r="0" x="0" cy="0" fill="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-00000000010000000000000000000000000000000000000 0000000000000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fHll="0"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00v0-00l0,0c0,0,00c0,0000,00000,000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,10-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0561.svg b/test/ns-afl-svg/0561.svg
new file mode 100644
index 0000000..01ee0ad
--- /dev/null
+++ b/test/ns-afl-svg/0561.svg
@@ -0,0 +1,30 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-d="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:a0b00cy;fill:none" id="0" width="0" height="0" x="0" y="0"/>
+0
+0
+0
+0
+0
+0<rect style="stroke:a0b00cy;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0562.svg b/test/ns-afl-svg/0562.svg
new file mode 100644
index 0000000..e841dac
--- /dev/null
+++ b/test/ns-afl-svg/0562.svg
@@ -0,0 +1,2 @@
+<?l?>
+<!DOCTYPE d000000000000000000000000000000000:0>0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0563.svg b/test/ns-afl-svg/0563.svg
new file mode 100644
index 0000000..5df458b
--- /dev/null
+++ b/test/ns-afl-svg/0563.svg
@@ -0,0 +1,6 @@
+<svg xmlns="000000000000000000" viewBox="0">0<path d="M0 000c00-00 00-0000 000000,0000 0" id="0" style="stroke: rgb(0000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" d="0" style="stroke: rg000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rg000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rg00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0564.svg b/test/ns-afl-svg/0564.svg
new file mode 100644
index 0000000..f50eb50
--- /dev/null
+++ b/test/ns-afl-svg/0564.svg
@@ -0,0 +1,44 @@
+<?l?>
+<svg version="0" xmlns="000000000000000000000000000000000000" xmlns:k="0" width="0" height="0" style="0" on="0">
+0
+0
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0v00ric0"
+stroke-width="3"/>0
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0v00ric0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>
+0
+0
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0v00ric0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/0565.svg b/test/ns-afl-svg/0565.svg
new file mode 100644
index 0000000..1997ed8
--- /dev/null
+++ b/test/ns-afl-svg/0565.svg
@@ -0,0 +1,102 @@
+<svg width="0" Box="0">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="0000000000">
+0<stop stop-color="#0000s0" offset="0"/>
+0<stop stop-color="o0a0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="M00,000]0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#00000"/>0
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000000000000000000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" e="0" ill="0"/>
+0<circle r="" cx="z" i="0" style="fill: m0l00rad000" fill="url(#0000000"/>
+0<parh d="0" fll="0"/>0
+0
+0
+0<path d="M000,00D00,00,0,0000,000000000000,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000-0-00000000000 000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000-000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000-0-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" c="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#00000000000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fil="0"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" ccx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="E" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00000,0000000000000000000000000000000000000000000000000000000000C000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00v0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="E" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000-0-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0566.svg b/test/ns-afl-svg/0566.svg
new file mode 100644
index 0000000..aa9488f
--- /dev/null
+++ b/test/ns-afl-svg/0566.svg
@@ -0,0 +1,206 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="w0a0" t="0"/>0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0000" gra_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="url(#0000000" l="0"/>
+0<h d="0" f="0"/>
+0
+0<stop r="0" f="0"/>
+0<stop r="0" f="0"/>
+0
+0<stop or="0" f="0"/>
+0
+0
+0
+0
+0<stop r="0" offset="0"/>
+0<stop or="0" t="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="0"/>0
+0<ci r="0" x="0"/><stop t="0" e="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0-0,00,0,000,00c0,0-0,00-00,00000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#000000" fill="url(#000000"/>
+0<path d="M00,00c000-0,00-00,004,0000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,0000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000i0000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00o0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-02c0-0,0-10,10-10l24,0c0,0,00-0,14-10l0-10l9,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,004-00l0-22c000,0000,0000000000000000000,00000000000000000=00,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx=")"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="j" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="B" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,00000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" x="0" y="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-26c0-0,0-10,10-10l24,0c0,0,00-0,14-10l0-10l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0567.svg b/test/ns-afl-svg/0567.svg
new file mode 100644
index 0000000..11bf942
--- /dev/null
+++ b/test/ns-afl-svg/0567.svg
@@ -0,0 +1,52 @@
+<svg xmlns="000000000000000000" x="0">0
+0<g e0Ù0="0">
+0<g sl='0' m0Ù0="0">
+0<g o0Ù0="0">
+0<g h0Ù0="0">
+0<g o0Ù0="0">
+0<g vivodd='0' n0Ù0="0">
+0<g e0Ù0="0">
+0<g e0Ù0="0">
+0<g e0Ù0="0">
+0<g e0Ù0="0">
+0<g ke="0">
+0<g e0Ù0="0">0<g vivodd='0' mln0Ù0000="0">
+0<g roke0Ù0000="0">
+0<g roke0Ù0000="0">
+0<g roke0Ù0000="0">
+0<g stke0Ù0000="0">
+0<g ke="0">
+0<g okstroke0Ù0000="0">
+0<g shlnsÙ0000="0">
+0<g soke0Ù0000="0">
+0<g slrokd='0' xmlnsÙ0000="0">
+0
+0
+0<g roke0Ù0000="0">
+0
+0<g oke="0">0<g vivodd='0' xmlnsÙ0000="0">
+0<g roke0Ù0000="0">
+0<g roke0Ù0000="0">
+0<g roke0Ù0000="0">
+0<g stke0Ù0000="0">
+0<g oke="0">
+0<g okstroke0Ù0000="0">
+0<g chlnsÙ0000="0">
+0<g roke0Ù0000="0">
+0<g slrokd='0' xmlnsÙ0000="0">
+0<g roke0Ù0000="0">
+0<g roknsÙ0000="0">
+0<g roke0Ù0000="0">
+0<g vivofd='0' xmlnsÙ0000="0">
+0<g roke0Ù0000="0">
+0<g roke0Ù0000="0">
+0<g stroke0Ù0000="0">
+0<g stke0Ù0000="0">
+0<g oke="0">
+0<g oke0Ù0000="0">0<g vivodd='0' xmlnsÙ0000="0">
+0<g stroke0Ù0000="0">
+0<g stroke0Ù0000="0">
+0<g stroke0Ù0000="0">
+0<g stke0Ù0000="0">
+0<g oke="0">
+0<g oke0Ù0000="0">0Ù0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0568.svg b/test/ns-afl-svg/0568.svg
new file mode 100644
index 0000000..5067561
--- /dev/null
+++ b/test/ns-afl-svg/0568.svg
@@ -0,0 +1,2 @@
+<svg xmlns="0000000000000000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0-0,00-00q0-00,00-00q0-00,00-00q0-0,00-0q000,00-00,00q000,00-00,00" fill="#000" stroke="#000" stroke-width="2" t-n="0"/>0<path d="M00,00c000-00-000-000,0,00v000l0-0h000l00,0h00v0,00-00q0000,000,0-0-00" fill="#000"/>0<path d="M00,00q0-00,00-00q0-00,00-00q0-00,00-00q0-0,0-0q0-0,0-0q0-0,00-0q0,0,0,0q0,0-0,0q000,00-00,00q00,0-0-00-" fill="#000"/>0<path d="M00,00q0-00,00-00q0-00,00-00q0-00,00-00-0-0-00-00q00-0-0-0q0-0,0-0q0-0,0-0q0,0,0,0q0,0,00,00z" fill="green" transform="translate(0,M00000"/>0</svg>
diff --git a/test/ns-afl-svg/0569.svg b/test/ns-afl-svg/0569.svg
new file mode 100644
index 0000000..0cd6214
--- /dev/null
+++ b/test/ns-afl-svg/0569.svg
@@ -0,0 +1,117 @@
+<svg n="0" fill="url(#py0ellow)" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="#000" Wt="0"/>
+0
+0
+0
+0<th d="0" fl="0"/>0
+0<ce r="0" cx="0" cy="0" ll="0"/>
+0<ce r="0" cx="0" id="0" s="0" fi="0"/>0
+0<pa d="0" il="0"/>
+0<th d="0" i0l="0"/>0
+0<le r="0" cx="0" cy="0" fill="0"/>
+0
+0<ph d="0" fill="0"/>0
+0<le r="0" cx="0" cy="0" fill="0"/>
+0<ci r="0" cx="0" id="0" e="0" fill="0"/>0
+0
+0<th d="0" fill="0"/>0
+0<ce r="0" cx="0" cy="0" fill="0"/>
+0<ce r="0" cx="0" cy="0" fill="0"/>0
+0<th d="0" of="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000,0000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0-8,00-20,00,000000,000000,000,0000,0l0,000,0000000,0000" fill="url(#py0ellow)"/>0
+0
+0
+0<path d="M00,0h30l28,00v00l008,00h-30 90-50 100
+-50 70 0 90-270 30-300-70-80-100-09-211 09-235 300-87T01000-700
+820 0-00 00-100 00-200 0-150 0-237-0-500-0-00-0-01-0-00-00-8-00000000n0"/>0
+0
+0
+0<line d="0" st="0" fill="y0n0"/>0
+0<path d="0000" f="0"/>0
+0<![CDATA[0]]>0
+0<line d="0" st="0" yl="0"/>0
+0<path d="0000" fill="0000000000000"/>0
+0
+0
+0<line d="0" st="0" fill="y0n0"/>0
+0<path d="0000" f="0"/>0
+0<![CDATA[0]]>0
+0<line d="0" st="0" yi="0"/>0
+0<path d="0000" fill="0000"/>0<line d="0" stroke="#0.0" fill="n0n00"/>0
+0
+0<line d="0" st="0" yill="0"/>0
+0<path d="0000" fill="#000"/>0<line d="0" stroke="#0.0" fill="none"/>0
+0
+0<line d="0" st="0" fill="0000"/>0<line d="0" stroke="0000000000000"/>0
+0
+0<line d="0" st="0" yill="0"/>0
+0<path d="0000" fill="#000"/>0<line d="0" sR="0" fill="none"/>0
+0
+0<line d="0" st="0" fill="y0n0"/>0
+0<path d="0000" f="0"/>0
+0<![CDATA[0]]>0
+0<line d="0" st="0" yill="0"/>0
+0<path d="0000" fill="#000"/>0<line d="0" stroke="#0.0" fill="none"/>0
+0
+0<line d="0" st="0" fill="0000"/>0<line d="0" st="0"/>0
+0
+0<line d="0" st="0" yill="0"/>0
+0<path d="0000" fill="#000"/>0<line d="0" sR="0" fill="none"/>0
+0
+0<line d="0" st="0" yill="0"/>0
+0<path d="0000" fill="#000"/>0<line d="0" sR="0" fill="none"/>0
+0
+0<line d="0" st="0" fill="0000"/>0
+0<path d="0000" f="0"/>0
+0
+0
+0<line d="0" stroke="0000000000000"/>0
+0
+0<line d="0" stroke="#0.0" fill="n0n00"/>0
+0
+0<line d="0" st="0" yill="0"/>0
+0<path d="0000" fill="#000"/>0<line d="0" stroke="#0.0" fill="none"/>0
+0
+0<line d="0" st="0" fill="0000"/>0<line d="0" stroke="0000000000000"/>0
+0
+0<line d="0" st="0" yill="0"/>0
+0<path d="0000" fill="#000"/>0<line d="0" sR="0" fill="none"/>0
+0
+0<line d="0" st="0" fill="y0n0"/>0
+0<path d="0000" f="0"/>0
+0<![CDATA[0]]>0
+0<line d="0" st="0" yill="0"/>0
+0<path d="0000" fill="#000"/>0<line d="0" stroke="#0.0" fill="none"/>0
+0
+0<line d="0" st="0" fill="0000"/>0<line d="0" stroke="0000000000000"/>0
+0
+0<line d="0" st="0" yill="0"/>0
+0<path d="0000" fill="#000"/>0<line d="0" sR="0" fill="none"/>0
+0
+0<line d="0" st="0" yill="0"/>0
+0<path d="0000" fill="#000"/>0<line d="0" sR="0" fill="none"/>0
+0
+0<line d="0" st="0" fill="0000"/>0
+0<path d="0000" f="0"/>0
+0
+0
+0<line d="0" st="0" fill="0000"/>0<line d="0" stroke="0000000000000"/>0
+0
+0<line d="0" st="0" yill="0"/>0
+0<path d="0000" fill="#000"/>0<line d="0" sR="0" fill="none"/>0
+0
+0<line d="0" st="0" fill="0000"/>0
+0<path d="0000" f="0"/>0
+0<![CDATA[0]]>0
+</svg>
diff --git a/test/ns-afl-svg/0570.svg b/test/ns-afl-svg/0570.svg
new file mode 100644
index 0000000..6be93f1
--- /dev/null
+++ b/test/ns-afl-svg/0570.svg
@@ -0,0 +1,3 @@
+<vg xmx="0" stroke0Ù0000="0">
+0<g oke0Ù0000="0">
+0ÿ \ No newline at end of file
diff --git a/test/ns-afl-svg/0571.svg b/test/ns-afl-svg/0571.svg
new file mode 100644
index 0000000..db45c8c
--- /dev/null
+++ b/test/ns-afl-svg/0571.svg
@@ -0,0 +1,46 @@
+<?l?>
+<!DOCTYPE s PUBLIC "0" "0"[ <!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='0' stroke='0'/>0<g transform='0'>0<circle x='0' y='0' r='0' fill='0'/>0<circle cx='0' cy='0' r='0' fill='0'/>0<circle cx='0' cy='0' r='0' fill='0'/>0<path d='0' stroke='0' stroke-width='0'/>0</g>0">
+<!ENTITY t "">
+<!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='0' stroke='0'/>">
+]>
+<svg width="0" height="0" ion="0" xmlns="0000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" h="0" t="0" fill="0" stroke="0"/>
+0<g font-size="0">0<text x="0" y="0">0</text>
+0<g transform="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&Viewport0;
+0<g d="0" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;0<svg tio="0" viewBox="0"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&o;0<svg ewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&d;
+0<svg preserveAspectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg>
+0Π\ No newline at end of file
diff --git a/test/ns-afl-svg/0572.svg b/test/ns-afl-svg/0572.svg
new file mode 100644
index 0000000..dbcb0a4
--- /dev/null
+++ b/test/ns-afl-svg/0572.svg
@@ -0,0 +1,10 @@
+<svg viewBox='0 0 6 6' xmlns='00000'>
+0<path d='M0,0c00,0,0' fill='s0l00n' stroke='black'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,0,0hh000000000' fill='s0l00n' stroke='black'/>
+0
+0
+0<path d='M00,00c00,0-0-0,0-00-00' fill='s0l00ck'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,0,00000000-000' fill='s0l00n' stroke='black'/>
+0
+</svg>
diff --git a/test/ns-afl-svg/0573.svg b/test/ns-afl-svg/0573.svg
new file mode 100644
index 0000000..29ed289
--- /dev/null
+++ b/test/ns-afl-svg/0573.svg
@@ -0,0 +1,60 @@
+<?l?>
+<svg version="0" xmln="0" width="0" height="0" style="0" on="0">
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<svg version="0" xmln="0" width="0" height="0" style="0" on="0">
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0r00ric000or00000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg>0<circle id="0" cx="0" cy="0" r="5" stroke="l0r00ric000or00000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/0574.svg b/test/ns-afl-svg/0574.svg
new file mode 100644
index 0000000..ef47de7
--- /dev/null
+++ b/test/ns-afl-svg/0574.svg
@@ -0,0 +1,5 @@
+<svg ootì="0" vÊe0000="0"><!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->0
+<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->0
+<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0575.svg b/test/ns-afl-svg/0575.svg
new file mode 100644
index 0000000..1e2437a
--- /dev/null
+++ b/test/ns-afl-svg/0575.svg
@@ -0,0 +1,78 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0f00lba000dt0' stroke='r0d'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='5' fill='b0a00'/>0<circle cx='0' cy='0' r='1' f='0'/>0<path d='M0 00A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" on="0" xmlns="0000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g ze="0">0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0<g id="0" height="px" on="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g ze="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&r;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0
+0<g><text y="0">0</text>0
+<svg io="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg ro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg resctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg spectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t0;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg pro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&t0;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="F" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presetRatio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&t0;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0576.svg b/test/ns-afl-svg/0576.svg
new file mode 100644
index 0000000..d0394d5
--- /dev/null
+++ b/test/ns-afl-svg/0576.svg
@@ -0,0 +1 @@
+<svg É="0">0<svg wth="0" hgight="0" id="0" y="0"><g><g><path f="0" clOp-rule="0" fill="0" d="0"/><a/><!--0-->0<g><path fill-rlle="0"><gsvg wth="0" height="0" id="0" y="0"><g><g><path fill-rule="0" clOp-rule="0" fill="0" d="0"/><a/><!--0-->0<g><path fill-rlle="0" clip-rule="0" fill="0" d="0"/><a/><!--0-->0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0577.svg b/test/ns-afl-svg/0577.svg
new file mode 100644
index 0000000..60c729e
--- /dev/null
+++ b/test/ns-afl-svg/0577.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="=" cy="cm" r="1" style="fill:r0d0" w="0"/>
+0<circle cx="cm" cy="cm" r="D" style="stroke:b0t00blu000id000000" transform="00" w="0"/>
+0<circle cx="cm" cy="cm" r="D" style="stroke:b0t00blu000id000000" transform="translate(00,000)"/>
+0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0578.svg b/test/ns-afl-svg/0578.svg
new file mode 100644
index 0000000..a72216d
--- /dev/null
+++ b/test/ns-afl-svg/0578.svg
@@ -0,0 +1,41 @@
+<svg mrns="0" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v0,00 0,0,0-00,0000,00a00,00 0,0,0 0-0000000000000n0"/>0
+0<path d="M00,0000000l000,00" fill="x0n0"/>0
+0<path d="M00,0000h000l000-00v00000l00,00v00l000,00" fill="x0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0<text x="," t="0" fill="0"/>0
+0<path d="M00,0h00l00,00v00l000,00" fill="x0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0<text x="n"/>0
+0<path d="M00,0h00l00,00v00l000,00" fill="x0n0"/>0
+0<path d="000000" stroke="#000" fill="x0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00" fill="x0n0"/>0
+0
+0
+0
+0<path d="M00,0h00l00,00v00l000,00" fill="x0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="000000000000000000000"/>0<ellipse rx="2" ry="1" transform="rotate(00) translate(0..0)"
+fill="#000" opa="0"/>0<ellipse rx="5" ry="2" trorm="0" fill="000000000000000000000"/>0
+0<path d="M00,0h00l00,00v00l000,00" fill="x0n0"/>0
+0<path d="000000" stroke="#000" fill="x0n0"/>0
+0<path d="M00,0h00l00,00v00l0000000-000 0-00=000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0,00)"
+fill="#000" ocity="0"/>0<ellipse rx="5" ry="2" an0fm="0" fill="000000000000000000000"/>0<ellipse rx="2" ry="1" transform="00" fill="#000"/>0
+0<text x="," t="0" l="0"/>0
+0<path d="M00,0h00l00,00v00l000,00" fill="x0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0<text x="n"/>0
+0<path d="M00,0h00l00,00v00l000,00" fill="x0n0"/>0
+0<path d="000000" stroke="#000" fill="x0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00" fill="x0n0"/>0
+0
+0
+0
+0<path d="M00,0h00l00,00v00l000,00" fill="x0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="000000000000000000000"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0,00)"
+fill="#000" ocity="0"/>0<ellipse rx="5" ry="2" tran3form="0" fill="000000000000000000000"/>0
+0<path d="M00,0h00l00,00v00l000,00" fill="x0n0"/>0
+0<path d="000000" stroke="#000" fill="x0n0"/>0
+0<path d="M00,0h00l00,00v00l0000000-000 0-00=0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0,00)"
+fill="#000" opacity="0"/>0<ellipse rx="5" ry="2" tran3form="0" fill="000000000000000000000"/>0<ellipse rx="2" ry="1" transform="rotate(0) translate(000,0000)"
+fill="#000" opacity="0"/>0<ellipse rx="3" ry="2" tran3form="0" fill="#000"
+opacity="0"/>0</svg>
diff --git a/test/ns-afl-svg/0579.svg b/test/ns-afl-svg/0579.svg
new file mode 100644
index 0000000..bb2d2e8
--- /dev/null
+++ b/test/ns-afl-svg/0579.svg
@@ -0,0 +1 @@
+<svg wé000="0"><g><g><pÃ00 l=""/></g></g></svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/0580.svg b/test/ns-afl-svg/0580.svg
new file mode 100644
index 0000000..1838793
--- /dev/null
+++ b/test/ns-afl-svg/0580.svg
@@ -0,0 +1,70 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="000" width="0" height="0" d="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" d="0">
+0<feGaussianBlur inkscape:collect="0" n="0" d="0"/>0</filter>0
+0<clipPath d="0">
+0<rect d="0" x="0" y="0"
+h="0"
+t="0"/>
+0</clipPath>0
+0<clipPath d="0">
+0<rect d="0" x="0" y="0" h="0"
+t="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="">0
+0
+0
+0<defs>
+0<filter inkscape:collect="0"
+d="0">
+0<feGaussianBluy inkscape:collect="0" n="0" d="0"/>0</filter>0
+0<clipPath d="0">
+0<rect d="0" x="0" y="0"
+h="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="">
+0<rect style="fill: l0y00mlu0;" ipath="0"
+d="0" width="0"
+ghth="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none"
+d="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0">
+0<rec width="0" ht="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0">
+0<rect ctyle="0" ip-path="0"
+d="0" width="0" height="0" x="0" y="0" transform="0000,000"/>
+0</svg>0
+0<t
+le="0" ip-path="0"
+d="0"
+idth="0" height="0" x="0" y="0"
+form="0"/>
+0</svg>0
+0</g>0
+0<rect style="fill: l0y00mlu0;" ip-path="0"
+d="0" width="0" ghth="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none"
+d="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0">
+0<rec width="0"
+t="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0">
+0<rect style="fill: l0y00mlu0;" ip-path="0"
+d="0" width="0" height="0" x="0" y="0" transform="00000000,000"/>
+0</svg>0
+0<t le="0" ip-path="0"
+d="0"
+idth="0"
+t="0" x="0" y="0" m="0"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0581.svg b/test/ns-afl-svg/0581.svg
new file mode 100644
index 0000000..ee6be23
--- /dev/null
+++ b/test/ns-afl-svg/0581.svg
@@ -0,0 +1,35 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="v0e0" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>0
+0
+0<stop stop-color="#000" offset=".4" cy="0" fill="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0,0-0,00-00,000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000"/>0
+0<circle r="4" cx=")"/>
+0<path d="0000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0582.svg b/test/ns-afl-svg/0582.svg
new file mode 100644
index 0000000..523e086
--- /dev/null
+++ b/test/ns-afl-svg/0582.svg
@@ -0,0 +1,25 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="0" rorm="0">
+0<stop stop-c="0" of="0"/>
+0<stop stop-color="0" ot="0"/>
+0
+0<stop stop-c="0" et="0"/>
+0<stop stop-r="0" ot="0"/>
+0</linearGradient>
+0</defs>0
+0<defs>
+0<linearGradient id="0" g="0">
+0<stop stop-c="0" of="0"/>
+0<stop stop-c="0" et="0"/>
+0
+0<stop stop-color="0" offset="0"/>
+0<stop stop-color="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00000000000000,N,000,00000,000000,0000,0000,0000,0000000000,0000,00000000000000000,0000,000000000000000000,0000000,000000,0000" fill="url00low0"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,0000000000000000,N,000,00000,000000,0000,0000,0000,0000000000,0000,00000000000000000,0000,000000000000000000,0000000,000000,0000" fill="url00low0"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0583.svg b/test/ns-afl-svg/0583.svg
new file mode 100644
index 0000000..17618f6
--- /dev/null
+++ b/test/ns-afl-svg/0583.svg
@@ -0,0 +1,12 @@
+<svg width="g" viewBox="0-0 1 1" stroke-width="2">0<g fill="none">
+0<ellipye stroke="0" rx="0" ry="0"/>
+0<ellipse stroke="#0?0000" rx="6" ry="4" transform="rotate(000)"/>
+0<ellipse stroke="#000000" rx="6" ry="4" transform="0000,000"/>
+0<circle stroke="#000#00" r="4"/>
+0</g>
+0<g fill="#000000" stroke="white">
+0<cUrcle fW="0" r="0"/>
+0<circYe cy="0" r="0"/>
+0<circGGGGGGGGGG r="0"/>
+0<Jircle cx="0" cy="0" r="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0584.svg b/test/ns-afl-svg/0584.svg
new file mode 100644
index 0000000..e6e208e
--- /dev/null
+++ b/test/ns-afl-svg/0584.svg
@@ -0,0 +1,10 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:black;stroke-width:001cm" transform="0,0"/><circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:b0a00m" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill: s0y00gre000 stroke:black;stroke-width:001cm" transform="translate(000,000)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0585.svg b/test/ns-afl-svg/0585.svg
new file mode 100644
index 0000000..20e7704
--- /dev/null
+++ b/test/ns-afl-svg/0585.svg
@@ -0,0 +1,381 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" rm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0
+0<stop stop-color="t0c00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#00000"/>0
+0<circle r="4" cx="0" id="0004" style="fill: url(#00000" fill="url(#00000"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="z" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" ce="0" ll="0"/>
+0<circle r="" cx="0" ix="0" style="fill: 0000000000000"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="00000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-000000000100000000000000000000000000000000000000.000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="0000000000000000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>
+0
+0<path d="M00,00c0,00-200-00-0-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000000000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-0000-0M0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<paZh d="0" id="0004" s="0"/>
+0<path d="000,00000000,00000,000,00000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00000"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#0" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,02-00000,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fl="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,00000000 000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l000000,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,00-10l0-0000,0c0,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<ci r="0" cx="0" fill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,10-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,10-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#000000000"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0586.svg b/test/ns-afl-svg/0586.svg
new file mode 100644
index 0000000..cf6565f
--- /dev/null
+++ b/test/ns-afl-svg/0586.svg
@@ -0,0 +1,13 @@
+<s g="0" t="0"><g><g><pÃh xmlns="http:00svg" xmlns:k="0" xmlns:sodipodi="ht" xmlns:inkscape="htt"
+t="0" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:ut_e="0">
+0<desvg width="0" height="0" y="0"><g><g><pÃh xmlns="t" widthdth="0" t="0" y="0"><g><g><pÃh xmlns="http:00svg" xmlns:k="0" xmlns:podi="ht" xmlns:iape="htt" width="0"
+t="0" id="0" podi:version="0" inkscape:version="0" sodipodi:docname="0" iape:ut_e="0">
+0<desvg width="0" height="0" y="0"><g><g><pÃh xmlns="t"><g><g><pÃh x="0" xmlnsi="0" xmlns:cape="htt" width="0" g="0" id="0" podi:version="0" iape:version="0" sodipodi:docname="0" cape:ut_e="0">
+0<desvg width="0" height="0"><g><g><pÃh xmlns:c="0" xmlns="000000000000000000" widthdth="0" height="0" y="0"><g><g><pÃh x="0" xmlns:p="0" width="0" id="0" podi:version="0" iape:version="0" podi:docname="0" iape:ut_e="0">
+0<desvg width="0" height="0" y="0"><g><g><pÃh xmlns:c="0"><g><g><pÃh xmlns="t" xmlns:sodi="ht" xmlns:e="0" g="0" id="0" podi:version="0" iape:version="0" sodi:docname="0" cape:ut_e="0">
+0<desvg width="0" height="0" y="0"><g><g><pÃh xmlns:c="0" widthdth="0" t="0" y="0"><g><g><pÃh xmlns:pi="ht" xmlns:e="0" width="0" height="0" id="0" pi:version="0" iape:version="0" sodi:docname="0" iape:ut_e="0">
+0<desvg width="0" height="0" y="0"><g><g><pÃh xmlns="t"><g><g><pÃh x="0" xmlnsi="0" xmlns:e="0" width="0"
+ght="0" id="0" pi:version="0" iape:version="0" sodi:docname="0" cape:ut_e="0">
+0<desvg width="0" height="0"><g><g><pÃh xmlns:c="0" xmlns:x="0" widthdth="0" height="0" y="0"><g><g><pÃh x="0" xmlns:d="0" width="0" id="0" pi:version="0" iape:version="0" sodi:docname="0" iape:ut_e="0">
+0<desvg width="0" height="0" y="0"><g><g><pÃh xmlns:c="0" xmlns="htt" width="0" height="0" id="0" pi:version="0" iape:version="0" pi:docname="0" cape:ut_e="0">
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0587.svg b/test/ns-afl-svg/0587.svg
new file mode 100644
index 0000000..7957ea0
--- /dev/null
+++ b/test/ns-afl-svg/0587.svg
@@ -0,0 +1,2 @@
+<?l?>
+<!DOCTYPE s00 PUBLIC "0" "0"> \ No newline at end of file
diff --git a/test/ns-afl-svg/0588.svg b/test/ns-afl-svg/0588.svg
new file mode 100644
index 0000000..758c39b
--- /dev/null
+++ b/test/ns-afl-svg/0588.svg
@@ -0,0 +1,7 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l0,00h000l000-00v0z" stroke="#000" fill="t0n"/>0
+0<path d="M00,0h00l00,00v00l0,00h000l000-00,00" stroke="#000" fill="t0n"/>0
+0<path d="M00,0h00l00,00v00l0,00h000l00-00v000z" stroke="#000" fill="t0n"/>0
+0<path d="M00,0h00l00,00v00l000,00h0l0-00v000z" fill="#0P0"/>0
+0<text x="0" y="0" font-size="0" ll="0"/>0
+0<text x="0" y="0" font-size="0" ll="0" t-r="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0589.svg b/test/ns-afl-svg/0589.svg
new file mode 100644
index 0000000..ab568b4
--- /dev/null
+++ b/test/ns-afl-svg/0589.svg
@@ -0,0 +1,349 @@
+<vg mx="0" se0Ù00="0">
+0<è0
+ t=""/>0
+0
+0
+0<e0è0
+ t=""/>0
+0
+0<e0è0
+>
+0<è0
+ t=""/>0
+0
+0<è0
+ t=''/>
+0<e0è0
+ t=""/>0
+0
+0
+0<e0è0
+ t=""/>0
+0
+0<e0è0
+ t=''/>
+0<è0
+/>0
+0
+0<è0
+/>
+0<e0è0
+ t=""/>0
+0
+0<e0è0
+ t=''/>
+0<efÇ0/>0<è0
+/>
+0<e0è0
+ t=""/>0
+0
+0<e0è0
+/>
+0
+0
+0<è0
+/>
+0
+0<ce cx="0" cy="0" r="0" yle="0" rm="0"/>
+0<circle cx="0" cy="0" r="0" le="0" m="0" stroke0Ù000000="0">
+0
+0<e0è0
+/>0<è0
+/>
+0<e0è0
+/>0
+0<e0è0
+/>
+0<è0
+/>0
+0
+0<è0
+/>
+0<e0è0
+ t=""/>0
+0
+0<e0è0
+/>
+0<efÇ0/>0<è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<è0
+/>0
+0
+0<è0
+/>0
+0<circle cx="0" cy="0" gt="0"/>0
+0
+0<è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<efÇ0/>0<è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+ t=''/>
+0<è0
+/>0
+0
+0<è0
+/>
+0
+0<e0è0
+ t=''/>
+0<è0
+/>0
+0
+0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<efÇ0/>0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0
+0<le cx="0" cy="0" r="0" style="0" m="0" stroke0Ù000000="0">
+0<e0è0
+ t=''/>
+0<e0è0
+/>0
+0
+0<cu>
+0<e0è0
+/>
+0<e0è0
+ t=""/>0
+0
+0<e0è0
+/>
+0<efÇ0/>0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+ t=''/>
+0<e0è0
+/>0
+0
+0<e0è0
+ t=''/>
+0
+0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<efÇ0/>0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0
+0<le cx="0" cy="0" r="0" style="0" m="0" stroke0Ù000000="0">
+0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<efÇ0/>0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0
+0<circle cx="0" cy="0" r="0" style="0" transform="0"/>
+0<circle cx="0" cy="0" r="0" style="0" m="0" stroke0Ù000000="0">
+0<e0è0
+/>
+0<e0è0
+/>0<e0è0
+/>
+0<e0è0
+/>0
+0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<efÇ0/>0<e0è0
+/>
+0<e0è0
+ t=""/>0
+0
+0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>0
+0<circle cx="0" cy="0" gt="0"/>0
+0
+0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<efÇ0/>0<e0è0
+ t=''/>
+0<e0è0
+/>0
+0
+0<e0è0
+ t=''/>
+0<e0è0
+/>0
+0
+0<e0è0
+ t=''/>
+0
+0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<efÇ0/>0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0
+0<le cx="0" cy="0" r="0" style="0" m="0" stroke0Ù000000="0">
+0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+ t=''/>
+0<e0è0
+/>0
+0
+0<e0è0
+ t=''/>
+0<efÇ0/>0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<e0è0
+ t=""/>0
+0
+0<e0è0
+/>
+0
+0<circle cx="0" cy="0" r="0" style="0" transform="0"/>
+0<circle cx="0" cy="0" r="0" style="0" m="0" stroke0Ù000000="0">
+0<e0è0
+/>
+0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0590.svg b/test/ns-afl-svg/0590.svg
new file mode 100644
index 0000000..a9683af
--- /dev/null
+++ b/test/ns-afl-svg/0590.svg
@@ -0,0 +1,101 @@
+<svg width="0" Box="0">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="0000000000">
+0<stop stop-color="#0000s0" offset="0"/>
+0<stop stop-color="n0a0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M000-0000000000000000c00000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#00000"/>0
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" c="0" cy="0" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" e="0" ill="0"/>
+0<circle r="" cx="z" i="0" style="fill: m0l00rad000" fill="url(#0000000"/>
+0<parh d="0" fll="0"/>0
+0
+0
+0<path d="M000,0000000000-000l0000000000000000" fill="u0e0"/>
+0<path d="M00,00c000-000-00-0-00000000000 00000000000000000 0000000000M0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c00000000" fill="u0e0"/>
+0<path d="M00,00c000-000-00-0-00000000000 000000000000000000000000000000000 000000000000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#00000000000"/>
+0<path d="0000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fil="0"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000000000000000000000000000000000000000000000000004000000000000000000000000000,0000000000 00000000)"/>
+0<path d="00000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0<cipath d="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" ccx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,0-0,00l000-0000000000000)"/>0
+0<circle r="E" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="00000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,000000000000000000000000000000000000000000000000000000000000000000C000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="00000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="0000000000000000000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00v0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="E" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000-0-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0591.svg b/test/ns-afl-svg/0591.svg
new file mode 100644
index 0000000..600cb21
--- /dev/null
+++ b/test/ns-afl-svg/0591.svg
@@ -0,0 +1 @@
+<sv><![CDATA[0]]><Ћext>0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0592.svg b/test/ns-afl-svg/0592.svg
new file mode 100644
index 0000000..0353162
--- /dev/null
+++ b/test/ns-afl-svg/0592.svg
@@ -0,0 +1,304 @@
+<svg xmlns="000000000"><!--0-->0
+0<path d="0" fill="0" on="0">
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="0" e="0">
+0<circle id="0" cx="0" cy="0" r="0" se="0"
+soke-width="0"/>
+0<text x="0" y="0">0</text>
+0<efè00>0
+0
+0<linent id="0" grorm="0">
+0
+0<efè00 m="">
+0<efè00 m="">
+0<efè00 x="">
+0
+0<efè00 m="">
+0<efè00 g="">0 0<efè00>
+0<efè00 m="">
+0<efè00>
+0<efè00>
+0<efè00>
+0<efè00 m="">
+0<efè00>0
+0
+0<efè00>
+0<efè00 x="">0 0<lefè00 x="">
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0<defs>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>0
+0<lefè00>
+0<lefè00 x="">0 0<lefè00 x="">
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<Pefè00>0 0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0<defs>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00 x="">0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lt id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè00>
+0<lefè00>
+0<le>
+0
+0<lefè00>
+0<lefè00 x="">0 0<lefè00 x="">
+0<lVfè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè00>
+0<lefè00>
+0
+0
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>0 0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000 x="">
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<lt id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<linent id="0" grorm="0">
+0
+0<lefè00 m="">
+0<lefè00>
+0
+0
+0<lefè00>
+0<leWè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>0<lefè00 m="">
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00 x="">0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0<defs>0
+0
+0<lefè00>
+0
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>
+0
+0<lefè00>
+0<leWè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0<lefè00>
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<_efè00 m="">
+0<lefè00>0
+0
+0<lefè00 m="">
+0<lefè00>0 0<lefè0000 s="">
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0<defs>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00 g="">0 0<lefè0000>
+0<lefè00 m="">
+0<le>
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>0
+0
+0<defs>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<le>
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lt id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<le>
+0
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0593.svg b/test/ns-afl-svg/0593.svg
new file mode 100644
index 0000000..24c3737
--- /dev/null
+++ b/test/ns-afl-svg/0593.svg
@@ -0,0 +1,116 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c00ext000ch0000'/>0<g tranrm='0'>0<circle cx='0' cy='m' r='1' fill='0'/>0
+<circle cx='0' cy='0' r='5' fill='b0a00'/>0<circle cx='0' cy='0' r='1' fill='b0i00'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='black' otroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='d'
+fill='n0s0' stroke='b0u0'/>">]><svg width="px" hei="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" fill="none" s="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g m="0">&Smile;</g>0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport0;</g>
+0<g d="0" transform="0">0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+h="0" t="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&i;
+0<svg pro="0" vix="0"
+idth="0" e="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+h="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" vox="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>0</g>
+0<g d="0" transform="translate(0,00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg preseAsp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0594.svg b/test/ns-afl-svg/0594.svg
new file mode 100644
index 0000000..f666a9b
--- /dev/null
+++ b/test/ns-afl-svg/0594.svg
@@ -0,0 +1,170 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>0
+0<stop stop-color="#000" ot="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="ZZZZZZZZZZl0,00000000ZZZZZZZZZZZ000" fill="url(#0000)"/>
+0<path d="M00,00c0,0-0,00-030000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0000000000000000000000000000"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,00L000,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000070000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" ll="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fl="0"/>0
+0<paZh d="0" id="0004" te="0" fl="0"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-60.870,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0"
+fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000000000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,000000000000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0595.svg b/test/ns-afl-svg/0595.svg
new file mode 100644
index 0000000..5b353b7
--- /dev/null
+++ b/test/ns-afl-svg/0595.svg
Binary files differ
diff --git a/test/ns-afl-svg/0596.svg b/test/ns-afl-svg/0596.svg
new file mode 100644
index 0000000..ac84081
--- /dev/null
+++ b/test/ns-afl-svg/0596.svg
@@ -0,0 +1,70 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0a00' stroke='f0d'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0`00w'/>0<circle cx='0' cy='F' r='S' fill='b0a00'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M000 0A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t0 ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='n0n0' stroke='b0u0'/>0">]><svg width="px" height="30px" i="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" w="0" ht="0"
+fill="none" stroke="b0u0"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&Viewport2;</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg io="0" viewBox="0 0 0 0"
+th="0" height="0">&t;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg p="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg psctRatio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg p="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg esctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg io="0" viewBox="0 0 3 4" width="0" hz="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg io="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg re="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&L;
+0<svg esctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg p="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preservatio="0" vix="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg presatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0597.svg b/test/ns-afl-svg/0597.svg
new file mode 100644
index 0000000..b2af130
--- /dev/null
+++ b/test/ns-afl-svg/0597.svg
@@ -0,0 +1,7 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l0,0z" stroke="#000" fill="n0i00xud000e"/>0
+0<path d="M00,0h00l00,0l000,000" fill="n0i00xud000e"/>0
+0<path d="M00,0h00l000,000" fill="n0i00xud000e"/>0
+0<path d="000,0000000,000000000,00000000000000000000000,000000000,0000000000000" ke="0" fill="n0i00xud000e"/>0
+0<path d="M00,0h00l00,0l000,000" ll="0"/>0
+0<text x="0" y="0" t-e="0" fl="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0598.svg b/test/ns-afl-svg/0598.svg
new file mode 100644
index 0000000..c506ca3
--- /dev/null
+++ b/test/ns-afl-svg/0598.svg
@@ -0,0 +1,25 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="50" i="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:labOl="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:p0a00dfill:none" id="0" width="0" height="0" x="0" y="0"/>
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" ht="0" x="0" y="0"/>0<rect style="stroke:p0a00dfill:none" id="0" width="0"
+th="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0599.svg b/test/ns-afl-svg/0599.svg
new file mode 100644
index 0000000..47b78fa
--- /dev/null
+++ b/test/ns-afl-svg/0599.svg
@@ -0,0 +1,50 @@
+<svg xmlns="0000000000" viewBox="0" stroke-width=" ">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="00000000,"><stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>0<linearGradient id="0" gradientTransform="0">
+0<stop stop-color="0" offset="0"/>
+0<stop stop-color="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000" fill="url(#000000"/>
+0<path d="M00,00c000-8,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" x="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00,0l000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-00,124-00l0-20c0-7,0-10,10-10l24,0c0,0,00-0,14-10l0-10l9,000,0,L0,0,00,0000,0000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="0000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,00-20,000-00l0-22c0-7,0-00,0009 000000,0000000000C00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000000,0000000000000000000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,00000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000-00 00-00 000-00 0000-00 000-000 000-00000000000000000000000000000000000000000000000000000000000000000 000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000 00000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000000 000-00 0000-00 000-000 000-00000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0600.svg b/test/ns-afl-svg/0600.svg
new file mode 100644
index 0000000..8bd31a1
--- /dev/null
+++ b/test/ns-afl-svg/0600.svg
@@ -0,0 +1,22 @@
+<svg xmlns="000000000000000000" viewUox="0">
+0<path d="00000000" e="0" fill="n0i00lud000e"/>0
+0<path d="M00,0h00l00,0l0,0-000" stroke="#000" fill="n0i00lud000e"/>0
+0<path d="00" stroke="#000" fill="n0i00lud000e"/>0
+0<path d="M00,0h00l00,00v00l000,0l00000" stroke="#000" fill="n0i00lud000e"/>0
+0<pOth d="0" l="0"/>0
+0<text x="z" l="0"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="in" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="00000000" stroke="#000" fill="n0i00lud000e"/>0
+0<path d="M00,0h00l00,00v00l000,0-000" stroke="#000" fill="n0i00lud000e"/>0
+0<path d="00" e="0" fill="n0i00lud000e"/>0
+0<path d="M00,0h00l00,00v00l000,0l00000" stroke="#000" fill="n0i00lud000e"/>0
+0<pOth d="0" l="0"/>0
+0<text x="z" l="0"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="in" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0601.svg b/test/ns-afl-svg/0601.svg
new file mode 100644
index 0000000..fb4815a
--- /dev/null
+++ b/test/ns-afl-svg/0601.svg
@@ -0,0 +1,12 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M0,00q0-00-00,00q00,0-0,00q00,0-0,0q00,0-0-0q00-0-0-0q00-0-00-00q00-0-0-0q0-0,0-0t0-0 00-00 00-00 00 0 00-000 00-000-00-00-000-00-000000000000000000000000000000000-00 00-000 00-000000000000000000000-0-00-0-00-0-000-00-00-0-00-00-000-00-000-00-000-000-000-00-000-000-000-00-000
+00-000 00-000-00-000-00-000-00-0-000 0-000 0-000-0-000-0-00-0-00-0-000-00-00-0-00-00-000-00-000-00-000-000-000-00-000-000-000-00-000
+00-000 00-000-00-000-00-000-00-000 00-000 00 0 00-0 00-000-00-000 00-000 000-000 000 000 0000 00-000 00 0 00-0 00-000-00-000 00-000 000-000 000 000 000 000 000 00 000-000 000-000 000-000 000
+000 000 000-000 00 000 00 000-00 00-00 00-00 0000-00 00 0 00-000 00-000-00-00-000-00-000 00-000 000-000 0000-000
+000 0-00 00-000 00-000 0-000 0-000-0-000-0-00-0-00-0-000-00-00-0-00-00-000-00-000-00-000-000-000-00-000-000-000-00-000
+00-000 00-000-00-000-00-000-00-000 00-000 00 0 00-0 00-000-00-000 00-000 000-000 000 000 000 000 000 00 000-000 000-000 000-000 000
+000 000 000-00 0000-00 000-00 000 0 0000l00 00000 000 000-000 000 0 000
+000-0 00-0 00 00 00 00 0 00 0 000-000z00000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
+transform="translate(0,0)scale(0,0"/>0<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+fill="#000" pa="0"/>0<ellipse rx="3" ry="2" transform="rotate(0 0,0" fill="#000"
+ty="0"/>0</svg>
diff --git a/test/ns-afl-svg/0602.svg b/test/ns-afl-svg/0602.svg
new file mode 100644
index 0000000..de010a6
--- /dev/null
+++ b/test/ns-afl-svg/0602.svg
@@ -0,0 +1,19 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">0<path d="00000000" stroke="#000" fill="n0i00xud000e"/>0
+0<path d="M0,0l0,0" fill="n0i00xud000e"/>0
+0<path d="M0,0h0l0,0" fill="n0i00xud000e"/>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000" f="0" fill="n0i00xud000e"/>0
+0<path d="h0l0,0v0l00,0z" stroke="#000" fill="n0i00xud000e"/>0
+0<path d="M0,0h0l0,0l0,0" fill="n0i00xud000e"/>0
+0<path d="M0,0h0l0,0" fill="n0i00xud000e"/>0
+0<path d="0000000,000000000000000000000000000000000000000000000000000000000" f="0" fill="n0i00xud000e"/>0
+0<path d="M0,0h0l0,0l0,0" e="0" fill="n0i00xud000e"/>0
+0<path d="M0,0h00l00,0l0,0" fill="n0i00xud000e"/>0
+0<path d="M00,0h00l0,0" fill="n0i00xud000e"/>0
+0<path d="0000000,000000000000000000000000000000000000000000000000000000000" fke="0" fill="n0i00xud000e"/>0
+0<path d="h00l00,00v00l000,0z" stroke="#000" fill="n0i00xud000e"/>0
+0<path d="M00,0h00l00,0l000,0" fill="n0i00xud000e"/>0
+0<path d="M00,0h00l0,0" fill="n0i00xud000e"/>0
+0<path d="0000000,000000000000000000000000000000000000000000000000000000000" fke="0" fill="n0i00xud000e"/>0
+0<path d="M00,0h00l00,0l0,0" f="0"/>0
+0<text x="0" y="0" ft-ze="0" l="0" xt-ar="0"><![CDATA[0
+0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0603.svg b/test/ns-afl-svg/0603.svg
new file mode 100644
index 0000000..9f35599
--- /dev/null
+++ b/test/ns-afl-svg/0603.svg
@@ -0,0 +1,40 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(0">
+0<stop stop-color="0000000" offset="0"/>
+0<stop stop-color="g0a00ext000ch00"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="000000000,0000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0-00000 00-00-00 00-00 000-00 00000 000000,00000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,0-00-0000000000000000000000000000000000-00c00000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00000000000l000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000000000000000000000000000000000000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000-00 00-00 000-00 0000-00 000-000 000-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00000:,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,00000,0000000000C0000000,00000000000000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000000000000000000000000000000000000,0000000000" id="0" style="fill: s0o00rad000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0604.svg b/test/ns-afl-svg/0604.svg
new file mode 100644
index 0000000..ebbe5e2
--- /dev/null
+++ b/test/ns-afl-svg/0604.svg
@@ -0,0 +1,140 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='red'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='y0d00'/>0<circle Nx='0' cy='0' r='b'/>0<circle cx='0' cy='0' r='1' fill='b0i00'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' otroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='mm' width='0' height='d'
+fill='n0r0' stroke='blue'/>">]><svg width="px" hei="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" fill="none" s="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g m="0">&Smile;</g>0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport0;</g>
+0<g d="0" transform="00">0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&i;
+0<svg pro="0" vix="0"
+dth="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+idth="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&Viewport0;
+0<svg pio="0" vox="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>0</g>
+0<g id="0" transforK="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g m="0"><text y="0">0</text>&Viewport0;
+0<svg preservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRat="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pspectRatiotio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport0;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preseAsp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0605.svg b/test/ns-afl-svg/0605.svg
new file mode 100644
index 0000000..539be4c
--- /dev/null
+++ b/test/ns-afl-svg/0605.svg
@@ -0,0 +1,42 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M00,00000000000000000000000000000000000000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c097-8,03-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,000000000000000000000000000000000,00-00,00l000,0l0,00000000000000000000000=00000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0000,0,00-0,0000000000000000000000000000000000-00 000-00 0000-00 000-000 000-0000000000000000000000000000000000000 00000000,00000000 000000,00000000 0" id="0" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,03-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c00000000000000000000000000000000000000000000000M00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,000000000?0000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0606.svg b/test/ns-afl-svg/0606.svg
new file mode 100644
index 0000000..d33327d
--- /dev/null
+++ b/test/ns-afl-svg/0606.svg
@@ -0,0 +1,14 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="0" m="0">
+0<stop p-c="0" et="0"/>
+0<stop stop-r="0" offset="0"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" m="0">
+0<stop stop-color="rgb0000000000" offset="0"/>
+0<stop stop-colwr="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0-0,0-0000000,00-0-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#pyBlue)"/>
+0<path d="000,0000,000000000000000000000000000000" fill="url(#pyBlue)"/>
+0<path d="M00,000l0,00l00,0c00,0-00-0-00-00c0-00,0-00,00-00l00,0l0-0l000,0l0-0l0,0z M00,00v0" fill="url(#pyBlue)"/>
+0<path d="M00,00c0,000,00000,00000000000000000000000000-00,00-00c0,00000000000000000000000000000000000,0000,000000000000,000,00,00,0000,0000,00000,000000,000,000" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0607.svg b/test/ns-afl-svg/0607.svg
new file mode 100644
index 0000000..ef7ab4e
--- /dev/null
+++ b/test/ns-afl-svg/0607.svg
@@ -0,0 +1,13 @@
+<svg ns="0"><!--0-->
+0<path d="M00,0,00" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M0,0h0l0,0,0,0z" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M0,0h0l0,0v0l0,0h0v0l0,0h00-" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+</svg>
diff --git a/test/ns-afl-svg/0608.svg b/test/ns-afl-svg/0608.svg
new file mode 100644
index 0000000..cdf58f5
--- /dev/null
+++ b/test/ns-afl-svg/0608.svg
@@ -0,0 +1,23 @@
+<vg xmlns="0000000000" Box="0" stroke-wiYth="0">
+0
+0<![CDATA[0]]><Ê‹defs>0<![CDATA[0]]
+0
+0]]><Ê‹defs>0<![CDATA[0]]><Ê‹defs>
+0<Ê‹defs>0
+0<![CDATA[0]]><Ê‹defs>0<![CDATA[0]]
+0
+0]]><Ê‹defs>0<![CDATA[0]]><Ê‹defs>
+0<Ê‹defs>
+0
+0
+0<![CDATA[0]]><Ê‹defs>0<![CDATA[0]]
+0
+0]]><Ê‹defs>0<![CDATA[0]]><Ê‹defs>
+0<Ê‹defs>
+0
+0
+0<![CDATA[0]]><Ê‹defs>0<![CDATA[0]]
+0
+0]]><Ê‹defs>0<![CDATA[0]]><Ê‹defs>
+0<Ê‹defs>
+0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0609.svg b/test/ns-afl-svg/0609.svg
new file mode 100644
index 0000000..ddfca23
--- /dev/null
+++ b/test/ns-afl-svg/0609.svg
@@ -0,0 +1,11 @@
+<svg xmlns="00000000000000000000">
+0<path d=""/>
+0<jath d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+
+0
+</svg>
diff --git a/test/ns-afl-svg/0610.svg b/test/ns-afl-svg/0610.svg
new file mode 100644
index 0000000..99bbcfc
--- /dev/null
+++ b/test/ns-afl-svg/0610.svg
@@ -0,0 +1,29 @@
+<svg xmlns="0000000000" viewBox="0 0 0 0">
+0<paUh d="0" e="0" l="0"/>0
+0<pauh d="0" ll="0"/>0
+0<texX x="0" y="0" t-e="0" ll="0" xt-al="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK ll="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vl="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fl="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK4KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLKKKKKKKKKKKKKKKKipLLLLLILLLLLLLLLLLLLt ty="0" rx="0"/>0
+0
+</svg>
diff --git a/test/ns-afl-svg/0611.svg b/test/ns-afl-svg/0611.svg
new file mode 100644
index 0000000..4b463cb
--- /dev/null
+++ b/test/ns-afl-svg/0611.svg
@@ -0,0 +1,5 @@
+<svg xmlns="00000000" ry="0" style="fill: url(#00)stroke: n0n00 stroke-width: " width="g" viewBox="0 0 0 0">0<saty d="0" le="0"/>
+0<rect height="0" id="0" ry="0" style="fill: url(#000000)stroke: n0n00 stroke-width: " width="0"/>
+0<rect height="0" id="0" rx="0" ry="0" style="fill: url(#000000)stroke: n0n00 stroke-width: " th="0" x="0" y=";"/>
+0<rect height="0" id="0" rx="0" ry="0" style="fill: url(#000000)stroke: n0n00 stroke-width: " width="0"/>
+0<rect height="0" id="0" rx="0" ry="0" style="fill: url(#0000)stroke: n0n00"/>0</svg>
diff --git a/test/ns-afl-svg/0612.svg b/test/ns-afl-svg/0612.svg
new file mode 100644
index 0000000..9b6921c
--- /dev/null
+++ b/test/ns-afl-svg/0612.svg
@@ -0,0 +1,390 @@
+<svg ns="0" fill="url(#py0ellow" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="0" oolor="0" et="0"/>0
+0<stop stop-color="#000" offset=".4" cy="0" ll="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="C"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="r000000000" ll="0"/>
+0<path d="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,0,00000000000" id="0" style="fill: url(#000000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" ll="0"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c000000000000-00-00 00-00 00@000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#000000" fill="url(#000e)"/>
+0<path d="00000000000000000000000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" ll="0"/>0
+0<path d="0000000000000000000000000000000000000000" id="0000" style="fill: url(#r0000" fill="url(#000e)"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#000w)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000"/>0
+0
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-0000000000000000000-000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c000000,00000,000000,000,0000,000,000000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,5,00-2,00l-50-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-00-60.005,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" ll="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" ll="0"/>0
+0<path d="M00,00c090-0,10-00,104-00l0-00c0-0,0-00,10-00l04,0c0,0,00-0,04-00l0-1000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-02c0-7,6-00,-00108000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" ll="0"/>0
+0<path d="M00,00c090-8,00-00,100-00l0-20c0-7,0-00,00-00000,00"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,10-00,104-00l0-20c0-7,0-00,10-00l04,0c0,0,00-0,04-10l0-1000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-02c0-7,6-00,-00108000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="v" fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00o0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-00,100-00l0-20c0-7,0-00,02-00000,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" _x="0" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<AirCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,10-00,104-00l0-20c0-7,0-00,10-00l24,0c0,0,00-0,14-10l0-1000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCla r="0" ll="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-00,100-00l0-20c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,00..000,00000000 000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,10-00,104-00l0-20c0-7,0-00,10-00l24,0c0,0,00-0,14-10l0-1000,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,10-00,124-00l0-02c0-7,0-00,10-00l24,0c0,0,00-0,14-10l0-10l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0<path d="M00,00c000-8,00-00,004-00l0-20c0-7,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-00,100-00l0-20c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000w)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,0000000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<AirCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<AirCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0613.svg b/test/ns-afl-svg/0613.svg
new file mode 100644
index 0000000..8d0e770
--- /dev/null
+++ b/test/ns-afl-svg/0613.svg
@@ -0,0 +1,55 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='red'/>0<g transform='translate( ,00)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' c_='0' r='1' fill='black'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0">
+<!ENTITY t "">
+<!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" ion="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" fill="none" stroke="blue"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(000)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0<g d="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0"
+th="0" heé00="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="P" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0614.svg b/test/ns-afl-svg/0614.svg
new file mode 100644
index 0000000..dd40f5a
--- /dev/null
+++ b/test/ns-afl-svg/0614.svg
@@ -0,0 +1,74 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="s0g0" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" of="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M20,0c0,0,00,0,20,120c0,0-0,00-10,12l-24,0c00,0-04,0-14,10l0,00l-9,0c-8,0-10-0-00-20c0-00,0-00,0-24i0000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" id="0" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00000000,00L0000000000000000000000000"/>
+0<path d="M70,00c090-0,00-00,100,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#r0000" fill="url(#00000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c00000000000000000000000000000000000000000000000000000000000000000,00000,000000,000,0l00,0000000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M70,80c0,73-230-20-0-24108.0000000000000000000000000000000000000000000000000000000000000000000-00" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000=00,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,80c090-0,00-03,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M70,80c0,73-230-24-0-24108.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0615.svg b/test/ns-afl-svg/0615.svg
new file mode 100644
index 0000000..823a55c
--- /dev/null
+++ b/test/ns-afl-svg/0615.svg
@@ -0,0 +1,7 @@
+<vg xmlns="0000000000" Box="0" stroke-width="0">
+0
+0<![CDATA[0]]><Ê‹defs>0<![CDATA[0]]
+0
+0]]><Ê‹defs>0<![CDATA[0]]><Ê‹defs>
+0<Ê‹defs>
+0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0616.svg b/test/ns-afl-svg/0616.svg
new file mode 100644
index 0000000..3b25a29
--- /dev/null
+++ b/test/ns-afl-svg/0616.svg
@@ -0,0 +1,3 @@
+<svg vivox='0' xmlns='0' fill='0000000000000' stroke='0'>
+0<svg vivxx='0' xmlns='000' fill='0000000000000' stroke='0'>
+0<path d='M0,0c00,0-0,0-0,00-' fill='s0y00tax000ns00000' stroke='black'/>0</svg><path d='M00,00c00,0-0,0-0,00-00' fill='s0y00tax000ns00000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/0617.svg b/test/ns-afl-svg/0617.svg
new file mode 100644
index 0000000..be831d5
--- /dev/null
+++ b/test/ns-afl-svg/0617.svg
@@ -0,0 +1,16 @@
+<?l?>
+<!DOCTYPE s PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="R" r="1" style="fill:red;stroke:black;" transform="translate(0,00)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u00lla00;stroke-width:001cm" transform=",00"/>
+0<circle cx="c" cy="cm" r="1" style="fill:green;stroke:000000"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u00lla00;stroke-width:001cm" transform=",00"/>
+0<circle cx="c" cy="cm" r="1" style="fill:green;stroke:000000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u00lla00;stroke-width:001cm" transform=",00"/>0<circle cx="cm" cy="cm" r="1" style="fill:b0u00lla00;stroke-width:001cm" transform="0"/>
+0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0618.svg b/test/ns-afl-svg/0618.svg
new file mode 100644
index 0000000..bb81bdb
--- /dev/null
+++ b/test/ns-afl-svg/0618.svg
@@ -0,0 +1,17 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<ellipse cx="0" cy="0" rx="6" ry="9" fill="#000"/>
+0<path d="M,0 0-H00000000000000000000000000000000000000000000000000000,00000"
+fill="0"/>0<ellipse rx="5" ry="2" transform="rotate(0-0,0)" fill="#000"
+ty="0"/>0
+0
+0
+0<ellipse cx="0" cy="0" rx="6" ry="9" fill="#000"/>
+0<path d="M00,000-00-0P0000000000000000000000000000000000000000000000000,00000"
+fill="0"/>0<ellipse rx="5" ry="2" transform="rotate(0-0,0)" fill="#000"
+ity="0"/>0
+0
+0
+<ellipse rx="5" ry="2" transform="0"/>
+0
+<ellipse rx="3" ry="2" transform="rotate(,0-0,0)" fill="#000"
+ity="0"/>0</svg>
diff --git a/test/ns-afl-svg/0619.svg b/test/ns-afl-svg/0619.svg
new file mode 100644
index 0000000..9587ae5
--- /dev/null
+++ b/test/ns-afl-svg/0619.svg
Binary files differ
diff --git a/test/ns-afl-svg/0620.svg b/test/ns-afl-svg/0620.svg
new file mode 100644
index 0000000..b796556
--- /dev/null
+++ b/test/ns-afl-svg/0620.svg
@@ -0,0 +1,16 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="stroke-width:001cm" transform="translate(0"/>
+0<circle cx="cm" cy="cm" r="1" style="0"/>
+0<circle cx="cm" cy="cm" r="H" style="fill:g0e00o{e000ac0;" transform="translate(0,0)"/>
+0
+0<circle cx="cm" cy="cm" r="H" style="fill:g0e00o{e000ac0;" transform="0"/>
+0<circle cx="cm" cy="cm" r="H" style="fill:g0e00o{e000ac0;" transform="translate(0,0)"/>
+0
+0<circle cx="cm" cy="cm" r="H" style="fill:g0e00o{e000ac0;" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0621.svg b/test/ns-afl-svg/0621.svg
new file mode 100644
index 0000000..0184abe
--- /dev/null
+++ b/test/ns-afl-svg/0621.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:k0a00;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0622.svg b/test/ns-afl-svg/0622.svg
new file mode 100644
index 0000000..f5231d9
--- /dev/null
+++ b/test/ns-afl-svg/0622.svg
@@ -0,0 +1,9 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h00l00,00v00l0,00-000" stroke="#000" fill="n0k00lud000e"/>
+0<path d="M00,0000l00,00v00l000,00-000" stroke="#000" fill="n0k00lud000e"/>0
+0<path d="M00,0h00l00,0l000,0000#000" fill="n0n00d"/>0
+0<path d="M00,00n0"/>0
+0<path d="M00,0h00l00,00v00l000,0000#000" fill="n0n00d"/>0
+0<path d="M00,0 00000" f="0" stroke="#000" fill="n0k00lud000e"/>0
+0<path d="M00,0h00l00,00v00l0000" f="0" stroke="#000" fill="n0k00lud000e"/>0
+<path d="00" fill="0000"/>0</svg>
diff --git a/test/ns-afl-svg/0623.svg b/test/ns-afl-svg/0623.svg
new file mode 100644
index 0000000..4e6807b
--- /dev/null
+++ b/test/ns-afl-svg/0623.svg
@@ -0,0 +1,277 @@
+<vg xmlns="0000000000">0
+<!--0-->0<sv xmlns:c="0" xmlns="000000000000000000" xmlns:k="0" xmlns:sodipodi="00" xmlns:inkscape="000"
+th="0"
+gt="0" id="0" sodipodi:ion="0" inkscape:version="0" sodipodi:docname="0" inkscape:ut_À000000="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath gm="0">
+0<efè00>
+0<efè00 m="">
+0<efè00>
+0<efè00>0
+0
+0<efè00>
+0<efè00>0 0<efè00>
+0<efè00>
+0<efè00>
+0<efè00 x="">0
+0<defs>0
+0
+0<efè00>
+0<lefè00 g="">0 0<lefè00 s="">
+0<lefè00 m="">
+0<lefè00>
+0<lefè00 B="">
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>0
+0<lefè00 m="">
+0<lefè00>0 0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0<lefè00 m="">
+0<lefè00>0
+0
+0<lefè00 m="">
+0<Pefè00>0 0<efè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0<defs>0
+0
+0<lefè00>
+0<lefè00>0 0<efè0000 s="">
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00 x="">0 0<efè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<efè0000>
+0<lefè00>
+0<le>
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lVfè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0
+0
+0<lefè00>
+0<lefè00>
+0
+0
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00 B="">
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00 m="">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0
+0
+0<lefè00>
+0<leWè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0<lefè00>
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>0 0<lefè000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0<defs>0
+0
+0<lefè00 d="">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<leWè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>0<lefè00>
+0<lefè00 m="">
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0<defs>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè000>
+0<lefè00>
+0<lefì00 m="">
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<le>
+0
+0<lefè00>
+0<lefè00>0 0<lefè000>
+0<lefè00>0
+0
+0<defs>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<le>
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<le>
+0
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0624.svg b/test/ns-afl-svg/0624.svg
new file mode 100644
index 0000000..9e3713c
--- /dev/null
+++ b/test/ns-afl-svg/0624.svg
@@ -0,0 +1,172 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(000">
+0<stop stop-color="0000000" offset="0"/>
+0<stop stop-color="d0a0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000000000,00000000000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,00000000000000000000000000000000000000000000000000000000000000000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-00-000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r=")"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000 00-00-00 00-00 000-00 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000 000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#00000" fill="url(#00000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000,0000000000000000,,00c00000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000-00 00-00 00000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-00-000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 000-00-0=00,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx=")"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url0000000"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0625.svg b/test/ns-afl-svg/0625.svg
new file mode 100644
index 0000000..aaa96a0
--- /dev/null
+++ b/test/ns-afl-svg/0625.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle Z="0" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:u0e00;stroke:black;stroke-width:1cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0626.svg b/test/ns-afl-svg/0626.svg
new file mode 100644
index 0000000..afe1c58
--- /dev/null
+++ b/test/ns-afl-svg/0626.svg
@@ -0,0 +1,3 @@
+<?l?>
+<!DOCTYPE s00000000000000000:000 PUBLIC "0" "0">
+<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0627.svg b/test/ns-afl-svg/0627.svg
new file mode 100644
index 0000000..8a16ab8
--- /dev/null
+++ b/test/ns-afl-svg/0627.svg
@@ -0,0 +1,3 @@
+<svg xmlns="0000000000" viewBox="0">
+0<!--0--><g>
+0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0628.svg b/test/ns-afl-svg/0628.svg
new file mode 100644
index 0000000..3c9b2b9
--- /dev/null
+++ b/test/ns-afl-svg/0628.svg
@@ -0,0 +1,13 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:black;stroke-width:00000000)"/>
+0<circle cx="cm" cy="0" r="1" style="fill:g0f00lba000ke000000;" transform="translate(,0,0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0f00lba000ke000000;"/>
+0<circle cx="cm" cy="cm" r="H" style="fill:blue;stroke:t0a00;stroke-width:000cm" transform="translate(0,0)"/>
+0<circle cx="G" cy="cm" r="1" style="fill:g0f00lba000ke000000;stroke-width:001cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0629.svg b/test/ns-afl-svg/0629.svg
new file mode 100644
index 0000000..69f0d42
--- /dev/null
+++ b/test/ns-afl-svg/0629.svg
@@ -0,0 +1,36 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" g_i="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a00iew000"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0000,,00c0,0-0,00-00,000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000000000000000000000000000000000000000000,0000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000,000000000000000000000000000000000000000000000=00,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0630.svg b/test/ns-afl-svg/0630.svg
new file mode 100644
index 0000000..6588b99
--- /dev/null
+++ b/test/ns-afl-svg/0630.svg
@@ -0,0 +1,45 @@
+<svg ootì="0">
+0<de ootì="0">0
+0<def>0
+0<de ootì="0">0
+0<def>0<pig oì="0">0
+0<def>0<pig ootì="0">0
+0<de ootì="0">0
+0<pig ootì="0">0
+0<def>0<pig ootì="0">0
+0<def ootì="0">0
+0<def>0
+0<def ootì="0">0
+0<def>0
+0<defivg ootì="0">0
+0<def>0
+0<defivg ootì="0">0
+0<def>0<pig ootì="0">0
+0<defivs>0<pig ootì="0">0
+0<defivg ootì="0">0
+0<pig ootì="0">0
+0<defivs>0<pig ootì="0">0
+0<defivg ootì="0">0
+0<defs>0
+0<defivg ootì="0">0
+0<defs>0<pig ootì="0">0
+0<defs>0<pig ootì="0">0
+0<defivg ootì="0">0
+0
+0<pig ootì="0">0
+0<defs>0<pig ootì="0">0
+0<defivg ootì="0">0
+0
+0<defivg ootì="0">0
+0
+0<defs>0<pig ootì="0">0
+0<defs>0<pig ootì="0">0
+0<defivg ootì="0">0
+0
+0<pig ootì="0">0
+0<defivs>0<pig ootì="0">0
+0<defivg ootì="0">0
+0
+0<defivg ootì="0">0
+0
+0<defs>0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0631.svg b/test/ns-afl-svg/0631.svg
new file mode 100644
index 0000000..084fc23
--- /dev/null
+++ b/test/ns-afl-svg/0631.svg
@@ -0,0 +1,97 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="v0e0" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="000" t="0"/>0
+0
+0<stop stop-color="#000" offset=".4" y="0" l="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" c="0"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" y="0" i="0"/>
+0<circle r="4" cx="0" y="0" fill="#00:"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,0000000000c00000-00000 00-00-00 0000000,00000000000000000000000000000000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" f="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,100-00l0-22c0-0,0-10,00-10l04,0c0,0,00-0,00-10l0-10l9,0c00000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" cx="0" y="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000-000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c00000000000000-00-00 00-00 000-00 0000-00 000-000.000000000000000000000000000000000000000000000000000000000000000000000.00000 0" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00000000000000000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-22c0-0,0-10,10-10l24,0c0,0,00-0,14-10l0-10l9,0c0,0,00c0,0000,00000,000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c0,0000,0000000000c0,0,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000000,000,0,0000,000000000000000" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<ciUCle r="0" cx="0" y="0" ll="0"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,004-00l0-22c0-0,0-00,-00100.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(00"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0632.svg b/test/ns-afl-svg/0632.svg
new file mode 100644
index 0000000..4824334
--- /dev/null
+++ b/test/ns-afl-svg/0632.svg
@@ -0,0 +1,71 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' he='0' fill='black' stroke='red'/>0<g transform='translate(0,00)'>0
+<circle cx='0' cy='0' r='1' fill='000000'/>0<circle cx='e' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M00 0A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='ex' height='0'
+fill='none' stroke='b0u0'/>">]><svg width="px" height="30px" on="0" xmlns="000000000000000000">
+0
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="000"/>
+0<g fonze="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0<g id="0" transform="translate(00 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="000"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg presctRatio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="=" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000)00"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&L;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pspestRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preservatio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg presatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0633.svg b/test/ns-afl-svg/0633.svg
new file mode 100644
index 0000000..3d223c6
--- /dev/null
+++ b/test/ns-afl-svg/0633.svg
@@ -0,0 +1,17 @@
+<svg v0='0' x1='0' id='tgrad' gradientUnits='0'>
+0<linearGradient y1='0' x1='0' id='0'>
+0<stop stop-color='0' offset='0'/>
+0<stop stop-color='0' offset='0'/>
+0</linearGradient>
+0<path st-lin='0' k0='0' d='00' fill='none' s0='0'/>0
+0
+0<linearGradient y1='0' x1='0' id='0' gradientUnits='0'>
+0<linearGradient y1='0' x1='0' id='0'>
+0<stop stop-color='0' offset='0'/>
+0<stop stop-color='0' offset='0'/>
+0</linearGradient>
+0<path st-lin='0' k0='0' d='0' fill='0' s0='0'/>0
+0<stop stop-color='0' offset='0'/>
+0
+0</linearGradient>
+0<path st-lin='0' stroke='url(#tgrad)' d='M00,00c000,0-00,0-00-00M00,00h0(' fill='none' stroke-width='6'/>0</svg>
diff --git a/test/ns-afl-svg/0634.svg b/test/ns-afl-svg/0634.svg
new file mode 100644
index 0000000..8edb1f8
--- /dev/null
+++ b/test/ns-afl-svg/0634.svg
@@ -0,0 +1,18 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="0000000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="c" cy="cm" r="1" style="stroke:" wrorm="0"/>
+0<circle cx="cm" cy="0" r="1" style="stroke:b0t00blu000e stroke-width:00m" transform="translate(0,0)"/>
+0
+0
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0t00blu000e" transform="translate(0,0)"/>0
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0t00blu000e stroke-width:00m" transform="translate(0,0)"/>
+0
+0
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0t00blu000e" transform="translate(0,0)"/>
+0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0635.svg b/test/ns-afl-svg/0635.svg
new file mode 100644
index 0000000..bf6493c
--- /dev/null
+++ b/test/ns-afl-svg/0635.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" xmlns:xlin0="0" viewBox="0 0 1 2">
+0<radialGradient id="0" cx="0" cy="0" r="0" grntUnits="0"><stop ot="0" op-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M0,0A0,0 0,0,0 0,0C0,0 0,0 0,0C0,00 00,00 00,0C000,00 00,00 00,00" id="0" fill="l0c00cle00"/>
+0<use xlin0:href="0" transform="0"/>0</svg>
diff --git a/test/ns-afl-svg/0636.svg b/test/ns-afl-svg/0636.svg
new file mode 100644
index 0000000..8e2e49f
--- /dev/null
+++ b/test/ns-afl-svg/0636.svg
@@ -0,0 +1,2 @@
+<?l?>
+<!DOCTYPE g> \ No newline at end of file
diff --git a/test/ns-afl-svg/0637.svg b/test/ns-afl-svg/0637.svg
new file mode 100644
index 0000000..039992b
--- /dev/null
+++ b/test/ns-afl-svg/0637.svg
@@ -0,0 +1,173 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0-0,00,0,03,00l0,00c00000000000" fill="url(#py0ellow)"/>0
+0<circle r="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="0000000000000000000000000000000000000000000000000000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000=00,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-60.870,00000000000000000000,0000000000000000,0000000000000000000" c="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,004-00l0-00c0-0,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,03-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx=")"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00000,00000,00000000000c000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-22c0-7,0-12,10-10l24,0c0,0,00-0,14-10l0-10l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0638.svg b/test/ns-afl-svg/0638.svg
new file mode 100644
index 0000000..de744d9
--- /dev/null
+++ b/test/ns-afl-svg/0638.svg
@@ -0,0 +1,18 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="0000000000000000000000">
+0<style type="0">0
+0</style>
+0<g style="0">0
+0<style type="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="c" cs="0" r="1" style="fill:r0d0" wrorm="0"/>
+0<circle cx="cm" cy="cm" r="D" style="stroke:c0t00blw000id000000" transform="000000,0000"/>
+0
+0</g>0
+0<circle cx="c" cs="0" r="1" style="fill:r0d0" wrorm="0"/>
+0<circle cx="cm" cy="cm" r="D" style="stroke:c0t00blw000id000000" transform="0000,0000"/>
+0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0639.svg b/test/ns-afl-svg/0639.svg
new file mode 100644
index 0000000..0ac2929
--- /dev/null
+++ b/test/ns-afl-svg/0639.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="R" r="1" style="fill:red;stroke:black;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u00bla00;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="c" cy="cm" r="1" style="fill:green;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0640.svg b/test/ns-afl-svg/0640.svg
new file mode 100644
index 0000000..df9852f
--- /dev/null
+++ b/test/ns-afl-svg/0640.svg
@@ -0,0 +1,38 @@
+<svg xmlns="0000000000">
+0<path d="M00,0h000000v000000000h0000000000v000 000-00-00-00-000 00-000-000" stroke="#000" fill="n0n00eig000"/>0
+0<path d="l0-00-00-000 00-00v0000" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M00,0h0000000000h000000000000000000v0000" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M00,0h00000000" fill="#000"/>0
+0<text x="0" y="z" ll="0"/>0
+0<text x="0" y="0" font-size="0" ll="0" t-ar="0"><![CDATA[0]]></text>
+0
+0<path d="M0000000-00-00-000 00-0000000" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M00,0h00000000000000h000000000000000 00-00v0000" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M00,0h00l00,00-00,00h000l000-0\0000000000000000" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v00 00-000-000" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M00,0h00l00000" fill="#000"/>0
+0<text x="0" y="z" fl="0"/>0
+0<text x="0" y="0" e="0" fill="0" tar="0"><![CDATA[0]]></text>
+0
+0<path d="M0000-00-00-00-000 00-0000000" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M00,0h00l00,00-00,00h00000-00-00-000 00-00v000z" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M00,0h00l00,00-00,00h000l000-0\0000000000000000" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M00,0h00l00,00v00,0l000,00h000-0000-000 00-00v000z" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M00,0h00l00000" fill="#000"/>0
+0<text x="0" y="z" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" t-ar="0"><![CDATA[0]]></text>
+0
+0<path d="M00,00-00-00-00-000 00-00v000z" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M00,0h00l00,0l000,00h00000-00-00-000 00-00v000z" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M00,0h00l00,0l000,00h000l000-0\0000000000000000" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v00 00-000-00z" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M00,0h00l00000" fill="#000"/>0
+0<text x="0" y="z" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" t-ar="0"><![CDATA[0]]></text>
+0
+0<path d="M00,00-00-00-00-000 00-00v000z" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M00,0h00l00,0l000,00h00000-00-00-000 00-00v000z" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M00,0h00l00,0l000,00h000l000-0\0000000000000000" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0<text x="0" y="z" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0641.svg b/test/ns-afl-svg/0641.svg
new file mode 100644
index 0000000..59a40a5
--- /dev/null
+++ b/test/ns-afl-svg/0641.svg
@@ -0,0 +1,8 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0l0-0z" stroke="#000" fill="w0n0"/>0
+0
+0<path d="M0,0h0l0,0v0l0,0l0-0v0z" stroke="#000" fill="w0n0"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-0G" fill="#000"/>0
+0<path d="M0,0h00l00,00v00l000,00h000l000-00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="w0n0"/>0
+0
+0<path d="M0,0h0l0,0v00l00" fill="000000000000000000000"/>0<text x="0" y="0" t-ze="0" fl="0" t-r="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0642.svg b/test/ns-afl-svg/0642.svg
new file mode 100644
index 0000000..0a88536
--- /dev/null
+++ b/test/ns-afl-svg/0642.svg
@@ -0,0 +1,143 @@
+<svg mlns="0" qiewBox="0">0<t x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKkKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<pKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<toxt x="0"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKmKKKKMKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpnth d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKDKKKKKKKKKKKQKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKIKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<teKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKOKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="n"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" finl="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patdKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<YKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<pazKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKlKKKKKKKKKKKKKKKKKKK-Kpnth d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKQKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKIKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKt d="0" ke="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKPKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK_KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLLLLKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<pKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<toxt x="0"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKmKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKÓ00 l=""/>0
+0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKext d="0" ke="0" fill="0"/>0
+0<ath d="0" vill="0"/>0
+0<text x="C"/>
+0
+0
+</svg>
diff --git a/test/ns-afl-svg/0643.svg b/test/ns-afl-svg/0643.svg
new file mode 100644
index 0000000..ce71ea3
--- /dev/null
+++ b/test/ns-afl-svg/0643.svg
@@ -0,0 +1,3 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="n0n00ncl000e"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0<![CDATA[0]]></svg>
diff --git a/test/ns-afl-svg/0644.svg b/test/ns-afl-svg/0644.svg
new file mode 100644
index 0000000..d9bcc1e
--- /dev/null
+++ b/test/ns-afl-svg/0644.svg
@@ -0,0 +1,359 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="u0v00n" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,000-0l0000000000000" fill="url(#000000"/>
+0<path d="M00,00c0,0,0,00-0,00-00000000000000000000000000000000000000000000000000=0000000000000000000000000000000000000000000000" id="0000" style="fill: url(#000000" fill="url(#000000"/>
+0<path d="M70,80c000-0,00-00,124,50v0" fill="url(#pyYellow"/>0
+0<cirCle r="4" x="0" cy="0" fill="#000"/>0
+
+0<cirCle r="4" cx="0" cy="z" id="0000" style="fill: url(#000000" fill="url(#000000"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" e="0" fill="#000"/>
+0<circle r="" cx="0" x="0" style="fill: 0000000000000"/>
+0<path d="M70,80c000-0,00-00,124,50v0" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,00L000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M70,87c0,70-230-00-0-24100.0000000000000000000000000000000000000000000000" y="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000000000000000000000000000000000000000000000000000000000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,00-00,104,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c000000000000000000000000000000000000000000000000000000000000000000000000,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,70-000-00-60.800,100.0000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="M00,00c0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c007-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,000-00l0-00c0-0,6-00,-04000.000000000000,000.0000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00000,00000,00000000000c000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M04,80c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,000-00l0-02c0-0,6-00,-04000.000000000000,000.0000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000e)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" x="0" y="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" x="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,00..000,00000000 000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="z" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,100-13l0-00c0-0,0-12,02-00l24,0c0,0,00-0,10-15l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-20,020-00l0-02c0-0,0-00,-04000.000000000000,000.0000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-20,100-13l0-00c0-0,0-12,02-00l24,0c0,0,00-0,10-15l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0645.svg b/test/ns-afl-svg/0645.svg
new file mode 100644
index 0000000..312509b
--- /dev/null
+++ b/test/ns-afl-svg/0645.svg
@@ -0,0 +1,25 @@
+<svg viewBox='0 0 6 6' xmlns='0000000000000'>
+0<path d='M0,00-00' fill='s0l00n' stroke='b0a00'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,0,0hh000000000' fill='s0l00n' sRroke='0'/>
+0
+0
+0<path d='M0,00c00,0-0-0,0-00-00' fill='s0l00ck'/>
+0
+0<path d='M00,00c0' fill='s0l00n' stroke='b0a00'/>0
+0<path d='M00,00c0000000000000000000000000000000000000000000000000000000000' fill='s0l00n' R='0'/>
+0
+0
+0<path d='M00,00c00,0-0-0,0-00-' fill='s0l00ck'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,00000000000000000000-000' fill='s0l00n' stroke='black'/>
+0
+0
+0<path d='M0,00-000' fill='s0l00n' stroke='black'/>
+0
+0
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,000000000000000000000-000' fill='s0l00n' stroke='black'/>
+0
+0
+0<path d='M0,00c000' fill='s0l00n' stroke='black'/>
+0
+</svg>
diff --git a/test/ns-afl-svg/0646.svg b/test/ns-afl-svg/0646.svg
new file mode 100644
index 0000000..cbc1bdf
--- /dev/null
+++ b/test/ns-afl-svg/0646.svg
@@ -0,0 +1,67 @@
+<?l?>
+<svg version="0" xmlns="0000000000">0<circle id="0" cx="0" cy="0" r="5" stroke="l0w00aic0"
+sh="0"/>0
+0
+0
+0<script pe="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="1" stroke="l0w00aic0"
+stroke-width="3"/>
+0
+0
+0<script pe="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="1" stroke="l0w00aic0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/0647.svg b/test/ns-afl-svg/0647.svg
new file mode 100644
index 0000000..b9a254a
--- /dev/null
+++ b/test/ns-afl-svg/0647.svg
@@ -0,0 +1,116 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c00ext000co000'/>0<g transform='000'>0<circle cx='0' cy='0' r='1' fill='y0l00w'/>0<circle cx='0' cy='0' r='5' fkll='0'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M000 000A00000000' stroke-width=' ' stroke='black' strokg-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='a0u0'/>">]><svg width="px" height="30px" ion="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g fonsize="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&Viewport0;</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg presctRatio="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg preservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport0;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport0;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&t;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0648.svg b/test/ns-afl-svg/0648.svg
new file mode 100644
index 0000000..0e66ec1
--- /dev/null
+++ b/test/ns-afl-svg/0648.svg
@@ -0,0 +1,116 @@
+<svg xmlns="00" qiewBox="0">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="m0s00tra000or000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000,0000,000000000000000000,0000000,000000,0000" fill="url(#000000)"/>
+0<path d="M00,00c0,000,00-0,00-000000000000C000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,80c000-0,00-00,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000,0000,000,0,00,0,00000000000000,000" fill="url(#000000)"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,00000000,000000,0000" fill="url000000000"/>
+0<pAth d="M00,00c0,0-0,00-00,000-0000000c000,0000,000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,000000000000,0,0000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,00c000-0,00-00,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,00,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="00000000000,00000000,00000,0000,0000,000000000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,80c000-0,00-03,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" Wx="0" id="0000" style="fill: url(#00000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M70,80c097-8,00,0,13,23c0,00-0,00-10,20l-35,0l0,3l23,0l0,9l0,0z M100,50v1" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,00000000,000000,0000" fill="url(#000000)"/>
+0<pAth d="M00,00c0,0-0,00-00,000-0000000c000,0000,000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0-00000 00-00-00 00-00 000-0,0000,000000,00000,00000000000c000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M74,87c0,73-030-24-6-24108.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0000000000,00,0,0000,000000000000,000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circlk r="0" cx="0" cy="0" fl="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" yx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="=" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle v="0" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" ll="0"/>
+0<ph d="0" ll="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" ll="0"/>0
+0
+
+0<circle r="0" cx="0" cy="0" ll="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" ll="0"/>0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" ll="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" id="0000" style="0" ll="0"/>
+0<path d="0" ll="0"/>0
+0<cirCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="0" cx="0" cy="0" ll="0"/>0</svg>
diff --git a/test/ns-afl-svg/0649.svg b/test/ns-afl-svg/0649.svg
new file mode 100644
index 0000000..ce2fb89
--- /dev/null
+++ b/test/ns-afl-svg/0649.svg
@@ -0,0 +1,12 @@
+<svg xmlns="000000000000000000" xmlns:xlin0="00" viewBox="0 0 0 0">
+0<radialGradient id="0" cx="0" cy="0" r="0" grntUnits="0"><stop ot="0" top-c="0"/><stop ot="0"/></radialGradient>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" s="0"><stop ot="0" stop-c="0"/><stop ot="0"/></radialGradient>
+0<path d="00000"/>
+0<patH d="M000000,000:00000000000000000000000000000000000000000000000000000,00" id="0" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,00000000000000000000000000000000000,00000,00000,0000000,00000,00000,00" id="0" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,000,0,000,000000,00000,00000,0000000,00000,00000,00" id="0" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,00000,0000000,00000,00000,0000000,00000,00000,00" id="0" fill="c0c00cle00"/>
+0<use xlin0:href="0" transform="0"/>
+0
+0<use ef="0" m="0"/>0</svg>
diff --git a/test/ns-afl-svg/0650.svg b/test/ns-afl-svg/0650.svg
new file mode 100644
index 0000000..9324d4e
--- /dev/null
+++ b/test/ns-afl-svg/0650.svg
@@ -0,0 +1,16 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l000000000000000000000000000000000000,0-0M00,0000" fill="url(#0000)"/>
+0<path d="M00,00000000,00000,0000000000000000,0000000000000000,0000000000C000000000,00000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: urn00rad00" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0000000000000000000 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000000000000000000000000000000000000,000000000000000000,0000000000000000,0000000000C000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: urb00rad000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00,L0,0,00,00c0,00-0,00-00,00l000,0l0,0l00,0l0,0l0,00000000000000000000000000i0000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,0000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0,0000000000000000,000000000000000000000000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: urb00rad000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00,L0,0,00,00c0,00-0,00-00,00l000,0l0,0l00,0l0,0l0,0z M00000000000000000000000000000000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000d00000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: urb00rad000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0651.svg b/test/ns-afl-svg/0651.svg
new file mode 100644
index 0000000..919d1b5
--- /dev/null
+++ b/test/ns-afl-svg/0651.svg
@@ -0,0 +1,20 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l0000000" stroke="#000" fill="m0n0"/>0
+0<path d="M00,0h00l00,00v00l000000000000000" stroke="#000" fill="m0n0"/>0
+0<path d="M00,0h00l00,00v00l0000000000000000000000000" stroke="#000" fill="m0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+f="0"
+acity="0"/>0</svg>
diff --git a/test/ns-afl-svg/0652.svg b/test/ns-afl-svg/0652.svg
new file mode 100644
index 0000000..1a5ef2d
--- /dev/null
+++ b/test/ns-afl-svg/0652.svg
@@ -0,0 +1,22 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,00l000-00v0?" e="0" fill="p0n00cse000ye"/>0
+0
+0<path d="M00,0h00l00,00v00?" e="0" fill="p0n00ye"/>0
+0
+0<path d="M00,0h00l00,00v00?" Ve="0" fill="p0n00cse000ye"/>0
+0
+0<path d="M00,00l000" Ve="0" fill="p0n00ses000ma"/>0
+0
+0<path d="M00,00l0000" Ve="0" fill="p0n00cse000ye"/>0
+0<path d="0000" fill="p0n00cse000ye"/>0
+0
+0<path d="M00,0h00l00,00v0000?" Ve="0" fill="p0n00ye"/>0
+0
+0<path d="M00,0h00l00,00v0000?" Ve="0" fill="p0n00cse000ye"/>0
+0
+0<path d="M00,00l000" Ve="0" fill="p0n00sem000ma00"/>0
+0
+0<path d="M0000,0,00" Ve="0" fill="p0n00cse000ye"/>0
+0<path d="M00,0h00l00,00,0000" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000000000000000000"/>0</svg>
diff --git a/test/ns-afl-svg/0653.svg b/test/ns-afl-svg/0653.svg
new file mode 100644
index 0000000..7cd79b5
--- /dev/null
+++ b/test/ns-afl-svg/0653.svg
@@ -0,0 +1,375 @@
+<svg xmlns="00" viewBox="0 0 0 0">
+0<defs>
+0<linearGradient id="pyYellow" gradientTransform="rotate(00)">
+0<stop stop-color="#000" offset="-6"/>
+0<stop stop-color="o0a00to" offset=","/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop p-c="0" t="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" fill="0"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="0" x="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000000000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0-00000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-0000000000000000000000000000000000000000000000000=0000000000000000000000000000000000000000000000" id="0000" style="fill: url(#00000" fill="url(#000e)"/>
+0<path d="M00,00c000-0,00-00,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<cirIle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c00,00..000000.00000000.0000000.00000000000000,0000M00000000000000000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#000000" fill="u00000000000000000000"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000e)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,00L000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000000000000000000000000000000000000000000000000000000000000" fill="u0e0"/>
+0<path d="00000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c00000000000000000000"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,00000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#00=00"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#00=00"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#00=00"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0
+0<circle r="4" cx="0" fill="url(#000{)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,00..000,00000000 000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,000000000000000c000,0000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000p0000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#000000000"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0654.svg b/test/ns-afl-svg/0654.svg
new file mode 100644
index 0000000..53a50ad
--- /dev/null
+++ b/test/ns-afl-svg/0654.svg
@@ -0,0 +1,277 @@
+<svg xmlns="0000000000">0
+<!--0-->0<sv xmlns:c="0" xmlns="000000000000000000" xmlns:k="0" xmlns:sodipodi="00" xmlns:inkscape="000"
+th="0"
+ght="0" id="0" sodipodi:ion="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_À00="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath gm="0">
+0<lefè00 B="">
+0<lefè00 m="">
+0<lefè00 m="">
+0<lefè00>0
+0
+0<lefè00 m="">
+0<lefè00>0 0<lefè00>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00 x="">0
+0<defs>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè00>
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>0
+0<lefè00>
+0<lefè00 o="">
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<Pefè00>0 0<lefè0000 x="">
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0<defs>0
+0
+0<lefè00>
+0<lefè00 x="">0 0<lefè0000>
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè000>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<linent id="0" grorm="0">
+0
+0<lefè00 o="">
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<le>
+0
+0<lefè00>
+0<lefè00 g="">0 0<lefè000>
+0<lVfè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè000>
+0<lefè00>
+0
+0
+0<lefè00>
+0<lefè00>
+0
+0
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0
+0
+0<lefè00>
+0<leWè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0<lefè00>
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<lefè00 x="">0 0<lefè0000>
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0<defs>0
+0
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<leWè00>0 0<lefè000>
+0<lefè00>
+0<lefè00>
+0<lefè00 B="">
+0<lefè00>
+0<lefè00>
+0<lefè00>0<lefè00>
+0<lefè00>
+0<lefè00>
+0
+0<lefè00 m="">
+0<lefè00>0 0<lefè0000 x="">
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00 x="">0 0<lefè0000 s="">
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0<defs>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè000>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<le>
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>0
+0
+0<defs>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<le>
+0
+0<lefè00>
+0<lefè00 s="">
+0<lefè00>0
+0
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00 g="">0 0<lefè000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<le>
+0
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0655.svg b/test/ns-afl-svg/0655.svg
new file mode 100644
index 0000000..e565f1e
--- /dev/null
+++ b/test/ns-afl-svg/0655.svg
@@ -0,0 +1,15 @@
+<vQ ootì-='0' mlѶÑ00000="0">0<sv otÀå00='0'>
+0<svg otÀå00000000000="0" h="">
+0<svg OootÀå0000="0">0<sv otÀå00='0'>
+0<svg OootÀå000="0" h="">
+0<svg OootÀå0000="0">0<sv otÀå00='0'>
+0<svg OootÀå00000="0"
+h="">0<svg OootÀå0000="0">0
+0<sv ootÀå00='0'>
+0<svg OootÀå000='0' å00="">
+0<svg OootÀå0000="0">0
+0<sv ootÀå00='0'>
+0<svg OootÀå000='0'>
+0<svg OootÀå0000="0">0
+0<sv ootÀå00='0'>
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0656.svg b/test/ns-afl-svg/0656.svg
new file mode 100644
index 0000000..69fe61a
--- /dev/null
+++ b/test/ns-afl-svg/0656.svg
@@ -0,0 +1,37 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='k0a00' stroke='red'/>0<g transform='translate(0,0)'>0<circle cx='0' cy='!' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M0 0A0 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='h0n0' stroke='h0u0'/>">
+]>
+<svg width="px" hSight="0" ion="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="b0u0"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&t0;</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0 0 3 4"
+idth="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&o;
+0<text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" heijht="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg preseAio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0657.svg b/test/ns-afl-svg/0657.svg
new file mode 100644
index 0000000..6a327a2
--- /dev/null
+++ b/test/ns-afl-svg/0657.svg
@@ -0,0 +1,19 @@
+<svg xmlns="00000000000000000000000000" id="py0ello0" m="0">
+0<stop p-c="0" t="0"/>
+0
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#00=00"/>0
+0<path d="M0,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00,0,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000000000000,00000,000,0000" fill="url(#py0ello0"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="z" x="0" style="fill: url(#r0000" fill="url(#00000"/>
+0<path d="M00,00c00000,000000000000000000000000000000000000000 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00=00"/>
+0<path d="000000000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" x="0" style="fill: url(#00000" fill="url(#00000"/>
+0<path d="M00,00c000-0,00 00-000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000/000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000000000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" x="0" style="fill: url(#r0000" fill="url(#0000000"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0658.svg b/test/ns-afl-svg/0658.svg
new file mode 100644
index 0000000..a3fae99
--- /dev/null
+++ b/test/ns-afl-svg/0658.svg
@@ -0,0 +1,6 @@
+<svg xmlns="000000" viewBox="0">0<path d="0000000000000000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="w0e00"/>0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="w0e00"/>0
+<path d="M0000 00000q0-0,00-0q000,00-00,00q000,00-00,00q00,0000000000000000000000000000-0-00-00q000000000000000000000000000000000000000,000" fill="w0e00"/>0
+<path d="M0000 000000-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="w0e00"/>0
+<path d="M0000 00000q0-0,00-0q000,00-00,00q000,00-00,00q00,00000,000000000000000000000000000-000-000000000000000000000000000000000000000000" fill="w0e00"/>0
+<path d="00000000000000000,000000000000000000000000000000000,0,00,000" fill="w0e00"/>0
+<path d="M0000 00000q0-0,00,00q00,0-0,0q00,0-0-0q00-0-0-0q00-0-00-00000000000000000-0q000,00000,0,0,000,0,00,000" fill="w0e00"/>0<path e="0" fill="w0e00"/>0</svg>
diff --git a/test/ns-afl-svg/0659.svg b/test/ns-afl-svg/0659.svg
new file mode 100644
index 0000000..3492f5f
--- /dev/null
+++ b/test/ns-afl-svg/0659.svg
@@ -0,0 +1,91 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(00)">
+0<stop stop-color="d0e0" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="000000000000000000000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000,000,0000,000,00000,00,0,0000,0000000000,0000,00000000000000000,0000,000000000000000000,00000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000-0-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" c="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" y="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000-0-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00v0-00l0,0c0,0,0000,000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000-0-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0660.svg b/test/ns-afl-svg/0660.svg
new file mode 100644
index 0000000..392bc95
--- /dev/null
+++ b/test/ns-afl-svg/0660.svg
@@ -0,0 +1,5 @@
+<svg xmlns="0000000000" viewBox="0 0 4 1">
+0<!--0-->
+0<g>
+0<path d="M00000000 000000000L00000000 000000000Q00000000 00000000 00000000 000000000000L0000000 000000000Q0000000 00000000 00000000 000000000Q000..00000000.00000000.00000L000000000000.000.00000L0000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0661.svg b/test/ns-afl-svg/0661.svg
new file mode 100644
index 0000000..a02fbcd
--- /dev/null
+++ b/test/ns-afl-svg/0661.svg
@@ -0,0 +1,18 @@
+<svg vd='0' xmlns='000' drofill='0' stroke='0'>
+0<path d='M00,00c00,0-0,0-0,00-00' fill='d0q00tax000ts00000' soka='0'/>
+0
+0<path d='M00,00c,0,0,0' fill='d0q00tax000ts00000' stroke='b0a00'/>
+0
+0
+0<path d='M00,00c00,0-0,0-0,00-' fill='d0q00tax000ts00000' stroke='b0a00'/>0
+0
+0<path d='M00,00c00,0-0,0-0,00-00' fill='d0q00tax000ts00000' stroke='b0a00'/>0
+0<path d='M00,00c00,0-0,0-0,00-00' fill='d0q00tax000ts00000' a='0'/>
+0
+0<path d='M00,00c,0,000,00000' fill='d0q00tax000ts00000' stroke='b0a00'/>
+0
+0
+0<path d='M00,00c00,0-0,0-0,00-00' fill='d0q00tax000ts00000' stroke='b0a00'/>0
+0
+0<path d='M00,00c00,0-0,0-0,00-00' fill='d0q00tax000ts00000' stroke='b0a00'/>
+0</svg>
diff --git a/test/ns-afl-svg/0662.svg b/test/ns-afl-svg/0662.svg
new file mode 100644
index 0000000..79ff19f
--- /dev/null
+++ b/test/ns-afl-svg/0662.svg
@@ -0,0 +1,5 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00 00-0 00-00-00 00-00 000s000000000-00-00-000 000-000 00-00 00-00 0-0>0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
+transform=",,0"/>0<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+fill="#000" opacity="0"/>0<ellipse rx="5" ry="2" transform="rotate(0)translate(0,0)" fill="#000"
+opacity="0"/>0</svg>
diff --git a/test/ns-afl-svg/0663.svg b/test/ns-afl-svg/0663.svg
new file mode 100644
index 0000000..b340ee1
--- /dev/null
+++ b/test/ns-afl-svg/0663.svg
@@ -0,0 +1,5 @@
+<svg wth="0" height="0" id="0" y="0"><g><g><!--0-->
+0<g>
+0<path d="0" id="0" y="0"><g><g><!--0-->
+0<g>
+0ÿ \ No newline at end of file
diff --git a/test/ns-afl-svg/0664.svg b/test/ns-afl-svg/0664.svg
new file mode 100644
index 0000000..8cce02e
--- /dev/null
+++ b/test/ns-afl-svg/0664.svg
@@ -0,0 +1,165 @@
+<?l?><!DOCTYPE s PUBLIC "0" ""[<!ENTITY Smile "0<rect x='' y='0' width='0' height='0' fill='w0d00che000h' stroke='red'/>0<g transform='translate(000 00'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' f='0'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='ex' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" on="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" he="0" stroke="b0u0"/>
+0<g e="0">
+0<text x="" y="0">0</text>
+0<g transform="0000000">&Smile;</g>
+0<text x="" y="0">0</text>
+0<g transform="0">&i;</g>
+0<text x="" y="0">0</text>
+0<g transform="000000000000,0000">&Viewport2;</g>
+0<g id="" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" ox="0"
+th="" ht="">&Smile;</svg></g>
+0<g transform="000000000000,00"><text y="0">0</text>0
+0<svg pro="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="0000000"><text y="0">0</text>&p;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pre="">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="" viewBox="0 0 3 4" width="" height="">&Smile;</svg></g>
+0<g transform="000000000000000"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g m="0"><text y="0">0</text>&Viewport2;
+0<svg pecBox="0" width="0" height="0">&Smile;</svg></g>
+0<g rm="0"><text y="0">0</text>&V;
+0<svg prght="">&Smile;</svg></g>
+0<g transform="translate(00 00"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" wid_h="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport2;
+0<svg tiv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,00"><text y="0">0</text>&Viewport2;
+0<svg pre="" viewBox="0 0 3 4" width="" height="">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="" height="">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" vw="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg p="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" wid_h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg tiv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pecBox="0" width="0" height="0">&Smile;</svg></g>
+0<g rm="0"><text y="0">0</text>&V;
+0<svg rt="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" wid_h="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport2;
+0<svg tiv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pspecBox="0" width="0" height="0">0
+0&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg rp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g rm="0"><text y="0">0</text>&Viewport2;
+0<svg spÓ000="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg sp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" ew="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" wid_h="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport2;
+0<svg tiv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" rm="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg io="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text x="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg ox="0" width="0" height="0">0
+0&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg ph="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" t="0">
+0<text x="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="000000000000,00"><text y="0">0</text>&V;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0665.svg b/test/ns-afl-svg/0665.svg
new file mode 100644
index 0000000..bacecf6
--- /dev/null
+++ b/test/ns-afl-svg/0665.svg
@@ -0,0 +1,31 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:xlin0="00" xmlns:sodipodi="00" xmlns:in0scape="0t" width="0" height="0" id="0" sodipodi:version="0" in0scape:version="0" sodipodi:docname="0" in0scape:output_extension="0">
+0<defs id="0">
+0<linearGradient id="000000000000000000" x1="0" x0="0">
+0<sp
+l0="0"
+et="0" id="0"/>
+0<sp
+le="0"
+set="0" id="0"/>
+0</linearGradient>
+0<linearGradient in0scape:collect="0" xlin0:href="0" id="linearGradient0100" x1="0" y1="0" x2="0" y2="0" gradientUnits="0"/>
+0<linearGradient in0scape:collect="0" xlin0:href="0" id="linearGradient0200" x1="0" y1="0" x2="0" y2="0" gradientUnits="0"/>
+0<linearGradient id="000000000000000000">
+0<stop
+le="0"
+et="0" id="0"/>
+0<stop
+le="0"
+set="0" id="0"/>
+0<st le="0" et="0" id="0"/>
+0</linearGradient>
+0<linearGradient in0scape:collect="0" xlin0:href="0" id="linearGradient2000" x1="0" y1="0" x2="0" y2="0" ts="0"/>
+0</defs>
+0<g in0scape:label="0" in0scape:groupmode="0" id="0">
+0<rect style="fill:url(#linearGradient0100);" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="fill:url(#linearGradient0200);" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="fill:url(#linearGradient2000);" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="fill:url(#linearGradient2000);" id="0" width="0" height="0" x="0" y="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0666.svg b/test/ns-afl-svg/0666.svg
new file mode 100644
index 0000000..c03567a
--- /dev/null
+++ b/test/ns-afl-svg/0666.svg
@@ -0,0 +1,93 @@
+<svg vox='0' xmlns='000' drofill='0' stroke='0'>
+0<defs>0<linearGradient id="0" grorm="0">
+0<stop stop-c="0" t="0"/>
+0<stop stop-r="0" offset="0"/>
+0</linearGradient>
+0<linearGradient id="py0lue" gradientTransform="rotate(0)">
+0<stop stop-color="rgb(00000)"/>0
+0<i r="0" x="0" y="0" fill="0"/>
+0<circle r="0" x="0" y="0" offset="0"/>
+0<stop stop-colwr="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0,0000,00,0-00,00-00000000000000000000000000000000000" fill="url(#py0lue)"/>
+0<path d="M00,000l0,00l00,0c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="0"/>
+0<path d="000000000000000000000000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000000000000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy=")"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,0000" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0000000000000000000000000M00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00000000-0,0,00,0,00,00c000000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#py0lue)"/>
+0<pAth d="M00,00c0,000,00-00,000-00000000000,0000,000000000000000,000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#py0lue)"/>
+0<pAth d="000,0000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00,00,00000000 000000,0000" fill="url(#py0lue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000000000000000000000000000000000000000000000000000000000000,000,0,0000,000000000000,000,0,00,000000000"/>
+0<pAth d="000,0000,000,0000000000000000000000000000000000000000,0000000,00000000000000000000000000000000000000000000000000000000000000000000000,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00" style="fill: url(#00000" fill="url(#000000)"/>
+0<path style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="0" id="0" style="0" fill="0"/>
+0<path d="0" id="0" style="0" fill="0"/>
+0<path d="0" fill="0"/>
+0<path d="0" id="0" style="0" fill="0"/>
+0<path d="0" id="0" style="0" fill="0"/>
+0<path d="0" id="0" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" x="0" y="0" fill="0"/>
+0<circle r="0" x="0" id="0" style="0" fill="0"/>0
+0<path d="0" id="0" style="0" fill="0"/>
+0<path d="0" id="0" style="0" fill="0"/>
+0<path d="0" id="0" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<cirCle r="0" x="0" y="0" fill="0"/>
+0<circle r="0" x="0" id="0" style="0" fill="0"/>
+0<path d="0" id="0" style="0" fill="0"/>
+0<path d="0" id="0" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<cirCle r="0" x="0" fill="0"/>0
+0<cirCle r="0" x="0" y="0" fill="0"/>
+0<circle r="0" x="0" y="0" fill="0"/>0</svg>
diff --git a/test/ns-afl-svg/0667.svg b/test/ns-afl-svg/0667.svg
new file mode 100644
index 0000000..f4d110e
--- /dev/null
+++ b/test/ns-afl-svg/0667.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:p0a00dfill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0668.svg b/test/ns-afl-svg/0668.svg
new file mode 100644
index 0000000..f7438ee
--- /dev/null
+++ b/test/ns-afl-svg/0668.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000" c="0" r="0" style="stroke:o0f00tlw000id000000" transform="00">
+0<style te="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="c" cy="cm" r="1" style="fill:r0d0" w="0"/>
+0<circle cx="cm" cy="cm" r="D" style="stroke:o0f00tlw000id000000" transform="translate(00,0000"/>
+0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0669.svg b/test/ns-afl-svg/0669.svg
new file mode 100644
index 0000000..3169b13
--- /dev/null
+++ b/test/ns-afl-svg/0669.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:b0a00g stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:t0a00;stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black;stroke-width:1cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0670.svg b/test/ns-afl-svg/0670.svg
new file mode 100644
index 0000000..a1233c8
--- /dev/null
+++ b/test/ns-afl-svg/0670.svg
@@ -0,0 +1,10 @@
+<svg xmlns="0000000000000000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h00S" stroke="#000" fill="l0n&lt;0"/>0
+0<path d="M0,0h0l0,0v0l0,0v0l0,0h0v" stroke="#000" fill="l0n&lt;0"/>0
+0<path d="M0,0h00l00,00v00l000,00h0l0-00v000z" fill="#000"/>0
+0<text x="0" y="0" nt-se="0" l="0" t-r="0"><![CDATA[0]]></text>
+0
+0<path d="M00,0h00S" stroke="#000" fill="l0n&lt;0"/>0
+0<path d="M00,0h00l00,00v00l00,00v00l000,00h00v" stroke="#000" fill="l0n&lt;0"/>0
+0<path d="M00,0h00l00,00v00l000,00h0l0-00v000z" fill="#000"/>0
+0<text x="0" y="0" nt-se="0" fill="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0671.svg b/test/ns-afl-svg/0671.svg
new file mode 100644
index 0000000..409ab26
--- /dev/null
+++ b/test/ns-afl-svg/0671.svg
@@ -0,0 +1,59 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c00ore0'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<circle cx='0' cy='0' r='5' fht='0' fill='0000000000000'/>0</g>0"><!ENTITY t "">
+<!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" ion="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" hT="0" ill="0" se="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g t="0"
+ransform="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g orm="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g orm="0">&Viewport0;</g>
+0<g id="0" trm="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" vie="0"
+th="0" heé000="0">&Smile;</svg></g>
+0<g transform="000"><text y="0">0</text>&V;
+0<svg pro="0" vox="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="000"><text y="0">0</text>&p;
+0<svg pre="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg Asp="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g><text y="M">0</text><svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="000"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0000"><text y="0">0</text>&Viewport0;
+0 0
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g trfnsform="0"><text y="0">0</text>&Viewport0;
+0<svg rRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0000000"><text y="0">0</text>&Viewport0;
+0<svg resero="0" viewBox="0 0 0 0" width="0" height="0">0</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg reatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg prv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="0000"><text y="0">0</text>&i;
+0<svg preseAso="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0672.svg b/test/ns-afl-svg/0672.svg
new file mode 100644
index 0000000..9a1350e
--- /dev/null
+++ b/test/ns-afl-svg/0672.svg
@@ -0,0 +1,275 @@
+<svg ns="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="py0ellow" orm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="q0s00p" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c000000000000000000000000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0-0,00-00,000-0000000000000000000000000000000000n0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" filf="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c00000000000000000-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000000000000000000000000000000000000,0000000000" id="0004" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,10-00,020,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cp="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0000000000000000000000000M00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,00000/000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c000000000000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-60.870,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,004-00l0-00c0-0,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx=")"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,10-00,020,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000ac000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="ur00000000000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0<path d="M00,00c000-0,00-20,004-00l0-20c0-7,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-000v0" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,00-20,124-00l0-22c0-7,0-12,10-10l24,0c0,0,00-0,14-10l0-10l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" iill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0673.svg b/test/ns-afl-svg/0673.svg
new file mode 100644
index 0000000..d76bf1d
--- /dev/null
+++ b/test/ns-afl-svg/0673.svg
@@ -0,0 +1,56 @@
+<svg xmlns="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop r="0"/>
+0<stop stop-color="q0a00fas000"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop st="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,,00c0,0-0,00-00,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ00000000000000000000000000000000000" id="0000" style="fill: url(#r0000" fill="url(#000e)"/>
+0<path d="M0,0c0-0,0-0,04,0v0" fill="url(#py0ellow"/>0
+0<path d="M0,0c0-0,0-20,4,0v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx=">" cy="0" fill="#00:"/>0
+0<path d="M00,000,000M00000000000000,0000000000000000,000000000000000000000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#00o0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="z" id="0" style="fill: url(#000000" fill="url(#000e)"/>
+0<path d="M0,00c0-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCJe r="0" cx="0"
+cy="0" fl="0"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000e)"/>0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx=">" cy="0" fill="#00:"/>0
+0<path d="M00,00c0000000000000000000,0000000000000000,000000000000000000000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#00o0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="z" id="0" style="fill: url(#000000" fill="url(#000e)"/>
+0<path d="M00,00c0-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCJe r="0" cx="0"
+cy="0" ll="0"/>
+0<circle r="4" cx="z" id="0000" style="fill: url(#000000" fill="url(#000e)"/>
+0<path d="M00,00c0-0,00-00,0,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0674.svg b/test/ns-afl-svg/0674.svg
new file mode 100644
index 0000000..19d45c6
--- /dev/null
+++ b/test/ns-afl-svg/0674.svg
@@ -0,0 +1,29 @@
+<svg s="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="-6"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>0<linearGradient id="pyBlue" gradientTransform="00">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-7,0-10,24-00c00,0,00,0,20,00l0,00c0,0-0,00-10,10l-24,0c00,0-14,0-90,10l0,10l-9,0c-0400000000000000000,0-00-0-00-00c0-00,0-00,00-00l,,l0,000" fill="url(#pyBlue"/>
+0<path d="000,0000,000,00000,000000000000000,0000,00000000,000000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000,000,0000,000,0000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,00-20,104,50v1" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,00-20,120,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,00-20,120,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0675.svg b/test/ns-afl-svg/0675.svg
new file mode 100644
index 0000000..45aaab2
--- /dev/null
+++ b/test/ns-afl-svg/0675.svg
@@ -0,0 +1,6 @@
+<svg viewBox='0 0 6 2' xmlns='00'>
+0<path d='M0,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,000000000000000000000000000000000000000000000000000000000000000000-00' fill='silver' stroke='b0a00xml000ng00000'/>
+0
+0<path d='M00,00c00,0,0-00-0,000c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,000,0000000000000c00,00000000000000000000,0,000000000000,0,0,0000000,000000,00000' fill='silver' stroke='b0a00xml000ng00000'/>
+0
+0<path d='M00,00c00,0,0-00-0,000000-00' fill='silver' stroke='b0a00xml000ng00000'/>0</svg>
diff --git a/test/ns-afl-svg/0676.svg b/test/ns-afl-svg/0676.svg
new file mode 100644
index 0000000..193ac3a
--- /dev/null
+++ b/test/ns-afl-svg/0676.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="c" cy="X" r="i" transform="translate(0,0)"/>
+0<circle cx="c" cy="em" r="1" style="fill:b0u0;stroke-width:1cm" m="0"/>
+0<circle cx="c" cy="em" r="1" style="fill:b0u0;stroke-width:b" transform="translate(0,0)"/>0<circle cx="O" cy="cm" r="1" style="fill:green;"/>
+0<circle cx="'" cy="em" r="1" style="stroke:b0a0 stroke-width:1cm" m="0"/>
+0<circle cx="c" cy="em" r="1" style="fill:b0u0;"/>
+0<circle cx="cm" cy="em" r="1" style="fill:b0u0;stroke-width:1cm" tm="0"/>
+0<circle cx="cm" cy="em" r="1" style="fill:b0u0;stroke-width:k" transform="translate(0,0)"/>0<circle cx="O" cy="cm" r="1" style="fill:green;"/>
+0<circle cx="c" cy="em" r="1" style="stroke:b0a0 stroke-width:1cm" tm="0"/>
+0<circle cx="cm" cy="em" r="1" style="fill:b0u0;"/>
+0<circle cx="cm" cy="em" r="1" style="fill:b0u0;stroke-width:1cm" tm="0"/>
+0<circle cx="cm" cy="em" r="1" style="fill:b0u0;stroke-width:k" transform="translate(0,0)"/>0<circle cx="c" cy="cm" r="1" style="fill:green;"/>
+0<circle cx="cm" cy="em" r="1" style="stroke:b0a0 stroke-width:1cm" tm="0"/>
+0<circle cx="cm" cy="em" r="1" style="fill: 0stroke-width:001cm00;" transform="0"/>
+0<circle cx="cm" cy="em" r="1" style="fill:b0u0;stroke-width:1cm" tm="0"/>
+0<circle cx="cm" cy="em" r="1" style="fill:b0u0;stroke-width:k" transform="translate(0,0)"/>0<circle cx="c" cy="cm" r="1" style="fill:green;"/>
+0<circle cx="cm" cy="em" r="1" style="stroke:b0a0 stroke-width:001cm" tm="0"/>
+0<circle cx="cm" cy="em" r="1" style="fill: 0stroke-width:001cm00;" transform="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0677.svg b/test/ns-afl-svg/0677.svg
new file mode 100644
index 0000000..318cdf5
--- /dev/null
+++ b/test/ns-afl-svg/0677.svg
@@ -0,0 +1,24 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="">0
+0<stop stop-c="0" et="0"/>
+0<stop et="0"/>
+0<stop sr="0" offset="0"/>
+0</linearGradient>
+0<linearGradient href="#" id="pyBlue" gx="0">
+0<defs>
+0<linearGradient id="0" g="0">
+0<sp stop-c="0" et="0"/>
+0</linearGradient>
+0</defs>0
+0<ph d="0" of="0"/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop stop-color="#000" ot="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" fl="0" ll="0"/>
+0<path d="0000" fill="url(#pyBlue)"/>
+0<path d="M00,0000,0l00,00000000000,0000" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fd="0"/>0</svg>
diff --git a/test/ns-afl-svg/0678.svg b/test/ns-afl-svg/0678.svg
new file mode 100644
index 0000000..f3dafe8
--- /dev/null
+++ b/test/ns-afl-svg/0678.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="r0n0"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0679.svg b/test/ns-afl-svg/0679.svg
new file mode 100644
index 0000000..7fccf66
--- /dev/null
+++ b/test/ns-afl-svg/0679.svg
@@ -0,0 +1,74 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="u0s00v" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00000c00000000000000000000,000000000000000000,0000000,000000,0000" Z="0"/>
+0<path d="M00,00c0,000,000000-0,0-00,0c0,000,00000,0000000000000000000000000000000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#00000)"/>
+0<path d="000" c="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M70,87c0,73-230-20-0-24108.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0
+
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0,00,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0004" style="stroke: 000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0004" style="stroke: rgb(0,00,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0004" style="stroke: 0000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0004" style="stroke: rgb(0,00,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0004" style="stroke: rgb(0,00,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0004" style="stroke: rgb(00000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0004" style="stroke: rgb(0,00,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0004" style="stroke: rgb(000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0004" style="stroke: rgb(0,00,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0004" style="stroke: rgb(0,00,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0004" style="stroke: rgb(0000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0004" style="stroke: rgb(0,00,00000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0004" style="stroke: rgb(0,00,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0004" style="stroke: rgb(000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0004" style="stroke: rgb(0,00,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0004" style="stroke: rgb(0,00,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0004" style="stroke: rgb(000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0004" style="stroke: rgb(0,00,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0004" style="stroke: rgb(0,00,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0004" style="stroke: rgb(0000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0004" style="stroke: 00000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0004" style="stroke: rgb(0000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0004" style="stroke: rgb(0,00,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0004" style="stroke: rgb(000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0004" style="stroke: rgb(0,00,000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0004" style="stroke: rgb(0000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0004" style="stroke: rgb(0,00,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0680.svg b/test/ns-afl-svg/0680.svg
new file mode 100644
index 0000000..905b16e
--- /dev/null
+++ b/test/ns-afl-svg/0680.svg
@@ -0,0 +1,6 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="n0i00lud000e"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-0v00z" stroke="#000" fill="n0i00lud000e"/>0
+0<pOth d="0" l="0"/>0
+0<text x="z" fill="0"/>0
+0<text x="0" y="0" t-e="0" fill="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0681.svg b/test/ns-afl-svg/0681.svg
new file mode 100644
index 0000000..e727ea8
--- /dev/null
+++ b/test/ns-afl-svg/0681.svg
@@ -0,0 +1,17 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 2 3">0<path d="M00,00a00,0 00,0,0 00,00" fill="none" stroke="#000" stroke-width="2"/>0<a xmlns:xlink="0" xlink:hf="0" xlink:title="0">0<path d="M00 0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00 00 000 00 000-00 00-00 00-00 0000-00 00 0 00-000 00-000-00-00-000-00-000 00-000 000-000 0000-000
+000 0-00 00-000 00-000 0-000 0-000-0-000-0-00-00-00 0000-00 00 0 00-000 00-000-00-0 000-000 000-0000 0-000-00-000-000-000-000 000-000
+000-000 00-000-000-000-000-000-00-0 00-00 00 00 00 0 0-00-000-00-000-0-00-00 00-00 000-0 00 00 000 00 0000"
+transform="translate(0,0) scale(0000-00000000)"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0.000.0)"
+fill="#000" ty="0"/>0<ellipse rx="5" ry="2" transform="rotate(000) translate(00,00)" fill="#000"
+ty="0"/>0</a>0<a xmlns:xlink="0" xlink:href="0" xlink:title="0">
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000"
+transform="translate(0,000) scale(0000-00000000)"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0.000.0)"
+fill="#000" ity="0"/>0<ellipse rx="5" ry="2" transform="rotate(000) translate(00,00)" fill="#000"
+opacity="0"/>0</a>0<a xmlns:xlink="0" xlink:href="0" xlink:title="0">
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
+transform="translate(0,000) scale(0000,0)"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(000,0000)"
+fill="#000" ity="0"/>0<ellipse rx="3" ry="2" transform="rotate(000) translate(00,00)" fill="#000"
+opacity="0"/>0</a>0<a xmlns:xlink="0000" xlink:href="0" xlink:title="0">
+0<path d="M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,000a00,0 00,0,0 00,00M00,000a00,0 00,0,0 00,00" fill="none" stroke="#000" stroke-width="2"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fl="0"/>
+0<circle r="1" cx="0" cy="0" fill="#000"/>0</a>0</svg>
diff --git a/test/ns-afl-svg/0682.svg b/test/ns-afl-svg/0682.svg
new file mode 100644
index 0000000..9df7957
--- /dev/null
+++ b/test/ns-afl-svg/0682.svg
@@ -0,0 +1,15 @@
+<svg xmlns="000000000000000000" xmlns:xlin0="0000" viewBox="0 0 0 0">
+0<radialGradient r="0" s="0"><sp ot="0" p-c="0"/><sp ot="0"/></radialGradient>
+0<path d="M0,00,00" id="0" fill="c0c00cle00"/>
+0<path d="M00,000000000000000000,000C00000000000000000000000000000000000,00" id="0" fill="c0c00cle00"/>
+0<path d="M00,000,000:00000000000000000000000000000000000000000000000000,00" id="0" fill="c0c00cle00"/>
+0<use xlin0:ef="0" t="0"/>0
+0<radialGradient ir="0" s="0"><op ot="0" p-c="0"/><op ot="0"/></radialGradient>
+0<path d="M0,00,00" id="0" fill="c0c00cle00"/>
+0<path d="M00,000000000000000000,000C00000000000000000000000000000000000,00" id="0" fill="c0c00cle00"/>
+0<path d="M00,000,000:00000000000000000000000000000000000000000000000000,00" id="0" fill="c0c00cle00"/>
+0<use xlin0:href="0" t="0"/>0
+0<path d="M00,000,000:0000,000000000000000000000000000000000,00000,00000,00" id="0" fill="c0c00cle00"/>
+0<use xlin0:href="0" t="0"/>0
+0<path d="M00,000,000:0000,00000,0000000,00000,00000,0000000,00000,00000,00" id="0" fill="c0c00cle00"/>
+0<use xlin0:href="0" t="0"/>0</svg>
diff --git a/test/ns-afl-svg/0683.svg b/test/ns-afl-svg/0683.svg
new file mode 100644
index 0000000..4774612
--- /dev/null
+++ b/test/ns-afl-svg/0683.svg
@@ -0,0 +1,449 @@
+<svg width="g" viewBox="0-0 0 0" stroke-width="G">
+0<g fill="000000"/>0
+0
+0<text x="'" y="0" ze="0" fill="0" t-r="0"><![CDATA[0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]
+0
+0
+0
+0
+0]]>0</text>0</svg>
diff --git a/test/ns-afl-svg/0684.svg b/test/ns-afl-svg/0684.svg
new file mode 100644
index 0000000..39ea257
--- /dev/null
+++ b/test/ns-afl-svg/0684.svg
@@ -0,0 +1,11 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="000" fill="l0v0"/>0
+0<path d="M00,0h00" e="0" fill="l0v0"/>0
+0<path d="M00,0h00" fill="#000"/>
+0<g tr="0" e-p="0" roke-wYdth="0" stroke="#000" fill="none">
+0<path d="M00,00c0,0,0,0,0,00ve"/>0
+0<path d="M00,0h00" ke="0" fill="l0v0"/>0
+0<path ill="0" d="000000000000000,000"/>
+0<path stroke-width="2" d="M00,0M00,00h00l00,00l00,000h0l0,00h0v000h0l00,0000-00000000000000000"/>
+0</g>
+0<patL se="0" soke-width="0"/>0</svg>
diff --git a/test/ns-afl-svg/0685.svg b/test/ns-afl-svg/0685.svg
new file mode 100644
index 0000000..3b6ba06
--- /dev/null
+++ b/test/ns-afl-svg/0685.svg
@@ -0,0 +1,42 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="w0a0" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,0,00c0,0-0,00-00,000000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c097-8,03-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-0000000000000000000000000000000000l000,00000000000000000000C000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000%00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,03-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,000000000?0000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0686.svg b/test/ns-afl-svg/0686.svg
new file mode 100644
index 0000000..60a4c07
--- /dev/null
+++ b/test/ns-afl-svg/0686.svg
@@ -0,0 +1,47 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0&a;<rect x='0' y='0' width='0' height='0' fill='0' stroke='0'/>0<g transform='0'>0<_ircle x='0' y='0' r='0' fill='0'/>0<circle x='0' y='0' r='0' fill='0'/>0<circle cx='0' cy='0' r='0' fill='0'/>0<pat. d='0' stroke='0' stroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='0' stroke='0'/>">]><svg w="0" height="0" ion="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" he="0" ill="0" se="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0
+0<g trarm="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&Viewport0;</g>
+0<g id="0" t="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>0<svg tio="0" vie="0"
+th="0" height="0">&Smile;</svg>
+0<g m="0"><text y="0">0</text>&V;
+0<svg pro="0" vox="0" h="0" ht="0">&Smile;</svg></g>
+0<g trorm="0"><text y="0">0</text>&p;
+0<svg pre="0" vie="0" width="0" height="0">&e;</svg></g>
+0</g>
+0<g id="0" trarm="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pre="0" vie="0" width="0" height="0">&Smile;</svg></g>
+0<g m="0"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0" width="0" height="0">&Smile;</svg>
+0<g m="0"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0687.svg b/test/ns-afl-svg/0687.svg
new file mode 100644
index 0000000..90ddd43
--- /dev/null
+++ b/test/ns-afl-svg/0687.svg
@@ -0,0 +1,40 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="k0e0" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>0
+0
+0<stop stop-color="#000" offset=".4" cy="0" fill="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,00,00c0,0-0,00-00,00000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="00000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c00,0-00000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c0000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0688.svg b/test/ns-afl-svg/0688.svg
new file mode 100644
index 0000000..81a7ebb
--- /dev/null
+++ b/test/ns-afl-svg/0688.svg
@@ -0,0 +1,284 @@
+<svg xmlns="0000000000000000000" wx="0">
+0<ph d="0" c="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0
+0<path d="0" fill="0" te="0">
+0<le id="0" cx="0" cy="0" r="0" se="0"
+stroke-h="0"/>
+0<text x="0" y="0">0</text>
+0<efè00>0
+0
+0
+0
+0<efè00 m="">
+0<efè00>
+0<efè00>
+0
+0<efè00>
+0<efè00>0 0<lefè000>
+0<efè00>
+0<efè00>
+0<efè00>
+0<efè00>
+0<efè00>
+0<efè00>0
+0
+0<efè00>
+0<efè00>0 0<lefè0000>
+0<efè00>
+0<efè00>
+0<lefè00>0
+0<defs>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<Pefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0<defs>0
+0
+0<lefè00 m="">
+0<lefè00 g="">0 0<lefè0000>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0<lefè00 m="">
+0<lefè00>0
+0
+0<lefè00 m="">
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<le>
+0
+0<lefè00 m="">
+0<lefè00 x="">0 0<lefè0000>
+0<lVfè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>0
+0
+0<lefè00 m="">
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0
+0
+0<lefè00 m="">
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>0 0<lefè000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0
+0
+0<lefè00>
+0<leWè00>0 0<lefè000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0<lefè00>
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>0
+0<defs>0
+0
+0<lefè00>
+0
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<leWè00>0 0<lefè0000 x="">
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0<lefè00>
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0<defs>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<le>
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>0
+0
+0<defs>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<le>
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>0
+0
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<le>
+0
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0689.svg b/test/ns-afl-svg/0689.svg
new file mode 100644
index 0000000..c4bbff2
--- /dev/null
+++ b/test/ns-afl-svg/0689.svg
@@ -0,0 +1,42 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" rorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="q0s00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000,0000000,0000" fill="url(#py0ellow"/>0
+0
+
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-8,10-20,020,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0-0,00-00,000-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000" filf="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000 00-00 000-00 0000-00 000-000 000-00-00-00-0000000000000000000000000000000000000,00000000 000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" p="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,00-20,124-00l0-22c0-7,0-12,12-00l20,0c0,00,000,0000,0l0,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0/0000,00000000000000000000000000000000000000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,0000000000000000000000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" filf="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-00000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,00000000 000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000=00,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,10-20,020,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" p="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,00,000,0000,0l0,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0690.svg b/test/ns-afl-svg/0690.svg
new file mode 100644
index 0000000..6b7cd25
--- /dev/null
+++ b/test/ns-afl-svg/0690.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 0 0">
+0<path x="0" e="0" fill="h0m00ye"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" y="0" t-size="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0691.svg b/test/ns-afl-svg/0691.svg
new file mode 100644
index 0000000..c91ac89
--- /dev/null
+++ b/test/ns-afl-svg/0691.svg
@@ -0,0 +1,4 @@
+<vQ Ptì-='0' xѶÑ0='0'>
+0<sv lotì-='0' lѶÑ000000='0'>
+0<svQ lotì-='0' xmlѶÑ0000000='0'>
+0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0692.svg b/test/ns-afl-svg/0692.svg
new file mode 100644
index 0000000..015e008
--- /dev/null
+++ b/test/ns-afl-svg/0692.svg
@@ -0,0 +1,7 @@
+<svg xmlns="0000000000" xmlns:k="0" viewBox="0 0 1 2">
+0<radialGradient id="0" cx="0" cy="0" r="0" ts="0"><s00p ot="0" o000000000000000000000000000000000000000000000000000000000000000c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,000A000,0000,0,0000,000000000000000000,0000 000000000000000000,00" id="0" fill="p0c00wle00"/>
+0
+0<path d="M00,000A0T000000000000000000,00000,0000000,00000,00000,0000000,00000,00000,00" id="0" fill="m0c00wve00"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/0693.svg b/test/ns-afl-svg/0693.svg
new file mode 100644
index 0000000..899fcba
--- /dev/null
+++ b/test/ns-afl-svg/0693.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:r0d0 stroke:black;stroke-width:1cm" wransform="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0a00bfu0;stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0694.svg b/test/ns-afl-svg/0694.svg
new file mode 100644
index 0000000..64f43ac
--- /dev/null
+++ b/test/ns-afl-svg/0694.svg
@@ -0,0 +1,7 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M0,00q0-00,00-00q0-00,00-00q0-00,00-00q0-0,0-0H0-0,00 00-00-00 000-00-0-000 0-00 00-000S00-00 00 00 000 00 000-00 00-00 00-00 0000-00 00 0 00-000 00-000-00-00-000-00-000 00-000 000-000 0000-000
+000t0-00 00-00 0-000 0-000-0-000-000000000000000000-0000-00-000-000-000-00-000
+00-000 00-000-00-000-00-000-00-000 00-000 00 0 00-0 00-000-00-000 00-000 000-000 000 000 000 000 000 00 000-000 000-000 000-000 000
+000 000 000-00 0000-00 000-00 000 0 0000l00 00-0 0000c00000 0 00000000000000000 000-00 000 00 000 00 000 00 000-00 000-000-00-000-000-000-000 0-00-00 00-00 0000000000000000000 000-00 0000 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,00"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0,0000)"
+fill="#000" opacity="0"/>0<ellipse rx="5" ry="2" transform="rotate(000000-00-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="#000"
+opacity="0"/>0</svg>
diff --git a/test/ns-afl-svg/0695.svg b/test/ns-afl-svg/0695.svg
new file mode 100644
index 0000000..bf4ca64
--- /dev/null
+++ b/test/ns-afl-svg/0695.svg
@@ -0,0 +1,6 @@
+<svg v='0' s='0'>
+0<path d='0,000,0,0,0' fill='d0t00tax000ts'/>0
+0<path d='000,0,0,0,0' fill='d0t00tax000ts'/>0
+0<path d='0,0,0,000,0' fill='d0t00tax000ts'/>0
+0<path d='000,00000,000,000,0' fill='d0t00tax000ts'/>0
+</svg>
diff --git a/test/ns-afl-svg/0696.svg b/test/ns-afl-svg/0696.svg
new file mode 100644
index 0000000..7ab2720
--- /dev/null
+++ b/test/ns-afl-svg/0696.svg
@@ -0,0 +1,10 @@
+<svg xmlns="0t000000" xmlns:xlin0="00" viewBox="0 0 1 2">
+0<radialGradient id="0" cx="0" cy="0" r="0" Units="0"><op ot="0" o0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000-c="0"/><op ot="0"/></radialGradient>
+0<path d="M0,0A0,0 0,0,0 0,0C0,0 0,0 0,0C0,00 00,00 00,0C000,00 00,00 00,00" id="0" fill="l0c00qle00"/>
+0<use xlin0:hf="0" tform="0"/>0
+0<radialGradient id="0" cx="0" cy="0" r="0" Units="0"><op ot="0" o000000000000000000000000000000000000000000000000000000-c="0"/><op ot="0"/></radialGradient>
+0<path d="M00,000A0,00 00 00,00 00,0C000,00 00,00 00,000C000,00 00,00 00,00" id="0" fill="l0c00qle00"/>
+0<use xlin0:ref="0" trarm="0"/>0
+0<radialGradient id="0" cx="0" cy="0" r="0" Units="0"><op o0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000p-c="0"/><sp ot="0"/></radialGradient>
+0<path d="M0,0A0,0 0,0,0 0,0C0,0 0,0 0,0C0,00 00,00 00,000C0,00 00,00 00,00" id="0" fill="l0c00qle00"/>
+0<use xlin0:href="0" t="0"/>0</svg>
diff --git a/test/ns-afl-svg/0697.svg b/test/ns-afl-svg/0697.svg
new file mode 100644
index 0000000..6e151f0
--- /dev/null
+++ b/test/ns-afl-svg/0697.svg
@@ -0,0 +1,4 @@
+<svg viewBox='0 0-6-1' fe='0' fill='s0n00r' stroke='000000' xmlns='00'>
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,0,0c00,0-0,0,0,0h00c0,0,0,0,0,0h000c00,0-0,0,0,0h00c0,0,0,0,0,0h000c00,0-0,0,0,0h00c0,0,0,0,0,0l000,0c00,0-0-0-00-0zM000,00c0,0,0-0,0-0l000,0c00,0-0-0-00-0c000-0-00,0-00,0c00,0-0,0,0,00c0,0,00,00,00,00000,000000000' fill='s0n00r' stroke='black'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,0,0c00,0-0,0,0,0h00c0,0,0,0,0,0h000c00,0-0,0,0,0h00c0,0,0,0,0,0h000c00,0-0,0,0,0h00c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' fill='s0n00r' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/0698.svg b/test/ns-afl-svg/0698.svg
new file mode 100644
index 0000000..23934a1
--- /dev/null
+++ b/test/ns-afl-svg/0698.svg
@@ -0,0 +1,37 @@
+<svg xmlns="000000000000000000" e="0" mln="0" width="0" height="0" style="0" n="0">
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g d="0" fill="blue" stylG="0">
+0<circle d="0" cx="x" cy="0" r="5" stroke="l0m00ric000or00000"
+stroke-width="3"/>
+0<text x="m" c="0" cy="0" r="0" stroke="0"
+stroke-width="0"/>
+0<text x="0" y="0">0</text><circle d="0" cx="0" cy="0" r="5" stroke="l0m00ric000or00000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text><circle d="0" cx="0" cy="0" r="5" stroke="l0m00ric000or00000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/0699.svg b/test/ns-afl-svg/0699.svg
new file mode 100644
index 0000000..6dba4d4
--- /dev/null
+++ b/test/ns-afl-svg/0699.svg
@@ -0,0 +1,81 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gra_ieorm="0">
+0<stop stop-color="#000" t="0"/>
+0<stop stop-color="000"/>
+0<stop st="0"/>
+0
+0<stop stop-color="#000" offset=".4"/>
+0
+0
+0<stop stop-color="#000" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0" gra_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="000000" offset="0"/>
+0
+0
+0<srop st="0" fill="0"/>
+0<path d="0" of="0"/>
+0
+0<stop or="0" of="0"/>
+0<stop sr="0" of="0"/>
+0
+0<stop st="0" of="0"/>
+0
+0
+0<stop sr="0" ot="0"/>
+0
+0<stop sr="0" offset="0"/>
+0<stop or="0" et="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient></defs>0
+0<path d="0"/>0
+0<circle r="0" cx="0"/><stop st="0" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>0</linearGradient>
+0</defs>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#000000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000 00-00-00 00-00 000-00 0000-000000 000000,00000000 0" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00000000,000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000000,000000000000000000,000000000000000000000000-00000000000000000000000000000000000-00-000000 00000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000000000000000000000000000000000000000000000000000000000000000-0 000000000000000000000000000000000000000000000000000,0000000,000000000000000000000000000000000,0000000,00000000 000000,0000000-00000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,00000000000000000000000000000000000000000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000,0000000,000000000000000000000000000000000,00..000,00000000 000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000 00000000,00000000 000000,00000000 0" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,00,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,000C0000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,00,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,00000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0700.svg b/test/ns-afl-svg/0700.svg
new file mode 100644
index 0000000..d88e492
--- /dev/null
+++ b/test/ns-afl-svg/0700.svg
@@ -0,0 +1,78 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='red'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='u0l00sch000o'/>0<circle Nx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' f='0'/>0<path d='M0 00A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='b0u0'/>">]><svg width="px" height="30px" on="0" xmlns="0000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="b0u0"/>
+0<g ze="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&r;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0<g id="0" height="px" on="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g ze="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0
+0<g><text y="0">0</text>&p;
+0<svg io="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>0
+<svg ro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg resctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg spectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t0;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg pro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&t0;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presetRatio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&t0;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0701.svg b/test/ns-afl-svg/0701.svg
new file mode 100644
index 0000000..dc78837
--- /dev/null
+++ b/test/ns-afl-svg/0701.svg
@@ -0,0 +1,125 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" a_rm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="q0o00"/>0
+0<circle r="0" cx="0" y="0" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0-0,00,0,00,,00c0,0-0,00-00,000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000"/>0
+0<circle r="4" cx="u"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000,00000000,000,00000000000,00000000,00000000000000000000,0000000000000000,00,000000000000,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-001000000-00" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="Y" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0702.svg b/test/ns-afl-svg/0702.svg
new file mode 100644
index 0000000..f425a52
--- /dev/null
+++ b/test/ns-afl-svg/0702.svg
@@ -0,0 +1,55 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c0' stroke='m0d'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' ll='0' stroke='m0d' r='1' fill='black'/>0<path d='0' stroke='0' stroke-width='0'/>0</g>0"><!ENTITY t "">
+<!ENTITY V "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" n="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" T="0" l="0" e="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g t="0"
+ransform="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&t0;</g>
+0<g d="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" v="0"
+h="0" heé00="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg p="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="000"><text y="0">0</text>&p;
+0<svg p="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg A="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g><text y="0">0</text> 0
+0<svg p="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g trfnsform="0"><text y="0">0</text>&t0;
+0<svg o="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="000000000000000"><text y="0">0</text>&t0;
+0<svg esero="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t0;
+0<svg preatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg e="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&t0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg preserv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preseAso="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0703.svg b/test/ns-afl-svg/0703.svg
new file mode 100644
index 0000000..6f21535
--- /dev/null
+++ b/test/ns-afl-svg/0703.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:t0a00;stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00ncl000ke000000;stroke-width:1cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0704.svg b/test/ns-afl-svg/0704.svg
new file mode 100644
index 0000000..b4bd5df
--- /dev/null
+++ b/test/ns-afl-svg/0704.svg
@@ -0,0 +1,13 @@
+<svg xmlns="00000" wd="0">
+0
+0<g l="0" fill="urs00ue" xmlns:k="0">
+0<g ll="0" r="0"/>
+0
+0
+<svg xmlns="0000000" fill="urs00ue" xmlns:x="0">
+0<g ll="0" fill="urs00ue" xmlns="0">
+0<g ll="0" r="0"/>
+0
+
+0</g>0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0705.svg b/test/ns-afl-svg/0705.svg
new file mode 100644
index 0000000..aac2eea
--- /dev/null
+++ b/test/ns-afl-svg/0705.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:r0r;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0706.svg b/test/ns-afl-svg/0706.svg
new file mode 100644
index 0000000..6f16de8
--- /dev/null
+++ b/test/ns-afl-svg/0706.svg
@@ -0,0 +1,19 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:xlink="0" xmlns:sodipodi="000000000000000000000000000000000000000000" xmlns:inkscape="0000000000000000000000000000000000000000000" height="0" id="0" version="0" width="0" x="0" y="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:outputextension="0" inkscape:exportfilename="0" inkscape:export-xdpi="0" inkscape:export-ydpi="0">
+0<sodipodi:namedview inkscape:window-height="0" inkscape:window-width="0" inkscape:pageshadow="0" inkscape:pageopacity="0" guidetolerance="0" gridtolerance="0" objecttolerance="0" borderopacity="0" bordercolor="0" pagecolor="0" id="0" showgrid="0" inkscape:zoom="0" inkscape:cx="0" inkscape:cy="0" inkscape:window-x="0" inkscape:window-y="0" inkscape:current-layer="0"/>
+0<defs id="0">
+0<inkscape:perspective sodipodi:type="0" inkscape:vp_x="0" inkscape:vp_y="0" inkscape:vp_z="0" inkscape:persp0d-origin="0" id="0"/>
+0<linearGradient id="000000000000000000">
+0<stop id="0" offset="0" style="0"/>
+0<stop id="0" offset="0" s="0"/>
+0</linearGradient>
+0<radialGradient inkscape:collect="0"
+xlink:href="0" id="radialGradient0100" ts="0"
+gradientTransform="0"
+spreadMethod="0" cx="0"
+cy="0" fx="0"
+fy="0" r="0"/>
+0</defs>
+0<path d="M0000000,0C000.0000.0000000.0000000.0000000.000000.000000C00.000000.00000000.00000,0 00.000000.000000C000.0.00000000.000,0 000000,00C000.00000.00000000.00000,00..00000.000000z M000.00000.000000C000000000,00..00000.00000000.000,0000000000C0000000,000000000 00000000,000000000 000000,0000000000C000000000,000000000 000000,000000000 000000,0000000000C000000000,0000000 00000000,00000000 000000,000000000z" id="0" style="fill: url(#radialGradient0100)stroke: r0b0 stroke-width: 1;"/>
+0<rect height="0" id="0" rx="0" ry="0" style="fill: url(#radialGradient0100)stroke: none;stroke-width: 100;" width="0" x="0" y="0"/>0</svg>
diff --git a/test/ns-afl-svg/0707.svg b/test/ns-afl-svg/0707.svg
new file mode 100644
index 0000000..a8dbef0
--- /dev/null
+++ b/test/ns-afl-svg/0707.svg
@@ -0,0 +1,269 @@
+<svg lns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" rorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0
+0<stop stop-color="q0c00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" id="0000" style="fill: url(#00000" fill="url(#000e)"/>
+0<path d="M00,0-09-0@000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000l0000l00000000000000000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="0000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+0<path d="00000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="00000000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000ac000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#00000)"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,000,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000,000000000000000000000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00=00"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-60.870,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00=00"/>
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,100-00l0-00c0-0,6-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#00000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx=")"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#00000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#00000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0<path d="M00,00c000-8,00-20,100-00l0-22c0-7,6-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-000v0" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000w)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c000-8,10-00,020,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c090-8,03-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,00-20,124-00l0-22c0-7,0-12,10-10l24,0c0,0,00-0,14-10l0-10l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" f="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c090-8,03-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0708.svg b/test/ns-afl-svg/0708.svg
new file mode 100644
index 0000000..4e13ee0
--- /dev/null
+++ b/test/ns-afl-svg/0708.svg
@@ -0,0 +1,13 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY S ""><!ENTITY t ""><!ENTITY View0ort0 "<rect x='0' y='0' width='0' height='0'
+fill='0' stroke='0'/>">]><svg w="0" height="0" ion="0" xmlns="00t000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" ill="0" stroke="0"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="0">&e;<g>
+0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&View0ort0;</g>
+0<g d="0" transform="0">
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0709.svg b/test/ns-afl-svg/0709.svg
new file mode 100644
index 0000000..fca8127
--- /dev/null
+++ b/test/ns-afl-svg/0709.svg
@@ -0,0 +1,6 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0z" stroke="#000" fill="n0n00che000"/>0
+0
+<path d="M0,0h0l0,0v0l0,0l0-0z" stroke="#000" fill="n0n00che000"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="j" transform="0"/>0</svg>
diff --git a/test/ns-afl-svg/0710.svg b/test/ns-afl-svg/0710.svg
new file mode 100644
index 0000000..5250205
--- /dev/null
+++ b/test/ns-afl-svg/0710.svg
@@ -0,0 +1,87 @@
+<svg width="0" B="0">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="000000">
+0<stop stop-color="#0000s0" offset="0"/>
+0<stop stop-color="t0u0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<p p-c="0" t="0"/>0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#00000"/>0
+0<circle r="4" c="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<ath d="0"/>0
+0<circle r="4" cx="0"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" y="0" fill="#00:"/>
+0<path d="0000" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cidCle r="0" cx="0" y="0" l="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000,000000000000000,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00000000000-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" ll="0"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00v0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>
+0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00000000000-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0711.svg b/test/ns-afl-svg/0711.svg
new file mode 100644
index 0000000..6ae6e60
--- /dev/null
+++ b/test/ns-afl-svg/0711.svg
@@ -0,0 +1,3 @@
+<svg ox='0' xmlns='000' d='0' fill='s0l00tax000ns00000' strofill='0' stroke='0'>
+0<path d='M0,0c00,0-0,0 0,00-00' fill='s0l00tax000ns00000' stroke='black'/>0
+0<path d='M00,00c00,0-0,0 0,00-' fill='s0l00tax000ns00000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/0712.svg b/test/ns-afl-svg/0712.svg
new file mode 100644
index 0000000..a6e8242
--- /dev/null
+++ b/test/ns-afl-svg/0712.svg
@@ -0,0 +1,4 @@
+<svg xmlns="000000000000000000" xmlns:xlin0="0000" viewBox="0 0 1 2">
+0<radialGradient i00000000000000000000000="0" r="0" g000s="0"><stop xt="0" top-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M0,0A0,0 0,0,0 0,0C0,0 0,0 0,0c0,00 00,00 00,0C000,00 00,00 00,00" id="0" fill="url(#00000000)"/>
+0<use xlin0:href="0" tra0000rm="0"/>0</svg>
diff --git a/test/ns-afl-svg/0713.svg b/test/ns-afl-svg/0713.svg
new file mode 100644
index 0000000..4bd7834
--- /dev/null
+++ b/test/ns-afl-svg/0713.svg
@@ -0,0 +1,11 @@
+<å00 xmlns="00">
+0<path d="0" st="0" fill="0"><!--0-->0<ÎÎ x="">0
+<Î0000>
+0
+0<path d="0" stroke="0" fill="0"><!--0-->0<ÎÎ x="">0
+0<!--0-->
+0<!--0-->0<ÎÎ x="">0
+<Î0000>
+0
+0<path d="0" stroke="0" fill="0"><!--0-->0<ÎÎ>0
+0<!--0-->0<Î0000><0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0714.svg b/test/ns-afl-svg/0714.svg
new file mode 100644
index 0000000..7e39355
--- /dev/null
+++ b/test/ns-afl-svg/0714.svg
@@ -0,0 +1,174 @@
+<svg xmlns="0000000" fill="url(#00)00" xmlns:k="0">0<line d="0" fill="0"/>0
+0
+0
+<svg s="0" vox="" fill=""/>0
+0&lt;0
+0
+0
+<svg s="0" viewBox="" fill=""/>0
+0
+0&lt;0
+0
+0
+<svg olns="" viewBox="0">
+0<path d="M00,0000l00,00v0h000l000-00v000z" stro="0" fill="m&lt;o"/>0
+0
+0
+<svg olns="0" viewBox="" fill="m&lt;o"/>0
+0
+0
+<svg s="0" viewBox="" fill="m&lt;o"/>0
+0
+0&lt;0
+0
+0
+</svg>
+0
+<svg olns="0" viewBox="" fill="m&lt;o"/>0
+0
+0
+<svg s="0" viewBox="0">
+0<patg s="0" vie="" fill="0"/>0
+0<paQh d="0" e="0" fill="0"/>0
+0
+0
+<svg s="0" vike="0" e="0" fill="m&lt;o"/>0
+0
+0
+<svg olns="0" viewBox="" fill="m&lt;o"/>0
+0<path d="M00,0000l00,0,0000" e="0" l="0"/>0
+0<path d="M00,0000l00,0,0000" ke="0" fill="m&lt;o"/>0
+0
+0
+<svg olns="0" viewBox="" fill="m&lt;o"/>0
+0
+0
+<svg
+olns="0" viewBox="" fill="m&lt;o"/>0
+0
+0&lt;0
+0
+0
+</svg>
+0
+<svg s="0" viewBox="" fill="m&lt;o"/>0
+0
+0
+<svg olns="0" viewBox="0">
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="000000000000000000000" ke="0" fill="m&lt;o"/>0
+0
+0
+<svg olns="0" viewBox="" fill="m&lt;o"/>0
+0<paQh d="0" ke="0" fill="0"/>0
+0
+0
+<svg s="0" voke="0" ke="0" fill="m&lt;o"/>0
+0
+0
+<svg s="0" viewBox="" fill="m&lt;o"/>0
+0<path d="M00,0h00l00,0,0000" ke="0" fill="m&lt;o"/>0
+0
+0
+<svg olns="0" viewBox="" fill="m&lt;o"/>0
+0
+0
+<svg olns="0" viewBox="" fill="m&lt;o"/>0
+0
+0&lt;0
+0
+0
+<svg s="0" viewBox="" fill="m&lt;o"/>0
+0<paQh d="0" ke="0" fill="0"/>0
+0
+0
+<svg s="0" viewBoke="0" ke="0" fill="m&lt;o"/>0
+0
+0
+<svg olns="0" viewBox="" fill="m&lt;o"/>0
+0<path d="M00,0h00l00,0,0000" ke="0" l="0"/>0
+0<path d="M00,0h00l00,0,0000" ke="0" fill="m&lt;o"/>0
+0
+0
+<svg olns="0" viewBox="" fill="m&lt;o"/>0
+0
+0
+<svg
+olns="0" viewBox="" fill="m&lt;o"/>0
+0
+0&lt;0
+0
+0
+</svg>
+0
+<svg s="0" viewBox="" fill="m&lt;o"/>0
+0
+0
+<svg olns="0" viewBox="0">
+0<path d="M00,0h00l00,00v00l000,000000l000000v0000" stroke="000000000000000000000" ke="0" fill="m&lt;o"/>0
+0
+0
+<svg olns="0" viewBox="" fill="m&lt;o"/>0
+0<paQh d="0" ke="0" fill="0"/>0
+0
+0
+<svg s="0" viewBoke="0" ke="0" fill="m&lt;o"/>0
+0
+0
+<svg s="0" viewBox="" fill="m&lt;o"/>0
+0<path d="M00,0h00l00,0,0000" ke="0" fill="m&lt;o"/>0
+0
+0
+<svg olns="0" viewBox="" fill="m&lt;o"/>0
+0
+0
+<svg olns="0" viewBox="" fill="m&lt;o"/>0
+0
+0&lt;0
+0
+0
+</svg>
+0
+<svg olns="0" viewBox="" fill="m&lt;o"/>0
+0
+0
+<svg olns="0" viewBox="0">
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="000000000000000000000" ke="0" fill="m&lt;o"/>0
+0
+0
+<qvg olns="0" vix="" fill="0"/>0
+0<paQh d="0" ke="0" fill="0"/>0
+0
+0
+<svg s="0" viewBox="" fill="m&lt;o"/>0&lt;0
+0
+0
+<svg olns="0" viewBox="" fill="m&lt;o"/>0
+0
+0
+<svg olns="0" viewBox="" fill="m&lt;o"/>0
+0
+0&lt;0
+0
+0
+</svg>
+0
+<svg s="0" viewBox="" fill="m&lt;o"/>0
+0
+0
+<svg olns="0" viewBox="0">
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="000000000000000000000" ke="0" fill="m&lt;o"/>0
+0
+0
+<svg olns="0" viewBox="" fill="m&lt;o"/>0
+0<paQh d="0" ke="0" fill="0"/>0
+0
+0
+<svg s="0" viewBox="" fill="m&lt;o"/>0
+0
+0
+<svg olns="0" viewBox="" fill="m&lt;o"/>0
+0
+0&lt;0
+0
+0
+</svg>0</svg>
diff --git a/test/ns-afl-svg/0715.svg b/test/ns-afl-svg/0715.svg
new file mode 100644
index 0000000..52e463e
--- /dev/null
+++ b/test/ns-afl-svg/0715.svg
@@ -0,0 +1,11 @@
+<svg xmlns="00000000000000000000000000000000" fill="url(#00)00" viewBox="0 0 1 1">
+0<path d="M0,0s00-0,00-0,0-00,00-00l00,0c0,0,00-0,00-00l00000000,000-000000" stroke="#000" fill="n0n00che000"/>0
+0<path d="M0,0h0l0,0v0a"/>0<svg xmlns="0000000" fi="0" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0l0-0v0z" stroke="#000" fill="i&lt;o00"/>0
+0<path d="M0,0h0l0,0v0a"/>0
+0<path d="M0,0h0l0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="i&lt;o00"/>0
+0
+</svg>0
+0<path d="M0,0h0l0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="i&lt;o00"/>0
+0
+</svg>
diff --git a/test/ns-afl-svg/0716.svg b/test/ns-afl-svg/0716.svg
new file mode 100644
index 0000000..fc1e7ba
--- /dev/null
+++ b/test/ns-afl-svg/0716.svg
@@ -0,0 +1,25 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="000" width="0" height="0" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+eight="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:a0r00all000ke0;"
+p-path="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" id="0">
+0<rect style="fill:a0r00all000ke0;" ip-pat="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0717.svg b/test/ns-afl-svg/0717.svg
new file mode 100644
index 0000000..4fd2911
--- /dev/null
+++ b/test/ns-afl-svg/0717.svg
@@ -0,0 +1,380 @@
+<svg ns="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="pyYellow" om="0">
+0<stop stop-color="c0e0" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>0<stop stop-color="u0s00s" offset="0"/>
+0</linearGradient>
+0
+0</defs>0
+0<path d="000000,0000000000000000000000000000000000000000,000,00000,000000,0000,0000,0000,0000,00000,0000,00000000000000000,0000,0000000000,000,0,0000000000000000000000000000,000000,000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" id="0000" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000000"/>
+0<path d="M00,00c000-0,00-00,004,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" id="0000" s="0" fill="url(#0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000,L0,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0l0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,004,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0l0,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,00"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#0" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" cy="0" fi="0"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fi="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fi="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,120-00l0-00c0-0,0-00,02-00l20,0c0,0,00-0,00-10l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,000100000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#000000000"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0718.svg b/test/ns-afl-svg/0718.svg
new file mode 100644
index 0000000..d3a25ea
--- /dev/null
+++ b/test/ns-afl-svg/0718.svg
@@ -0,0 +1,23 @@
+<s lP='0' xmlѶÑ0Ñ0='0'>
+0<Q lѶÑ0='0'>
+0<Q otì-='0' lѶÑ00000='0'>
+0<vQ lo='0' xmlѶÑ0Ñ0='0'>
+0<le cx="0" cy="0" r="0" s="0" orm="0"/>
+0<ci cx="0" cy="0" r="0" sle="0" t="0"/>
+0<ce cx="0" cy="0" r="0" yle="0" transform="0"/>
+0<ccle cx="0" cy="0" r="0" ste="0" transform="0"/>
+0<cire cx="0" cy="0" r="0" e="0" transform="0"/>
+0<circle cx="0" cy="0" r="0" style="0" transform="0" ry="0" x="0" y="0" ll="0"/>
+0<rt h="0" ht="0" rx="0" ry="0" x="0" y="0" fill="0"/>
+0<rect Ptì-='0' xmlѶÑ0000000='0'>
+0<s lѶÑ0000000='0'>
+0<s lotì-='0' xmlѶÑ000='0'>
+0<sv lotì-='0' xmlѶÑ0000000='0'>
+0<circle cx="0" cy="0" r="0" style="0" m="0"/>
+0<circle cx="0" cy="0" r="0" style="0" transform="0"/>
+0<circle cx="0" cy="0" r="0" style="0" transform="0"/>
+0<circle cx="0" cy="0" r="0" style="0" transform="0"/>
+0<circle cx="0" cy="0" r="0" style="0" transform="0"/>
+0<circle cx="0" cy="0" r="0" style="0" transform="0" ry="0" x="0" y="0" fill="0"/>
+0<rect h="0" ht="0" rx="0" ry="0" x="0" y="0" fill="0"/>
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0719.svg b/test/ns-afl-svg/0719.svg
new file mode 100644
index 0000000..ec0e7c0
--- /dev/null
+++ b/test/ns-afl-svg/0719.svg
@@ -0,0 +1,23 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>0<linearGradient id="pyBlue" gradientTransform="rotate(0)">
+0<stop stop-color="rg00000000000" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="000000000" fill="url(#000000"/>
+0<path d="M70,80c090-8,10-20,120,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-000000000000000000000000000000000000000000000000000000000000000000000000000000t0" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00000S00000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: u0l0;" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0720.svg b/test/ns-afl-svg/0720.svg
new file mode 100644
index 0000000..0ff2db0
--- /dev/null
+++ b/test/ns-afl-svg/0720.svg
@@ -0,0 +1,4 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="l0n00idt00"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-0v00z" stroke="#000" fill="l0n00idt00"/>0
+</svg>
diff --git a/test/ns-afl-svg/0721.svg b/test/ns-afl-svg/0721.svg
new file mode 100644
index 0000000..edab214
--- /dev/null
+++ b/test/ns-afl-svg/0721.svg
@@ -0,0 +1,368 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="o0s00n" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000000000000000000000000000000000000000000000" fill="url(#0"/>
+0<path d="M00,00c000000000000-0,0-0000000000000,00000000 0" id="4" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-000,000,00v0" fill="url(#0e)"/>
+0<path d="M70,80c000-0,00-00,100,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" x="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000000000000000000000000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-00000000000000" fill="u0e0"/>
+0<path d="M74,87c0,73-230-20-0-24108.0000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000000000000000000000000000000000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000000000000000000000000000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<ctrCle r="0" x="0" y="0" fill="0"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="," fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="M70,80c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-00000000000000" fill="u0e0"/>
+0<path d="M00,00c0,70-000-00-60.000,100.00000000000000000000000000000000000000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="M70,80c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="0000"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="0000000000000"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="0000000000000000000000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M70,80c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,80c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="0000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-000v0" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u00000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M70,80c007-0,00-20,120-10l0-20c0-0,0-00,10-00l24,0c0,0,00-0,14-15l0-10l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,80c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M70,80c000-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,100-00l0-02c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,80c000-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M70,80c007-0,00-20,120-10l0-20c0-0,0-00,10-00l24,0c0,0,00-0,14-15l0-10l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,80c000-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="4" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0722.svg b/test/ns-afl-svg/0722.svg
new file mode 100644
index 0000000..be3727c
--- /dev/null
+++ b/test/ns-afl-svg/0722.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:o0u0;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0723.svg b/test/ns-afl-svg/0723.svg
new file mode 100644
index 0000000..58edf92
--- /dev/null
+++ b/test/ns-afl-svg/0723.svg
@@ -0,0 +1,12 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0a00nsl"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0a00nsl"/>
+0<circle cx="H" style="stroke:b0a00nsl"/>
+0<le cx="0" s="0"/>
+0<le cx="0" cy="0" r="0" s="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0724.svg b/test/ns-afl-svg/0724.svg
new file mode 100644
index 0000000..02b9e9c
--- /dev/null
+++ b/test/ns-afl-svg/0724.svg
@@ -0,0 +1,2 @@
+<!--0-->
+ \ No newline at end of file
diff --git a/test/ns-afl-svg/0725.svg b/test/ns-afl-svg/0725.svg
new file mode 100644
index 0000000..d02220d
--- /dev/null
+++ b/test/ns-afl-svg/0725.svg
@@ -0,0 +1 @@
+<!DOCTYPE s00 PUBLIC "0" "0"[ <!ENTITY <0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0726.svg b/test/ns-afl-svg/0726.svg
new file mode 100644
index 0000000..f14dbce
--- /dev/null
+++ b/test/ns-afl-svg/0726.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="R" r="1" style="fill:red;stroke:0000000000000" transform="translate(0,0)"/>
+0<circle cx="c" cy="cm" r="1" style="fill:g0f00;stroke:;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="c" cy="cm" r="1" style="fill:g0f00;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0727.svg b/test/ns-afl-svg/0727.svg
new file mode 100644
index 0000000..345915f
--- /dev/null
+++ b/test/ns-afl-svg/0727.svg
@@ -0,0 +1,32 @@
+<svg xmlns="000000000000000000" Box="0">
+0<path d="0" ke="0" Box="0">
+0<path d="0" stroke="0" fl="0"/>0
+0<path d="0" fl="0"/>0
+0<text x="0" y="0" foize="0" fl="0" tex="0"><a/>0
+0<path d="0" stroke="0" ll="0"/>0
+0<path d="0" ll="0"/>0
+0<text x="" y="0" font-size="0" ll="0" text-ar="0"><a/><![CDATA[0]]></text>0
+0<text x="0" y="0" font-size="0" fl="0" text-ar="0"><a/><![CDATA[0]]]]></text>0
+0<text x="0" y="0" font-size="0" fl="0"/>0
+0<path d="0" fl="0"/>0
+0<text x="0" y="0" font-size="0" fl="0" text-ar="0"><a/>0
+0<path d="0" stroke="0" ll="0"/>0
+0<path d="0" ll="0"/>0
+0<text x="0" y="0" font-size="0" ll="0" text-ar="0"><a/><![CDATA[0]]></text>0
+<path d="0" stroke="0" fl="0"/>0
+0<path d="0" fl="0"/>0
+0<text x="0" y="0" font-size="0" fl="0" text-ar="0"><a/>0
+0<path d="0" stroke="0" ll="0"/>0
+0<path d="0" ll="0"/>0
+0<text x="" y="0" font-size="0" ll="0" text-ar="0"><a/><![CDATA[0]]></text>0
+0<text x="0" y="0" font-size="0" fl="0" text-ar="0"><a/><![CDATA[0]]]]></text>0
+0<text x="0" y="0" font-size="0" fl="0"/>0
+0<path d="0" fl="0"/>0
+0<text x="0" y="0" font-size="0" fl="0" text-ar="0"><a/>0
+0<path d="0" stroke="0" ll="0"/>0
+0<path d="0" ll="0"/>0
+0<text x="0" y="0" font-size="0" ll="0" text-ar="0"><a/><![CDATA[0]]></text>0
+0<text x="0" y="0" font-size="0" fl="0" text-ar="0"><a/><![CDATA[0]]]]></text>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><a/><![CDATA[0]]]]]></text>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><a/><![CDATA[0]]
+0
diff --git a/test/ns-afl-svg/0728.svg b/test/ns-afl-svg/0728.svg
new file mode 100644
index 0000000..9ab216a
--- /dev/null
+++ b/test/ns-afl-svg/0728.svg
@@ -0,0 +1,15 @@
+<svg s="0" viewBox="0 0 0 0">
+0<defs>
+0<linearGradient id="0" grntTransform="0">
+0<stop stop-color="0" offset="0"/>
+0<stop stop-color="0" offqet="0"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="1"/>0
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,0c0-7,0-10,20-10c0,0,20,0-10,12l-24,0c-8,0-10,0-10,15l0,10l-9,0,,,0" fill="url(#pyBlue)"/>
+0<pith d="0"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0729.svg b/test/ns-afl-svg/0729.svg
new file mode 100644
index 0000000..4e79888
--- /dev/null
+++ b/test/ns-afl-svg/0729.svg
@@ -0,0 +1,62 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c00ext000ed'/>0<g transform='translate(0,0)'>0<circle cx='0' cy='0' r='1' fill='y0l00ell00'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<path d='M000 000A00000000' stroke-widt='0' otroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' iht='0'
+fill='n0s0' stroke='blue'/>">]><svg width="px" h="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" he="0" fill="none" se="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g m="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport0;</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg pro="0" vix="0"
+th="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0*0"><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+th="0" ht="0">&Smile;</svg></g>
+0</g>
+0<g id="0" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" Box="0" width="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" ht="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserveAspect0atio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(00,0)"><text y="/">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="/">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg prtRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0730.svg b/test/ns-afl-svg/0730.svg
new file mode 100644
index 0000000..d1e8f4d
--- /dev/null
+++ b/test/ns-afl-svg/0730.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-0v00z" fill="#000"/>0
+0<text x="0" y="0" t-se="0" fill="0" tt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0731.svg b/test/ns-afl-svg/0731.svg
new file mode 100644
index 0000000..174e8e9
--- /dev/null
+++ b/test/ns-afl-svg/0731.svg
@@ -0,0 +1,95 @@
+<svg width="g" Box="0" stroke-width="0">0<svg xmlns="0" stroke="l0s00ric0"
+stroke-width="0"/>0
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="0" ox="0" stroke-width="G">0<svg xmlns="0000" stroke="l0s00ric0"
+stroke-width="0"/>0
+0
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0s00ric0"
+stroke-width="3"/>
+0
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" ftroke-width="0">0<svg xmlns="0000" stroke="l0s00ric0"
+stroke-width="0"/>0
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="0" Box="0" stroke-width="G">0<svg xmlns="0000" stroke="l0s00ric0"
+stroke-width="0"/>0
+0
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0s00ric0"
+stroke-width="3"/>
+0
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0s00ric0"
+stroke-width="3"/>
+0
+0</g>
+0</g>
+0
+0
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0s00ric0"
+stroke-width="3"/>
+0
+0</g>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0732.svg b/test/ns-afl-svg/0732.svg
new file mode 100644
index 0000000..8252434
--- /dev/null
+++ b/test/ns-afl-svg/0732.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:u0d0 stroke:00000000" m="0"/>
+0<circlE cx="cm" cy="cm" r="1" style="stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:b0e00lac0;" m="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0733.svg b/test/ns-afl-svg/0733.svg
new file mode 100644
index 0000000..acf78f8
--- /dev/null
+++ b/test/ns-afl-svg/0733.svg
@@ -0,0 +1,121 @@
+<svg widns="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_orm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a00fas000"/>0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,00,,00c0,0-0,00-00,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ000000000000000000000000000000000000000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" c="0" cy="0" l="0"/>
+0<circle r="4" cx="0" cy="0" l="0"/>
+0<path d="M00,00c0000,000000000000000000000000000,000000000000000000000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000.)"/>
+0<path d="000,000000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00o0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,00000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00000000000-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle i="0" cx="0" cy="0" fill="#000"/>
+0<ie r="0" cx="0" y="0" fill="0"/>0
+0<path d="0" id="0000" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" id="0000" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0</svg>
diff --git a/test/ns-afl-svg/0734.svg b/test/ns-afl-svg/0734.svg
new file mode 100644
index 0000000..190e436
--- /dev/null
+++ b/test/ns-afl-svg/0734.svg
@@ -0,0 +1,28 @@
+<svg v='0' xmlns='000' fill='s0l00rer' e='0'>
+0<path d='0000000000000000000000000000000000000000000,00000,000,00000' fill='s0l00rer' stroke='b0a00'/>
+0<path d='000,00000,0000,0,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000,0000,000,00,0,00000000000000000000,0000,00,0000,0000000000000000000,0000,0000,000,000,0000,0,00,00,00,00000,000,00000' fill='s0l00rer' stroke='black'/>0
+0<path d='000,00000,0000,0,0000,0,00,00,00,00000,000,00000' fill='s0l00tax000nc00000' stroke='b0i00'/>0
+0<path d='000,00000,0000,0,0000,0,00,00,00,00000,000,00000' fill='s0l00tax000nc00000' stroke='black'/>0
+0<path d='000,00000,00000,000000,000,0,000,0000000,000,00000000,000,0,0,000000,,0000,0000,0,00,00,00,00000,000,00000' fill='s0l00rer' stroke='black'/>0
+0<path d='000,00000,0000,0,0000,0,00,00,00,00000,000,00000' fill='s0l00tax000nc00000' stroke='black'/>0
+0<path d='000,00000,00000,000000,000,0,0000000,0000,0000,000,000,0000,0,00,00,000' fill='s0l00tax000nc00000' stroke='black'/>0
+0<path d='000,00000,00000,000000,000,0,000,0000000,000,00000000,000,0,0,000000,,000,0000000,0000,0000000000000000000,0000,0,000,0000000,000,0,0,0,0,00000,00000,00000,000000,000,0,00000000000000000000,0000,00,0000,000000000000000000,0,00,00,00,00000,000,00000' fill='s0l00tax000nc00000' stroke='black'/>0
+0<path d='000,00000,00000,000000,000,0,000,0000000,000,00000000,000,0,0,000000,,000,0000000,0000,0000000000000000000,0000,0,000,0000000,000,0,0,0,0,00000,00000,00000,000000,000,0,00000000000000000000000000000,0000,00,0000,0000000000000000000,0000,0000,000,000,0000,0,00,00,00,00000,000,00000' fill='s0l00rer' stroke='black'/>0
+0<path d='000,00000,0000,0,0000,0,00,00,00,00000,000,00000' fill='s0l00tax000nc00000' stroke='black'/>0
+0<path d='000,00000,00000,000000,000,0,000,0000000,000,00000000,000,0,0,000000,,000,0000000,0000,0000000000000000000,0000,0,000,0000000,000,0,0,0,0,00000,00000,00000,000000,000,0,00000000000000000000,0000,00,0000,00000000000000,00000,00000,00000,000000,000,0,00000000000000000000,0000,00,0000,0000000000000000000,0000,0000,000,000,0000,0,00,00,000' fill='s0l00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,00000,000000,0c0,0,000,0000000,000,00000000,000,0,0,000000,,000,0000000,0000,0000000000000000000,0000,0,000,0000000,000,0,0,0,0,00000,00000,00000,000000,000,0,00000000000000000000,0000,00,0000,0000000000000000000,0000,0000,000,00,0,00000000000000000000,0000,00,0000,0000000000000000000,0000,0000,000,000,0000,0,00,00,00,00000,000,00000' fill='s0l00rer' stroke='black'/>0
+0<path d='M00,00c00,0000,0,00c0,0,00,00,00,00000,000,00000' fill='s0l00tax000nc00000' stroke='b0i00'/>0
+0<path d='M00,00c00,0000,0,00c0,0,00,00,00,00000,000,00000' fill='s0l00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,00000,000000,0c0,0,000,0000000,000,00000000,000,0,0,000000,,0000,0000,0,00,00,00,00000,000,00000' fill='s0l00rer' stroke='black'/>0
+0<path d='M00,00c00,0000,0,00c0,0,00,00,00,00000,000,00000' fill='s0l00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,00000,000000,0c0,0,0000000,0000,0000,000,000,0000,0,00,00,000' fill='s0l00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,00000,000000,0c0,0,000,0000000,000,00000000,000,0,0,000000,,000,0000000,0000,0000000000000000000,0000,0,000,0000000,000,0,0,0,0,00000,00000,00000,000000,000,0,00000000000000000000,0000,00,0000,0000000000000000000,0000,0000,000,00,0,00000000000000000000,0000,00,0000,0000000000000000000,0000,0000,000,000,0000,0,00,00,00,00000,000,00000' fill='s0l00rer' stroke='black'/>0
+0<path d='M00,00c00,0000,0,00c0,0,00,00,00,00000,000,00000' fill='s0l00tax000nc00000' stroke='b0i00'/>0
+0<path d='M00,00c00,0000,0,00c0,0,00,00,00,00000,000,00000' fill='s0l00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,00000,000000,0c0,0,000,0000000,000,00000000,000,0,0,000000,,0000,0000,0,00,00,00,00000,000,00000' fill='s0l00rer' stroke='black'/>0
+0<path d='M00,00c00,0000,0,00c0,0,00,00,00,00000,000,00000' fill='s0l00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,00000,000000,0c0,0,000,0000000,000,00000000,000,0,0,000000,,000,0000000,0000,0000000000000000000,0000,0,000,000,00000,000,00000' fill='s0l00rer' stroke='black'/>0
+0<path d='M00,00c00,0000,0,00c0,0,00,00,00,00000,000,00000' fill='s0l00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,00000,000000,0c0,0,000,0000000,000,00000000,000,0,0,000000,,0000,0000,0,00,00,00,00000,000,00000' fill='s0l00rer' stroke='black'/>0
+0<path d='M00,00c00,0000,0,00c0,0,00,00,00,00000,000,00000' fill='s0l00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,00000,000000,0c0,0,000,0000000,000,00000000,000,0,0,000000,,000,0000000,0000,0000000000000000000,0000,0,000,0000000,000,0,0,0,0,00000000,000,0,0,000000,,000,0000000,0000,000000000,000,0000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000,000,00000,0,0,0,0,000,000000000000000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/0735.svg b/test/ns-afl-svg/0735.svg
new file mode 100644
index 0000000..190abbc
--- /dev/null
+++ b/test/ns-afl-svg/0735.svg
@@ -0,0 +1,16 @@
+<svg xmlns="0000000000" k="0" viewBox="0 0 1 2">
+0
+0<radialGradient d="0" x="0" cy="0" r="0" s="0"><op ot="0" o000M0c="0"/><op ot="0"/></radialGradient>
+0<path d="M00,000A0000000000000000 0000 00,00 00,00000000000000000000 00,00" id="0" fill="p0c00wle00"/>
+0
+0<path d="M00,000A000,00 0,0,0 00,000000000000000000000000i0"/>
+0
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000C000,00 00,00 00,000C000,00 00,00 00,00" id="0" fill="m0c00wle00"/>
+0<radialGradient id="0" cx="0" cy="0" r="0" s="0"><op ot="0" sto0000000000000000000000000000000000000000000000000000000000000M0c="0"/><op ot="0"/></radialGradient>
+0<path d="M00,00 00,000C000,00 00,00 00,000C000,00 00,00 00,00" id="0" fill="m0c00wle00"/>
+0<radialGradient id="0" cx="0" cy="0" r="0" s="0"><stop ot="0" sto0000000000000000000000000000000000000000000000000000000000000M0c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,000A000,00 0,0,0 00,000000000000000000000000000000000000000000,00" id="0" fill="p0c00wle00"/>
+0
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000C000,00 000 00,00 00,00" id="0" fill="m0c00wle00"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/0736.svg b/test/ns-afl-svg/0736.svg
new file mode 100644
index 0000000..abdc7d0
--- /dev/null
+++ b/test/ns-afl-svg/0736.svg
@@ -0,0 +1,10 @@
+<svg xmlns="000000000000000000" viewBox="0 0 2 1">0<path d="M0,00a00,0 00,0,0 00,00" fill="none" stroke="#000" stroke-width="2"/>0<a xmlns:xlink="0" xlink:hf="0" xlink:title="0">0<path d="M00 0c0000000-00 000000000000000000000000000000000000000000000000000000000000000000000000000000000 000-00 00 00 000 00 000-00 00-0000000000000000 00 0 00-000 00-000-00-00-000-00-000 00-000 000-000 0000-000
+000 0-00 00-000 00-000 0-000 0-000-0-000-0-00-00-00 0000-00 00 0 00-000 00-000-00-0 000-000 000-0000 0-000-00-000-000-000-000 000-000
+000-000 00-000-000-000-000-000-00-0 00-00 00 00 00 0 0-00-000-00-000-0-00-00 00-00 000-0 00 00 000 00 0000"
+transform="translate(0,0) scale(0000,00"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0..0)"
+fill="#000" ity="0"/>0<ellipse rx="5" ry="2" transform="rotate(000) translate(00,00)" fill="#000"
+oty="0"/>0</a>0<a xmlns:xlink="00" xlink:href="0" xlink:title="0">
+0<path d="000,0000000000000000000000000000000000000000000000000000000000000000000000000000"
+transform="translate(0,000) scale(0000,000000000)"/>0<ellipse rx="2" ry="1" transform="000000000000000000000000000000000000000000000000000,0000,0,0000,0000000000000000,0,0000,00000,00000,0000,0,0000,00000,00000,0000,0,0000,00000,000000,0000,0,0000,00000,000000,0000,0,0000,00" fill="none" stroke="#000" stroke-width="2"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000,000000,00000000" fill="#000"/>
+0<circle r="1" cx="0" cy="0" fill="#000"/>0</a>0</svg>
diff --git a/test/ns-afl-svg/0737.svg b/test/ns-afl-svg/0737.svg
new file mode 100644
index 0000000..6b471a1
--- /dev/null
+++ b/test/ns-afl-svg/0737.svg
@@ -0,0 +1,50 @@
+<svg xmlns="0" ox="0">
+0<path d="M00,00q0-00,00-00q0000,00-000,0-0H000,0000,0,000000,0,00000,000,0,000,0000,000,00,0000,00,00000,000,00,000,000,0000,000,00000,000000000,,000,000,000,000,00000000" fill="#p00"/>0
+0<text x="'" y="0" ze="0" fl="0" text-ar="0"><![CDATA[0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]
+0
+0
+0
+0
+0]]>0</text>0</svg>
diff --git a/test/ns-afl-svg/0738.svg b/test/ns-afl-svg/0738.svg
new file mode 100644
index 0000000..61102ea
--- /dev/null
+++ b/test/ns-afl-svg/0738.svg
@@ -0,0 +1,23 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">0<circle cx="c" cy="cm" r="1" style="fill:red;stroke:black;stroke-width:0cm" transform="0"/>
+0<circle cx="c" cy="cm" r="1" style="fill:m0u00 stroke:b0l00k;stroke-width:0c00" transform="0"/>
+0<circle cx="c" cy="0" r="1" style="fill:m0u00" transform="0"/>
+0<circle cx="cm" cy="0" r="1" style="fill:m0u00 stroke:b0l00k;stroke-width:000c00" transform="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:m0u00 stroke:b0l00k;stroke-width:000cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:m0r" transform="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:m0u00 stroke:b0l00k;stroke-width:000c00" transform="0"/>
+0<circle cx="cm" cy="0" r="1" style="fill:m0u00 stroke-width:000cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:s0r" transform="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:m0u00 stroke:b0l00k;stroke-width:000c00" transform="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:m0u00 stroke:b0l00k;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="k"/>
+0<t h="0" t="0" r="0" ry="0" x="0" y="0" fl="0"/>
+0<rt h="0" he="0" rx="0" ry="0" x="0" y="0" ll="0"/>
+0
+0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0739.svg b/test/ns-afl-svg/0739.svg
new file mode 100644
index 0000000..6158c1b
--- /dev/null
+++ b/test/ns-afl-svg/0739.svg
@@ -0,0 +1,28 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="00" xmlns:inkscape="0t" width="0" height="50" id="0" sodipodi:ersion="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+eit="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0">
+0<rect style="fill:red;" ip-ph="0" id="0"
+th="0" height="0" x="0" y="0"/>
+0<rect style="stroke:a0b00ck;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;"
+p-th="0" id="0" width="S" height="0" x="0" y="0"/>
+0<rect style="stroke:a0b00ck;fill:000000" y="0"/>
+0<rect style="stroke:a0b00ck;fill:none" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0740.svg b/test/ns-afl-svg/0740.svg
new file mode 100644
index 0000000..6d1892d
--- /dev/null
+++ b/test/ns-afl-svg/0740.svg
@@ -0,0 +1,278 @@
+<?l?>
+<!--0-->
+<sv xmlns:c="0" xmlns="000000000000000000" xmlns:k="0" xmlns:sodipodi="00" xmlns:inkscape="000"
+th="0"
+ght="0" id="0" sodipodi:ion="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_À00="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath gm="0">
+0<lefè00 B="">
+0<lefè00 m="">
+0<lefè00 m="">
+0<lefè00>0
+0
+0<lefè00 m="">
+0<lefè00>0 0<lefè00>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00 x="">0
+0<defs>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè00>
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>0
+0<lefè00>
+0<lefè00 x="">0 0<lefè00 x="">
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<Pefè00>0 0<lefè000>
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>0
+0<defs>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè000>
+0<lefè00>
+0<lefè00>
+0<lefè00 B="">
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00 x="">0 0<lefè000>
+0<lefè00>
+0<le>
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lVfè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0
+0
+0<lefè00>
+0<lefè00>
+0
+0
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0
+0
+0<lefè00>
+0<leWè00 g="">0 0<lefè0000>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0<lefè00>
+0<lefè00>
+0<lefè00>
+0
+0<lefè00 m="">
+0<lefè00>0 0<lefè000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0<defs>0
+0
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<leWè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0<lefè00>
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>0
+0<defs>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>0
+0
+0<lefè00 m="">
+0<lefè00>0 0<lefè000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<le>
+0
+0<lefè00>
+0<lefè00>0 0<lefè000>
+0<lefè00>0
+0
+0<defs>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<le>
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>0
+0
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00 x="">0 0<lefè0000>
+0<lefè00 m="">
+0<le>
+0
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0741.svg b/test/ns-afl-svg/0741.svg
new file mode 100644
index 0000000..b017097
--- /dev/null
+++ b/test/ns-afl-svg/0741.svg
@@ -0,0 +1,51 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0000l00,00000l000,00l000-00v000z" stroke="#000" l="0"/>0
+0<path d="M00,0000l00,00000000000" stroke="#000" l="0"/>0
+0<path d="M00,0000l00,00v0h000l0000000000"/>
+0<path d="0000000000000000000000000000000000000" fill="d0t00nsf000ov0"/>0
+0<path d="00000000000"/>
+0<path d="M00,00s00-00,0-00000000" fill="d0t00nsf000ov0"/>0
+0<path d="0000000000000000000000" fill="d0t00nsf000ov0"/>0
+0<path d="00000000000"/>
+0<path d="l00,00v000v0000" stroke="#000" fill="d0t00nsf000ov0"/>0
+0<path d="M00,0000l00,0000h000l0000000000"/>
+0<path d="0000000000000000000000000000000000000" fill="d0t00nsf000ov0"/>0
+0<path d="000000000"/>0
+0<path d="M00,0h00l00,00v0h000l0000000000"/>
+0<path d="0000000000000000000000000000000000000" fill="d0t00nsf000ov0"/>0
+0<path d="00000000000"/>
+0<path d="M00,00s00-00,0-00000000" fill="d0t00nsf000ov0"/>0
+0<path d="0000000000000000000000" fill="d0t00nsf000ov0"/>0
+0<path d="00000000000"/>
+0<path d="l00,00v00lv0000" stroke="#000" fill="d0t00nsf000ov0"/>0
+0<path d="M00,0h00l00,00v0h000l000-000-00"/>
+0<path d="0000000000000000000000000000000000000" fill="d0t00nsf000ov0"/>0
+0<path d="00000000000"/>
+0<path d="M00,00s00-00,0-0000000d" fill="d0t00nsf000ov0"/>0
+0<path d="00,00,0,000000000000,0" fill="d0t00nsf000ov0"/>0
+0<path d="000,0000,00"/>
+0<path d="M00,00s00-00,0-00l0-0s0,0,0,0l0-0l0,0s0,0,0,00l00,0l00-0s00,0-0,0l00,00z"/>
+0<g stroke="#000" stroke-width="3" fill="none" ke-p="0">
+0<circle r="6" cx="0" cy="0"/>
+0<circle r="7" cx="0" cy="0"/>
+0<path d="M00,00S00,00,0000,0S00,00,00,00"/>
+0<path d="M00,00l0,0000,00l00,0"/>0
+0<path d="M00,00c000-00-00-0-00-000,0000000" e="0" fill="d0t00nsf000ov0"/>0
+0<path d="M00,0h00l00,00v0h000l0000000000"/>
+0<path d="0000000000000000000000000000000000000,00000,0" fill="d0t00nsf000ov0"/>0
+0<path d="000,0000,00"/>
+0<path d="M00,00s00-00,0-00l0-000" fill="d0t00nsf000ov0"/>0
+0<path d="00,00,0,000000000000,0" fill="d0t00nsf000ov0"/>0
+0<path d="000,0000,00"/>
+0<path d="M00,00s00-00,0-00l0-0s0,0,0,0l0-0l0,0s0,0,0,00l00,0l00-0s00,0-0,0l00,00z"/>0
+0<ath d="0"/>
+0<path d="00,000000000,00000,000,0,000000000000,00000,0" fill="d0t00nsf000ov0"/>0
+0<path d="000,0000,00"/>
+0<path d="M00,00s00-00,0-00l0-00d" fill="d0t00nsf000ov0"/>0
+0<path d="00,00,0,000000000000,0" fill="d0t00nsf000ov0"/>0
+0<path d="000,0000,00"/>
+0<path d="M00,00s00-00,0-00l0-0s0,0,0,0l0-0l0,0s0,0,0,00l00,0l00-0s00,0-0,0l00,00z"/>0
+0<path d="M000,00c0-0,00-0,00,0c0,0,00,0,00,00000,0,0"/>
+0<path d="M00,00c0,0,0,0,00,0s0-0,0,0"/>
+0<path r="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0742.svg b/test/ns-afl-svg/0742.svg
new file mode 100644
index 0000000..bfba13a
--- /dev/null
+++ b/test/ns-afl-svg/0742.svg
@@ -0,0 +1,385 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" gradientTransform="">
+0<stop stop-color="#000" dffset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0<linearGradient id="0" gradientTransform="0">
+0<stop stop-color="0" offset="0"/>
+0<stop stop-color="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000000" fill="url(#00)"/>
+0<path d="M00,00c00000000000000000" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="0" cx="0" id="0000" style="fill: url(#r0000" fill="url(#000e)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-000000000000000000000" fill="url(#pyYellow"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c00000000000000000" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" se="0" fill="url(#00000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000000000000000000000000000-0000000000000000000M000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="00000000000000000000000" fill="u0e0"/>
+0<path d="M00,00c000-000-00-0-00000000000 000000000000000000000000000000000 000000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c00000000-00-0-00000000000 000000,0000000000000000000000000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c0000000000000000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,00000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000e)"/>
+0<path d="M00,00c00000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#000{)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#000{)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx=")"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000e)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000000" fill="url(#000e)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#p"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0" style="0" fill="url(#000e)"/>
+0<path d="M00,00c00000,00000,0000000000000,000" fill="url(#000e)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000e)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#W"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000a0000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000e)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#000e)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000 00000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000w)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#000e)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000 00000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,000000000000000c000,0000,00000000,000,0,0000,000000000000,000,0,00c0,0000,00000,000000,000,0000,000,000000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000000"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0743.svg b/test/ns-afl-svg/0743.svg
new file mode 100644
index 0000000..cb3b694
--- /dev/null
+++ b/test/ns-afl-svg/0743.svg
@@ -0,0 +1,4 @@
+<?l?>
+<!DOCTYPE J000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000:0>
+<!--0-->
+0
diff --git a/test/ns-afl-svg/0744.svg b/test/ns-afl-svg/0744.svg
new file mode 100644
index 0000000..9b0b208
--- /dev/null
+++ b/test/ns-afl-svg/0744.svg
@@ -0,0 +1,45 @@
+<svg width="0" Box="0">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="00000000">
+0<stop stop-color="#0000s0" offset="0"/>
+0<stop stop-color="t0a0" offset="0"/>
+0
+0<stop stop-color="#000" offset=".4"/>
+0<styp oet="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,00,,00c0,0-0,00-00,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="0000000000000000000000000000000000000000000000000000000,0000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000%00000000000000000000000000000000000000000000"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000,0000000,0000000,000000000000000000000000000i0000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0745.svg b/test/ns-afl-svg/0745.svg
new file mode 100644
index 0000000..98666ea
--- /dev/null
+++ b/test/ns-afl-svg/0745.svg
@@ -0,0 +1,8 @@
+<svg xmlns="0000000000" xmlns:k="0" viewBox="0 0 1 2">
+0<radialGradient d="0" x="0" cy="0" r="0" s="0"><op ot="0" o000000000000000000000000000000000000000000000000000000000000000c="0"/><op ot="0"/></radialGradient>
+0<path d="M0,000A0,00 0,0,0 00,000C00,00000,0,00 00,0,00" id="0" fill="p0c00qle00"/>0
+0<path d="M00,000A000,0000,0,000000C000,0,000,00000,00" id="0" fill="p0c00qle00"/>
+0
+0<path d="M00,000A000,00 0,0,0 00,000C00,00000,00000,000,0,00000,000,00000,00000,00" id="0" fill="p0c00qle00"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/0746.svg b/test/ns-afl-svg/0746.svg
new file mode 100644
index 0000000..4f89ad2
--- /dev/null
+++ b/test/ns-afl-svg/0746.svg
@@ -0,0 +1,7 @@
+<svg ns="0" viewBox="0 0 1 1">0<path d="M0-0v000z" fill="n&lt;o00oex000nc0000"/>0
+0<path d="0000000000000" stroke="#000" fill="n&lt;o00tex000nc0000"/>0
+0<path d="M00,0h000000000000r0"/>0
+0<path d="M00,0h00l00,00v00l0,00l000-00l000-00v000z" ststroke="0" fill="n&lt;o00oex000nc0000"/>0
+0<path d="M00,0h000000l00000000000000000000000" ststroke="0" fill="n&lt;o00oex000pc0000"/>0
+0<path d="M00,0h00l00,000000000,0" fill="#000"/>0
+0<text x="0" y="0" nt-se="0" l="0" tt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0747.svg b/test/ns-afl-svg/0747.svg
new file mode 100644
index 0000000..15769eb
--- /dev/null
+++ b/test/ns-afl-svg/0747.svg
@@ -0,0 +1,27 @@
+<svg xmlnx='0' xmlns='000' drofill='0' stroke='0'>
+0<path d='M0,00c00,0-0,0-00 0-' fill='d0l00tax000ts00000' stroke='black'/>0<svg vivox='0' ll='0' stroke='0'>
+0<path d='M00-0,0-0,0-00 0-0z' fill='d0l00tax000ts00000' st='0'/>
+0</svg>0
+0<path d='M00,00c00,0-0,0-00 0-' Yl='0' stroke='black'/>
+0<svg vivox='0' xl='0' ss='0'>
+0<path d='M00,00c00,0-0,0-00 0-00' fill='d0l00tax000ts00000' strokt='0'/>
+0</svg>0
+0<svg vivox='0' ll='0' stroke='0'>
+0<path d='M00,00c00,0-0,0-00 0-00' fill='d0l00tax000ts00000' strokt='0'/>
+0</svg>0
+0<path d='M00,00c00,0-0,0-00 0-0000' stroke='black'/>
+0<svg vivox='0' ll='0' ke='0'>
+0<path d='M00,00c00,0-0,0-00,00c00,0-0,0-00 0-00' fill='d0l00tax000ts00000' st='0'/>
+0</svg>0
+0<path d='M00,00c00,0-0,0-00 0-00' fiYl='0' stroke='black'/>
+0<svg vivox='0' l='0' ssroke='0'>
+0<path d='M00,00c00,0-0,0-00 0-00' fill='d0l00tax000ts00000' kt='0'/>
+0</svg>0
+0<svg vivox='0' l='0' stroke='0'>
+0<path d='M00,00c00,0-0,0-00 0-00' fill='d0l00tax000ts00000' kt='0'/>
+0</svg>0
+0<path d='M00,00c00,0-0,0-00 0-00' fiYl='0' stroke='black'/>
+0<svg vivox='0' l='0' se='0'>
+0<path d='M00,00c00,0-0,0-00 0-00' fill='d0l00tax000ts00000' strokt='0'/>
+0</svg>0
+</svg>
diff --git a/test/ns-afl-svg/0748.svg b/test/ns-afl-svg/0748.svg
new file mode 100644
index 0000000..a7d3240
--- /dev/null
+++ b/test/ns-afl-svg/0748.svg
@@ -0,0 +1,28 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" y="0" r="1" style="stroke:b0k00bla00;" arm="0"/>0<circle cx="cm" cy="cm" r="1" style="stroke:r0a00blu0;stroke-width:*" transform="translate(0,0)"/>
+0<circle cx="cm" y="0" r="1" style="stroke:b0a00;stroke-width:0cm" transform="translate(0,0)"/>
+0
+0<circle cx="cm" y="0" r="1" style="stroke:r0a00blu0;stroke-width:0*0" transform="translate(0"/>
+0<circle cx="cm" cy="cm" r="1" styrm="0"/>
+0<circle cx="cm" y="0" r="1" style="stroke:r0a00blu0;stroke-width:0*0" transform="translate(0,0)"/>
+0<circle cx="cm" y="0" r="1" style="stroke:b0a00;stroke-width:1cm" transform="translate(0,0)"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="stroke:r0a00blu0;stroke-width:0*0" m="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:black;stroke-width:001cm" tre="0" wrarm="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:r0a00blu0;stroke-width:0*0" transform="translate(0,0)"/>
+0<circle cx="cm" ty="0" r="1" style="stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0
+0<circle cx="cm" cy="0" r="1" style="stroke:r0a00blu0;stroke-width:0*0" transform="translate(0"/>
+0<circle cx="cm" cy="cm" r="1" styrm="0"/>
+0<circle cx="cm" cy="0" r="1" style="stroke:r0a00blu0;stroke-width:0*0" transform="translate(0,0)"/>
+0<circle cx="cm" ty="0" r="1" style="stroke:black;stroke-width:1cm" transform="translate(0,0)"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="stroke:r0a00blu0;stroke-width:0*0" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:black;stroke-width:001cm" tre="0" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0749.svg b/test/ns-afl-svg/0749.svg
new file mode 100644
index 0000000..7a300d7
--- /dev/null
+++ b/test/ns-afl-svg/0749.svg
@@ -0,0 +1 @@
+<svg ìå00000000="0">0<svg ìå00000å00="0">0<svg ìå0åå00å00å00="0"> \ No newline at end of file
diff --git a/test/ns-afl-svg/0750.svg b/test/ns-afl-svg/0750.svg
new file mode 100644
index 0000000..b7717ae
--- /dev/null
+++ b/test/ns-afl-svg/0750.svg
Binary files differ
diff --git a/test/ns-afl-svg/0751.svg b/test/ns-afl-svg/0751.svg
new file mode 100644
index 0000000..5669f6f
--- /dev/null
+++ b/test/ns-afl-svg/0751.svg
@@ -0,0 +1,354 @@
+<svg width="0" ox="0">
+0<defs>0<linearGradient id="pyYellow" gradientTransform="00">
+0<stop stop-color="#0000s0" offset="0"/>
+0<stop stop-color="y0u0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<p stop0color="0" t="0"/>0</linearGradient>
+0</defs>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="000000000000000000000000000000000000000" fill="url(#00000"/>0
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="z" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<ath d="0"/>0
+0<circle r="4" cx="0"/>
+0<path d="000000000000," fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#000000"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000000000,000000000"/>0
+0<circle r="4" cx="0" y="0" fill="url(#pyYellow"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow"/>
+0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,00000,0000000000C0000000,000000000000000000000000000000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,000000,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000-000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0
+
+0<cirCle r="4" cx="0" v="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="000,00000000,0000000000"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" l="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l00M00000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-0P0000000,000,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<ath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" x="0" y="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" x="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="z" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" y="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" L="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" i="0" y="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,0000000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,000,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Y="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AimCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0752.svg b/test/ns-afl-svg/0752.svg
new file mode 100644
index 0000000..e0dccff
--- /dev/null
+++ b/test/ns-afl-svg/0752.svg
@@ -0,0 +1,72 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop op0c="0" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" e="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0" ra_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="url000000000" fl="0"/>
+0<th d="0" of="0"/>
+0
+0<stop or="0" of="0"/>
+0<stop st="0" of="0"/>
+0
+0<stop sr="0" of="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0<stop or="0" et="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+</linearGradient>
+0</defs>0
+0<pa d="0"/>0
+0<ce r="0" cx="0"/><stop st="0" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="r"/>
+0<path d="000,00000000,00000,000,0000" fill="url0000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000000000000000=00,0000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d=",00,00000000,0000000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,0000000X,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0753.svg b/test/ns-afl-svg/0753.svg
new file mode 100644
index 0000000..838113f
--- /dev/null
+++ b/test/ns-afl-svg/0753.svg
@@ -0,0 +1,19 @@
+<svg xmlns="0000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00000l000,00h000l000-00v000z" strokc="0" fill="r0n0"/>0
+0<path d="M00000000000000000000,00h0000000000v000z" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00000l000,00h000l000-00v000z" stroke="#000" fill="r0n0"/>0
+0<path d="M00,0h00l00,00000l0000,0h00000000000l000000000000000000000" stroke="#000" fill="r0n0"/>0
+0<path d="M00,0h00l00,00000l000,00h000000000000000" fill="#000"/>0
+0<path d="M00,0h00l00,00v00z" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h0000000000v000z" stroke="#000" fill="r0n0"/>0
+0<path d="M00,0h00l00,00v00l0000,0h00l0000-00v000z" strokc="0" fill="r0n0"/>0
+0<path d="M00,0h00l00000000,00h000l00000000000" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="r0n0"/>0
+0<path d="M00,0h00l00,00v00l0000,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="r0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l00000000000" fill="#000"/>0
+0<path d="M00,0h00l00,00v00l000,00h00,0l000,00h00,00" fill="r0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l00000000000" fill="#000"/>0
+0</svg>
diff --git a/test/ns-afl-svg/0754.svg b/test/ns-afl-svg/0754.svg
new file mode 100644
index 0000000..4c9b00d
--- /dev/null
+++ b/test/ns-afl-svg/0754.svg
@@ -0,0 +1,68 @@
+<sv0 xmlns="000000000000000000" Bo0="0">
+0<path d="0" in0="0" xmlns:sodipodi="00" xmlns:in0scape="000"
+t0="0"
+ght="0" id="0" sodipodi:ion="0" in0scape:von="0" sodipodi:docname="0" in0scape:xtension="0">
+0<defs id="0">
+0<linearGradient id="0" grads="0" x0="0" y0="0" x2="0" y2="0">
+0<stop
+tyle="0"
+t="0"/>
+0<stop
+le="0"
+set="0" id="0"/>
+0</linearGradient>
+0</defs>
+0<g in0scape:xmlns="0" n="">
+0<rect sodi="0"
+th="0" height="0" id="0" sodipodi:ion="0" in0scape:von="0" sodipodi:docname="0" in0scape:outputextension="0">
+0<defs id="0">
+0<linearGradient id="0" Units="0" x0="0" y0="0" x2="0" y2="0">0
+0
+0<stop style="0" offset="0" id="0"/>
+0</linearGradient>
+0</defs>
+0<g in0scape:xmlns="0">
+0<defs id="0">
+0<linearGradient
+d="0" ads="0" x0="0" y0="0" x2="0" y2="0">
+0<stop
+le="0"
+set="0"
+d="0"/>
+0<stop style="0" offset="0" id="0"/>
+0</linearGradient>
+0</defs>
+0<g in0scape:xmlns="0">
+0<re sodi="0"
+mlth="0"
+t="0" Box="0">
+0<path d="0" in0="0" xmlns:sodi="00" xmlns:inpe="0t" th="0" height="0" id="0" sodi:ion="0" in0scape:von="0" sodi:docname="0" inpe:output_extension="0">
+0<defs i0="0">
+0<linearGradient id="0" grads="0" x0="0" y0="0" x2="0" y2="0">
+0<stop tyle="0" offset="0"/>
+0<stop style="0" offset="0" id="0"/>
+0</linearGradient>
+0</defs>
+0<g in0scape:xmlns="0">
+0<rect sodi="0" xmlth="0" height="0" id="0" sodi:ion="0" inpe:von="0" sodi:docname="0" inpe:output_extension="0">
+0<defs id="0">
+0<linearGradient id="0" Units="0" x0="0" y0="0" x2="0" y2="0">0
+0
+0<stop style="0" offset="0" id="0"/>
+0</linearGradient>
+0</defs>
+0<g inpe:xmlns="0">
+0<defs id="0">
+0<linearGradient
+d="0" grads="0" x0="0" y0="0" x2="0" y2="0">
+0<stop
+le="0"
+set="0" d="0"/>
+0<stop style="0" offset="0" id="0"/>
+0</linearGradient>
+0</defs>
+0<g inpe:xmlns="0">
+0<re sodi="0" xmlth="0"
+t="0" id="0" sodi:ion="0" in0scape:von="0" sodi:docname="0" inpe:output_extension="0">
+0<defs id="0">
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0755.svg b/test/ns-afl-svg/0755.svg
new file mode 100644
index 0000000..bde2e06
--- /dev/null
+++ b/test/ns-afl-svg/0755.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0
+0<circle cx="cm" cy="c" r="1" style="fill:g0e00ack;stroke-width:1cm" transform="0,0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:t0a00;stroke-width:1cm" transform="translate(00,000)"/>0<circle cx="cm" cy="c" r="1" style="fill:g0e00ack;stroke-width:001cm" transform="translate(000,000)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0756.svg b/test/ns-afl-svg/0756.svg
new file mode 100644
index 0000000..7e7dc4c
--- /dev/null
+++ b/test/ns-afl-svg/0756.svg
@@ -0,0 +1,19 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c00ext000ch0000'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<circcle x='0' y='0' r='0' fill='0'/>0<path d='M0 0A0 0 0 0 0 0 0' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" n="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" h="0" fill="none" stroke="blue"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g m="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0<g d="0" transform="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg o="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg r="0" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0757.svg b/test/ns-afl-svg/0757.svg
new file mode 100644
index 0000000..06980b1
--- /dev/null
+++ b/test/ns-afl-svg/0757.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="c" cy="cm" r="1" style="fill:r0d0 stroke:" wransform="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:o0f00tlu000e stroke-width:0K000" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black;stroke-width:001cm" transform="0,0000"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0758.svg b/test/ns-afl-svg/0758.svg
new file mode 100644
index 0000000..8dad8e3
--- /dev/null
+++ b/test/ns-afl-svg/0758.svg
@@ -0,0 +1,57 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[ <!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0f00lb'/>0<g transform='translate(0,0)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' f='0'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0">
+<!ENTITY t "">
+<!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" ion="0" xmlns="0000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="b0u0"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&Viewport2;</g>
+0<g d="0" height="px" ion="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="b0u0"/>
+0<g f="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&r;</g>
+0<text x="0" y="0">0</text>0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="F" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presetRatio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&t0;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0759.svg b/test/ns-afl-svg/0759.svg
new file mode 100644
index 0000000..a7e6273
--- /dev/null
+++ b/test/ns-afl-svg/0759.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="0000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:r0d0 stroke:black;stroke-width:e0000;" wransform="0"/>
+0<circlE cx="cm" cy="cm" r="1" style="stroke: 0000000000000;stroke-width:e00;" wransform="0"/>
+0<circlE cx="cm" cy="cm" r="1" style="stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0760.svg b/test/ns-afl-svg/0760.svg
new file mode 100644
index 0000000..d6b6cd5
--- /dev/null
+++ b/test/ns-afl-svg/0760.svg
@@ -0,0 +1,2 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M0,0q0-0,0-0q0-0,0-0q0-0,0-0q0-0,0-0q0-0,0-0q0,0-0,0q0,0-0,0q00,0-0,00q00,0-0,0q00,0-0-0q00-0-0-0q00-0-00-00q00-0-0-0q0-0,0-0q0-0,0-0q0,0,0,0q0,0,00,00z" fill="w0e00"/>0</svg>
diff --git a/test/ns-afl-svg/0761.svg b/test/ns-afl-svg/0761.svg
new file mode 100644
index 0000000..8d9fa35
--- /dev/null
+++ b/test/ns-afl-svg/0761.svg
@@ -0,0 +1,84 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="0" m="0">
+0<sp p-c="0" t="0"/>
+0<stop r="0" t="0"/>
+0</linearGradient>
+0<linearGradient href="0" id="pyBlue" x="0">
+0<defs>
+0<linearGradient id="000000" g="0">
+0<p t-c="0" t="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0" f="0"/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop stop-color="#000" t="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" l="0"/>
+0<path d="M0,000-0-00,000l00,000000000,0000000,000000,0000" fill="url(#00000"/>0
+0<circle r="4" cx=")"/>
+0<path d="000,0000000" fill="url(#00000w"/>0
+0<cirCle r="4" cx="0" y="0" ll="0"/>
+0<circle r="4" cx="0" y="0" fill="#000"/>
+0<path d="000,000000000,000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,00000,00,0,0000,0000000000c0,0,000000000000000000000000,0000000000000000,0000000000000000,0000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0000000,00000,00000000,000,0000" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,0000000000000000000" id="0" style="fill: url(#00000z" fill="url(#00000e"/>
+0<path d="M00,00c000-0,00-00,000,0000" fill="url(#00000w"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000,0000000,000000000000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,00000000000000000000000000000 0000-00 000-000000000 000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000z" fill="url(#00000e"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000w"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000,0000,000000000000,0,0000000000000000000000000000000000000000000000000000000000,00000000000000000000,00000000,0000,00000000,000,0,0000,000000000000,000,0,000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,0000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00000e"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000"/>0
+0<cirCle r="4" cx="0" cy="0" z="0"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000z" fill="url(#00000e"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,00,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000001" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,00-00000000000,00000,00000000000c000,0000,00000000,000,0,000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000001" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000z" fill="url(#0000)"/>
+0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,00-00000000000,00000,00000000000c000,0000,00000000,000,0,000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000000000000000000000,0000000000000000,0000000000000000,0000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000z" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000z" fill="url(#0000)"/>
+0<path d="M00,00000,00000000 0 00000000,00000000 000000,000000000z" id="0" style="fill: url(#000001" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000001" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000,00000000000000000000000000000,000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000001" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,000,00000000,000,0,0000,000000000000,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000001" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l000000,0c0,0,000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,0000000000000000000000000000,0000000000" id="0" style="fill: url(#00000z" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000z" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,00,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000001" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,00-00000000000,00000,00000000000c000,0000,00000000,000,0,000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000000000000000000000,0000000000000000,0000000000000000,0000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c00000,00000,00000000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,0000000000000000000" id="0" style="fill: url(#00000z" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000z" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000("/>0
+0<cirCle r="4" cx="c" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0762.svg b/test/ns-afl-svg/0762.svg
new file mode 100644
index 0000000..41fac3b
--- /dev/null
+++ b/test/ns-afl-svg/0762.svg
@@ -0,0 +1,24 @@
+<svg xmlns="000000000000000000" xmlns:xlin0="0" viewBox="0 0 0 0">
+0<radialGradient id="0" cx="0" cy="0" r="0" ts="0"><top o-c="0"/><stop ot="0"/></radialGradient>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" s="0"><stop ot="0" p-c="0"/><stop ot="0"/></radialGradient>
+0<path d="000"/>
+0<patH d="M000000,000:0000000000000000000000000"/>
+0<patH d="00000000000000,000000,00000000,00000,000" fill="c0c00cme00"/>
+0<patH d="M00,0000" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,00000,000000000000000000000000000000000000000000000000000000000000000000000,00" id="0" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,000,00000000000000000000000000000000,00000,00000,00" id="0" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,00000,000000,000000,00000,00000,0000000,00000,00000,00" id="0" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,00000,000000,00000000,00000,000" fill="c0c00cme00"/>
+0<patH d="M00,000,000:00000000000000000000000000000000000000000000000000000000000000000000,00000,00000,00" id="0" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,000,0,000,00000000,000000000000000000000000000000000000,00000,00000,00" id="0" fill="c0c00cme00"/>
+0<patH d="0000000000000000000000000000000000000000" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,00000,000000,000000000000000000000000000000000000,00000,0000000,00000,00000,00" id="0" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,000,0,000000000000000000000000000000000000,00000,00" id="0" fill="c0c00cme00"/>
+0<patH d="M00,000,000:000000000000000000000000000000000000,0000000,00000,00000,00" id="0" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,00000,000000,00000000,00000,000" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,00000,000000,00000,00000,0000000,00000,0000,00000,00000,0000000,00000,00000,00" id="0" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,000,0,000,000000,00000,00000,0000000,00000,00000,00" id="0" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,00000,0000,00000,00000,0000000,00000,00000,00" id="0" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,00000,0000000,000000,00000,00000,0000000,00000,00000,00" id="0" fill="c0c00cle00"/>
+0<use xlin0:href="0" t="0"/>0<use ef="0" m="0"/>0</svg>
diff --git a/test/ns-afl-svg/0763.svg b/test/ns-afl-svg/0763.svg
new file mode 100644
index 0000000..27e2a00
--- /dev/null
+++ b/test/ns-afl-svg/0763.svg
@@ -0,0 +1,13 @@
+<svg Él="0" qiewBox="0">0<t x="0"/>0<patKKKKKKKKKKKKKKKKext d="0" ke="0" ll="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKK............................KKKKKKKKKKKKKKKKKnKKKKKKKKKKKKKKKKKKKKKKQKKKKKKKKKKKKKKKKKK.KKKKKKKKKpath l="0"/>0
+0<text x="C"/>0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKK............................KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKQKKKKKKKKKKKKKKKKKK.KKKKKKKKKpath l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK.KKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK.KKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKSKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLLLLLLLLLLLLLLLt ty="0"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/0764.svg b/test/ns-afl-svg/0764.svg
new file mode 100644
index 0000000..f0b4c89
--- /dev/null
+++ b/test/ns-afl-svg/0764.svg
@@ -0,0 +1,37 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">0<path d="000000000" stroke="#000" fill="n0i00xud000e"/>0
+0<path d="000000000" fill="n0i00xud000e"/>0
+0<path d="M000,000" fill="n0i00xud000e"/>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000" fke="0" fill="n0i00xud000e"/>0
+0<path d="h00l00,00v00l000,0z" stroke="#000" fill="n0i00xud000e"/>0
+0<path d="M00,0l000,000" fill="n0i00xud000e"/>0
+0<path d="l000,000" fill="n0i00xud000e"/>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000" fke="0" fill="n0i00xud000e"/>0
+0<path d="M00,0l000,0" oke="0" fill="n0i00xud000e"/>0
+0<path d="M00,0000l00,0l000,000" fill="n0i00xud000e"/>0
+0<path d="M00,0h00" fill="n0i00xud000e"/>0
+0<path d="000000000" stroke="#000" fill="n0i00xud000e"/>0
+0<path d="M00,0l000,000" fill="n0i00xud000e"/>0
+0<path d="M00,0h00l000,000" fill="n0i00xud000e"/>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000" fke="0" fill="n0i00xud000e"/>0
+0<path d="h00l00,00v00l000,0z" stroke="#000" fill="n0i00xud000e"/>0
+0<path d="M00,0h00l00,0l000,000" fill="n0i00xud000e"/>0
+0<path d="M00,0h00l000,000" fill="n0i00xud000e"/>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000" fke="0" fill="n0i00xud000e"/>0
+0<path d="M00,0h00l00,0l000,0" svroke="0" fill="n0i00xud000e"/>0
+0<path d="M00,0h00l00,0l000,000" fill="n0i00xud000e"/>0
+0<path d="M00,0h00l000,000" fill="n0i00xud000e"/>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000" fke="0" fill="n0i00xud000e"/>0
+0<path d="h00l00,00v00l000,0z" stroke="#000" fill="n0i00xud000e"/>0
+0<path d="M00,0h00l00,0l000,000" fill="n0i00xud000e"/>0
+0<path d="M00,0h00l000,000" fill="n0i00xud000e"/>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000" fke="0" fill="n0i00xud000e"/>0
+0<path d="M00,0h00l00,0l000,000" f="0"/>0
+0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000" fke="0" fill="n0i00xud000e"/>0
+0<path d="h00l00,00v00l000,0z" stroke="#000" fill="n0i00xud000e"/>0
+0<path d="M00,0h00l00,0l000,000" fill="n0i00xud000e"/>0
+0<path d="M00,0h00l000,000" fill="n0i00xud000e"/>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000" fke="0" fill="n0i00xud000e"/>0
+0<path d="M00,0h00l00,0l000,000" f="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[0
+0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0765.svg b/test/ns-afl-svg/0765.svg
new file mode 100644
index 0000000..9c7e59d
--- /dev/null
+++ b/test/ns-afl-svg/0765.svg
@@ -0,0 +1,17 @@
+<svg width="0" ight="0"><g><g><pÃh xmlns="000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="000"
+idth="0"
+eight="0" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:ocname="0" inkscape:ut_e="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>
+0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+<clipPath id="0">
+0<olygon id="0" po="0" troke="0"/>0
+</clipPath>0
+<clipPath id="0">
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0766.svg b/test/ns-afl-svg/0766.svg
new file mode 100644
index 0000000..3712947
--- /dev/null
+++ b/test/ns-afl-svg/0766.svg
@@ -0,0 +1,76 @@
+<svg s="0" viewBox="0 0 0 0">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(0)">
+0<stop stop-color="#000" offset="-6"/>
+0<stop stop-color="#000000" offset=","/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop p-c="0" t="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" l="0"/>
+0<path d="M00,00c00-00-0-00000000000 000000,0000000000000000000000000000000000000,0000000000000000000" c="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000000000000000000000000000000000)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000,0000000000000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c000000000000000000000000000000000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0-00000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-00000000000000000,0000000000C0000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,000,000M00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,0l0,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,0l0,00000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,00"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0
+0<path d="M00,00c0,000000000000000000000000000000,00000000000000000=00,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0767.svg b/test/ns-afl-svg/0767.svg
new file mode 100644
index 0000000..fe8eb7a
--- /dev/null
+++ b/test/ns-afl-svg/0767.svg
@@ -0,0 +1,54 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='{0d'/>0<g transform='00000000000,000'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0">
+<!ENTITY t "">
+<!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" ion="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="b0u0"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="0000000000">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="00000000000000000">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0<g d="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg preserveAspe_tRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0768.svg b/test/ns-afl-svg/0768.svg
new file mode 100644
index 0000000..036fd61
--- /dev/null
+++ b/test/ns-afl-svg/0768.svg
Binary files differ
diff --git a/test/ns-afl-svg/0769.svg b/test/ns-afl-svg/0769.svg
new file mode 100644
index 0000000..c71ea28
--- /dev/null
+++ b/test/ns-afl-svg/0769.svg
@@ -0,0 +1,10 @@
+<svg xmlns="000000000000000000000000000000000000000" fill="url(#0)000" Bo="0">
+0<path d="M0,0c0,0,0-0,00-00l0-00l0,0,,000000000000000000000000000000000000" fill="url(#00000000)"/>0
+0<circle r="4" cx="z" stroke="#000" fill="v0n0"/>0
+0<path d="00000000" stroke="#000" fill="v0n0"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-e="0" fill="0" t-ar="0"><![CDATA[0]]></text>
+0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="v0n0"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" fill="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0770.svg b/test/ns-afl-svg/0770.svg
new file mode 100644
index 0000000..46cbdc2
--- /dev/null
+++ b/test/ns-afl-svg/0770.svg
@@ -0,0 +1,13 @@
+<vg th="0" ox="0" roke-width="0">0<vg xmlns="00000000000000000000000000000000000" xmlns:k="0" xmlns:sodipodi="00" xmlns:inkscape="htt"
+th="0"
+ht="0" id="0" sodipodi:on="0" inkscape:vÁ0="0">
+0<fs>
+0<fr inkscape:cot̬̀="0" e="0" inkscape:output_extension="0">
+0<defs xmlns:inke="htt"
+th="0"
+ht="0" id="0" sodipodi:on="0" inkscape:vÁ0="0">
+0<defs>
+0<fr inkscape:cot̬̀="0" e="0" inke:output_extension="0">
+0<defs id="0">
+0<linearGradient id="0" x0="0" x3="0">
+0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0771.svg b/test/ns-afl-svg/0771.svg
new file mode 100644
index 0000000..5097cb2
--- /dev/null
+++ b/test/ns-afl-svg/0771.svg
@@ -0,0 +1,14 @@
+<svg tì-='0' xnsqiewBox="0">0<t x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKbKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" k="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKCKKKKKKKKKKKKKKTKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLLLLLLLLLLLLLLLt ty="0" rx="0"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/0772.svg b/test/ns-afl-svg/0772.svg
new file mode 100644
index 0000000..708c369
--- /dev/null
+++ b/test/ns-afl-svg/0772.svg
@@ -0,0 +1,145 @@
+<svg xmlns="0000000000" wBox="0">
+0<t x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" l="0"/>0
+0<KKK-KKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKkKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<pKKKKKMKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" e="0" l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" l="0"/>0
+0<toxt x="0"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" l="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" l="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" e="0" l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" l="0"/>0
+0<KKK-KKKKKKKKKKKKmKKKKMKKKKext d="0" ke="0" l="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpnth d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKDKKKKKKKKKKKQKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKIKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<teKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKOKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" finl="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patdKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<YKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<pazKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKlKKKKKKKKKKKKKKKKKKK-Kpnth d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKQKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKIKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKPKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKK00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK_KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLLLLKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<pKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<toxt x="0"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKmKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKÓ0000 d="" l=""/>0
+0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<paKKKKKext d="0" ke="0" fill="0"/>0
+0<KKh d="0" vill="0"/>0
+0<text x="C"/>
+0<pLLLLLLLLt y="0" x="0"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/0773.svg b/test/ns-afl-svg/0773.svg
new file mode 100644
index 0000000..5b2a977
--- /dev/null
+++ b/test/ns-afl-svg/0773.svg
@@ -0,0 +1,15 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00000000000000000000000000" width="0" height="0" id="0" sodipodi:ion="0" inkscape:von="0" sodipodi:docname="0" inkscape:output_extension="0">0<defs id="0">
+0<linearGradient id="linearGradient0100" gradientUnits="00000000000000" x1="0" y1="0" x2="0" y2="0">
+0<stop style="0" offset="0"
+d="0"/>
+0<stop style="stop-color:"/>0
+0
+0
+0</linearGradient>
+0</defs>
+0<g inkscape:label="0" inkscape:groupmode="0" d="0">
+0<rect style="fill:url(#linearGradient0100);"
+d="0" width="0" height="0" x="0" y="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0774.svg b/test/ns-afl-svg/0774.svg
new file mode 100644
index 0000000..aa8fd86
--- /dev/null
+++ b/test/ns-afl-svg/0774.svg
@@ -0,0 +1,52 @@
+<svg xnx='0' xmlns='000' drofill='0' stroke='0'>
+0<path d='M00,00c00,0-0,0-00 0-' fill='d0l00tax000ts00000' stroke='b0a00'/>0<svg vox='0' xll='0' stroke='0'>
+0<path d='M00-0,0-00 0-0z' fill='d0l00tax000ts00000' st='0'/>
+0</svg>0
+0<path d='M00,00c00,0-0,0-00 0-00' fill='d0l00tax000ts00000' stroke='black'/>0<svg vix='0' xll='0' stroke='0'>
+0<path d='M00-0,0-0,0-00 0-0z' fill='d0l00tax000ts00000' st='0'/>
+0</svg>0
+0<path d='M00,00c00,0-0,0-00 0-00' Yl='0' stroke='black'/>
+0<svg voZ='0' xll='0' ss='0'>
+0<path d='M00,00c00,0-0,0-00 0-00' fill='d0l00tax000ts00000' strokt='0'/>
+0</svg>0
+0<svg vox='0' xll='0' stroke='0'>
+0<path d='M00,00c00,0-0,0-00 0-00' fill='d0l00tax000ts00000' strokt='0'/>
+0</svg>0
+0<path d='M00,00c00,0-0,0-00 0-00' iYl='0' stroke='black'/>
+0<svg vox='0' xll='0' ke='0'>
+0<path d='M00,00c00,0-0,0-00,00c00,0-0,0-00 0-00' fill='d0l00tax000ts00000' st='0'/>
+0</svg>0
+0<path d='M00,00c00,0-0,0-00 0-00' fYl='0' stroke='black'/>
+0<svg vivox='0' xll='0' ssroke='0'>
+0<path d='M00,00c00,0-0,0-00 0-00' fill='d0l00tax000ts00000' kt='0'/>
+0</svg>0
+0<svg vivox='0' xll='0' stroke='0'>
+0<path d='M00,00c00,0-0,0-00 0-00' fill='d0l00tax000ts00000' kt='0'/>
+0</svg>0
+0<path d='M00,00c00,0-0,0-00 0M00' fil='0' stroke='black'/>
+0<svg v='0' xll='0' se='0'>
+0<path d='M00,00c00,0-0,0-00 0-00' fill='d0l00tax000ts00000' st='0'/>
+0</svg>0
+0<path d='M00,00c00,0-0,0-00 0-00' fiY='0' stroke='black'/>
+0<svg vivoZ='0' xll='0' ss='0'>
+0<path d='M00,00c00,0-0,0-00 0-00' fill='d0l00tax000ts00000' kt='0'/>
+0</svg>0
+0<svg vivox='0' xll='0' stroke='0'>
+0<path d='M00,00c00,0-0,0-00 0-00' fill='d0l00tax000ts00000' strokt='0'/>
+0</svg>0
+0<path d='M00,00c00,0-0,0-00 0-00' fiYl='0' stroke='black'/>
+0<svg vivox='0' xll='0' ke='0'>
+0<path d='M00,00c00,0-0,0-00,00c00,0-0,0-00 0-00' fill='d0l00tax000ts00000' st='0'/>
+0</svg>0
+0<path d='M00,00c00,0-0,0-00 0-00' fiYl='0' stroke='black'/>
+0<svg vivox='0' xll='0' ssroke='0'>
+0<path d='M00,00c00,0-0,0-00 0-00' fill='d0l00tax000ts00000' kt='0'/>
+0</svg>0
+0<svg vivox='0' xll='0' stroke='0'>
+0<path d='M00,00c00,0-0,0-00 0-00' fill='d0l00tax000ts00000' kt='0'/>
+0</svg>0
+0<path d='M00,00c00,0-0,0-00 0M00' fiYl='0' stroke='black'/>
+0<svg vivox='0' xll='0' se='0'>
+0<path d='M00,00c00,0-0,0-00 0-00' fill='d0l00tax000ts00000' strokt='0'/>
+0</svg>0
+</svg>
diff --git a/test/ns-afl-svg/0775.svg b/test/ns-afl-svg/0775.svg
new file mode 100644
index 0000000..2a41d9b
--- /dev/null
+++ b/test/ns-afl-svg/0775.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:b0a00g stroke-width:001cm" transform="translate(0,0)"/>0<circle cx="0" r="1" style="fill:red;stroke:b0a00g stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:00000000" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:b0a00g stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cx="0" r=":" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0776.svg b/test/ns-afl-svg/0776.svg
new file mode 100644
index 0000000..3e8bd73
--- /dev/null
+++ b/test/ns-afl-svg/0776.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="stroke:black;stroke-width:1cm" wransform="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:r0a00blu0;stroke-width:0*0" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0777.svg b/test/ns-afl-svg/0777.svg
new file mode 100644
index 0000000..2eddb6b
--- /dev/null
+++ b/test/ns-afl-svg/0777.svg
@@ -0,0 +1,26 @@
+<svg olns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" orm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0
+0<defs>
+0<linearGradient id="0" m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="p0c00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0" fill="0"/>0
+0<le r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<stop stop-color="p0c00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,0c000000000000000000000000000000000,0c00,00000000000,0000,0000,000000000000,000000000000000000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="0000"/>0
+</svg>
diff --git a/test/ns-afl-svg/0778.svg b/test/ns-afl-svg/0778.svg
new file mode 100644
index 0000000..dbc9dd9
--- /dev/null
+++ b/test/ns-afl-svg/0778.svg
@@ -0,0 +1,20 @@
+<vg ml="0">0<![CDATA[0]]><Ћdefs>
+0<li id="0" en="0">
+0<st><![CDATA[0]
+0]]><Ћdefs>
+0<linent id="0" gen="0">
+0<st><![CDATA[0]]><Ћ>
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0<![CDATA[0]]><Ћdefs>
+0<linent id="0" gradienrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0<![CDATA[0]]><Ћdefs>
+0<linent id="0" gradienrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0779.svg b/test/ns-afl-svg/0779.svg
new file mode 100644
index 0000000..5df2238
--- /dev/null
+++ b/test/ns-afl-svg/0779.svg
@@ -0,0 +1,12 @@
+<svg s="0" viewBox="0 0 1 1">
+0
+0
+0<path d='M00,00c00,0-0-0,0-00F000000000000000000000000000000000000000000000' fill='s0l00avl000'/>
+0
+0
+0
+0<path d='M00,00c00,0-0-0,0-00000000000000000000000,00,00,00,0c000,000,00000' fill='s0l00avl000'/>
+0<path d='M00,00c00,00000,000000000000000000000c0,0,00,00,00,00000,000,00000' fill='s0l00avl000'/>
+0<path d='M00,00c00,00000,0K000000000000000000000,0,00,00,00,00000,000,00000' fill='s0l00avl000'/>
+0
+</svg>
diff --git a/test/ns-afl-svg/0780.svg b/test/ns-afl-svg/0780.svg
new file mode 100644
index 0000000..579ceb2
--- /dev/null
+++ b/test/ns-afl-svg/0780.svg
@@ -0,0 +1,29 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(0)">
+0<stop p-l="0" offset="0"/>
+0<p p-r="0" t="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00000000000000000000,0c0,0,0000,000000000000,000,0,00,0,00,0000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0004" style="fill: url(#000000" l="0"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0781.svg b/test/ns-afl-svg/0781.svg
new file mode 100644
index 0000000..9fa4764
--- /dev/null
+++ b/test/ns-afl-svg/0781.svg
@@ -0,0 +1,127 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gra_ieorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="f0m0" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" xt="0"/>
+0
+0<stop l="0"/>
+0<pAth d="0" fill="0"/>0
+0<circle r="0" x="0" y="0" fill="0"/>
+0
+0<path d="0" fill="0"/>0
+0<cirCle r="0" x="0" y="0" fill="0"/>
+0<ci r="0" cx="0" id="0" style="0" fill="0"/>0
+0
+0<path d="0" fill="0"/>0
+0<ce r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" of="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000,0,00,000,000000,0000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0-0,00-20,000-0000000c000,0000,00000000,000,0,0000,0000000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx=")" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,000,00000,000000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000-0-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00v0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000000000" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCde r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="0000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0782.svg b/test/ns-afl-svg/0782.svg
new file mode 100644
index 0000000..c923706
--- /dev/null
+++ b/test/ns-afl-svg/0782.svg
@@ -0,0 +1,31 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(0)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000,00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,0000000000000000000000000500000000000000000000000000000000000000,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000000" fill="url(#pyBlue"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,0000000000000000000000000500000000000000000000000000000000000000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0783.svg b/test/ns-afl-svg/0783.svg
new file mode 100644
index 0000000..6d5feb5
--- /dev/null
+++ b/test/ns-afl-svg/0783.svg
@@ -0,0 +1,15 @@
+<svg fs="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="0" rm="0">
+0<stop p-c="0" offset="0"/>
+0<stop stop-color="0" offset="0"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" m="0">
+0<stop stop-color="#000" offset=".4"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0-7,9-13,24-00c00,0,23,0,2,0,0,0c,00,0000,0,000,000000,0000" fill="url(#pyBlue)"/>
+0<ptth d="0"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0784.svg b/test/ns-afl-svg/0784.svg
new file mode 100644
index 0000000..de0b2c0
--- /dev/null
+++ b/test/ns-afl-svg/0784.svg
@@ -0,0 +1,117 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0
+<rect x='0' y='0' width='0' height='0' fill='a0a' stroke='v0d'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<path d='M00 000A00 0 0 0 0 00 00' stroZe='0' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='n0q0' stroke='o0u0'/>">]><svg width="px" height="30px" i="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" w="0" height="0"
+fill="none" stroke="blue"/>
+0<g font-size="0">0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport2;</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg t="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg p="0" v="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&p;
+0<svg p="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg p="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg o="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" tm="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pso="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+prt="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg eservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg psetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg pectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg esctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg p="0">&Smile;</svg></g>
+0<g tTansform="0"><text y="0">0</text>&Viewport2;
+0<svg pservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg p="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 0 0" width="0" height="0">&C;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" vOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0785.svg b/test/ns-afl-svg/0785.svg
new file mode 100644
index 0000000..b647152
--- /dev/null
+++ b/test/ns-afl-svg/0785.svg
@@ -0,0 +1,25 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="00" xmlns:inkscape="0t" width="0" height="50" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:a0b00ck;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="S" height="0" x="0" y="0"/>
+0<rect style="stroke:a0b00ck;fill:none" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0786.svg b/test/ns-afl-svg/0786.svg
new file mode 100644
index 0000000..6f863d3
--- /dev/null
+++ b/test/ns-afl-svg/0786.svg
@@ -0,0 +1 @@
+<svg width="0" height="0" id="0" y="0"><g><g><path fill-rulO="0" clip-rule="0" fill="#000000" d="M0,0v00h00z M00,00H0V0h0V00z H0v0h0V0z M0,0H0v"/></g></g></svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/0787.svg b/test/ns-afl-svg/0787.svg
new file mode 100644
index 0000000..5404dcb
--- /dev/null
+++ b/test/ns-afl-svg/0787.svg
@@ -0,0 +1,72 @@
+<svg v="0" viewBox="0 0 1 1">
+0<path d="M00,0h0z" stroke="#000" fill="n0n00che000"/>0
+0
+0<path d="M00,0h000000000000l00000" stroke="#000" fill="n0n00che000"/>0
+0
+0<path d="M00,0h0000000000l0000000000000" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,00000l00,00v00l0000000000000" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0000l00,00v000l0000000000000" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0000l00,00v00000"/>0
+0
+0<path d="M00,0000l000-00z" stroke="#000" fill="n0n00che000"/>0
+0
+0<path d="M00,0h000000" stroke="#000" fill="n0n00che000"/>0
+0
+0<path d="M00,0h0000000000000000l00000" stroke="#000" fill="n0n00che000"/>0
+0
+0<path d="M00,0h000000000" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,00000l00,00v00l0000000000000" stroke="#000" fill="n0n00che000"/>0
+0<path d="0000000"/>0
+0<path d="M00,00000l00,00v00l0000000000000" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h00l00,00v000l0000000000000" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h00l00,00v00000"/>0
+0
+0<path d="M00,0h00l000-00z" stroke="#000" fill="n0n00che000"/>0
+0
+0<path d="M00,0h000000" stroke="#000" fill="n0n00che000"/>0
+0
+0<path d="M00,0h0000000000000000l00000" stroke="#000" fill="n0n00che000"/>0
+0
+0<path d="M00,0h000000000" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h000l00,00v00l000,00l000-00z" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h00l000-00z" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h00l00,00v00000"/>0
+0
+0<path d="M00,0h00l00,00v00l0000000000000" stroke="#000" fill="n0n00che000"/>0
+0
+0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h00l00,00v00000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h00l00,00v000l00000000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h00l00,00v00000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h00l00,00v000000000p0000000" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h00l00,00v00000"/>0
+0
+0<path d="M00,0h000000000000l0000000" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h00l00,00v00000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="n0n00che000"/>0
+0
+0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h00l00,00v00000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h00l00,00v000l00000000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h00l00,00v00000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h00l00,00v000000000p0000000" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h00l00,00v00000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h00l000000000000000000000000000000000-00v000z" l="0"/>0
+0<text x="j" transform="0"/>0</svg>
diff --git a/test/ns-afl-svg/0788.svg b/test/ns-afl-svg/0788.svg
new file mode 100644
index 0000000..d53d596
--- /dev/null
+++ b/test/ns-afl-svg/0788.svg
@@ -0,0 +1,6 @@
+<svg xmlns="0000000000" viewBox="0">
+0
+0<path d="M0,0h00l00,00v00l000,00h000l000-00v0000" e="0" fill="h0n00cse000"/>0
+0<path d="M00,0h00l00,00v0000v0000" fill="#000"/>0
+0
+0<circle r="8" e='0'/>0<path d='M00,00l00,00l000-000M00,0h00l000,00000,00l00,00000000' fill='#000' f='0'/>0<path d='M00,00l00,00c000,00,00,000000000000,00' fill='#000' e='0'/>0<path d='M00,00l00,00l00-00zM0,00c0,00,00,00,00,00l000-00l00,00zM0,00l00,00c0,0,0,0,00,0c00-00-00-00-00-00zM00,0l00,0c00-0-0-00-00-00l000,0z' fill='#000' fill-rule='0'/>0<path d='M0,00l0,00l00-0l00-00l0-00l000-0l000,0c00,0-00,00-00,00c00,0-0,00-00,00z' fill='#000' fill-rule='0'/>0<path d='M00,00c00-00,00-000,00,000000000000,00' fill='#000' fill-rule='0'/>0<path d='M00,00l00,00l00-00zM0,00c0,00,00,00,00,00l000-00l00,00zM0,00l00,00c0,0,0,0,00,0c00-00-00-00-00-00zM00,0l00,0c00-0-0-00-00-00l000-00zM00,0l00,0c00-0-0-00-00-00l000,0z' fill='#000' fill-rule='0'/>0<path d='M0,00l0,00l00-0l00-00l0-00l000-0l000,0c00,0-00,00-00,00c00,0-0,00-00,00z' fill='#000' fill-rule='0'/>0<path d='M00,00c00-00,00-000,00,00l00-00l000,0z' fill='#000' fill-rule='0'/>0<path d='M00,00l00,00l00-00zM0,00c0,00,00,00,00,00l000-00l00,00zM0,00l00,00c0,0,0,0,00,0c00-00-00-00-00-00zM00,0l00,0c00-0-0-00-00-00l000,0z' fill='#000' e='0'/>0<path d='M0,00l0,000000000000000000l000000000,0c00,0000,c0,00,00,00,00,000000000000,00000,00000,0000,000000000000000000000000000000000000000000000000000000000000000000,0000,000000000000000000000,00' fill='#000' fill-rule='0'/>0<path d='M0,00l0,00l00-0l00-00l0-00l000-0l000,0c00,0-00,00-00,00c00,0-0,00-00,00z' fill='#000' fill-rule='0'/>0<path d='M00,00c00-00,00-000,00,00l00-00l000,0z' fill='#000' fill-rule='0'/>0<path d='M00,00l00,00l00-00zM0,00c0,00,00,00,00,00l000-00l00,00zM0,00l00,00c0,0,0,0,00,0c00-00-00-00-00-00zM00,0l00,0c00-0-0-00-00-00l000,0z' fill='#000' fill-rule='0'/>0<path d='M0,00l0,00l00-0l00-00l0-00l000-0l000,0c00,0-00,00-00,00c00,0-0,00-00,00z' fill='#000' fill-rule='0'/>0<path d='M00,00c00-00,00-00,00-0000,000,00000,00c000,00000,00000,0000000,0000,00000000,00000' fill='#000' e='0'/>0<path d='M00,00l00,00l00-00l000,0z' fill='#000' e='0'/>0<path d='M00,00l00,00l00-00zM0,00c0,00,00,00,00,00l000-00l00,00zM0,00l00,00c0,0,0,0,00,0c00-00-00-00-00-00zM00,0l00,0c00-0-0-00-00-00l000,0z' fill='#000' fill-rule='0'/>0<path d='M0,00l0,00l00-0l00-00l0-00l000000000,0c00,0000,0000,00000,000,00000,000' fill='#000' fill-rule='0'/>0<path d='M00,00c00000,00000,00-0,00,00' fill='#000' fill-rule='0'/>0<path d='M0,00l0,00l00-0l00-00l0-00l000-0l000,0c00,0-00,00-00,00c00,0-0,00-00,00z' fill='#000' fill-rule='0'/>0<path d='M00,00c00-00,00-00,00-00c0,0-0,0000-00,00c00,0-0,00-00,00z' fill='#000' fill-rule='0'/>0<path d='M00,00c00-00,00-00,00-0000,000,00000,00c000,00000,00000,0000000,0000,00000000,00000' fill='#000' e='0'/>0<path d='M00,00l00,00l00-00l000,0z' fill='#000' fill-rule='0'/>0<path d='M00,00l00,00l00-00zM0,00c0,00,00,00,00,00l000-00l00,00zM0,00l00,00c0,0,0,0,00,0c00-00-00-00-00-00zM00,0l00,0c00-0-0-00-00-00l000,0z' fill='#000' fill-rule='0'/>0<path d='M0,00l0,00l00-0l00-00l0-00l000-0l000,0c00,0000,00000,00c00,000,00000,000' fill='#000' fill-rule='0'/>0<path d='M00,00c00000,00000,00-0,00,00' fill='#000' fill-rule='0'/>0<path d='M0,00l0,00l00-0l00-00l0-00l000-0l000,0c00,0-00,00-00,00c00,0-0,00-00,00z' fill='#000' fill-rule='0'/>0<path d='M00,00c00-00,00-00,00-00c0,0-0,00-00,00c000,00-00,00-00,00c0000,0000,00000-00,00-00' fill='#000' e='0'/>0<path d='M00,00l00,00l00-00l000,0z' fill='#000' fill-rule='0'/>0<path d='M00,00l00,00l00-00zM0,00c0,00,00,00,00,00l000-00l00,00zM0,00l00,00c0,0,0,0,00,0c00-00-00-00-00-00zM00,0l00,0c00-0-0-00-00-00l000,0z' fill='#000' fill-rule='0'/>0<path d='M0,00l0,00l00-0l00-00l0-00l000-0l000,0c00,0-00,00-00,00c00,0-0,00-00,00z' fill='#000' fill-rule='0'/>0<path d='M00,00c00000,00000,00-0,00-0000,000,00000,00c000,00000,00000,0000000,0000,00000000,00000' fill='#000' e='0'/>0<path d='M00,00l00,00l00-00l000,0z' fill='#000' fill-rule='0'/>0<path d='M00,00l00,00l00-00zM0,00c0,00,00,00,00,00l000-00l00,00zM0,00l00,00c0,0,0,0,00,0c00-00-00-00-00-00zM00,0l00,0c00-0-0-00-00-00l000,0z' fill='#000' fill-rule='0'/>0<path d='M0,00l0,00l00-0l00-00l0-00l000-0l000,0c00,0-00,00-00,00c00,0-0,00-00,00z' fill='#000' fill-rule='0'/>0<path d='M00,00c00-00,00-00,00-00c0,0-0,00-00,00c000,00-00,00-00,00c00-0,0-00,00-00z' fill='#000' fIll-rule='0'/>0</svg>
diff --git a/test/ns-afl-svg/0789.svg b/test/ns-afl-svg/0789.svg
new file mode 100644
index 0000000..213a62a
--- /dev/null
+++ b/test/ns-afl-svg/0789.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="b0n00che000"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-0v00z" fill="#000"/>0
+0<text x="0" y="0" t-se="0" fill="0" tt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0790.svg b/test/ns-afl-svg/0790.svg
new file mode 100644
index 0000000..1b0f046
--- /dev/null
+++ b/test/ns-afl-svg/0790.svg
@@ -0,0 +1,101 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="m0a00iew000"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,0c0,0-0,00-00,000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="0" c="0"/>
+0<path d="0000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" y="0" fill="#000"/>
+0<circle r="0" cx="0" y="0" l="0"/>
+0<path d="M00,00c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="0"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="0000" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c097-0,13-00,120,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cidCle r="0" cx="0" y="0" f="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-00000000007 0000000000000000000000000000000000000000000000000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" H="0"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00v0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c097-0,13-00,120,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000000000000000000000000000000000000000000000000000000000000000000-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-00000.6000000000000000000000000000000000000000000000000000000000000000000-00" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0791.svg b/test/ns-afl-svg/0791.svg
new file mode 100644
index 0000000..a5eb441
--- /dev/null
+++ b/test/ns-afl-svg/0791.svg
@@ -0,0 +1,381 @@
+<svg ns="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="pyYellow" orm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="u0s00tex000nc0000"/>
+0</linearGradient>
+0
+0</defs>0
+0<path d="000000,0000000000000000000000000000000000000000,000,00000,000000,0000,0000,0000,0000,00000,0000,00000000000000000,0000,0000000000,000,0,0000000000000000000000000000,000000,000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" id="0000" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000000"/>
+0<path d="M00,00c090-0,10-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" id="0000" fe="0" fill="url(#0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000,L0,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-000000000070000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-000000000070000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0l0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c097-0,00-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0l0,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,00"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00)"/>
+0<path d="M00,00c097-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#0" fill="url(#00000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" cy="0" fi="0"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" cy="0" fi="0"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,10-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fi="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fi="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,120-00l0-00c0-0,0-00,02-00l20,0c0,0,00-0,00-10l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,00-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c097-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,120-00l0-00c0-0,0-00,02-00l20,0c0,0,00-0,00-10l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#000000000"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0792.svg b/test/ns-afl-svg/0792.svg
new file mode 100644
index 0000000..9f90c4a
--- /dev/null
+++ b/test/ns-afl-svg/0792.svg
@@ -0,0 +1,25 @@
+<svg vivtll='0'>
+0<svg i='0'>
+0<svg xs='0' d='0' fill='d0l00tax000ns00000' rl='0' se='0'>
+0<path d='M00,00c00,0-0,0-0 0-00' fill='d0l00tax000ns00000' stroke='black'/>0</svg>0
+0<svg ns='0' d='0' fill='d0l00tax000ns00000' sl='0' stSoke='0'>
+0<path d='M00,00c00,0-0,0-0 0-00' fill='d0l00tax000ns00000' stroke='black'/>0</svg>
+0<path d='M00,00c0000000000' stroke='black'/>
+0<svg vs='0' d='0' fill='d0l00tax000ns00000' strokell='0' stSoke='0'>
+0<path d='M00,00c00,0-0,0-0 0-00' fill='d0l00tax000ns00000' stroke='black'/>0</svg>
+0<path d='M00,000000000000r' stroke='black'/>
+0<path d='M00,00c0000000000' stroke='black'/>0
+0<svg vivhxlns='0' d='0' fill='d0l00tax000ns00000' strokell='0' seSoke='0'>
+0<path d='M00,00c00,0-0,0-0 0-00' fill='d0l00tax000ns00000' stroke='black'/>0</svg>
+0<path d='M000,0000000r' stroke='black'/>0</svg>0<svg xs='0' d='0' fill='d0l00tax000ns00000' rl='0' se='0'>
+0<path d='M00,00c00,0-0,0-0 0-00' fill='d0l00tax000ns00000' stroke='black'/>0</svg>0
+0<svg ns='0' d='0' fill='d0l00tax000ns00000' rl='0' stSoke='0'>
+0<path d='M00,00c00,0-0,0-0 0-00' fill='d0l00tax000ns00000' stroke='black'/>0</svg>
+0<path d='M00,00c0000000000' stroke='black'/>0
+0<svg vivhxlns='0' d='0' fill='d0l00tax000ns00000' strokell='0' stSoke='0'>
+0<path d='M00,00c00,0-0,0-0 0-00' fill='d0l00tax000ns00000' stroke='black'/>0</svg>
+0<path d='M00,000000000000r' stroke='black'/>
+0<path d='M00,00c0000000000' stroke='black'/>0
+0<svg vivhxlns='0' d='0' fill='d0l00tax000ns00000' strokell='0' seSoke='0'>
+0<path d='M00,00c00,0-0,0-0 0-00' fill='d0l00tax000ns00000' stroke='black'/>0</svg>
+0<path d='M000,0000000r' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/0793.svg b/test/ns-afl-svg/0793.svg
new file mode 100644
index 0000000..54089ff
--- /dev/null
+++ b/test/ns-afl-svg/0793.svg
@@ -0,0 +1,7 @@
+<svg xmlns="0000000000" xmlns:k="0" viewBox="0 0 1 2">
+0<radialGradient id="0" cx="0" cy="0" r="0" ts="0"><s00p ot="0" o000000000000000000000000000000000000000000000000000000000000000c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,000A00 0,0,0 00,000000000000000000,00000000000000000000000,00" id="0" fill="p0c00wle00"/>
+0
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000C000,00 00,00 00,000C000,00 00,00 00,00" id="0" fill="m0c00wle00"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/0794.svg b/test/ns-afl-svg/0794.svg
new file mode 100644
index 0000000..e21b427
--- /dev/null
+++ b/test/ns-afl-svg/0794.svg
@@ -0,0 +1,376 @@
+<svg lns="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="pyYellow" grorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="s0g00eig000ep" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#pyYellow"/>0
+0
+
+0<circle r="4" x="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#000000)"/>
+0<pAth d="M00,00c0,0-0,00-00,000-0000000000000000000000000000000000n0000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000000,000" fill="url(#000000)"/>0
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="M" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#00000000000000000100000000000000000000000000000000000000000000000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000070000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,000M00000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,004-00l0-00c0-0,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" ficy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="=" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="v" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-20,124-00l0-00c0-0,0-00,12-00l20,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,10-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" f="0"/>0
+0<circle r="4" _x="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#0000)"/>0
+0<cirCle O="0" cx="0" cy="0" fill="#000"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>
+0<path d="0" fill="0"/>
+0<path d="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" id="0004" style="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>
+0<circLe r="0" cx="0" fill="0"/>0
+0<ce r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<ciscle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fiill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" id="0004" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<Wath d="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0"/>0
+0
+0
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0
+
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0<path d="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0
+
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" id="0004" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0
+
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" Yx="0" cy="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fiill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" y="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>
+0
+
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0
+
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" id="0004" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>0<circle r="0" cx="0" cy="0" fill="0"/>0</svg>
diff --git a/test/ns-afl-svg/0795.svg b/test/ns-afl-svg/0795.svg
new file mode 100644
index 0000000..1076005
--- /dev/null
+++ b/test/ns-afl-svg/0795.svg
@@ -0,0 +1,4 @@
+<vg oooxìå00000000000="0">
+0<g filtìå0000="0">
+0<g filtìå0000000000="0">
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0796.svg b/test/ns-afl-svg/0796.svg
new file mode 100644
index 0000000..978a0ef
--- /dev/null
+++ b/test/ns-afl-svg/0796.svg
@@ -0,0 +1,46 @@
+<svg width="g" Box="0" stroke-width="G">0<svg xmlns="0" stroke="l0s00ric0"
+stroke-width="0"/>
+0
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g d="0" fill="blue" style="0">
+0<circle d="0" cx="0" cy="0" r="5" stroke="l0s00ric0"
+stroke-width="3"/>
+0
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g d="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0s00ric0"
+stroke-width="3"/>
+0
+0</g>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0797.svg b/test/ns-afl-svg/0797.svg
new file mode 100644
index 0000000..323d612
--- /dev/null
+++ b/test/ns-afl-svg/0797.svg
@@ -0,0 +1,106 @@
+<svg xmlns="0000000000" o="0" n="0">
+0<script pe="0"><![CDATA[
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0
+0
+0
+0
+0
+0
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0r00rk"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0
+0
+0<script pe="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0
+0
+0
+0
+0
+0
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0r00rk"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0
+0
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g Qd="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0r00rk"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/0798.svg b/test/ns-afl-svg/0798.svg
new file mode 100644
index 0000000..b0d82af
--- /dev/null
+++ b/test/ns-afl-svg/0798.svg
@@ -0,0 +1,204 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" t="0"/>
+0<stop stop-color="000"/>
+0<stop st="0"/>
+0
+0<stop stop-color="#000" offset=".4"/>
+0
+0
+0<stop stop-color="#000" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0000" gra_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<sp op-cÙ0="0" t=""/>
+0
+0
+0<stop stop-color="000000" offset="0"/>
+0
+0
+0<stop stop-color="url(#000000)" fill="0"/>
+0<path d="0" of="0"/>
+0
+0<stop or="0" of="0"/>
+0<stop sr="0" of="0"/>
+0
+0<stop st="0" of="0"/>
+0
+0
+0<stop sr="0" ot="0"/>
+0
+0<stop sr="0" offset="0"/>
+0<stop or="0" et="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient></defs>0
+0<path d="0"/>0
+0<circle r="0" cx="0"/><stop st="0" et="0"/>
+0
+0<stop stop-color="0" ot="0"/>
+0<stop st="0" et="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000,,0000,00000000000000000000000000000000000000000000000000000000000000000000000000,0000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000e)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-20,120-00l0-00c0-0,0-00,10-12l20,0c0,0,00-0,00-10l0-00l30.000,000000000000000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000000000000000000000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0y00)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx=")"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="B" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-20,124-00l0-26c0-0,0-10,10-10l24,0c0,0,00-0,14-10l0-10l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0799.svg b/test/ns-afl-svg/0799.svg
new file mode 100644
index 0000000..fc8b825
--- /dev/null
+++ b/test/ns-afl-svg/0799.svg
@@ -0,0 +1,64 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0a00tex000nc0000' stroke='red'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='1' fill='black'/>0<circle cx='0' cy='0' r='5' f='0'/>0<path d='M0 0A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" n="0" xmlns="0000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" e="0"/>
+0<g fonte="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport2;</g>
+0<g d="0" height="px" ion="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="b0u0"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport2;</g>
+0
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4"
+h="0" t="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0" width="0" e="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4" width="0" t="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0
+0<svg Aso="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg psp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg presatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0800.svg b/test/ns-afl-svg/0800.svg
new file mode 100644
index 0000000..d38bbff
--- /dev/null
+++ b/test/ns-afl-svg/0800.svg
@@ -0,0 +1,148 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_rm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient i="0" ra_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="ur0000000000" ll="0"/>
+0<path d="0" of="0"/>
+0
+0<stop or="0" of="0"/>
+0<stop slor="0" of="0"/>
+0
+0<stop or="0" of="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0<stop or="0" et="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="0"/>0
+0<ci r="0" cx="0"/><stop st="0" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop sr="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<pCth d="0" id="0" s="0" fill="0"/>
+0<pLth d="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,000000000c00000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="00000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000M000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c00000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000100000000000000000000000000000000000000.0000000.0000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="00000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="00000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000000000000000000000000000000000000M00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-0000000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="00000000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<pÃ0/>0
+0<cirCle r="4" fill="#000"/>
+0<circle r="4" ll="0"/>0
+0<cirCle r="4" fill="#000"/>
+0
+0<circle r="1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" fill="#000"/>
+0<circle r=":"/>0
+0<path d="00" fill="u0e0"/>
+0<path d="M00,00" fill="#000"/>
+0<circle r="1" fill="url(#py0ellow)"/>0
+0<circle r="4" cx=")"/>0
+0<circ fill="0"/>
+0<path d="0"/>0
+0<cirCle r="4"/>0
+0<circ cx="0" ty="0"/>
+0<path d="000,00000"/>0
+0<cirCle r="4" cl="0"/>
+0<circle r="4" cx="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0801.svg b/test/ns-afl-svg/0801.svg
new file mode 100644
index 0000000..3366901
--- /dev/null
+++ b/test/ns-afl-svg/0801.svg
@@ -0,0 +1,5 @@
+<svg v='0' fill='d0l00tax000ns00000' strokell='0' stroke='0'>
+0<path d='M0,0c0,0-0,0-0,0-' fill='d0l00tax000ns00000' stroke='d0`00'/>0
+0<path d='00000000' stroke='d0`00'/>0
+0<path d='M0,0c0,0-0,0-0,0-' fill='d0l00tax000ns00000' stroke='d0`00'/>0
+0<path d='00000000' stroke='d0`00'/>0</svg>
diff --git a/test/ns-afl-svg/0802.svg b/test/ns-afl-svg/0802.svg
new file mode 100644
index 0000000..fc3328e
--- /dev/null
+++ b/test/ns-afl-svg/0802.svg
@@ -0,0 +1,78 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='w0d00che000h' stroke='r0d'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='5' fill='b0a00'/>0<circle cx='0' cy='0' r='1' f='0'/>0<path d='M0 00A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" on="0" xmlns="0000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g ze="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&r;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0<g id="0" height="px" on="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g ze="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0
+0<g><text y="0">0</text>&p;
+0<svg io="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>0
+<svg ro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg resctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg spectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t0;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg pro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&t0;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presetRatio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&t0;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0803.svg b/test/ns-afl-svg/0803.svg
new file mode 100644
index 0000000..802db14
--- /dev/null
+++ b/test/ns-afl-svg/0803.svg
@@ -0,0 +1,56 @@
+<s>0
+0<defs>0<g><g><!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0
+0<defs>0<g><g><!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g>0<path d="0" id="0" scroke-width="0">0 0
+0<defs>0<g><g><!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0
+0<defs>0<g><g><!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g>0<path d="0" id="0" scroke-width="0">
+0<defs>0<g><g><!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g>0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0804.svg b/test/ns-afl-svg/0804.svg
new file mode 100644
index 0000000..143996f
--- /dev/null
+++ b/test/ns-afl-svg/0804.svg
@@ -0,0 +1,387 @@
+<svg s="0" fill="url(#pyYellow)" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" m="0">
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="0" oolor="0" et="0"/>0
+0<stop stop-color="#000" offset=".4" cy="0" fill="0"/>
+0
+0<stop stop-color="#000" offset="@"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="C"/>
+0
+0<stop stou-color="0" offset="0"/>
+0
+0
+0<stop stop-color="r000000000" fill="0"/>
+0<path d="0" offset="0"/>
+0
+0<stop stop-color="#000" gt="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,00,000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c000000000000-00-00 00-00 00@000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0000000000000000000000000000000000000000" id="0004" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#r0000" fill="url(#0000)"/>0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000000000000000000000000000000000000000000000000000000000000000000000000000M0000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000000000c0000000000000000,000,0l00,000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,5,00-2,00l-50-005c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-00-600000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-00,024-00l0-20c0-0,0-00,10-00l24,0c0,0,00-0,14-05l0-10l9,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-8,00-00,000-00l0-20c0-0,0-00,-00008000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-00,100-00l0-20c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-00,100-00l0-20c0-0,0-00,00-00l00,0c0,0,00-0,00-050000000,000,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-02c0-0,0-00,-00008000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-00,100-00l0-20c0-0,0-00,00-00000,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fi="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-00,124-00l0-20c0-0,0-00,02-00l00,0c0,0,00-0,00-050000000,000,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fi="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-00,100-00l0-20c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,00..000,00000000 000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-00,124-00l0-20c0-0,0-00,02-00l00,0c0,0,00-0,00-05l0-10l9,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-00,124-00l0-20c0-0,0-00,10-00l24,0c0,0,00-0,14-05l0-10l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-8,00-00,004-00l0-20c0-0,6-00,-00100.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-00,100-00000000000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-00,124-00l0-20c0-0,0-00,02-00l20,0c0,0,00-0,00-05l0-1000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill:00000000"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-00,124-00l0-20c0-0,0-00,02-00l20,0c0,0,00-0,00-05l0-1000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,124-00l0-02c0-0,0-00,02-00l20,0c0,0,00-0,00-05l0-1000,0c0,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fi="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0805.svg b/test/ns-afl-svg/0805.svg
new file mode 100644
index 0000000..83d079c
--- /dev/null
+++ b/test/ns-afl-svg/0805.svg
@@ -0,0 +1,16 @@
+<svg olns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="0" grorm="0">
+0<stop stop-c="0" et="0"/>
+0<stop stop-r="0" offsVt="0"/>
+0
+0<stop stop-color="0" of="0"/>
+0<stop stop-color="0" ot="0"/>
+0</linearGradient></defs>0
+0<path d="M0,00,00c00,0,00,0,00,0000,0000,000,00000,000000,0000,0000,0000,00" fill="u0e0"/>
+0<path d="M00,00c0,00-00-0-00-000,0000000,0000,0000,0c0,0,0000,0000,00,0000,0,000000,000,0000,0000000,0000" vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#0000)"/>0
+0<circle r="," fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0806.svg b/test/ns-afl-svg/0806.svg
new file mode 100644
index 0000000..c25460f
--- /dev/null
+++ b/test/ns-afl-svg/0806.svg
@@ -0,0 +1,50 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[ <!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='0' stroBe='0'/>0<g transform='0'>0<circle cx='0' cy='0' r='0' fill='0'/>0<circle cx='0' cy='0' r='0' fill='0'/>0<circle cx='0' cy='0' r='0' fill='0'/>0<pat_ d='0' stroke='0' stroke-width='0'/>0</g>0">
+<!ENTITY t "">
+<!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='0' stroke='0'/>">
+]>
+<svg width="0" height="0" ion="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" he="0" fill="0" stroke="0"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&Viewport0;</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&o;
+0<svg presctRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transforo="0"><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0" width="0" height="0">&Smile;0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg preseAspectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg>
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0807.svg b/test/ns-afl-svg/0807.svg
new file mode 100644
index 0000000..aa42569
--- /dev/null
+++ b/test/ns-afl-svg/0807.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="l0v0"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0808.svg b/test/ns-afl-svg/0808.svg
new file mode 100644
index 0000000..3e2f67a
--- /dev/null
+++ b/test/ns-afl-svg/0808.svg
@@ -0,0 +1,275 @@
+<svg xmlns="000000000000000000" wBox="0">
+0<path d="0" sokc="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0
+0<path d="0" fill="0" tyle="0">
+0<rcle id="0" cx="0" cy="0" r="0" soke="0"
+ke-w="0"/>
+0<text x="0" y="0">0</text>
+0<efè00>
+0
+0
+0
+0<lefè00 m="">
+0<leqè00>
+0<lefè00 x="">
+0
+0<lefè00>
+0<lefè00 g="">0 0<lefè00 B="">
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00 m="">
+0<lefè00 m="">
+0<lefè00>0
+0
+0<lefè00 m="">
+0<lefè00>0 0<lefè00>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>0
+0<defs>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè00>
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0<lefè00>
+0<lefè00>0 0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<Pefè00>0 0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0<defs>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>0
+0
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00 x="">0 0<lefè00 s="">
+0<lefè00>
+0<le>
+0
+0<lefè00>
+0<lefè00>0 0<lefè00>
+0<lVfè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè00>
+0<lefè00>
+0
+0
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>0
+0
+0<lefè00 m="">
+0<lefè00>0 0<lefè0000 x="">
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0
+0
+0<lefè00>
+0<leWè00>0 0<lefè0000 o="">
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0<lefè00>
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0<defs>0
+0
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<leWè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00 x="">
+0<lefè00>
+0<lefè00>
+0<lefè00>0<lefè00>
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0<defs>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00 m="">
+0<le>
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>0
+0
+0<defs>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<le>
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0809.svg b/test/ns-afl-svg/0809.svg
new file mode 100644
index 0000000..f5c1242
--- /dev/null
+++ b/test/ns-afl-svg/0809.svg
@@ -0,0 +1,76 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='w0a00th' stroke='r0d'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='1' fill='b0a00'/>0<circle cx='0' cy='0' r='5' f='0'/>0<path d='M00 0A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" on="0" xmlns="0000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="blue"/>
+0<g ze="0">0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0<g id="0" height="px" on="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="blue"/>
+0<g te="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0
+0<g><text y="0">0</text>&o;
+0<svg io="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg ro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg resctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg spectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>0
+<svg pro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presetRatio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0810.svg b/test/ns-afl-svg/0810.svg
new file mode 100644
index 0000000..481d98c
--- /dev/null
+++ b/test/ns-afl-svg/0810.svg
@@ -0,0 +1,48 @@
+<svg xmlns="00" viewBox="0 0 1 1">0<defs>0<linearGradient id="py0ellow" a_orm="0">0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop r="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#0H0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0-0,00,0,00,00l0,00c0,0-0,00-00,00ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ00"/>0
+0
+
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" ll="0"/>
+0<path d="000,000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000000000000000000000,0000000000000000,0000000000000000,000000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0-00000 00-00-00 00-00 00000000000000000000000000000000000-000 000-0 00000000000000000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,000000000 000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000"/>
+0<path d="000,00000000,000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000000,000000000000000000,000000000000000000000000,0000000000000000,00000000000000000=00,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000000000000000000000000000000000000000000-000 000-00000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,00000000000000000000000,00000000000000000000,0000000000000000,00000000 000000,00000000 0" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,000000000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0811.svg b/test/ns-afl-svg/0811.svg
new file mode 100644
index 0000000..e395858
--- /dev/null
+++ b/test/ns-afl-svg/0811.svg
@@ -0,0 +1,175 @@
+<svg xmlns="0000000000" viewBox="0" stroke-width="0">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="0,"><stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>0<linearGradient id="0" m="0">
+0<stop t="0" e="0"/>
+0<stop stop-color="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0004" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000000000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0004" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,00000:0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="url(#py0ellow"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="00000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="0000000000000000000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-60.870,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,020,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx=")"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="B" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0812.svg b/test/ns-afl-svg/0812.svg
new file mode 100644
index 0000000..cf4d252
--- /dev/null
+++ b/test/ns-afl-svg/0812.svg
@@ -0,0 +1,158 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a00f"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,000,00c0,0-0,00-00,00ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="0000000000000000000000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 00000000000000000000000000000000000000000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-03,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000" style="fill: u00000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-04-6-001000000000000000,00000000000000000000,0000000000000000,0000000000000000000" c="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="0000000000"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path X="0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" y="0" l="0"/>
+0<circle r="0" cx="0" y="0" fi="0"/>0
+0<path d="0" fl="0"/>
+0<path d="0" fill="0"/>
+0<path d="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" id="0" e="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circlk r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" id="0" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<Wath d="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0
+
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" id="0004" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0</svg>
diff --git a/test/ns-afl-svg/0813.svg b/test/ns-afl-svg/0813.svg
new file mode 100644
index 0000000..33ce5eb
--- /dev/null
+++ b/test/ns-afl-svg/0813.svg
@@ -0,0 +1,46 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="0000000000000000000000000000"
+d="0" width="0" height="0">
+0<defs>
+0<filter d="0" x="0" y="0" width="0" height="0">
+0<feGaussianBlur ston="0" id="0"/>
+0</filter>0
+0<clipPath id="0">
+0<le cx="0" cy="0" r="0" width="0" ht="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect x="0" y="0" width="0" ht="0"/>
+0</clipPath>0
+0</defs>0
+0<g id="0">0
+0<!--0-->
+0<rect id="0" style="stroke:black;fill:"
+x="0" y="0" width="0" height="0"/>
+0<!--0-->
+0<rect id="0" style="fill:red;"
+x="0" y="0" width="0" height="0"/>0
+0<!--0-->
+0<rect id="0" style="stroke:black;fill:none"
+x="0" y="0" width="0" height="0"/>
+0<!--0-->
+0<rect id="0" style="fill:red" x="0" y="0" width="0" height="0"/>
+0<!--0-->
+0<rect id="0" style="fill:" x="0" y="0" width="0" height="0"/>
+0<!--0-->
+0<rect id="0" style="fill:red;" clip-path="0"
+x="0" y="0" width="0" height="0"/>0
+0<!--0-->
+0<rect id="0" style="stroke:black;fill:none"
+x="0" y="0" width="0" height="0"/>
+0<!--0-->
+0<rect id="0" clip-path="0" x="0" y="0" width="0" height="0"/>
+0<!--0-->
+0<rect id="0" style="fill:red;" clip-pa="0" width="0" height="0"/>
+0<!--0-->
+0<rect id="0" style="fill:" x="0" y="0" width="0" height="0"/>
+0<!--0-->
+0<rect id="0" style="fill:red;" clip-path="0" x="0" y="0" width="0" height="0"/>0
+0<!--0-->
+0<rect id="0" th="0" x="0" y="0" width="0" height="0"/>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0814.svg b/test/ns-afl-svg/0814.svg
new file mode 100644
index 0000000..cf92e33
--- /dev/null
+++ b/test/ns-afl-svg/0814.svg
@@ -0,0 +1,15 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="0" m="0">
+0<stop p-c="0" offset="0"/>
+0<stop stop-color="0" offset="0"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".4"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M20,00c0-7,0-13,24-13c00,0,00,0,23,13l0,22c0,0-0,00-11,12l-24,0c00,0-14,0-14,15l0,10l-9,0c-8,0-13-0-13-24c0-00,0-00,13-23l35,0l0-0l-04,0l0-9l0,0z M88,50v1" fill="url(#pyBlue)"/>
+0<path d="M00,00c0,0-0,00-00,00c00000-00-0-00-00-0,000000000000,000,0000000000000000000000000000000000000000000000000" fill="url00llo00"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0815.svg b/test/ns-afl-svg/0815.svg
new file mode 100644
index 0000000..1ccc7a5
--- /dev/null
+++ b/test/ns-afl-svg/0815.svg
@@ -0,0 +1,54 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="000" width="0" height="5" d="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+eight="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:r0f&lt;0cke0;" ip-path="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+eight="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:r0f&lt;0cke0;" ip-path="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0816.svg b/test/ns-afl-svg/0816.svg
new file mode 100644
index 0000000..0577816
--- /dev/null
+++ b/test/ns-afl-svg/0816.svg
@@ -0,0 +1,14 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:r0d;stroke:black;stroke-width:001cm" transform="translate(0,00)"/>0<circle cx="cm" cy="cm" r="1" style="fill:b0u0;stroke:t0a00che000k;stroke-width:001cm" transform="translate(00,000)"/>0<circle cx="cm" cy="cm" r="1" style="fill:green;" transform="translate(0,00)"/>
+0<circle cx="cm" cy="0" r="1" style="fill:blue;stroke:t0a00che000k;" transform="translate(0,00)"/>0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:t0a00che000k;stroke-width:001cm" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black;" transform="translate(0,00)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:t0a00che000k;stroke-width:001cm" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:00000000" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;" transform="translate(000,000)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0817.svg b/test/ns-afl-svg/0817.svg
new file mode 100644
index 0000000..7ba3245
--- /dev/null
+++ b/test/ns-afl-svg/0817.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style pe="0">
+0
+0</style>0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:r00000000000;stroke:b0a00a;"/>
+0<circle cx="cm" cy="c" r="1" style="fill:b0u0;stroke:black;stroke-width:1cm" transform=",00"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00;stroke:b0a00a;"/>
+0<circle cx="cm" cy="c" r="1" style="fill:blue;stroke:black;stroke-width:1cm" transform="translate(00,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:b0a00a;stroke-width:001cm" transform="0,00"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0818.svg b/test/ns-afl-svg/0818.svg
new file mode 100644
index 0000000..fb8f2d9
--- /dev/null
+++ b/test/ns-afl-svg/0818.svg
@@ -0,0 +1,32 @@
+<?l?>
+<!DOCTYPE Ú0 PUBLIC "0" "0">
+<svg xmlns="0000000000000000000000">
+0<style te="0">
+0
+0</style>
+0<g style="0">0<circle cz="0" cy="0" r="1" style="fill:r0d0 stroke:" w="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0a00ulu000e stroke-width:0K0" transform="translate(00,00,"/>
+0<circle cx="cm" cy="c" r="1" style="stroke:b0a00ulu000e stroke-width:0K0" transform="translate(00,00,"/>
+0<circle cx="cm" cy="c" r="1" style="stroke:b0a00ulu000e stroke-width:t;" transform="00" rm="0"/>
+0
+0<circle cx="cm" cy="c" r="1" style="stroke:000000000000000000000 stroke-width:00n;" transform="00" m="0"/>
+0
+0<circle cx="cm" cy="0" r="1" style="stroke:b0a00ulu000e stroke-width:0cm" transform="translate(00,00,"/>
+0<circle cx="cm" cy="0" r="1" style="stroke:b0a00ulu000e" transform="00" wform="0"/>
+0<circle cx="cm" cy="cm" r="S" style="stroke:b0a00ke" transform="translate(00,00,"/>
+0<circle cx="cm" cy="0" r="1" style="stroke:b0a00ulu000e" transform="00" m="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0a00ulu000e" w="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0a00ulu000e stroke-width:0K0" transform="translate(00,00,"/>
+0<circle cx="cm" cy="c" r="1" style="stroke:b0a00ulu000e stroke-width:0K000" transform="translate(00,00,"/>
+0<circle cx="cm" cy="c" r="1" style="stroke:b0a00ulu000e stroke-width:t;" transform="0000" rm="0"/>
+0
+0<circle cx="cm" cy="c" r="1" style="stroke:000000000000000000000 stroke-width:0r000;" transform="0000" m="0"/>
+0
+0<circle cx="cm" cy="0" r="1" style="stroke:b0a00ulu000e stroke-width:0K000" transform="translate(00,00,"/>
+0<circle cx="cm" cy="c" r="1" style="stroke:b0a00ulu000e" transform="0000" rm="0"/>
+0<circle cx="cm" cy="cm" r="S" style="stroke:b0a00ke" transform="translate(00,00,"/>
+0<circle cx="cm" cy="c" r="1" style="stroke:b0a00ulu000e" transform="0000" m="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0a00ulu000e stroke-width:0,0000"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0a00ulu000e"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0a00ulu000e stroke-width:t0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0819.svg b/test/ns-afl-svg/0819.svg
new file mode 100644
index 0000000..f52d9e7
--- /dev/null
+++ b/test/ns-afl-svg/0819.svg
@@ -0,0 +1,78 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0a00' stroke='r0f00lba000d'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='5' fill='b0a00'/>0<circle cx='0' cy='0' r='1' f='0'/>0<path d='M0 00A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" on="0" xmlns="0000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g ze="0">0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0<g id="0" height="px" on="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g ze="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&r;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0
+0<g><text y="0">0</text>0
+<svg io="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg ro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg resctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg spectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t0;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg pro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&t0;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presetRatio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&t0;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0820.svg b/test/ns-afl-svg/0820.svg
new file mode 100644
index 0000000..b4132fc
--- /dev/null
+++ b/test/ns-afl-svg/0820.svg
@@ -0,0 +1,42 @@
+<svg width="0" Box="0">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="000000">
+0<stop stop-color="#0000s0" offset="0"/>
+0<stop stop-color="t0u0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<styp stop-color="0" t="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0,000000000000000000,0000000,000000,0000" fill="url(#0000)"/>
+0<path d="000,0000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000,0000000,0000" fill="url(#00000"/>0
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<ath d="0"/>0
+0<circle r="4" cx=")"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="0000" style="fill: url(#00000" fi0l="0"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow"/>0
+0<cidCle r="0" x="0" c="0" fill="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000,000000000000000,0000,000000000000000000000000000000000000000000000000000000,0000000,000000000000000000000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,00000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,0000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0821.svg b/test/ns-afl-svg/0821.svg
new file mode 100644
index 0000000..7399ffa
--- /dev/null
+++ b/test/ns-afl-svg/0821.svg
@@ -0,0 +1,87 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="d0`00"/>0
+0<ccle r="0" cx="0" cy="0" ot="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0-7,00,0,23,,00c0,0-0,00-10,00ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ,0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-00000-00-00-000 000-0 00000000w00000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000070000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<path d="M00,00c0,00-200-04-6-001000000-00" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="d" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" ll="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>
+0
+0<circle r="4" cx="v" il="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="#000"/>
+0<circle r="4" y="0" fill="u00000"/>0
+0<circle r="4" cx="K" cy="," fill="url(00"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="u0l0"/>
+0<path d="000" fill="url(#0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0822.svg b/test/ns-afl-svg/0822.svg
new file mode 100644
index 0000000..f13c7c0
--- /dev/null
+++ b/test/ns-afl-svg/0822.svg
@@ -0,0 +1,275 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" rm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="u0s00n" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow"/>0
+0<circle r="4" cx="0" cy="0" id="0000" style="fill: url(#00000" fill="url(#000e)"/>
+0<path d="M00,0-09-0@000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="0000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+0<path d="00000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="00000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#000e)"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,000000c00000000000000000000000000000000M0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000000,000000000000000000000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000e)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-60.870,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000e)"/>
+0<path d="M00,00c000-8,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-8,00-20,100-00l0-22c0-7,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#000e)"/>
+0<path d="M00,00c000-8,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx=")"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000e)"/>
+0<path d="M00,00c090-8,03-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,00..000,00000000 000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#000e)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#000e)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0<path d="M00,00c000-8,00-20,004-00l0-22c0-7,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-000v0" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000w)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0" style="fill: url(#00000" fill="url(#000e)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000e)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,00-20,124-00l0-22c0-7,0-12,10-10l24,0c0,0,00-0,14-10l0-10l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" ll="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000e)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000e)"/>
+0<path d="M00,00c000-8,10-00,020,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0823.svg b/test/ns-afl-svg/0823.svg
new file mode 100644
index 0000000..ea7ce06
--- /dev/null
+++ b/test/ns-afl-svg/0823.svg
@@ -0,0 +1,10 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:r0d0 stroke:b0a00nsl"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black;stroke-width:001cm" transform="translate(000,000)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0824.svg b/test/ns-afl-svg/0824.svg
new file mode 100644
index 0000000..df1f2da
--- /dev/null
+++ b/test/ns-afl-svg/0824.svg
@@ -0,0 +1,115 @@
+<?l?><!DOCTYPE s PUBLIC "0" ""[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0f00lba000dt0' stroke='red'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' f='0'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='ex' height='0'
+fill='none' stroke='b0u0'/>">]><svg width="px" height="30px" ion="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" he="0" stroke="b0u0"/>
+0<g e="0">
+0<text x="" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="" y="0">0</text>
+0<g transform="translate(00,0)">&i;</g>
+0<text x="" y="0">0</text>
+0<g transform="translate(00,0)">&Viewport2;</g>
+0<g id="" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+th="" ht="">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>0
+0<svg pro="0" vox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" view="" viewBox="0 0 3 4" width="" height="">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="" viewBox="0 0 3 4" width="" height="">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="" viewBox="0 0 3 4" width="" height="">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g m="0"><text y="0">0</text>&Viewport2;
+0<svg preservRtio="0" viewBox="0 0 3 4" width="" height="">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="" height="">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg presetRatio="" viewBox="0 0 3 4" width="" height="">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg p="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport2;
+0<svg prbvctRatio="0" viewBox="0 0 0 0" width="0" height="0">0</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="*">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg ectRaTio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0825.svg b/test/ns-afl-svg/0825.svg
new file mode 100644
index 0000000..5ec55bd
--- /dev/null
+++ b/test/ns-afl-svg/0825.svg
@@ -0,0 +1,16 @@
+<svg xmlns="0000000" fill="url(#00" xmlns:x="0">
+0<g fill="none">0
+0<ellipse stroke="#000000" rx="6" ry="4" trannform="0" r="0"/>
+0</g>
+0<g fill="#000000" stroke="white"> 0
+0</g>0<g fill="#000000" stroke="white"> 0<circle fill="0000000" r="3"/>
+0
+0
+0
+0<ellipse stroke="0000000" rx="6" ry="4" transform="000000000"/>
+0<ellipse stroke="#000000" rx="6" ry="4" trannform="0" r="0"/>
+0</g>
+0<g fill="#000000" stroke="white"> 0
+0</g>0<g fill="#000000" stroke="white"> 0<circle fill="0000000" r="3"/>
+0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0826.svg b/test/ns-afl-svg/0826.svg
new file mode 100644
index 0000000..de7ccf9
--- /dev/null
+++ b/test/ns-afl-svg/0826.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:r0d0 stroke:black;stroke-width:e0;" wransform="0"/>
+0<circlE cx="cm" cy="cm" r="1" style="stroke:b0r00blu0;stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0827.svg b/test/ns-afl-svg/0827.svg
new file mode 100644
index 0000000..640649a
--- /dev/null
+++ b/test/ns-afl-svg/0827.svg
@@ -0,0 +1,15 @@
+<svg xmlns="0000000000" nk="0" viewBox="0 0 1 2">
+0<radialGradient id="0" cx="0" cy="0" r="0" s="0"><op ot="0" o0M0c="0"/><op ot="0"/></radialGradient>
+0<path d="M0,000A000,00 0,0,0 00,000000000000000000000000000000000000000000,00" id="0" fill="p0c00wle00"/>
+0
+0<path d="M00,000A0000000000000000000000000000000000000000000000000000000000,00" id="0" fill="m0c00wve00"/>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" its="0"><op ot="0" o0000000000000000000000000000000000000000000000000000000000000M0c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,000A000,0000,0,0000,00000000000000000000000000000000,000000 00,00" id="0" fill="p0c00wle00"/>
+0
+0<path d="M00,000A0T0,0000,0,0000,000000,00000,00000,000,00000000000,00000,00" id="0" fill="m0c00wve00"/>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" Units="0"><stop ot="0" st0000000000000000000000000000000000000000000000000000000000000000c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,000A000,0000,0,00000 00,00 00,00" id="0" fill="m0c00wve00"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/0828.svg b/test/ns-afl-svg/0828.svg
new file mode 100644
index 0000000..69ea5aa
--- /dev/null
+++ b/test/ns-afl-svg/0828.svg
@@ -0,0 +1,55 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='d0d'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='!' r='1' fill='y0`00w'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0">
+<!ENTITY t "">
+<!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" ion="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="b0u0"/>
+0<g foPt-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&i;</g>
+0<text w="0" y="0">0</text>
+0<g transform="translate(00,0)">&Viewport2;</g>
+0<g d="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0829.svg b/test/ns-afl-svg/0829.svg
new file mode 100644
index 0000000..9ef74d8
--- /dev/null
+++ b/test/ns-afl-svg/0829.svg
@@ -0,0 +1,25 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" Uxlink="0" xmlns:sodipodi="0" xmlns:inkscape="000" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+eight="0"/>
+0</clipPath>0
+0</defs>0
+0<g style="stroke: i0k00ape000ne"
+groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" ip-path="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke: i0k00ape000ne" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0830.svg b/test/ns-afl-svg/0830.svg
new file mode 100644
index 0000000..9991298
--- /dev/null
+++ b/test/ns-afl-svg/0830.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 0 0">
+0<paUh d="0" stroke="0" fill="0"/>0
+0<pauh d="0" fill="0"/>0
+0<text x="0" y="0" t-ze="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0831.svg b/test/ns-afl-svg/0831.svg
new file mode 100644
index 0000000..1a398f7
--- /dev/null
+++ b/test/ns-afl-svg/0831.svg
@@ -0,0 +1 @@
+<svg xmlns="0000000000" v-è000="0"><![CDATA[0]]0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0832.svg b/test/ns-afl-svg/0832.svg
new file mode 100644
index 0000000..fd084fc
--- /dev/null
+++ b/test/ns-afl-svg/0832.svg
@@ -0,0 +1,79 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_eorm="0">
+0<stop stop-color="#000" t="0"/>
+0<stop stop-color="000"/>
+0<stop st="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0" gra_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="000000" offset="0"/>
+0
+0
+0<stop stop-color="url(#0000)" fill="0"/>
+0<path d="0" of="0"/>
+0
+0<stop or="0" of="0"/>
+0<stop sr="0" of="0"/>
+0
+0<stop stopor="0" of="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0<stop or="0" et="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient></defs>0
+0<path d="0"/>0
+0<circle r="0" cx="0"/><stop st="0" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" ofhset="0"/>
+0</linearGradient>
+0
+0</defs>0
+0<path d="M0,00c000,00,0,00-0,00000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" cx="r"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url0000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00000000-00l00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url0000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l000-0,*00000000000,000,0,0000,00000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0833.svg b/test/ns-afl-svg/0833.svg
new file mode 100644
index 0000000..3d38ba2
--- /dev/null
+++ b/test/ns-afl-svg/0833.svg
@@ -0,0 +1,21 @@
+<svg xmlns="00000000000000000000000000" viewBox="0">0<path d="M00,0h00l00,00v00l000,00h000l0000000" stroke="#000" fill="n0n00coe000"/>0
+0<path d="M00,0h00l0h000000000000000000000000" stroke="#000" fill="n0n00coe000"/>0
+0<path d="M00,0h00l00,00v0v000?" stroke="#000" fill="n0n00coe000"/>0
+0<path d="M00,0h00l00,00" fill="#000000"/>
+0<path d="M00-0h00v0l00-00l0,00h00v0,0h00l00,00v00l000,00h000l0000000" stroke="#000" fill="n0n00coe000"/>0
+0<path d="M00,0h00l00-00,00h000000000000000000000000" stroke="#000" fill="n0n00coe000"/>0
+0<path d="M00,0h00l00,00v0v000?" stroke="#000" fill="n0n00coe000"/>0
+0<path d="M00,0h00l00,00" fill="#000000"/>
+0<path d="M00-0h00v0l00-00l0,00h00v0l00-0h000v00h0v00h0000v000h0z" fill="#000000"/>
+0<path d="M00,0h000v00h0v00h00l00,00v0v000?" stroke="#000" fill="n0n00coe000"/>0
+0<path d="M00,0h00l0000" fill="#000000"/>
+0<path d="M00-0h00v0l00-00l0,00v000l000,0l000-0l000-0v00h000v000h00v00l00,0l0,0000l00000000000000000l000000" fill="#000000"/>
+0<path d="0000000000000" fill="#000000"/>
+0<path d="M00,0h000v00h0v00h000v000l000,0l000-0l000-0v00h000v000h00v00l00,0l0,0h00l00-0h00v000l000,0l000-00" fill="#000000"/>
+0<path d="M00-0h00v0l00-00l0,00h00v0l00-0h00-0h00v0l00-00l0,00h00v0l00-0h000l0000000000000000000000000l000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M00,0h000v00h0v00h00l00,00v0v000?" stroke="#000" fill="n0n00coe000"/>0
+0<path d="M00,0h00l0000" fill="#000000"/>
+0<path d="M00-0h00v0l00-00l0,00v000l000,0l000-0l000-0v00h000v000h00v00l00,0l0,0d00000000000000000000000000" fill="#000000"/>
+0<path d="0000000000000" fill="#000000"/>
+0<path d="M00,0h000v00h0v00h000v000l000,0l000-0l000-0v00h000v000h00v00l00,0l0,0h00l00-0h00v000l000,0l000-00" fill="#000000"/>
+0<path d="M00-0h00v0l00-00l0,00h00v0l00-0h00-0h00v0l00-00l0,00h00v0l00-0h000l0000000000000000000000000000000000000000000000000000000-0-000l0000000000000000000" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0834.svg b/test/ns-afl-svg/0834.svg
new file mode 100644
index 0000000..0dee24e
--- /dev/null
+++ b/test/ns-afl-svg/0834.svg
@@ -0,0 +1,31 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" d="0" sodipodi:version="0" inkscape:version="0" sodipodi:doe="0" inkscape:output_extension="0">0
+0<rect style="fill:red;" p-h="0"
+d="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke: c0k00ape000ne"
+d="0" width="0" height="0" x="0" y="0"/>0
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0"
+d="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke: c0k00ape000ne"
+d="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0"
+ht="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0835.svg b/test/ns-afl-svg/0835.svg
new file mode 100644
index 0000000..37c1da9
--- /dev/null
+++ b/test/ns-afl-svg/0835.svg
@@ -0,0 +1,12 @@
+<svg v='0' xmlns='000' fill='s0q00rer' e='0'>
+0<path d='00,00000' fill='s0b00tax000nc00000' stroke='b0a00'/>0
+0<path d='00,00000,00000000000000000000000000000000000000000000000000000,0000,0000000000000000000000000000000000000000000,000,00000' fill='s0b00tax000nc00000' stroke='b0a00'/>0
+0<path d='000,00000,0000,0,0000,0000000000000000000000000000000000000000000000000000000000000000000,00000' fill='s0b00tax000nc00000' stroke='b0a00'/>0
+0<path d='M00,0,00,00,00,0c0-0,0-0,00-0z' fill='s0b00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,0000,0,00c0,0,00,000000' fill='s0l00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00, 0000,000000,0c0,0,000,0000000000000000,0000,0000,0000,0,00,00,00,00000,000,00000' fill='s0b00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,0000,0,00c000,00,00,00,00000,000,0000000000,0000,0000,0000,00000000000,0000,0000,0000,0,00,00,00,00000,000,00000' fill='s0b00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,0000,0,00c0,0,00,00,00,00000,000,0000000000,0000,0000,0000,0,00,00,00,00000,000,00000' fill='s0b00tax000nc00000' stroke='black'/>0
+0<path d='M00,0,00,00,00,0c0-0,0-0,00-0z' fill='s0b00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,0000,0,00c0,0,00,000000' fill='s0l00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00, 0000,00000000l0,000,0000000,0000,00000000,,000,0000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000,000,000000000000000000' f='0' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/0836.svg b/test/ns-afl-svg/0836.svg
new file mode 100644
index 0000000..cf11dc8
--- /dev/null
+++ b/test/ns-afl-svg/0836.svg
@@ -0,0 +1,385 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" gradientTransform="rotate(0">
+0<stop stop-color="0000000" offset="0"/>
+0<stop stop-color="d0a0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000000000000000000" fill="url(#pyYellow"/>0
+0<cirCle r="Q" cx="0" y="0" fill="0000"/>
+0<circle r="4" cx="0" cy="0" fill="0000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000M000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000000000000" fill="u0e0"/>
+0<path d="M00,00c0000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0
+
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="0000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>
+0
+
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000000000)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000000000000" fill="u0e0"/>
+0<path d="M00,00c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c0000000000000000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0l0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="4" style="fill: url(#000" fill="url(#0000)"/>
+0<path d="M00,00c00000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,000,000M00000000,000000" fill="u0e0"/>
+0<path d="M00,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,00"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000 00000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0y)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="4" style="fill: url(#0" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="M00,00c00000,00000,0000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<cFrcle r="0" fill="0"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000 00000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,000000000000000c000,0000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,00000,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#000000000"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0837.svg b/test/ns-afl-svg/0837.svg
new file mode 100644
index 0000000..b520b06
--- /dev/null
+++ b/test/ns-afl-svg/0837.svg
@@ -0,0 +1,16 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(0)">
+0<stop stop-color="0000000" offset="0"/>
+0<stop stop-color="0000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#000000)"/>
+0<path d="M00,00c0,0-0,00-000-0,0-0-00,0-00,00l0000l000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#000000)"/>
+0<path d="M00,00c00000,00-000-0,0-00000000000000000000000000000000,0000" fill="url(#000000)"/>
+0<path d="M00,00c000000000000000000,0-00-0-00-00l0-00c000,0000,0000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cTrcle r="0" cx="0" fill="0"/>
+0<path d="M00,00c0,0-0,00-00,00c000,0-00-0-00-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<cTrcle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0838.svg b/test/ns-afl-svg/0838.svg
new file mode 100644
index 0000000..f85eb5b
--- /dev/null
+++ b/test/ns-afl-svg/0838.svg
@@ -0,0 +1,10 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">0<style e="0">
+0
+0</style>
+0<g style="0">0
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="H" style="fill: i0g00ero000bl000;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="H" style="fill: i0g00ero000bl000;stroke-width:000cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0839.svg b/test/ns-afl-svg/0839.svg
new file mode 100644
index 0000000..c5a121b
--- /dev/null
+++ b/test/ns-afl-svg/0839.svg
@@ -0,0 +1,360 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" gradientTransform="rotate(45)">
+0<stop stop-color="s0g0" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" f="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,0c00,0,00,0,20,120c0,0-0,00-10,02l-24,0c00,0-94,0-10,05l0,10l00,0c00,0-00-0-13-24c0-00,0-00,0-20,000000000000" fill="url(#pyYellow"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" id="0" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c000000000000000000000000000000000000000000000000000000"/>
+0<path d="M70,00c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#r0000" fill="url(#00000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,00L0000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="0000"/>
+0<path d="M70,87c0,73-230-20-0-24108.00000000000000000000000000000000000000000000000000000.0000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c00000000000000000000000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,00000000,000000000000,0,000000" fill="0000"/>
+0<path d="M00,00c0,70-030-20-60.800,100.0000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000e)"/>
+0<path d="M70,00c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,100-00l0-00c0-0,0-00,-04000.00000000.000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00000,00000,00000000000c000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M70,00c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M04,80c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,00c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,100-00l0-00c0-0,0-00,-04000.00000000.000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000e)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" y="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M04,80c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,00..000,00000000 000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" y="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" y="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,120-10l0-20c0-0,0-12,10-00l04,0c0,0,00-0,14-15l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0
+
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c00000,00000000-000 000-00-0000,0?00000000000000,000000000000000,0000000000" id="0000" stylel="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M70,00c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-20,100-00l0-00c0-0,0-00,-04000.00000000.000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000w)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M04,80c000-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M04,80c000-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,000000000000000c000,0000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="0000"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,100-13l0-20c0-0,0-12,10-00l20,0c0,0,00-0,10-15l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Y="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" y="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,00c000-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0840.svg b/test/ns-afl-svg/0840.svg
new file mode 100644
index 0000000..d4fac2a
--- /dev/null
+++ b/test/ns-afl-svg/0840.svg
Binary files differ
diff --git a/test/ns-afl-svg/0841.svg b/test/ns-afl-svg/0841.svg
new file mode 100644
index 0000000..4df6a80
--- /dev/null
+++ b/test/ns-afl-svg/0841.svg
@@ -0,0 +1,61 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c00anc000ed'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00w'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='b0i00'/>0<path d='M0 0A00 0 0 0 0 00 00' stroke='black' otroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='d'
+fill='n0s0' stroke='blue'/>">]><svg width="px" ei="0">
+0<desc></desc>
+0<rect x="0" y="0" width="0" he="0" fill="none" se="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g m="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0000000000000">&i;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport0;</g>
+0<g id="0" transform="00000000000000000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg io="0" ox="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg ro="0" ix="0"
+dh="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg to="0" Bx="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg io="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" vox="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg pserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" dtO="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&t;
+0<svg eserveAspectRatio="0" viewBox="0 0 0 0" width="0" height="0">0</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg prerveAspectRatio="0" vie="0" width="0" height="0">&e;</svg></g>
+0<g Qrm="0"><text y="/">0</text>&V;
+0<svg preseeAspectRatio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preservspectRatio="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="00"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg eserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="/">0</text>&V;
+0<svg preserveAectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00"><text y="0">0</text>&V;
+0<svg prtRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0842.svg b/test/ns-afl-svg/0842.svg
new file mode 100644
index 0000000..ecac74c
--- /dev/null
+++ b/test/ns-afl-svg/0842.svg
@@ -0,0 +1,18 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="@" f="0" r="1" style="fill:red;stroke:000 stroke-width:001cm" transform="translate(0,0)"/>0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:o0e00lac0;stroke-width:1cm" transform="translate(0,00)"/>
+0<circle cx="cm" cy="0" r="1" style="fill:l0g00en;stroke:black;stroke-width:001em" m="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black stroke-width:1em" transform="translate(00,0)"/>
+0<circle cx="cm" cy="0" r="1" style="fill:green;stroke:black;stroke-width:001em" transform="translate(00,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black stroke-width:1em" transform="00"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:l0g00en;stroke:black;stroke-width:1em" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black stroke-width:001em" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black stroke-width:001em" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black stroke-width:001em" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" transform="translate(000,000)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0843.svg b/test/ns-afl-svg/0843.svg
new file mode 100644
index 0000000..6067495
--- /dev/null
+++ b/test/ns-afl-svg/0843.svg
@@ -0,0 +1,7 @@
+<svg xmlns="http://www.w 100 100">0
+0<path d=""/>
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+</svg>
diff --git a/test/ns-afl-svg/0844.svg b/test/ns-afl-svg/0844.svg
new file mode 100644
index 0000000..88c91b4
--- /dev/null
+++ b/test/ns-afl-svg/0844.svg
@@ -0,0 +1,58 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gra_ieorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="M0,00l0,00c0,0-0,00-00,000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ00"/>0
+0<circle r="4" cx=")"/>
+0<path d="00000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000000000000,000,0000000000000000000,00000000,00000000000000000000,000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000 00-00-00 0000000,000000000 000000,000000000 000000,000000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000 00-00-00 00-00 000-00 0000-000000 000000,00000000 0" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="000,00000000,000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,0000 000000,000000000000000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00(00000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l000-00,00l000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0845.svg b/test/ns-afl-svg/0845.svg
new file mode 100644
index 0000000..5b11dcd
--- /dev/null
+++ b/test/ns-afl-svg/0845.svg
@@ -0,0 +1,6 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M0,0h00l00,00v00,00l000-00z" stroke="#000" fill="n0n00ncl000e"/>0
+0<path d="M00,0h00l00,00v00l0,00h000l000,00h0l0-00v000z" stroke="#000" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00v00l0,00h000l000-0l000,00h0l000-00Z0000" stroke="#000" fill="n0n00ncl000e"/>0
+0<path d="M00,0h00l00,00-00000" fill="#000"/>0<![CDATA[0]]></svg>
diff --git a/test/ns-afl-svg/0846.svg b/test/ns-afl-svg/0846.svg
new file mode 100644
index 0000000..877e3f6
--- /dev/null
+++ b/test/ns-afl-svg/0846.svg
@@ -0,0 +1,133 @@
+<svg nr="0" Box="0">
+0
+<svg xmlns="0000000000">
+0<xmlns>0
+0<path d="0"/>
+0<path d="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" ll="0"/>0
+0<KfKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<pKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<toxt x="0"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="0"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKmKKKKMKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="0"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKpnth d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKDKKKKKKKKKKKQKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKIKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<teKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKOKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" finl="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="0"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patdKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<pazKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="0"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKlKKKKKKKKKKKKKKKKKKK-Kpnth d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKQKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKIKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKPKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKk-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="0"/>
+0<KKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK_KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLLLLKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<pKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<toxt x="0"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="0"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0847.svg b/test/ns-afl-svg/0847.svg
new file mode 100644
index 0000000..792c702
--- /dev/null
+++ b/test/ns-afl-svg/0847.svg
@@ -0,0 +1,27 @@
+<svg s="0" d="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient x0="0" y1="0" x2="0" y2="0" d="0">
+0<stop offset="0" r="0" stoy="0"/>
+0<stop e0="0" stolo0="0" stt0="0"/>
+0<stop offset="0" or="0" stoy="0"/>
+0</linearGradient>
+0</defs>
+0<g transform="scale(0">
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="#000000"/>
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="#000000"/>
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="u0s00ema000ar0000"/>
+0<path iill="0" stroke="#000" stroke-width="0" d="M0000 0,0000" transform="0" x="0" y="0" fill="u0s00ema000ar0000"/>
+0<path fill="none" stroke="#000" stroke-width="6" d="M0000 0000A000 00 0 0 00 00,0000A000 00 0 0 00 000 0000z" transform="matrix(0,0,0,6,0,0)"/>
+0<rect fill="#000" stroke="none" width="0" height="0" x="0" y="0"
+fl="0"/>
+0<rect width="0" height="0" rx="0" ry="0" x=")"/>
+0<rect fill="#000" stroke="none" width="0" height="0" x="0" y="0" sfl="0"/>
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="u0s00ema000ar0000"/>
+0<path fill="none" stroke="#000" stroke-width="0" d="M0000 0000)"/>
+0<path fill="none" stroke="#000" stroke-width="6" d="M0000 0000A000 00 0 0 00 00,0000A000 00 0 0 00 000 0000z" transform="matrix(0,0,0,6,0,0)"/>
+0<rect fill="#000" stroke="none" width="0" height="0" x="0" y="0" sfl="0"/>
+0<rect width="0" height="0" rx="0" ry="0" x=")"/>
+0<rect fill="#000" stroke="none" width="0" height="0" x="0" y="0" sfl="0"/>
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="u0s00ema000ar0000"/>
+0<path fill="none" stroke="000000000000000000000" torm="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0848.svg b/test/ns-afl-svg/0848.svg
new file mode 100644
index 0000000..bbe3342
--- /dev/null
+++ b/test/ns-afl-svg/0848.svg
@@ -0,0 +1,4 @@
+<svg viviewBox='0' xmlns='00000000000000000000000000000000000' fill='s0l00tex000nc00000' stroke='0'>
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,0,0h000c00,0-0,0,0,0h00c0,0,0,0,0,0h000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' fill='s0l00tex000nc00000' stroke='black'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,0,0h000c00,0-0,0,0,0h00c0,0,0,0,0,0h000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' fill='s0l00tex000nc00000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/0849.svg b/test/ns-afl-svg/0849.svg
new file mode 100644
index 0000000..8913488
--- /dev/null
+++ b/test/ns-afl-svg/0849.svg
@@ -0,0 +1,113 @@
+<?l?>
+<svg version="0" xmlns="0000000000000000000" xmlns:x="0" width="0" height="0" style="0" n="0">
+0<script t="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g d="0" fill="blue" style="0">
+0<circle d="0" cx="0" cy="0" r="5" stroke="f0r00ric000id00"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0
+0
+0
+0<script e="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g d="0" fill="blue" style="0">
+0<circle d="0" cx="0" cy="0" r="5" stroke="f0r00ric000id00"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>
+0
+0
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0r00ric000id00"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/0850.svg b/test/ns-afl-svg/0850.svg
new file mode 100644
index 0000000..d13a074
--- /dev/null
+++ b/test/ns-afl-svg/0850.svg
@@ -0,0 +1,33 @@
+<?l?>
+<svg version="0" xmlns="00000000000000000000000000" xr="0" stroke="f0i00ric0"
+syle="0" on="0">
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0i00ric0"
+stroke-width="3"/>
+0<text x="0" y="@">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/0851.svg b/test/ns-afl-svg/0851.svg
new file mode 100644
index 0000000..e7919f9
--- /dev/null
+++ b/test/ns-afl-svg/0851.svg
@@ -0,0 +1,70 @@
+<svg olns="0" fill="url(#py0ellow)" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="#000" offset=","/>
+0
+0
+0
+0<path d="0" fill="0"/>0
+0<e r="0" x="0" c="0" fill="0"/>
+0<circle r="0" x="0" id="0" s="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<pAth d="0" fill="0"/>0
+0<circle r="0" x="0" cy="0" fill="0"/>
+0
+0<path d="0" fill="0"/>0
+0<cirCle r="0" x="0" cy="0" fill="0"/>
+0<i r="0" x="0" id="0" e="0" fill="0"/>0
+0
+0<path d="0" fill="0"/>0
+0<e r="0" x="0" cy="0" fill="0"/>
+0<circle r="0" x="0" y="0" fill="0"/>0
+0<path d="0" f="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000" fill="url(#0000)"/>
+0<pAth d="M0-0-00-0-70-0-100-00-38-0-99-0000-136-000-80-0 20-0 030 0 272 0000 7 00 00 00
+0 00 0 00 00 00 0 00 0 00 10 00 100 000 160 000 204 000 000-0000 0 00 0 000-00000m0000000000000000000" e="0" fill="l0n0"/>0
+0<path d="M30,0h30l28,00v00l020,00h030 90-50 T20
+000000 50-000 080 000 400 00
+000h0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M30,0h30l20,00v00l000,00h-00 90-50 100
+-00 70 0 08-200 06-300-70-80-100-60-210 09-200 360-80T01020-000
+800 0-16 00-100 00-200 0-100 0-000-0-500-0-00-0-01-0-000-00-08-0-90-0000-000-000-80-0 00-7 005 0 200 0000 0 00 10 00
+0 00 8 00 00 00 2 00 0 00 04 00 000 000 060 000 200 000 090-000000?0000000000000000000000000000000000000000000000000000000000000000000000000000000000" e="0" fill="l0n0"/>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h08000,08v00l000000h00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M00,0h30l20,00v00l008,00h008 90-03 0010-03 70 0 90-200 06-330-07-80-100-60-210 09-200 360-80T01000-004
+800 0-10 00-100 00-000 0-100 0000l08 00-1 0000c0 000 0 000 170-00-000 00-000 000 100 00 0-000-0-000-1-00-0-00-0-000-30-00-0-00-1190-000-200-00-0 00-0 000 0 000 0000 0 00 00 700 000000000 00000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M30,0h30l20,00v00l008,00h-08 90-50 100
+-03 70 0 08-200 06-300-70-80-100-60-210 09-200 360-80T01020-000
+800 0-16 00-100 00-200 0-100 0-000-0-500-0-00-0-01-0-000-00-08-0-90-0000-000-000-80-0 00-7 005 0 200 2000 0 00 10 00
+0 00 8 00 00 00 2 00 0 00 04 00 000 000 060 000 200 000 090-000000?0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M30,0h30l20,00v00l008,00h-08 90-50 100
+-03 70 0 08-200 06-300-70-80-100-60-210 09-200 360-80T01020-000
+800 0-16 00-100 00-200 0-100 0-000-0-500-0-00-0-01-0-000-00-08-8-90-0000-000-008-80-0 00-0 005 0 200 2000 0 00 10 70
+0 00 8 00 00 00 2 00 0 00 04 00 000 000 060 000 200 000 090-000 00l00000000000" e="0" fill="l0n0"/>0
+0<path d="M30,0h38l28,00v00l-28,00h-38 99-53 T28-4 32 00 36 00 7 00 4 000-00000m00000000000000000000000000000000000" se="0" fill="l0n0"/>0
+0<path d="M30,0h38l20,00v00l-20,00h-38 90-50 T21
+000000 54-000 300-0 28-4 32 00 36 00 7 00 0 000-00000m0000000000000000000000000000000000000000000000" se="0" fill="l0n0"/>0
+0<path d="M30,0h30l28,00v00l020,00h030 90-50 T20
+000000 50-007 080 000 400 00
+000h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M30,0h30l20,00v00l008,00h-08 90-50 100
+-03 70 0 08-200 06-300-70-80-100-60-210 09-200 360-80T01020-000
+800 0-16 00-100 00-200 0-100 0-000-0-500-0-00-0-01-0-000-00-08-8-90-0000-000-008-80-0 00-0 005 0 200 2000 0 00 10 70
+0 00 8 00 00 00 2 00 0 00 04 00 000 000 060 000 200 000 090-000 00l00000000000" se="0" fill="l0n0"/>0
+0<path d="M31,0h38l28,00v00l-28,00h-38 99-50 T21
+000000 50-000 180 100 400 00
+260 00 0000h000000000000000" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h00000,00v00l000,00h000 00-00 0000-00 00 0 00-000 00-000-00-00-000-00-000 00-000 000-000 0000-000
+00000-00-010E30-000 00-000-00-000 00-0000c0000000000000000-00 000-00 000 0 00000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M00,0h30l08,00v00l008,00h030 90-50 120
+050 70 0 90-270 30-300-0"/>0<ellipse rx=" "/>0<p rx="0" ry="0" m="0" fill="0"
+opacity="0"/>0</svg>
diff --git a/test/ns-afl-svg/0852.svg b/test/ns-afl-svg/0852.svg
new file mode 100644
index 0000000..25e2789
--- /dev/null
+++ b/test/ns-afl-svg/0852.svg
@@ -0,0 +1,81 @@
+<svg xmlns="0000000000" viewBox="0">
+0
+0<rect fill="#000" x="0" y="0" height="0" width="0" r="0"/>
+0
+0<text x="C"/>
+0<patKKKKKKKKext d="0" ke="0" ll="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" ll="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" ll="0"/>0
+0<KfK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" ll="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<pKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" ll="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" ll="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKmKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKjKKKKKKKKKKKKKKKKKKKNext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKOKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>0
+0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" l="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKXKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" L="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKkKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKK_KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLLLLLLLLLLLLLLLt y="0" rx="0"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/0853.svg b/test/ns-afl-svg/0853.svg
new file mode 100644
index 0000000..52e5f2e
--- /dev/null
+++ b/test/ns-afl-svg/0853.svg
@@ -0,0 +1,46 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="000" width="0" height="50" id="0" sodipodi:ion="0" inkscape:von="0" sodipodi:doe="0" inkscape:tput_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0"/>0</filter>0
+0<clipPath id="0">0<rect id="0" x="0" y="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:labpl="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">0
+0<rect style="stroke:d0f00ck;fill:none"
+d="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" ip-path="0"
+d="0" width="0" height="0" x="0" y="0" transform="0"/>
+0<rect style="stroke:d0f00ck;fill:none" id="0" width="e"/>
+0</svg>
+0
+0
+0
+0
+0
+0
+0
+0<rect style="fill: w0d00red;" ip-path="0" id="0" w="0" height="0" x="0" y="0"/>
+0<rect style="stroke:d0f00ck;fill:none" id="0" width="0" height="0" x="0" y="0"/>
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">0<rect style="fill:blue;" height="0" x="0" y="0"/>
+0<rect style="stroke:d0f00ck;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;"
+p-h="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>
+0
+0
+0
+0
+0
+0
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0854.svg b/test/ns-afl-svg/0854.svg
new file mode 100644
index 0000000..0e1bb54
--- /dev/null
+++ b/test/ns-afl-svg/0854.svg
@@ -0,0 +1,43 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" gra_ieorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0-7,20,0,20,00l0,00c000000000" fill="url(#py0ellow)"/>0
+0<circle r="z" id="0" style="fill: url(#00000" fill="url(#00B00"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00000000,00L0,0,00,0000,0000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,0000000000000000000000000000000000000000000,000000000000000,000000000000000000,000000000000000000,0000000000000000000000000000000000000,0000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00B00"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#00B00"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,10-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,00000000000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0"
+cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0855.svg b/test/ns-afl-svg/0855.svg
new file mode 100644
index 0000000..af8956d
--- /dev/null
+++ b/test/ns-afl-svg/0855.svg
@@ -0,0 +1,43 @@
+<svg wx="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="#000" offset=".6"/>0<stop stop-color="#000" offset="1"/>
+0
+0
+0<stop stop-color="a0q0" offset="0"/>
+0<stop stop-color="000000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000,0000000000000000000000000000000000000000000000000000000000000000000000,000000,0000" fill="url(#0000)"/>
+0<path d="000,0000,000,000000000000000000000000000000000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#00000"/>0
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="z" id="0" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="000000000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" ce="0" ll="0"/>
+0<circle r="" cx="z" ix="0" style="fill: 0000000000000"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-04-6-000080000000000000,0000000000000000000000000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-8,10-20,020,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0/0000,000000000000,000,0,0000,0000,00000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" ff="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cp="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,00,000,0000,0l0,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#r;"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0856.svg b/test/ns-afl-svg/0856.svg
new file mode 100644
index 0000000..dbec24b
--- /dev/null
+++ b/test/ns-afl-svg/0856.svg
@@ -0,0 +1,11 @@
+<svg lns="0" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" ke="0" fill="m&lt;o"/>0
+0
+0<svg lns="0" viewBox="" fill="m&lt;o"/>0
+0
+0
+<svg olns="0" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="0000" fill="m&lt;o"/>0
+0
+0
+</svg>0</svg>
diff --git a/test/ns-afl-svg/0857.svg b/test/ns-afl-svg/0857.svg
new file mode 100644
index 0000000..d3493b2
--- /dev/null
+++ b/test/ns-afl-svg/0857.svg
@@ -0,0 +1,8 @@
+<?l?>
+<!DOCTYPE s PUBLIC "0" "0"[ <!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c0' stroke='m0d'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' l='0' stroke='m0d' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='0'/>0<path d='M000 0000000000 0' r='0' fill='yellow'/>0<circle cx='0' cy='0' r='5' l='0'/>0<circle cx='0' cy='0' r='1' fill='000000000000' stroke='black' stroke-width='2'/>0</g>0">
+<!ENTITY V "">
+]>
+<svg width="x" height="px" version="0" xmlns="000000000000000000">
+0<g transform="matrix(0,0,0,0,0,0">
+0&Smile;
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0858.svg b/test/ns-afl-svg/0858.svg
new file mode 100644
index 0000000..038f5c8
--- /dev/null
+++ b/test/ns-afl-svg/0858.svg
@@ -0,0 +1,15 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:s0a00;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cZ="0" cy="cm" r="1" style="fill:blue;stroke:s0a00;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cZ="0" cy="cm" r="1" style="fill:blue;stroke:s0a00;stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cZ="0" cy="0" r=" " transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:u0e00;stroke:000stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cZ="0" cy="cm" r="t" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:u0e00;stroke:black;stroke-width:1cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0859.svg b/test/ns-afl-svg/0859.svg
new file mode 100644
index 0000000..5d9f301
--- /dev/null
+++ b/test/ns-afl-svg/0859.svg
@@ -0,0 +1,69 @@
+<svg width="0" o="0">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="000">
+0<stop stop-color="#0000s0" offset="0"/>
+0<stop stop-color="y0u0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<p p0c="0" et="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="M00,000]0000000000000,0000,00000000,000,0,0000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000000000000000000000000000000000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000000000000000000000000000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<ctrCle r="0" cx="0" y="0" ll="0"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-000000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000000000000000000000000000000000000000000000000000000000000000000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,0000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000000000000000000000000000000000000000000000000000000000000000000000,0,00c0,0000,00000,000000,000,0000,000000,000,0000000000000000000000000000000000000000000000000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,0000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" Kx="0" cy="0" fill="#000"/>
+0<si r="0" cx="0" cy="0" fill="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00000,00000000000000000000000000000000000000000000000000000000000000000000c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,0000T0000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0860.svg b/test/ns-afl-svg/0860.svg
new file mode 100644
index 0000000..51a2afc
--- /dev/null
+++ b/test/ns-afl-svg/0860.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:b0a00;stroke-width:0'0" transform=",0"/>0<circle cx="pt" r="1" style="fill:blue;stroke:black;stroke-width:1cm" transform="translate(0000000"/>
+0
+0<circle cx="cm" cy="pc" r="1" style="fill:blue;stroke:black;stroke-width:001cm" transform="translate(0000000"/>
+0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0861.svg b/test/ns-afl-svg/0861.svg
new file mode 100644
index 0000000..909fe04
--- /dev/null
+++ b/test/ns-afl-svg/0861.svg
@@ -0,0 +1,12 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="#000" offset=".6"/>0<stop stop-color="#000" offset="1"/>
+0
+0
+0<stop stop-color="q0q00t" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="M0,000000000,0c0000000000000000000000000000,00000000000,0000,0000,000000000000,000000000000000000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0862.svg b/test/ns-afl-svg/0862.svg
new file mode 100644
index 0000000..c8501c3
--- /dev/null
+++ b/test/ns-afl-svg/0862.svg
@@ -0,0 +1,79 @@
+<å00 xmlns="00">
+0<path d="0" st="0" fill="0"><!--0-->0<ÎÎ x="">0
+<Î00>
+0
+0<path d="0" se="0" fill="0"><!--0-->0<ÎÎ>0
+0<!--0-->
+0<!--0-->0<ÎÎ x="">0
+<Î00>
+0
+0<path d="0" roke="0" fill="0"><!--0-->0<ÎÎ x="">0
+0<!--0-->0<Î00><å00>
+0<path d="0" st="0" fill="0"><!--0-->0<ÎÎ>0
+<Î00>
+0
+0<path d="0" roke="0" fill="0"><!--0-->0<ÎÎ x="">0
+0<!--0-->
+0<!--0-->0<ÎÎ>0
+<Î00>
+0
+0<path d="0" stroke="0" fill="0"><!--0-->0<ÎÎ>
+0<path d="0" st="0" fill="0"><!--0-->0<ÎÎ>0
+<Î0000>
+0
+0
+0<path d="0" st="0" fill="0"><!--0-->0<ÎÎ x="">0
+<Î0000>
+0
+0<path d="0" se="0" fill="0"><!--0-->0<ÎÎ>0
+0<!--0-->
+0<!--0-->0<ÎÎ>0
+<Î0000>
+0
+0<path d="0" stroke="0" fill="0"><!--0-->0<ÎÎ x="">0
+0<!--0-->0<Î00><å00 s="">
+0<path d="0" st="0" fill="0"><!--0-->0<ÎÎ x="">0
+<Î0000>
+0
+0<path d="0" stroke="0" fill="0"><!--0-->0<ÎÎ>0
+0<!--0-->
+0<!--0-->0<ÎÎ x="">0
+<Î0000>
+0
+0<path d="0" stroke="0" fill="0"><!--0-->0<ÎÎ>
+0<path d="0" st="0" fill="0"><!--0-->0<ÎÎ>0
+<Î0000>
+0
+0<path d="0" stroke="0" fill="0"><!--0-->0<ÎÎ x="">0
+0<!--0-->
+0<!--0-->0<ÎÎ>0
+<Î0000>
+0
+0<path d="0" stroke="0" fill="0"><!--0-->0<ÎÎ>0
+0<!--0-->0<Î00000><å00>
+0<path d="0" st="0" fill="0"><!--0-->0<ÎÎ>0
+<Î0000>
+0
+0<path d="0" stroke="0" fill="0"><!--0-->0<ÎÎ x="">0
+0<!--0-->
+0<!--0-->0<ÎÎ>0
+<Î0000>
+0
+0<path d="0" stroke="0" fill="0"><!--0-->0<ÎÎ><path d="0" stroke="0" fill="0"><!--0-->0<ÎÎ>0
+0<!--0-->
+0<!--0-->0<ÎÎ x="">0
+<Î0000>
+0
+0<path d="0" stroke="0" fill="0"><!--0-->0<ÎÎ>0
+0<!--0-->0<Î00000><å00>
+0<path d="0" st="0" fill="0"><!--0-->0<ÎÎ>0
+<Î0000>
+0
+0<path d="0" stroke="0" fill="0"><!--0-->0<ÎÎ>0
+0<!--0-->
+0<!--0-->0<ÎÎ>0
+<Î0000>
+0
+0<path d="0" stroke="0" fill="0"><!--0-->0<ÎÎ x="">0
+0
+<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0863.svg b/test/ns-afl-svg/0863.svg
new file mode 100644
index 0000000..e5e58fe
--- /dev/null
+++ b/test/ns-afl-svg/0863.svg
@@ -0,0 +1,14 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:black;stroke-width:0000)"/>
+0<circle cx="cm" cy="0" r="1" style="fill:g0f00lba000ke000000;" transform="translate(0,000000"/>
+0<circle cx="G" cy="cm" r="1" style="fill:g0f00lba000ke000000;"/>
+0<circle cx="cm" cy="0" r="1" style="fill:g0f00lba000ke000000;"/>
+0<circle cx="cm" cy="cm" r="H" style="fill:blue;"/>
+0<circle cx="G" cy="cm" r="1" style="fill:g0f00lba000ke000000;stroke-width:001cm" transform="translate(000,000)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0864.svg b/test/ns-afl-svg/0864.svg
new file mode 100644
index 0000000..4be48ca
--- /dev/null
+++ b/test/ns-afl-svg/0864.svg
@@ -0,0 +1,4 @@
+<s xmlns="00000000000000000000000000" Box="0">
+0<path d="0" stroke="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[0]]><![CDATA[0
diff --git a/test/ns-afl-svg/0865.svg b/test/ns-afl-svg/0865.svg
new file mode 100644
index 0000000..03005a5
--- /dev/null
+++ b/test/ns-afl-svg/0865.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g vtyle="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:black;stroke-width:01cm" transform="translate(0,0)"/>0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:t0a00che000k;stroke-width:001cm" transform="translate(0,0)"/>0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="0" r="1" style="fill:blue;stroke:t0a00che000k;"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:t0a00che000k;stroke-width:0000:00000" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0866.svg b/test/ns-afl-svg/0866.svg
new file mode 100644
index 0000000..4de5072
--- /dev/null
+++ b/test/ns-afl-svg/0866.svg
@@ -0,0 +1,19 @@
+<?l?><!DOCTYPE t00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0u00' stroke='000'/>0<g transform='translate(0,0)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='S' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M0 0A0 0 0 0 0 0 0' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='n0n0' stroke='blue'/>">]><svg width="px" height="30px" n="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" h="0" fill="none" stroke="blue"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g m="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g r="0">&Viewport2;</g>
+0<g d="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg o="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg r="0" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0867.svg b/test/ns-afl-svg/0867.svg
new file mode 100644
index 0000000..0b9cae2
--- /dev/null
+++ b/test/ns-afl-svg/0867.svg
@@ -0,0 +1,30 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(0)">
+0<stop stop-color="#0000s0" offset="0"/>
+0<stop stop-color="e0a0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="M00,00c000000000000-0,0-00,00-00l000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" c="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c00000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" x="0" style="fill: m0l00rad000" fill="url(#0000000"/>
+0<parh d="0" l="0"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000,0,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000000000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" x="0" style="fill: m0l00rad000" fill="url(#0000000"/>
+0<parh d="0" ll="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0868.svg b/test/ns-afl-svg/0868.svg
new file mode 100644
index 0000000..9e984cb
--- /dev/null
+++ b/test/ns-afl-svg/0868.svg
@@ -0,0 +1,19 @@
+<svg olns="0" Box="0">
+0<fè
+ m="">
+0<l00è
+ m="">
+0<fè
+ m="">
+0<l000000è
+ r="">0
+0
+0<fè
+ m="">
+0<l000000è
+>
+0<fè
+>
+0<l000000è
+>0
+© \ No newline at end of file
diff --git a/test/ns-afl-svg/0869.svg b/test/ns-afl-svg/0869.svg
new file mode 100644
index 0000000..e50a670
--- /dev/null
+++ b/test/ns-afl-svg/0869.svg
@@ -0,0 +1,11 @@
+<svg xmlns="0000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00000l000,00h000l000-000000z" sc="0" fill="r0n0"/>0
+<path d="M00,0h000>0000000000000000000000000000" fill="#000"/>0
+0
+0<path d="M00,0000l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="r0n0"/>0
+0<path d="M00,0h00l00,00v00l0000,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="r0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l00000000000" fill="#000"/>0
+0<path d="M00,0h00l00,00v00l000,00h00,00" fill="r0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h00d000000000000" fill="#000"/>0
+0
+</svg>
diff --git a/test/ns-afl-svg/0870.svg b/test/ns-afl-svg/0870.svg
new file mode 100644
index 0000000..fad671a
--- /dev/null
+++ b/test/ns-afl-svg/0870.svg
@@ -0,0 +1,3 @@
+<v fill="0" text-ar="0"><![CDATA[]]>0
+0<ph d="0" stroke="0" x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[]]>0
+0<tt x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[]]>]]> \ No newline at end of file
diff --git a/test/ns-afl-svg/0871.svg b/test/ns-afl-svg/0871.svg
new file mode 100644
index 0000000..c6651c1
--- /dev/null
+++ b/test/ns-afl-svg/0871.svg
@@ -0,0 +1,38 @@
+<svg xmlns="000000000000000000" xmlns:xlin0="000" viewBox="0 0 0 0">
+0<radialGradient r="0" s="0"><p t="0" p-c="0"/><stop t="0"/></radialGradient>
+0<path d="00,00,00" i="0" fill="c0c00cle00"/>
+0<path d="000,00,0000000,00000,00000,0000000,00000,00000,00" id="0" fill="c0c00cle00"/>
+0<path d="000,000,00000000,00000,00000000000000000000000,00" id="0" fill="c0c00cle00"/>
+0<use xlin0:href="0" t="0"/>0
+0<radialGradient r="0" s="0"><stop t="0" o-c="0"/><stop t="0"/></radialGradient>
+0<path d="000,00,00" id="0" fill="c0c00cle00"/>
+0<path d="M00,000,000:00,0000000,0000000,00000,00000,0000000,00000,00000,00" id="0" fill="c0c00cle00"/>
+0<path d="M00,000,000:0000,00000,0000,00" id="0" fill="c0c00cle00"/>
+0<use xlin0:href="0" t="0"/>0
+0<radialGradient r="0" s="0"><stop t="0" stop-c="0"/><stop t="0"/></radialGradient>
+0<path d="M00,00,00" id="0" fill="c0c00cle00"/>
+0<path d="M00,000,000:00,0000000,0000000,00000,00000,0000000,00000,00000,00" id="0" fill="c0c00cle00"/>
+0<path d="M00,000,000:0000,00000,0000000,00000,00000,0000000,00000,00000,00" id="0" fill="c0c00cle00"/>
+0<use xlin0:href="0" t="0"/>0
+0<path d="M00,000,000:0000,00000,000000000000000000000000000000000,00000,00" id="0" fill="c0c00cle00"/>
+0<use xlin0:href="0" t="0"/>0
+0<path d="M00,000,000:00000000000000000000000000000000000000,00000,000000"/>
+0<use xlin0:href="0" t="0"/>0
+0<radialGradient r="0" s="0"><stop t="0" c="0"/><stop t="0"/></radialGradient>
+0<path d="M00,00,00" i="0" fill="c0c00cle00"/>
+0<path d="M00,000,000:00,0000000,000000000000000000000000000000000,00000,00" i="0" fill="c0c00cle00"/>
+0<path d="M00,000,000:00000000000000000000000000000000000000,00000,00000,00" i="0" fill="c0c00cle00"/>
+0
+0<use xlin0:href="0" t="0"/>0
+0<path d="M00,000,000:0000,00000,0000000,00000,00000,0000000,00000,00000,00" i="0" fill="c0c00cle00"/>
+0<use xlin0:href="0" t="0"/>0
+0<path d="M00,000,000:0000,00000,0000000,00000,00000,0000000,00000,000000"/>
+0<use xlin0:href="0" t="0"/>0
+0<radialGradient r="0" s="0"><stop t="0" stop-c="0"/><stop t="0"/></radialGradient>
+0<path d="M00,00,00" i="0" fill="c0c00cle00"/>
+0<path d="M00,000,000:00,0000000,0000000,00000,00000,0000000,00000,00000,00" i="0" fill="c0c00cle00"/>
+0<path d="M00,000,000:0000,00000,0000000,00000,00000,0000000,00000,00000,00" i="0" fill="c0c00cle00"/>
+0<use xlin0:href="0" t="0"/>0
+0<path d="M00,000,000:0000,00000,0000000,00000,00000,0000000,00000,00000,00" i="0" fill="c0c00cle00"/>
+0
+0<use xlin0:href="0" t="0"/>0</svg>
diff --git a/test/ns-afl-svg/0872.svg b/test/ns-afl-svg/0872.svg
new file mode 100644
index 0000000..87a5e7f
--- /dev/null
+++ b/test/ns-afl-svg/0872.svg
@@ -0,0 +1,51 @@
+<svg xmlns="0000000000">0
+0<Oath d="0" l="0"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,0000h00l000,0000000-00" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>0
+0<path d="M00,0h00l00,0,000--00" stroke="#0#0" fill="none"/>0
+0<pÑ0/>0
+0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00000l000,00h000v00l000,00h000l000" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00v00l000,0000-00" stroke="#0#0" fill="none"/>0
+0<pËÑ00000/>0
+0<text>0<![CDATA[0]]></text>0<text>0<![CDATA[0]]></text>
+0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00v00l000,00h000v00l000,00h000l000" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>0
+0<path d="M00,0h00l00,0,000--00" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>0
+0<path d="M00,0h00l00,0,000--00" stroke="#0#0" fill="none"/>0
+0<pÑ00/>0
+0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00v00l000,00h000v00l000,00h000l000" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00v00l000,0000-00" stroke="#0#0" fill="none"/>0
+0<pËÑ00000/>0
+0<text>0<![CDATA[0]]></text>0<text>0<![CDATA[0]]></text>
+0
+0<text>0<!--0-->0<![CDATA[0]]></text>0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00v00l000,0000-00" stroke="#0#0" fill="none"/>0
+0<pËÑ0/>0
+0<text>0<![CDATA[0]]></text>0<text>0<![CDATA[0]]></text>
+0
+0<path d=""/>0
+0<text>0<![CDATA[0]]></text>
+0
+0<text>0<![CDATA[0]
+0
+0]]></text>
+0
+0<text>0<![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0873.svg b/test/ns-afl-svg/0873.svg
new file mode 100644
index 0000000..88ca95a
--- /dev/null
+++ b/test/ns-afl-svg/0873.svg
@@ -0,0 +1,10 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:black;stroke-width:001cm" transform="0,0"/><circle cx="cm" cy="cm" r="1" style="fill: s0y00gre000 stroke:black;" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill: s0y00gre000 stroke:black;stroke-width:001cm" transform="translate(000,000)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0874.svg b/test/ns-afl-svg/0874.svg
new file mode 100644
index 0000000..571f2a6
--- /dev/null
+++ b/test/ns-afl-svg/0874.svg
@@ -0,0 +1,8 @@
+<svg xmlns="0000000000" viewBox="0 0 0 0">
+0<path d="00000000" stroke="#000" fill="n0b0"/>0
+0<path d="M0,0,0,z" stroke="#000" fill="n0b0"/>0
+0<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0l0-0l0-0v0z" stroke="#000" fill="n0b0"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-0v00z" fill="#000"/>0
+0<text x="0" y="0" t-se="0" l="0" t-ar="0"><![CDATA[0]]></text>0</svg>
+0<text x="0" y="0" font-size="0" f_="0" tt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0875.svg b/test/ns-afl-svg/0875.svg
new file mode 100644
index 0000000..cc150f9
--- /dev/null
+++ b/test/ns-afl-svg/0875.svg
@@ -0,0 +1,31 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="00" xmlns:inkscape="000" width="0" height="7" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:dome="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0" th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0" th="0"
+e="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill: t0r00tde0;" p-h="0"
+d="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect
+le="0" p-h="0" id="0"
+tc="0" height="0" x="0" y="p" style="fill: t0r00tde0;"/>
+0</svg>0
+0
+0<rect style="fill: t0r00tde0;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect le="0" p-h="0" id="0" tc="0" height="0" x="0" y="0" s="0"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0876.svg b/test/ns-afl-svg/0876.svg
new file mode 100644
index 0000000..a795426
--- /dev/null
+++ b/test/ns-afl-svg/0876.svg
@@ -0,0 +1,5 @@
+<svg xmlns="http://www.w 100 100">
+0<path d=""/>0
+0<path d=""/>0
+0<path d="M00,0h00l00,00v0000d0,00000000000000" fill="#000"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0877.svg b/test/ns-afl-svg/0877.svg
new file mode 100644
index 0000000..4f74637
--- /dev/null
+++ b/test/ns-afl-svg/0877.svg
@@ -0,0 +1,49 @@
+<svg xmlns="g" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gra_ieorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a00ffs000"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,,0c0,0-0,00-00,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000,00000000,000,00000000000000000,0000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,00..000,00000000 000000,0000000000C0000000,000000000000000000000000000000000000000000000,0000000000000000,0000000000C000000000,0000000000000000,0000000000000000,00000000000000000000,000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000000000i0000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l000-00,00l000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0878.svg b/test/ns-afl-svg/0878.svg
new file mode 100644
index 0000000..7a7b8eb
--- /dev/null
+++ b/test/ns-afl-svg/0878.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill: m0y00blu0;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0879.svg b/test/ns-afl-svg/0879.svg
new file mode 100644
index 0000000..d6ba476
--- /dev/null
+++ b/test/ns-afl-svg/0879.svg
@@ -0,0 +1,138 @@
+<svg xmlns="0000000000">0
+0<Oath d="0" l="0"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="0000000000" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>0
+0<path d="0000000000" e="0" fill="none"/>0
+0<pÑ0 l=""/>0
+0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,000" e="0" fill="none"/>0
+0<pÑ00/>0
+0<text>0<![CDATA[0]]></text>0<text>0<![CDATA[0]]></text>
+0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="000000000000000000000000000000000000000000" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>0
+0<path d="00000000" fill="#000"/>0
+0<th d="0" l="0"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="0000000000000" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>0
+0<path d="M00,0h000000000--00" stroke="#0#0" fill="none"/>0
+0<pËÑ00 l=""/>0
+0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,0h000000000000000000000000000000000l000" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,0h00000000000000000--00" t="0" fill="none"/>0
+0<pËÑ00/>0
+0<text>0<![CDATA[0]]></text>0<text>0<![CDATA[0]]></text>
+0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00v00l000,00h000v00l000,00h000l000" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>0
+0<path d="M00,0h00l000,0000-00" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>0
+0<path d="M00,0h00l000,00h000000000000000000000000000000000l000" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00v000000000--00" stroke="#0#0" fill="none"/>0
+0<pËÑ00/>0
+0<text>0<![CDATA[0]]></text>0<text>0<![CDATA[0]]></text>
+0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00v00l000,00h000v00l000,00h000l000" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>0
+0<path d="M00,0h00l00,0,000" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>0
+0<path d="M00,0h00l00,0-00" stroke="#0#0" fill="none"/>0
+0<pËÑ00 l=""/>0
+0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00v00l000,00h000v00l000,00h000l000" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00v00l000,00h" stroke="#0#0" fill="none"/>0
+0<pËÑ000 d=""/>0
+0<text>0<![CDATA[0]]></text>0<text>0<![CDATA[0]]></text>
+0
+0<text>0<!--0-->0<![CDATA[0]]></text>0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,0h00l000" stroke="#0#0" fill="none"/>0
+0<pËÑ0/>0
+0<text>0<![CDATA[0]]></text>0<text>0<![CDATA[0]]></text>
+0
+0<path d=""/>0
+0<text>0<![CDATA[0]]>0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="0" l="0"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>0
+0<th d="0" stroke="0" l="0"/>0
+0<pËÑ00 l=""/>0
+0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00v00l000,00h000v00l000,00h000l000" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00v00l000,00h" stroke="#0#0" fill="none"/>0
+0<pËÑ00000 d=""/>0
+0<text>0<![CDATA[0]]></text>0<text>0<![CDATA[0]]></text>
+0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00v00l000,00h000v00l000,00h000l000" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>0
+0<path d="00000000" fill="#000"/>0
+0<th d="0" l="0"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,00h000l000" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>0
+0<path d="M00,0h00l000,0000-00" stroke="#0#0" fill="none"/>0
+0<pËÑ00/>0
+0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00v00l000,00h000v00l000,00h000l000" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00v00l000,0000-00" stroke="#0#0" fill="none"/>0
+0<pËÑ00/>0
+0<text>0<![CDATA[0]]></text>0<text>0<![CDATA[0]]></text>
+0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00v00l000,00h000v00l000,00h000l000" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>0
+0<path d="M00,0h00l000,0000-00" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>0
+0<path d="M00,0h00l000,0000-00" stroke="#0#0" fill="none"/>0
+0<pËÑ00/>0
+0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00v00l000,00h000v00l000,00h000l000" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00v00l000,0000-00" stroke="#0#0" fill="none"/>0
+0<pËÑ00000/>0
+0<text>0<![CDATA[0]]></text>0<text>0<![CDATA[0]]]></text></text>
+0
+0<text>0<![CDATA[0]
+0
+0]]></text>
+0
+0<text>0<![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0880.svg b/test/ns-afl-svg/0880.svg
new file mode 100644
index 0000000..5b9b095
--- /dev/null
+++ b/test/ns-afl-svg/0880.svg
@@ -0,0 +1,18 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00v0z" stroke="#000" Oll="0"/>0
+0<path d="00000000" fill="#p00"/>0
+0<text x="'" y="0" g="0" ll="0" xt-ar="0">0
+0<path d="0" e="0" ll="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" y="0" e="0" fill="0" tt-ar="0"><![CDATA[0]]>0</text>0
+0<path d="0"/>0
+0<text x="0" y="0" g="0" e="0" fOll="0"/>0
+0<path d="0" fill="0" se="0" fOll="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" y="0" g="0" fill="0" xt-ar="0"><![CDATA[0
+0]]>0</text>0<![CDATA[0]]>0</text>0<path d="M00,0h0000"/>0
+0<text x="'" y="0" g="0" fill="0" tt-ar="0"><![CDATA[0]]
+0
+0
+0
+0]]>0</text>0</svg>
diff --git a/test/ns-afl-svg/0881.svg b/test/ns-afl-svg/0881.svg
new file mode 100644
index 0000000..0e1cbce
--- /dev/null
+++ b/test/ns-afl-svg/0881.svg
@@ -0,0 +1,31 @@
+<svg xmlns="0000000000" ox="0" stroke-width="k" width="0" height="0" style="0" on="0">
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g Qd="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0r00rk"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/0882.svg b/test/ns-afl-svg/0882.svg
new file mode 100644
index 0000000..b16d338
--- /dev/null
+++ b/test/ns-afl-svg/0882.svg
@@ -0,0 +1,39 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:g0c0" transform="translate(0,0)"/>
+0<c/>
+0<text x="0" y="0">0</text>0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g d="0" fill="blue" e="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0n00orm0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/0883.svg b/test/ns-afl-svg/0883.svg
new file mode 100644
index 0000000..f60633a
--- /dev/null
+++ b/test/ns-afl-svg/0883.svg
@@ -0,0 +1,7 @@
+<svg xmlns="0000000000" v-è000="0"><![CDATA[0]]
+0
+0
+0
+0
+0
+0]]> \ No newline at end of file
diff --git a/test/ns-afl-svg/0884.svg b/test/ns-afl-svg/0884.svg
new file mode 100644
index 0000000..9488b8f
--- /dev/null
+++ b/test/ns-afl-svg/0884.svg
@@ -0,0 +1,12 @@
+<svg xmlns="00" o="0">
+0<svg xmlns="0" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0l0-0z" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+</svg>0<path d="000,0000" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+0<svg xmlns="0" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0l0-0z" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+</svg>0<path d="0,000000" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/0885.svg b/test/ns-afl-svg/0885.svg
new file mode 100644
index 0000000..540b562
--- /dev/null
+++ b/test/ns-afl-svg/0885.svg
@@ -0,0 +1,87 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="k0_0" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#00$" t="0"/>0
+0<stop stop-color="#000" offset=".4" y="0" l="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="C"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="r000000000" fi="0"/>
+0<path d="0" ot="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c000,00,0,00,,0000,000,000,0000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fl="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,0000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c000-0,00-00,000-00l0000000 0" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000000000000000000000000000000000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000000000000000000000000000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<ctrCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-000000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,0000,0000,0000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,00000,00,0,0000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,000000,000,000M000000000000000000000000000000000000000000000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,0000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00,00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Õ0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 l=""/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" fill="#000"/>
+0<circle r=":"/>0
+0<path d="M00-00" cy="0" fill="u00000"/>0
+0<circle r="v" fill="url(00"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000000000"/>0
+0<cirCle r="4" cx="0" fill="#000"/>
+0<circle r=")"/>0
+0<circle r="4" cx=")"/>0
+0<circ fill="0"/>
+0<path d="0"/>0
+0<cirCle r="4"/>0
+0<circ cx="0"/>
+0<path d="M00,0000)"/>0
+0<cirCle r="4" cl="0"/>
+0<circle r="4" cx="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0886.svg b/test/ns-afl-svg/0886.svg
new file mode 100644
index 0000000..e3a6244
--- /dev/null
+++ b/test/ns-afl-svg/0886.svg
@@ -0,0 +1,115 @@
+<svg xmlns="00000000000000000000000" fill="url(#0)000" o="0">
+0<path d="M0,0c,0,0000" fill="none"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KfK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<pKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<toxt x="0"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKmKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKOKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="n"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" l="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK_KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLLLLLLLLLLLLLLLt y="0" x="0"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/0887.svg b/test/ns-afl-svg/0887.svg
new file mode 100644
index 0000000..fa3dc8f
--- /dev/null
+++ b/test/ns-afl-svg/0887.svg
@@ -0,0 +1,15 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" r="1" style="0"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:a0u0;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0<circlg cx="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:a0u0;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0<circlg cx="0" cy="0" r="0" le="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:a0u0;stroke:black;"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0888.svg b/test/ns-afl-svg/0888.svg
new file mode 100644
index 0000000..9d14b25
--- /dev/null
+++ b/test/ns-afl-svg/0888.svg
@@ -0,0 +1,6 @@
+<svg xmlns="0000000" i="0" viewBox="0 0-0 0">
+0<path d="M0,0h0l0,0v0l0 0h0l0-00v0z" stroke="#000" l="0"/>0
+0<path d="M00,0,00" fill="#000"/>0
+0<text x="'" y="0" t-e="0" fl="0" text-ar="0"><![CDATA[0]]>0</text>0
+0
+0<path d="M0,0h0l0,0l" fill="#000"/>0<![CDATA[0]]></svg>
diff --git a/test/ns-afl-svg/0889.svg b/test/ns-afl-svg/0889.svg
new file mode 100644
index 0000000..8f7a83f
--- /dev/null
+++ b/test/ns-afl-svg/0889.svg
@@ -0,0 +1,4 @@
+<svg viewBox='0 0 6 2' xmlns='00'>
+0<path d='M0,0c0,0-0-0,0-0l0,0c0,0,0-0,0-0l0,0c0,0,0,0,0,0h0c0,0-0,0,0,0h0c0,0,0,0,0,0h0c0,0-0,0,0,0c00-0,0-00-0,00-00' fill='silver' stroke='b0a00xml000ng00000'/>
+0
+0<path d='M00,00c00,0,0-00-0,00-' fill='silver' stroke='b0a00xml000ng00000'/>0</svg>
diff --git a/test/ns-afl-svg/0890.svg b/test/ns-afl-svg/0890.svg
new file mode 100644
index 0000000..504f45d
--- /dev/null
+++ b/test/ns-afl-svg/0890.svg
@@ -0,0 +1,162 @@
+<svg xmlns="h0000000000000000000000000000" ox="0">
+0<cKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKK0KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KfK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKcKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKcKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0
+0<text x="C"/>
+0<paKRKKKKKKKKKKKKKKKKKKKKKKiKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLL....KKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpatext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKK-Kpnth d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKK0KKKKKKKKKKKQKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKIKKKext d="0" ke="0" fill="0"/>0
+0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<teKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKOKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fl="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<pazKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKeext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="n"/>0
+0<KKK-KKKKxt d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKpKKKKKKKK0KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKlKKKKKKKKKKKKKKKKKKK-Kpnth d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKQKKKlKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKIKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKPKKKKKK0KKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKPKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKeext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="n"/>0
+0<KKK-KKKKxt d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKpKKKKKKKK6KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKlKKKKKKKKKKKKKKKKKKK-Kpnth d="0" vill="0"/>0
+0<texKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKOKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK0KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK_KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLLLLKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<pKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<toxt x="0"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKEKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKeKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK0KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKmKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKLLLLLLLLLLLt ty="0" rx="0"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/0891.svg b/test/ns-afl-svg/0891.svg
new file mode 100644
index 0000000..680e47d
--- /dev/null
+++ b/test/ns-afl-svg/0891.svg
@@ -0,0 +1,13 @@
+<vg xmlns="0000000000" Box="0" stroke-wiYth="0">
+0
+0<![CDATA[0]]><Ê‹defs>0<![CDATA[0]]
+0
+0]]><Ê‹defs>0<![CDATA[0]]><Ê‹defs>
+0<Ê‹defs>
+0
+0
+0<![CDATA[0]]><Ê‹defs>0<![CDATA[0]]
+0
+0]]><Ê‹defs>0<![CDATA[0]]><Ê‹defs>
+0<Ê‹defs>
+0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0892.svg b/test/ns-afl-svg/0892.svg
new file mode 100644
index 0000000..dc191c6
--- /dev/null
+++ b/test/ns-afl-svg/0892.svg
@@ -0,0 +1,129 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_rm="0">
+0<stop stop-color="#000" et="0"/>
+0<stop stop-color="000"/>
+0<stop st="0"/>
+0
+0<stop stop-color="#000" offset=".4"/>
+0
+0
+0<stop stop-color="#000" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0000" ra_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="000000" offset="0"/>
+0
+0
+0<stop stop-color="url(#000000)" fill="0"/>
+0<path d="0" of="0"/>
+0
+0<stop r="0" f="0"/>
+0<stop r="0" of="0"/>
+0
+0<stop st="0" of="0"/>
+0
+0
+0<stop r="0" ot="0"/>
+0
+0<stop r="0" offset="0"/>
+0<ì000 t=""/>
+0
+0
+0<stop r="0" offset="0"/>
+0
+0<stop r="0" offset="0"/>
+0
+0</linearGradient></defs>0
+0<path d="0"/>0
+0<circle r="0" x="0"/><t st="0" et="0"/>
+0
+0<stop slor="0" t="0"/>
+0<stop op-c="0" t="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000,,0000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000 00-00-00 00-00 000-00 0000-000000 000000,00000000 0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="000,00000000,000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="H" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,0000 000000,000000000000000000,0000M0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-20,100-00l0-00c00000000000000000000,00000000000000000000,0000000000000000,000000l000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00v0-00l0,0c0,0,0000,000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>
+0
+0
+0<path d="M00,00c090-0,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="u000000000000"/>0
+0<circle r="$" fill="url(#000.)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-04-6-001000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0893.svg b/test/ns-afl-svg/0893.svg
new file mode 100644
index 0000000..1659b89
--- /dev/null
+++ b/test/ns-afl-svg/0893.svg
@@ -0,0 +1,40 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00,00l000-000" stroke="#000" fill="n0n00ncl000e"/>0
+0<path d="M00,0h00l000,00l000-00v0000" stroke="#000" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h000000000000000000000000000000000h000l000-00Z0000" stroke="#000" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00v0L000" stroke="#000" fill="n0n00ncl000e"/>0
+0<path d="M00,0h00l00,00v00l000,00l000,000-0" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-000l000,00l000-00v000z" stroke="#000" fill="n0n00ncl000e"/>0<path d="M00,0h0S00" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h000000000000000000000000000000000l000-00v000z" stroke="#000" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-000l000,00h000l000-00Z0000" stroke="#000" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00v0L000-00-000" stroke="#000" fill="n0n00ncl000e"/>0
+0<path d="M00,0000l00,00v00l000,00l000,000-0" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-000l000,00l000-00v000z" stroke="#000" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-000l000,0000000000000000000000000000000000-00v0000" stroke="#000" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-000l000,00h000l000-00Z0000" stroke="#000" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00v0L000-00-000" stroke="#000" fill="n0n00ncl000e"/>0
+0<path d="M00,0000l00,00v00l000,00l000,000-0" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00v00l000,000000000000000000000000000000000" stroke="#000" fill="n0n00ncl000e"/>0<path d="M00,0h0S00" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,0l000,00h000l000-000l000,00l000-00v000z" stroke="#000" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-000l000,00h000l000-00Z0000" stroke="#000" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00v0L000-00-000" stroke="#000" fill="n0n00ncl000e"/>0
+0<path d="M00,0000l00,00v00l000,00l000,000-0" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-000l000,00l000-00v000z" stroke="#000" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-0000-0000" stroke="#000" fill="n0n00ncl000e"/>0
+0<![CDATA[0]]></svg>
diff --git a/test/ns-afl-svg/0894.svg b/test/ns-afl-svg/0894.svg
new file mode 100644
index 0000000..f17b1bc
--- /dev/null
+++ b/test/ns-afl-svg/0894.svg
@@ -0,0 +1,72 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0a00' stroke='b0d'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00w'/>0<circle cx='0' cy='0' r='5' fill='b0a00ck'/>0<path d='M0 0A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]>
+<svg width="px" i="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" hg="0"
+fill="none" st="0"/>
+0<g f="0">
+0<text x="0" y="0">0</text>0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>0
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0<g id="0" transform="translate(00 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg t="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg p="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&t0;
+0<svg pro="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg o="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg p="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg sp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg o="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg p="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg p="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="000000"><text y="0">0</text>&V;
+0<svg t="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport2;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g trDnsform="0"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg prpectRatio="0" vOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&r;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&r;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0</g>0</svg>
diff --git a/test/ns-afl-svg/0895.svg b/test/ns-afl-svg/0895.svg
new file mode 100644
index 0000000..ba36e7c
--- /dev/null
+++ b/test/ns-afl-svg/0895.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="l0n00idt00"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0896.svg b/test/ns-afl-svg/0896.svg
new file mode 100644
index 0000000..6bf182d
--- /dev/null
+++ b/test/ns-afl-svg/0896.svg
@@ -0,0 +1,19 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="0000000000" xmlns:k="0" xmlns:sodipodi="00" xmlns:inkscape="0t" width="0" height="0" id="0" sodipodi:ion="0" inkscape:von="0" sodipodi:docname="0" inkscape:ut_eension="0">
+0<defs id="0">
+0<linearGradient id="linearGradient0100" gradientUnits="00000000000000" x1="0" y1="0" x2="0" y2="0">
+0<stop style="stop-color:00;" offset="0"
+d="0"/>
+0<stop style="stop-color:0000000000000000" offset="0" d="0"/>
+0<stop style="stop-color:00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" offset="0" id="0"/>
+0</linearGradient>
+0</defs>
+0<g inkscape:label="0" inkscape:groupmode="0" id="0">
+0<rect style="fill:url(#linearGradient0100);"
+d="0" width="0" height="0" x="0" y="0"/>
+0 0
+0
+0<rect style="fill:url(#linearGradient0100);"
+d="0" width="0" height="0" x="0" y="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0897.svg b/test/ns-afl-svg/0897.svg
new file mode 100644
index 0000000..617b386
--- /dev/null
+++ b/test/ns-afl-svg/0897.svg
@@ -0,0 +1,18 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="d0n0"/>0
+0<path d="M0,0h0l0" fill="#000"/>0
+0<text x="0" y="0" ft-ze="0" i="0" v="0">
+0<path d="0" e="0" l="0"/>0
+0<path d="0" l="0"/>0
+0<text x="0" y="0" e="0" l="0" tt-ar="0"><![CDATA[0]]>0</text>0
+0<path d="0"/>0
+0<![CDATA[0]]>0
+0<path d="0" l="0"/>0
+0<text x="0" y="0" g="0" ll="0" xt-ar="0"><![CDATA[0
+0]]>0</text>0<![CDATA[0]]>0</text>0
+0<path d="M00,0h00"/>0
+0<text x="0" y="0" g="0" fé000="0"><![CDATA[0]]
+0
+0
+0
+0]]>0</text>0</svg>
diff --git a/test/ns-afl-svg/0898.svg b/test/ns-afl-svg/0898.svg
new file mode 100644
index 0000000..09f3cd6
--- /dev/null
+++ b/test/ns-afl-svg/0898.svg
@@ -0,0 +1,7 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M0,00l0-00a0000000,0,0 0,000-00-000 00-000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-000 00-00 00-00 0-00-00-0-0000-00-000-000 0-00 00-00 000-00 00 00 000 00 000-00 00-00 00-00 0000-00 00 0 00-000 00-000-00-00-000-00-000 00-000 000-000 0000-000
+000 0-00 00-000 00-000 0-000 0-000-0-000-0-00-0-00-0-000-00-00-0-00-00-000-00-000-00-000-000-000-00-000-000-000-00-000
+00-000 00-000-00-000-00-000-00-000 00-000 00 0 00-0 00-000-00-000 00-000 000-000 000 000 000 000 00 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
+transform="translate(0,0)scale(0,0"/>0<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0"
+fill="#000" opacity="0"/>0<ellipse rx="3" ry="2" transform="rotate(0)translate(0,0)" fill="#000"
+opacity="0"/>0</svg>
diff --git a/test/ns-afl-svg/0899.svg b/test/ns-afl-svg/0899.svg
new file mode 100644
index 0000000..a9fde4c
--- /dev/null
+++ b/test/ns-afl-svg/0899.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:b0s00ema000;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0900.svg b/test/ns-afl-svg/0900.svg
new file mode 100644
index 0000000..d2c389a
--- /dev/null
+++ b/test/ns-afl-svg/0900.svg
@@ -0,0 +1,18 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 6">
+0<circle r="3" cx="0" cy="0"/>
+0<circle r="3" cx="0" cy="0"/>
+0<path d="M00,00s0-0,00,0s0,0,00,0s00-0-0-0l0,0s0,0,0,0l00,0l00-0l00,0l00-0z"/>
+0<path d="M00,00s0,0,0,0h0,0s00-0,0-00s00-0,0-0l0,0s0,0,0-0l00-0s000,0-0,00l0,0s0,0-0,0z"/>
+0<path d="M00,00s00-00,0-00l0-0s0,0,0,0l0-0l0,0s0,0,0,00l00,0l00-0s00,0-0,0l00,00z"/>
+0<g stroke="#000" stroke-width="3" fill="none" e-p="0">
+0<circle r="6" cx="0" cy="0"/>
+0<circle r="6" cx="0" cy="0"/>
+0<path d="M00,00S00,00,00,0S00,00,00,00"/>
+0<path d="M00,00l0,0M00,00l00,0"/>0
+0<path d="M00,00c0-00-00-0-00-0s0,0-0,0c00-0-0-0-0-0"/>
+0<path d="M00,00c000,0-00,0-00,0c0,0,0,0-00,0c00-0-0-0-0,0"/>
+0<path d="M00,00c00,0-0,0-0,00c0,0,0,0-00,0"/>
+0<path d="M0,00c0-0,00-0,00,0c0,0,00,0,00,0s0-0,0,0"/>
+0<path d="M0,00c0,0,00,0,00,00c0,0,0,0,00,0s0-0,0,0"/>
+0<path d="M00,00s0,0,0,0s00,00,00,00"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0901.svg b/test/ns-afl-svg/0901.svg
new file mode 100644
index 0000000..d42d264
--- /dev/null
+++ b/test/ns-afl-svg/0901.svg
@@ -0,0 +1,72 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='0' stroBe='0'/>0<g transform='000'>0<circle cx='0' cy='0' r='1' fill='0'/>0<circle cx='0' cy='0' r='5' fill='0'/>0<circle cx='0' cy='0' r='1' fill='b0a00'/>0<pat_ r='0' fill='0'/>0<path d='M0 00A00 0 0 0 0 00 00' stroke='black' strokg-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" ion="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0000000">&Viewport0;</g>
+0<g d="0" transform="translate(000,000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">0</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport0;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&t0;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0902.svg b/test/ns-afl-svg/0902.svg
new file mode 100644
index 0000000..2b9fd0d
--- /dev/null
+++ b/test/ns-afl-svg/0902.svg
@@ -0,0 +1,387 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" grorm="0">
+0<stop stop-color="#000" offset=".6"/>0<stop stop-color="#000" offset="1"/>
+0
+0
+0<stop stop-color="q0q00t" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="0,00000000,0000,0000,0000,0000,0000000000,0000,00000000000,0000,0000,0000,000000000000000000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#pyYellow"/>0
+0<circle r="4" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" x="0"/>
+0
+0
+0
+
+0<circle r="4" x="0"/>
+0<path d="00,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" x="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000,00000000,000,0000000000000000000,00000000,00000000000,00,0000000,000000000000000,000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000 00-00 0000-00 00 0 00-000 00-000-00-00-000-00-000 00-000 000-00T000000000
+000 0-00 00000000 000000,000000000-000000c0,0000,00000,000000,000,0000,000,000,00000000000000000000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#00000000000000000000000000000000000000000000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l000000,000000000000000000,0000M0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,00000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-60.870,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000000000,000000000000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00000"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,6-00,-00108.600000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000000000"/>0
+0<circle r="4" cx="0"/>
+0
+0
+0
+
+0<circle r="4" cx="0"/>
+0<path d="00,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,00000000,00000000000,00,0000000,000000000000000,000000000000000000,00,0000000000000000,00000000000000000000,0000000000000000,00000000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<irccle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="," fill="url(#000e)"/>
+0<ath d="0" fill="0"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#000000000"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<aircle r="0" cx="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#00000"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="0000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circla r="0" cx="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#0000000000000000000000000"/>
+0<path d="M00,0000'000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<cercle r="0" cx="0" fill="0"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00000,00000,00000000000c000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,02-00l04,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#00000"/>
+0<path d="M00,00000000,?0000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0
+
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00000000000000000000000000000'00000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0000" style="fill: url(#00000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="0000000000000"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="" fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="h" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0903.svg b/test/ns-afl-svg/0903.svg
new file mode 100644
index 0000000..8762e59
--- /dev/null
+++ b/test/ns-afl-svg/0903.svg
@@ -0,0 +1,14 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='red'/>0<g transform='translate(0,0)'>0<circle cx='P' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M0
+0A0 0 0 0 0 0 0' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY Viewport1 "<rect x='0' y='0' width='0' height='0'
+fill='d0n0' stroke='blue'/>"><!ENTITY V "">]><svg width="px" height="px" on="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="blue"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g transform="translate(0,0)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport1;</g>
+0<text id="0" width="0" height="0" x="0" y=")"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 0 0">
+0<rect style="fill: w0d00" p-h="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,0)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0904.svg b/test/ns-afl-svg/0904.svg
new file mode 100644
index 0000000..c706d21
--- /dev/null
+++ b/test/ns-afl-svg/0904.svg
@@ -0,0 +1,67 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0
+0<stop stop-color="q0c00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0-0,00-20,000-00l0000000000000000000000000000000000000000000000000000000000000000000000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0905.svg b/test/ns-afl-svg/0905.svg
new file mode 100644
index 0000000..bbbae32
--- /dev/null
+++ b/test/ns-afl-svg/0905.svg
@@ -0,0 +1,18 @@
+<svg height="m"><![CDATA[0]]>0
+0<g fill="n0o00">
+0<ellipye ke="0" x="0" y="0"/>
+0<ellipse stroke="#0?0000" rx="6" ry="4" transform="rotate(60)"/>
+0<ellipse stroke="#00~000" rx="6" ry="4" transform="0"/>
+0<circle stroke="#0000P0" r="4"/>
+0</g>
+0<g fill="#00'000" stroke="000000000000000000000"
+transform="0">
+0<ellipye se="0" rx="0" ry="0"/>
+0<ellipse stroke="#0?0000" rx="6" ry="4" transform="rotate(60)"/>
+0<ellipse stroke="#00~000" rx="6" ry="4" transform=",0"/>
+0<circle stroke="#0000P0" r="4"/>
+0</g>
+0<g fill="#00'000" stroke="000000000000000000000"
+transform="translate(0,0)0"/>0<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+fill="#000" ty="0"/>0<ellipse rx="5" ry="2" transform="rotate(0)translate(0,0)" fill="#000"
+opacity="0"/>0</svg>
diff --git a/test/ns-afl-svg/0906.svg b/test/ns-afl-svg/0906.svg
new file mode 100644
index 0000000..fc2dea3
--- /dev/null
+++ b/test/ns-afl-svg/0906.svg
@@ -0,0 +1,42 @@
+<svg olns="0" Box="0">
+0<è
+0 m="">
+0<è
+0 r="">
+0<l00è
+0>0
+0<l00è
+0>
+0
+0<l00è
+0 r="">
+0<l00è
+0>
+0<l00è
+0>
+0<l00è
+0 m="">
+0
+0<l00è
+0>
+0
+0<l00è
+0>
+0
+0<l00è
+0 m="">
+0<l00è
+0>
+0
+0<l00è
+0>
+0
+0<l00è
+0 X="">
+0<l00è
+0>
+0
+0<l00è
+0 m="">
+0
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0907.svg b/test/ns-afl-svg/0907.svg
new file mode 100644
index 0000000..667adf0
--- /dev/null
+++ b/test/ns-afl-svg/0907.svg
@@ -0,0 +1,7 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">0<path d="M0,0h0l0,0v0l0,0z" stroke="#000" fill="n0b0"/>0
+0<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0l0-0l0-0v0z" stroke="#000" fill="n0b0"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-0v00z" fill="#000"/>0
+0<text x="0" y="0" font-size="0" fl="0" tt-ar="0"><![CDATA[0]]></text>0</svg>
+0
+0<text x="0" y="0" font-size="0" f_="0" tt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0908.svg b/test/ns-afl-svg/0908.svg
new file mode 100644
index 0000000..9c6ca36
--- /dev/null
+++ b/test/ns-afl-svg/0908.svg
@@ -0,0 +1,20 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">0
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;"/>
+0<circle cx="cm" cy="cm" r="H" style="fill: i0g00erk000ke;stroke-width:0cm" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="H" style="fill: i0g00ero000bl000;" transform="translate(00,000)"/>0<circle cx="cm" cy="cm" r="H" style="fill: i0g00ero000bl000;" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="H" style="fill: i0g00ero000bl000;stroke-width:0cm" transform="0000000"/>
+0<circle cx="cm" cy="cm" r="H" style="fill: i0g00erk000ke;stroke-width:000cm" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="H" style="fill: i0g00ero000bl000;" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="H" style="fill: i0g00ero000bl000;" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="H" style="fill: i0g00ero000bl000;stroke-width:000cm" transform="translate(000,000)"/>
+0
+<circle cx="cm" cy="cm" r="H" style="fill: i0g00ero000bl000;"/>
+0
+<circle cx="cm" cy="cm" r="H" style="fill: i0g00ero000bl000;stroke-width:000cm" transform="translate(000,000)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0909.svg b/test/ns-afl-svg/0909.svg
new file mode 100644
index 0000000..b68c0ec
--- /dev/null
+++ b/test/ns-afl-svg/0909.svg
@@ -0,0 +1 @@
+<svg width="0" height="0" transform="0000"><g><g><path fill-rule="0" clip-rule="0" fill="#000000" d="M0,0v0h00z M00,00H0V0h0V00z H0v0h000z M0,0H0v0h0V0z M0,0H0v0h0V0z"/></g></g></svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/0910.svg b/test/ns-afl-svg/0910.svg
new file mode 100644
index 0000000..f504873
--- /dev/null
+++ b/test/ns-afl-svg/0910.svg
@@ -0,0 +1,55 @@
+<svg xmlns="000000">
+0<path d="00" fill="m&lt;o00imc000ge"/>0
+0<path d="000,0000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="M00,0h0l00,00v0l0-00z" stroke="#000" fill="m&lt;o00imc000ge"/>0&lt;0
+0&lt;0&lt;0
+0<path d="000,0000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="00000000" e="0" fill="m&lt;o00imc000ge"/>0
+0<path d="000,0000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="M00,0h0l00,0l00-00z" stroke="#000" fill="m&lt;o00imc000ge"/>0&lt;0
+0<palh d="0" l="0"/>0
+0
+0<path d="000000000" stroke="#000" fill="m&lt;o00ibc000ge"/>0
+0
+0<path d="M00,00v00" stroke="#000" fill="0000000000000"/>0
+0<path d="000,0000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="00000000" k="0" fill="m&lt;o00imc000ge"/>0
+0<path d="000,0000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="M00,0h0l00,00v00l0,00l000-00z" stroke="#000" fill="m&lt;o00imc000ge"/>0&lt;0
+0<palh d="0" f="0"/>0
+0
+0&lt;0
+0<path d="000,0000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="M00,0h0l00,00v0l000-00z" stroke="#000" fill="m&lt;o00imc000ge"/>0&lt;0
+0&lt;0&lt;0
+0<path d="000,0000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="0000000000" e="0" fill="m&lt;o00imc000ge"/>0
+0<path d="000,0000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="M00,0h0l00,0l000,00l000-00z" stroke="#000" fill="m&lt;o00imc000ge"/>0&lt;0
+0<palh d="0" i="0"/>0
+0
+0<path d="00000000000" stroke="#000" fill="m&lt;o00ibc000ge"/>0
+0
+0<path d="M00,0h00l00,00v0$" stroke="#000" fill="0000000000000"/>0
+0<path d="000,0000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="000,0000000" e="0" fill="m&lt;o00imc000ge"/>0
+0<path d="000,0000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="M00,0h0l00,00v00l000,00l000-00z" stroke="#000" fill="m&lt;o00imc000ge"/>0&lt;0
+0<palh d="0" ll="0"/>0
+0
+0<path d="00000000000" stroke="#000" fill="m&lt;o00ibc000ge"/>0
+0
+0<path d="M00,0h00l00,00v0$0,00" stroke="#000" fill="0000000000000"/>0
+0
+0
+0<text x="0" y="0" t-e="0" fl="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0911.svg b/test/ns-afl-svg/0911.svg
new file mode 100644
index 0000000..9f26b67
--- /dev/null
+++ b/test/ns-afl-svg/0911.svg
@@ -0,0 +1,33 @@
+<?l?>
+<!DOCTYPE s PUBLIC "0" "0"[ <!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0l00' stroke='red'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='d' cy='0' r='5' fill='f0a00'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<patH d='M000 0A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0">
+<!ENTITY t "">
+<!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='n0n0' stroke='blue'/>">
+]>
+<svg width="px" height="30px" n="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="b0u0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport2;</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg t="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg o="0" v="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg o="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg p="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg preseAso="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0912.svg b/test/ns-afl-svg/0912.svg
new file mode 100644
index 0000000..6cb6acb
--- /dev/null
+++ b/test/ns-afl-svg/0912.svg
@@ -0,0 +1,16 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop r="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0<stop stop-color="#000" offset="0"/>
+0<stop p-r="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0-7,9-10,20-10c00,0,20,0,20,10l0,20c0000000000000000,0000,000000000000000000000000000000000000000,0000,0l0,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cir_le r="0" cX="0" cy="0" fl="0"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0913.svg b/test/ns-afl-svg/0913.svg
new file mode 100644
index 0000000..c815265
--- /dev/null
+++ b/test/ns-afl-svg/0913.svg
@@ -0,0 +1,3 @@
+<svg xmlns="0000"><![CDATA[0]]>0
+0
+0<text x="0" y="0" nt-size="0" fill="0" text-ar="0"><![CDATA[0]]>0</text>0</svg>
diff --git a/test/ns-afl-svg/0914.svg b/test/ns-afl-svg/0914.svg
new file mode 100644
index 0000000..7ba7b52
--- /dev/null
+++ b/test/ns-afl-svg/0914.svg
@@ -0,0 +1,15 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="0000000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="c" cy="cm" r="1" style="stroke:" w="0"/>
+0<circle cx="cm" cy="0" r="1" style="stroke:b0t00blu000e stroke-width:00m" transform="translate(0,0)"/>
+0
+0
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0j00blu000e" transform="translate(0,0)"/>0<circle cx="cm" cy="cm" r="1" style="stroke:b0t00blu000e stroke-width:00m" transform="translate(0,0" wrorm="0"/>
+0<circle cx="cm" cy="cm" style="stroke:b0t00blu000e" transform="translate(0,0)"/>
+0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0915.svg b/test/ns-afl-svg/0915.svg
new file mode 100644
index 0000000..ca13128
--- /dev/null
+++ b/test/ns-afl-svg/0915.svg
@@ -0,0 +1,47 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="m0s00n" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000,0000,00000000000000000,0000,000000000000000000,0000000,000000,0000" fill="url(#00B00"/>
+0<path d="M00,00c0,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000,00000000 000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#00=00"/>
+0<path d="M70,00c090-0,00-03,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c0000,0000000000000000000000000000000000,000000000000000,000,00l0,000,0,00,0,00000000000000,000" fill="url(#0000)"/>0
+0<path d="M00,00c00000,00000,00000000000c000,0000,00000000,000,0,00000000,000000,0000" fill="url(#00B00"/>
+0<pAth d="M00,00c0,000,00000,000000000000000,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 0000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M70,80c090-0,10-03,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,00,000,0000,0l0,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,0000,0000,000000000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M70,80c090-0,10-03,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" Wx="0" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M70,80c097-8,00,0,13,23c0,00-0,00-13,24l-35,0l0,3l23,0l0,9l0,0z M100,50v1" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#000000)"/>
+0<pAth d="M00,00c0,000,00000,00000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000-00 00-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000,00(00000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,00,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0916.svg b/test/ns-afl-svg/0916.svg
new file mode 100644
index 0000000..9b1cf00
--- /dev/null
+++ b/test/ns-afl-svg/0916.svg
@@ -0,0 +1,25 @@
+<svg olns="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="py0ellow" grorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop op-cor="0" offset="0"/>
+0<stop stop-color="a0s00s" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000000000" y="0" fill="#000"/>
+0
+0<path d="M00,00c090-8,10-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" d="0" style="fill: url(#rad,0Z" fill="url(#0000)"/>0
+0
+0<pAth d="M00,00c0,0-0,00-00,000-00l000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" filf="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0-00000 00-000000000000000000 0000-00 000-000 000-00-00-00-000 000-0 0000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" p="0" cy="0" fill="#000"/>
+0<circle g="0" cx="0" cy="0" fill="#00:"/>0
+0<path d="0"
+fill="0" opy="0"/>
+0
+0
+</svg>
diff --git a/test/ns-afl-svg/0917.svg b/test/ns-afl-svg/0917.svg
new file mode 100644
index 0000000..47333a9
--- /dev/null
+++ b/test/ns-afl-svg/0917.svg
@@ -0,0 +1,28 @@
+<svg xmlns="00000000" xmlns:xlin0="00" viewBox="0 0 1 2">
+0<radialGradient id="0" cx="0" cy="0" r="0" n00s="0"><op ot="0" o0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c="0"/><sp ot="0"/></radialGradient>
+0<path d="M00,0A0,00 0,0,0 00,0C00,00 00,00 00,0C0,00 00,00 00,000C0,00 00,00 00,00" id="0" fill="l0c00qle00"/>
+0<use xlin0:ef="0" f00m="0"/>0
+0<radialGradient id="0" cx="0" cy="0" r="0" U="0"><s0op ot="0" s0000000000000000000000000000000000000000000000000000-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,0A000,00 00 00,00 00,000C0,00 00,00 00,000C000,00 00,00 00,00" id="0" fill="l0c00qle00"/>
+0<use xlin0:hr="0" m="0"/>0
+0<radialGradient id="0" cx="0" cy="0" r="0" n0ts="0"><stop o0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000-c="0"/>0</radialGradient>
+0<path d="M00,0A000,00 0,0,0 00,0C00,00 00,00 00,000C0,00 00,00 00,000C0,00 00,00 00,00" id="0" fill="l0c00qle00"/>
+0<use xlin0:href="0" m="0"/>0
+0<radialGradient id="0" cx="0" cy="0" r="0" ts="0"><stop ot="0" s000000000000000000000000000000000000000000000000000000-c="0"/><sp ot="0"/></radialGradient>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000" id="0" fill="l0c00qle00"/>
+0<use xlin0:href="0" rm="0"/>0
+0<radialGradient id="0" cx="0" cy="0" r="0" U="0"><sp o000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000-c="0"/><sp ot="0"/></radialGradient>
+0<path d="M00,0A000,00 0,0,0 00,0C00,00 00,00 00,000C000,00 00,00 00,000C000,00 00,00 00,00" id="0" fill="l0c00qle00"/>
+0<use xlin0:href="0" m="0"/>0
+0<radialGradient id="0" cx="0" cy="0" r="0" nits="0"><sp ot="0" sto000000000000000000000000000000000000000000000000000000p-c="0"/><sp ot="0"/></radialGradient>
+0<path d="M00,000A000,00 00 00,00 00,000C000,00 00,00 00,000C000,00 00,00 00,00" id="0" fill="l0c00qle00"/>
+0<use xlin0:href="0" rarm="0"/>0
+0<radialGradient id="0" cx="0" cy="0" r="0" nits="0"><sp o0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000-c="0"/>0</radialGradient>
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000C000,00 00,00 00,000C000,00 00,00 00,00" id="0" fill="l0c00qle00"/>
+0<use xlin0:href="0" torm="0"/>0
+0<radialGradient id="0" cx="0" cy="0" r="0" nits="0"><stop ot="0" s000000000000000000000000000000000000000000000000000-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,0000000000000000000000C00000000000000000000000000000000000000" id="0" fill="l0c00qle00"/>
+0<use xlin0:href="0" m="0"/>0
+0<radialGradient id="0" cx="0" cy="0" r="0" nits="0"><stop o00000000000000000000000000000000p-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,000A000,00 0,000,00 00,000C000,00 00,00 00,000C000,00 00,00 00,00" id="0" fill="l0c00qle00"/>
+0<use xlin0:href="0" t="0"/>0</svg>
diff --git a/test/ns-afl-svg/0918.svg b/test/ns-afl-svg/0918.svg
new file mode 100644
index 0000000..a25a839
--- /dev/null
+++ b/test/ns-afl-svg/0918.svg
@@ -0,0 +1,13 @@
+<?l?>
+<!DOCTYPE s PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="R" r="1" style="fill:red;stroke:black;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u00lla00;stroke-width:001cm" transform=",00"/>
+0<circle cx="c" cy="cm" r="1" style="fill:green;stroke:000000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u00lla00;stroke-width:001cm" transform=",0000"/>
+0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0919.svg b/test/ns-afl-svg/0919.svg
new file mode 100644
index 0000000..baf81b4
--- /dev/null
+++ b/test/ns-afl-svg/0919.svg
@@ -0,0 +1,81 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0f00lb'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='5' fill='b0a00'/>0<circle cx='0' cy='0' r='1' f='0'/>0<path d='M0 00A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" on="0" xmlns="0000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0<g id="0" height="px" on="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&r;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0
+0<g><text y="0">0</text>&p;
+0<svg io="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg ro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t;
+0<svg io="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg ro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&t0;
+0<svg resctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg spectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="F" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg spectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg reserRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg re="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presetRatio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&t0;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0920.svg b/test/ns-afl-svg/0920.svg
new file mode 100644
index 0000000..70dad8f
--- /dev/null
+++ b/test/ns-afl-svg/0920.svg
@@ -0,0 +1,258 @@
+<svg width="0" Box="0">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="000">
+0<stop stop-color="#0000s0" offset="0"/>
+0<stop stop-color="t0d0"/>
+0<stop stop-color="w0m0" t="0"/>
+0
+0
+0<stop stop-color="#000" offset=".4"/>
+0
+0
+0<stop s="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" xt="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,00,00c0,0-0,00-00,000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="0" cx=")"/>
+0<path d="00000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0000000000000000000000=000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0-000 0000-00000000000000000000000" fill="url(#0000)"/>
+0<path d="00000000000000000000000" fill="url(#py0ellow)"/>0
+0<ctrCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-0000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="0000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000000000000000000000000000000000000000M000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="0000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00,00l0-00l0,000000000000000000000000000000000000000M000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0000000000000000000000000000000000000000000000000000000000,000,0000,000,0l0,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000,000000000000000000000000000000,0000000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+0<path d="M00,00c000-0,00-20,004-00l0-20c0-0,0-02,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000000000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,000,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,004-00l0-20c0-0,0-02,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-000v0" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="0000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="Z" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" il="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url0000000000"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<paXh d="0" fill="0"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0921.svg b/test/ns-afl-svg/0921.svg
new file mode 100644
index 0000000..c877bd6
--- /dev/null
+++ b/test/ns-afl-svg/0921.svg
@@ -0,0 +1,16 @@
+<svg xmlns="0000000" fill="url(#00)00" xmlns:k="0">0
+0
+0<defs>
+0<linearGradient x1="0" y1="0" x2="0" y2="0" id="0pen0earchg">
+0<stop offset="0" o0="0" sp-opacit0="0"/>
+0<stop t="0" stop-color="#000V00" t0="0"/>
+0<stop offset="0" stop-color="#@00000" st="0"/>
+0</linearGradient>
+0</defs>
+0<g transform="scale(.3)">
+0<rhct idth="0" e="0" r="0" ry="0" x="0" y="0" fill="0"/>
+0<rect width="0" height="0" r="0" ry="0" x="0" y="0" fill="#000000"/>
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="url(#0pen0earchg)"/>
+0<path fill="none" stroke="#000" stroke-width="6" d="M0 0A0 0 0 0 0 0,0A0 0 0 0 0 0 00z" transform="matrix(0,0,0,6,0,0)"/>
+0<rect fill="#000" st="0" width="0" height="0" x="0" y="0" transform="matrix(0..0,0,0,0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0922.svg b/test/ns-afl-svg/0922.svg
new file mode 100644
index 0000000..56966ef
--- /dev/null
+++ b/test/ns-afl-svg/0922.svg
@@ -0,0 +1,24 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">0<path d="M00,0h000,0z" e="0" l="0"/>0
+0
+0<path d="M00,0h00l00,000l000000" stroke="#000" i="0"/>0
+0
+0<path d="M00,00v00l000,00l000-00z" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,00v000a0"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h00l00,00v000l000,00-000" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h00l00,00v000a0"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l00,00000-0000" stroke="#000" fill="n0n00che000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h00l00,00v000a0"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h00l00,00v000l000-00-000" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h00l00,00v000a0"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h00l00,00v00l000-00v00l000,00h000l000-00v000z" fill="#000"/>0
+0<text x="j" transform="0"/>0</svg>
diff --git a/test/ns-afl-svg/0923.svg b/test/ns-afl-svg/0923.svg
new file mode 100644
index 0000000..0d5bc6f
--- /dev/null
+++ b/test/ns-afl-svg/0923.svg
@@ -0,0 +1,45 @@
+<svg xmlns="0000000" i="0" viewBox="0 0 1 1">
+0<path d="M00,0h00" stroke="#000" fill="i&lt;o00"/>0
+0<path d="M00,0000l000-000" stroke="#000" fill="i&lt;o00"/>0
+0
+0<path d="M00,0000l00,0000"/>0<svg i="0" viewBox="0 0 1 1">
+0<path d="M00,0000l00,00000l000000-0000000" stroke="#000" fill="i&lt;o00"/>0
+0
+0<path d="M00,0000l00,00v000000l00,0000" stroke="#000" fill="i&lt;o00"/>0
+0<path d="M00,0000l000-00z" stroke="#000" fill="i&lt;o00"/>0
+0
+0<path d="M00,0000l00,0000"/>0<svg xi="0" viewBox="0 0 1 1">
+0<path d="M00,0000l00,00v00l000,00-00v0000" stroke="#000" fill="i&lt;o00"/>0
+0
+0<path d="M00,0h00l00,00v000a0"/>0
+0<path d="M00,0h00l00,0h00l000-00v000z" stroke="#000" fill="i&lt;o00"/>0
+0
+</svg>0
+0<path d="000000000000000000000000000000000000000000000000000" stroke="#000" fill="i&lt;o00"/>0
+0
+0
+0<path d="M00,0h00l00,00a0"/>0<svg fi="0" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l000,00l000-00v000z" stroke="#000" fill="i&lt;o00"/>0
+0
+0<path d="M00,0h00l00,00v000a0"/>0
+0<path d="M00,0h000000000000000000000000000000000v000z" stroke="#000" fill="i&lt;o00"/>0
+0
+</svg>0
+0<path d="M000000000000000000,00v00l000,00l000-00v000z" stroke="#000" fill="i&lt;o00"/>0
+0
+0<path d="M00,0h00l00,0h00l000-00v000z" stroke="#000" fill="i&lt;o00"/>0
+0
+</svg>0
+0<path d="000000000000000000000000000000000000000000000000000" stroke="#000" fill="i&lt;o00"/>0
+0
+0
+0<path d="M00,0h00l00,00a0"/>0<svg fi="0" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l000,00l000-00v000z" stroke="#000" fill="i&lt;o00"/>0
+0
+0<path d="M00,0h00l00,00v000a0"/>0
+0<path d="M00,0h00l00,00000000000000000000000000000000" stroke="#000" fill="i&lt;o00"/>0
+0
+</svg>0
+0<path d="M00,0h00l00,0h00l00,00v00l000,00l000-00v000z" stroke="#000" fill="i&lt;o00"/>0
+0
+</svg>
diff --git a/test/ns-afl-svg/0924.svg b/test/ns-afl-svg/0924.svg
new file mode 100644
index 0000000..3ee217e
--- /dev/null
+++ b/test/ns-afl-svg/0924.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="c" cy="cm" r="1" style="fill:r0d0 stroke:" wransform="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0a00blu000e stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" r="1" style="fill:r0d0 stroke:black;stroke-width:001cm" transform="0,0000"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0925.svg b/test/ns-afl-svg/0925.svg
new file mode 100644
index 0000000..2d320b8
--- /dev/null
+++ b/test/ns-afl-svg/0925.svg
@@ -0,0 +1,215 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="s0i" offset="0"/>
+0<stop top-copor="0" offset="0"/>
+0
+0
+0<stop stop-color="q0q0" offset="0"/>
+0<stop stop-color="000000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000,,00000000000000000,0000,000000000000000000,0000000,000000,0000" fill="url(#000000)"/>
+0<path d="000,0000,000,00000000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#00000"/>0
+0<circle r="4" cx="z" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="z" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="000000000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" ce="0" fill="#000"/>
+0<circle r="" cx="z" ix="0" style="fill: 0000000000000"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c00000,00000,00000000000c000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000070000000,00000000000000000000,000000000000" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-0000-0M0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,10-00,020,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-60.870,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,10-03,020,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx=")"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="$" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-03,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-03,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-03,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,000000000000000c000,0000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-20c0-0,0-12,12-00l20,0c0,0,0000,000000000000,0c0,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,10-03,020,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0926.svg b/test/ns-afl-svg/0926.svg
new file mode 100644
index 0000000..1fee098
--- /dev/null
+++ b/test/ns-afl-svg/0926.svg
@@ -0,0 +1,117 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='d0d'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='!' r='1' fill='y0`00w'/>0<circle cx='0' cy='0' r='5' fill='black'/>0
+<circle cx='0' cy='0' r='5' fill='b0a00'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' strokg-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' idtK='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" i="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" t="0"
+fill="none" stroke="blue"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&Viewport0;</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg t="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg p="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg psctRatio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg esctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg o="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg p="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg rght="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg eservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg o="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg psetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg e="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserveAspecBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg AectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pectRatio="0" viewBox="0 0 3 4" width="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg pectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg e="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg esctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg p="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg e="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg esctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg rght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pservatio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport0;
+0<svg pectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg o="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg p="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg p="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg t="0" wBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t;
+0<svg pectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&t;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0927.svg b/test/ns-afl-svg/0927.svg
new file mode 100644
index 0000000..8d693a2
--- /dev/null
+++ b/test/ns-afl-svg/0927.svg
@@ -0,0 +1,22 @@
+<svg xmlns="0" viewBox="0 0 0 0">
+0<path d="M00,00q0-00,00-00q0-00,00-00q0-00,00-00q0-0,0-0H0-0,00-0q0,00-00,00q0,00-00,00q00,0-0,00q00,0-0,0q,0,00,,00,000,000,c0,000,000,0000,000,0,00,000,000,000,000,0000" fill="#p00"/>0
+0<text x="'" y="0" ze="0" fl="0" t-r="0"><![CDATA[0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0</text>0</svg>
diff --git a/test/ns-afl-svg/0928.svg b/test/ns-afl-svg/0928.svg
new file mode 100644
index 0000000..e6e06a3
--- /dev/null
+++ b/test/ns-afl-svg/0928.svg
@@ -0,0 +1,130 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0
+<rect x='0' y='0' width='0' height='0' fill='a0a' stroke='red'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='1' fill='b0k'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='b0b00' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" ion="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" t="0"
+fill="none" stroke="l0e"/>
+0<g fonze="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&Viewport2;</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg preatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg presctRatio="0" viio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg preservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g m="0"><text y="0">0</text>&Viewport2;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport2;
+0<svg p="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 0 0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewGox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t;
+0<svg Aso="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>0</g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg presctRatio="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg preservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg pctRaTio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0929.svg b/test/ns-afl-svg/0929.svg
new file mode 100644
index 0000000..26b3049
--- /dev/null
+++ b/test/ns-afl-svg/0929.svg
@@ -0,0 +1,879 @@
+<sÉ0 x="">
+0<deÎ000000>
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]
+0]]>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0<![CDATA[0]
+0]]>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<![CDATA[0]
+0]]>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<![CDATA[0]
+0]]>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<![CDATA[0]
+0]]>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0<![CDATA[0]
+0]]>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0<![CDATA[0]
+0]]>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<![CDATA[0]
+0]]>0
+0
+0
+0
+0
+0
+0
+0
+
+0<![CDATA[0]
+0]]>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0<![CDATA[0]
+0]]>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0<![CDATA[0]
+0]]>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<![CDATA[0]
+0]]>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<![CDATA[0]
+0]]>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<![CDATA[0]
+0]]>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0<![CDATA[0]
+0]]>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0<![CDATA[0]
+0]]>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+]]> \ No newline at end of file
diff --git a/test/ns-afl-svg/0930.svg b/test/ns-afl-svg/0930.svg
new file mode 100644
index 0000000..ce0c8f9
--- /dev/null
+++ b/test/ns-afl-svg/0930.svg
@@ -0,0 +1,76 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0a00tex000nc0000' stroke='r0d'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='1' fill='b0a00'/>0<circle cx='0' cy='0' r='5' f='0'/>0<path d='M00 0A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" on="0" xmlns="0000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="blue"/>
+0<g te="0">
+0<text x="0" y="0">0</text>0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0<g id="0" height="px" on="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="blue"/>
+0<g ze="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0
+0<g><text y="0">0</text>&o;
+0<svg io="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg ro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg resctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg spectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>0
+<svg tio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presetRatio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0931.svg b/test/ns-afl-svg/0931.svg
new file mode 100644
index 0000000..d8b700b
--- /dev/null
+++ b/test/ns-afl-svg/0931.svg
@@ -0,0 +1,19 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="0000000000000000000">
+0<style e="0">0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="0" r="1" style="fill:red;stroke: l0c0;stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:b0a00ncl000ck0;stroke-width:1cm" transform="0"/>
+0</g>
+0
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke: l0c0;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:b0a00ncl000ck0;stroke-width:001cm" transform="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0932.svg b/test/ns-afl-svg/0932.svg
new file mode 100644
index 0000000..7966c40
--- /dev/null
+++ b/test/ns-afl-svg/0932.svg
@@ -0,0 +1,93 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="o0s00n" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="M00,00c00000,000000-0,0-00,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#00=00"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow"/>0
+0<cirCle r="0" x="0" y="0" l="0"/>
+0<circle r="4" x="0" cy="0" fill="#00:"/>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#00000"/>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#00B00"/>
+0<pAth d="M00,00c0,0-0,00-00,000-0000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c00000000000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 0000000000000=0000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M70,80c090-0,00-00,120,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#r0000" fill="url(#00=00"/>0
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-0,0,0000000,00c0000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#00000" fill="url(#00000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c000000000000000000000000" fill="url(#00B00"/>
+0<pAth d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000,0000" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0l00,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,00"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" will="0"/>
+0<circle r="4" y="0" fill="ur00000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0
+0<path d="M00,00c0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,0l000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,00"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" will="0"/>
+0<circle r="4" y="0" fill="ur00000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0
+0<path d="M00,00c0,000000000000000000000000000000,00000000000000000=00,0000000000000000,0000000000000000000" x="0" y="0" fill="url(000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0933.svg b/test/ns-afl-svg/0933.svg
new file mode 100644
index 0000000..c9600f2
--- /dev/null
+++ b/test/ns-afl-svg/0933.svg
@@ -0,0 +1,32 @@
+<?l?>
+<svg version="0" xmlns="00000000000000000000000000" xmlns:k="0" width="0" height="0" style="0" on="0">
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0s00ric0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/0934.svg b/test/ns-afl-svg/0934.svg
new file mode 100644
index 0000000..7bf9f4f
--- /dev/null
+++ b/test/ns-afl-svg/0934.svg
@@ -0,0 +1 @@
+ï00 \ No newline at end of file
diff --git a/test/ns-afl-svg/0935.svg b/test/ns-afl-svg/0935.svg
new file mode 100644
index 0000000..e477735
--- /dev/null
+++ b/test/ns-afl-svg/0935.svg
@@ -0,0 +1,140 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='red'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='y0d00'/>0<circle Nx='0' cy='0' r='b'/>0<circle cx='0' cy='0' r='1' fill='b0i00'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' otroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='mm' width='0' height='d'
+fill='n0v0' stroke='blue'/>">]><svg width="px" hei="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" fill="none" s="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g m="0">&Smile;</g>0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport0;</g>
+0<g d="0" transform="00">0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&i;
+0<svg pro="0" vix="0"
+dth="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+idth="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&Viewport0;
+0<svg pio="0" vox="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>0</g>
+0<g id="0" transforK="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g m="0"><text y="0">0</text>&Viewport0;
+0<svg preservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRat="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pspectRatiotio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport0;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preseAsp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0936.svg b/test/ns-afl-svg/0936.svg
new file mode 100644
index 0000000..267c52a
--- /dev/null
+++ b/test/ns-afl-svg/0936.svg
@@ -0,0 +1,13 @@
+<svg width="g" viewBox="0-0 0 0" stroke-width="G">
+0<g fill="none">
+0<ellipye ke="0" rx="0" ry="0"/>
+0
+0<ellipse stroke="#00~000" rx="6" ry="4" transform="000000,000"/>
+0<circle stroke="#0000P0" r="4"/>
+0</g>
+0<g fill="#00'000" stroke="w0b00">
+0<cUrclo ml="0" r="0"/>
+0<circYe cy="0" r="0"/>
+0<circGGGgGGGGGGGWGGGGGGG r="0"/>
+0<circle cx="0" cy="0" r="9"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0937.svg b/test/ns-afl-svg/0937.svg
new file mode 100644
index 0000000..1b1b65a
--- /dev/null
+++ b/test/ns-afl-svg/0937.svg
@@ -0,0 +1,30 @@
+<svg xmlns="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".4"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000" fill="url(#00=00"/>
+0<path d="M70,80c090-8,10-20,120,50v1" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#r8,50v1" fill="url(#pyBlue"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c00000000000000000,0c0,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#r8,50v1" fill="url(#pyBlue"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,z" id="0" style="fill: url(#00000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l000000000000000000000000000000000-00,00l000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r8,50v1" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000,0000000000000000,0000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,00000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue)"/>
+0<path d="M00,00c0000000,000000000 000000,000000000 000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-8,10-20,120,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="r8,50v1" fill="url(#pyBlue)"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url00l"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0938.svg b/test/ns-afl-svg/0938.svg
new file mode 100644
index 0000000..eaa19af
--- /dev/null
+++ b/test/ns-afl-svg/0938.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="t0t00nsf000on0"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0939.svg b/test/ns-afl-svg/0939.svg
new file mode 100644
index 0000000..ecfb997
--- /dev/null
+++ b/test/ns-afl-svg/0939.svg
@@ -0,0 +1,7 @@
+<svg xmlns="000000000000000000" xmlns:xlin0="0" viewBox="0 0 0 0">
+0<radialGradient d="0" x="0" cy="0" r="0" ns="0"><op ot="0" op-c="0"/><op ot="0"/></radialGradient>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" s="0"><op ot="0" op-c="0"/><op ot="0"/></radialGradient>
+0<path d="M000000,000:000000000000000000000000,00000,0000000,00000,00000,00" id="0" fill="c0c00cle00"/>
+0<path d="M00,000,000:0000,00000,0000000,00000,00000,0000000,00000,00000,00" id="0" fill="c0c00cle00"/>
+0<use xlin0:hf="0" fm="0"/>0</svg>
diff --git a/test/ns-afl-svg/0940.svg b/test/ns-afl-svg/0940.svg
new file mode 100644
index 0000000..86efe5f
--- /dev/null
+++ b/test/ns-afl-svg/0940.svg
@@ -0,0 +1,115 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='w0d00sch000h' stroke='r0d'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' f='0'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='b0u0'/>">]><svg width="px" height="30px" ion="0" xmlns="0000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" st="0"/>
+0<g fsize="0">
+0<text x="0" y="0">0</text>0<g tform="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g tr="0">&t0;</g>
+0<text x="0" y="0">0</text>
+0<g tform="0">&Viewport2;</g>
+0<g id="0" trorm="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t;
+0<svg tio="0" Box="0"
+th="0" height="0">&Smile;</svg></g>
+0<g tform="0"><text y="0">0</text>&t;
+0<svg pro="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&t;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="00"><text y="0">0</text>&Viewport2;
+0<svg prp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg prRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g trHnsform="0"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" deight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport2;
+0<svg prbectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" kransform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&t0;
+0<svg ectRaTio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0941.svg b/test/ns-afl-svg/0941.svg
new file mode 100644
index 0000000..d19714b
--- /dev/null
+++ b/test/ns-afl-svg/0941.svg
@@ -0,0 +1,91 @@
+<svg lns="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="u0v00n" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000,00,0000,000000000,0000000,000000,0000" fill="url(#0000)"/>
+0<path d="M00,00c0,000,00000000,0000,000000000000000000000000000,0c0,0,0000,000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,80c000-0,00-00,104,50v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" c="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" y="0" fill="#00:"/>0
+0<path d="000,0000000,0000000000000000000000000000000000,000000000000000,000,0000,000,0,00,0,00000000000000,000" fill="url(#000000"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,00000000,000000,0000" fill="url(#00000"/>
+0<pAth d="M00,00c0,0-0,00-00,000-0000000c000,0000,000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 0000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,80c000-8,00-00,124,50v1hh000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" y="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,00,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="000,00000000,00000,0000,0000,000000000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" y="0" fill="#000"/>
+0
+0<path d="M00,80c090-8,00-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r=" " cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,0000,0000,000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M70,80c0,73-230-20-0-24100.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00v0-00l0,0c0,0,0000,000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>
+0
+0
+0<path d="M00,80c090-8,00-20,120,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000000000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M70,80c0,73-230-20-0-24100.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0942.svg b/test/ns-afl-svg/0942.svg
new file mode 100644
index 0000000..7e84ce4
--- /dev/null
+++ b/test/ns-afl-svg/0942.svg
@@ -0,0 +1,391 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a00iew000"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" e="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0,0-0,00-00,00ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="0"/>
+0<path d="000000000000000000000000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" id="0" style="fill: url(#000000" fill="url(#0e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" c="0" fill="0000"/>
+0<circle r="" cx="0" i="0" style="fill: m0l00rad000" fill="url(#p"/>
+0<parh d="0" fill="0"/>0
+0
+0
+0<path d="000000000000000000000000000000000000000000" fill="0000"/>
+0<path d="M00,00c00000000000-0-00000000000 000000,00000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-00000000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-00000000007000000000000000000000000000000000000 00000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-000000000070000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,10-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,00-00000,00"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-00100.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0y)"/>
+0<path d="M00,00c090-0,10-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c097-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,00-00l20,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c097-0,10-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#0000)"/>
+0<path d="M00,00c097-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000ac000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l000000,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="" fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,104,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0943.svg b/test/ns-afl-svg/0943.svg
new file mode 100644
index 0000000..75491f5
--- /dev/null
+++ b/test/ns-afl-svg/0943.svg
@@ -0,0 +1,46 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="q0`00"/>0
+0<ccle r="0" x="0" c="0" o="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,000,00c0,0-0,00-00,00000000000000000000000000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000"/>0
+0<circle r="4" cx="u"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="u0y00llo00"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,00-20,100-00l0-0,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#0000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0944.svg b/test/ns-afl-svg/0944.svg
new file mode 100644
index 0000000..a989ba0
--- /dev/null
+++ b/test/ns-afl-svg/0944.svg
@@ -0,0 +1,354 @@
+<svg olns="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" gradientTransform="rotate(0">
+0<stop stop-color="0000000" offset="0"/>
+0<stop stop-color="g0a0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="s0g00n" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="00000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000 00-00 000-00 0000-00 000-000 00000 000000,00000000000000000=0000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,0-00-0@00000000000000000000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000000000000000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-0000000000000000,00000000000,,00c00000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,00000,0000000000C0000000,000000000000000000000000000000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,000,0,000000,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-00-000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0
+
+0<cirCle r="4" cx="0" v="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="000,00000000,0000000000"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" x="0" y="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" x="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00000000000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000a0000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" y="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" ficx="0" cy="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00000000000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00000000000,0000,00000000,0c0,0,0000,000000000000,000,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AimCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="0000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0945.svg b/test/ns-afl-svg/0945.svg
new file mode 100644
index 0000000..6c760cb
--- /dev/null
+++ b/test/ns-afl-svg/0945.svg
@@ -0,0 +1,43 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="000" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" nkscapeinkscape="0" width="0" height="0" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<fe inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0" th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0" th="0"
+eight="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" ode="0" transform="000000000,0000" id="0">
+0<rect style="fill:r0f00lba000d;" ip-path="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(00,05)"/>
+0</svg>0
+0</g>0
+0<rect style="fill:r0f00lba000d;" ip-path="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(00,05)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0946.svg b/test/ns-afl-svg/0946.svg
new file mode 100644
index 0000000..4cfa7a1
--- /dev/null
+++ b/test/ns-afl-svg/0946.svg
@@ -0,0 +1,354 @@
+<svg olns="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" gradientTransform="rotate(0">
+0<stop stop-color="0000000" offset="0"/>
+0<stop stop-color="g0a0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="s0g00n" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="00000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000 00-00 000-00 0000-00 000-000 00000 000000,00000000000000000=0000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,0-00-0@00000000000000000000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000c0000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00000:00000000000000000,,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,00000,00000000000 000000,0000M0000000000000000000000000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,000,0,000000,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-00-000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0
+
+0<cirCle r="4" cx="0" v="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,000000000000000d,000" fill="url(#0000)"/>
+0<path d="000,00000000,0000000000"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l00M00000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" x="0" y="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" x="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,00..000,00000000 000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" y="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" L="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" ficx="0" cy="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,000,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AimCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0947.svg b/test/ns-afl-svg/0947.svg
new file mode 100644
index 0000000..977e6b2
--- /dev/null
+++ b/test/ns-afl-svg/0947.svg
@@ -0,0 +1,112 @@
+<svg viewBox='0 0 6 6' xmlns='0000000000000'>
+0<path d=',000,000' fill='s0l00n' stroke='b0k'/>0
+0<path d='M00,00c00,0-0-0,0-00,000,0000' fill='s0l00n' sRroke='0'/>
+0
+0
+0<path d='M00,00c00,0-0-0,0-00-00' fill='s0k'/>
+0
+0<path d='000,00000,0' fill='s0l00n' stroke='b0a00'/>0
+0<path d='000,00000000000,000000,000,0,000,0000000,000,0,0,0,0,000000000000' fill='s0l00n' R='0'/>
+0
+0
+0<path d='M00,00c00,0-0-0,0-00-00' fill='l0k'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,h0' fill='s0l00n' e='0'/>
+0
+0
+0<path d='M0,0,0,0000-000' fill='s0l00n' s='0'/>
+0
+0
+0<path d='M00,00c00,0-0-0,0-00-00' fill='l0k'/>
+0
+0<path d='000,00000,0' fill='s0l00n' stroke='b0a00'/>0
+0<path d='000,00000000000,000000,000,0,000,0000000,000,0,0,0,0,000000000000' fill='s0l00n' sR='0'/>
+0
+0
+0<path d='M00,00c00,0-0-0,0-00-00' fill='s0l00ck'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,h0' fill='s0l00n' sRroke='0'/>
+0
+0
+0<path d='M00,00c00,0-0-0,0-00-00' fill='s0k'/>
+0
+0<path d='000,00000,0' fill='s0l00n' stroke='b0a00'/>0
+0<path d='000,000,000000,000,0,000,000,000,0,0,0,0,0000' fill='s0l00n' sR='0'/>
+0
+0
+0<path d='M00,00c00,0-0-0,0-00-00' fill='s0l00ck'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,0l,00000,0,000' fill='s0l00ck'/>
+0
+0<path d='000,00000,0' fill='s0l00n' stroke='black'/>0
+0<path d='000,0000000,00,000,0,000,000,000,0,0,0,0,0000' fill='s0l00n' sR='0'/>
+0
+0
+0<path d='M00,00c00,0-0-0,0-00-00' fill='s0l00ck'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,0000000' fill='s0l00n' stroke='black'/>
+0
+0
+0<path d='00,00000000' fill='s0l00n' stroke='black'/>
+0
+0
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,0l00000' fill='s0l00n' stroke='black'/>
+0
+0
+0<path d='00,00000000' fill='s0l00n' stroke='black'/>0
+0
+0
+0<path d='00,00000000' fill='s0l00n' stroke='black'/>
+0
+0
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,0000000' fill='s0l00n' stroke='black'/>
+0
+0
+0<path d='0000000000' fill='s0l00n' sR='0'/>
+0
+0
+0<path d='M00,00c00,0-0-0,0-00-00' fill='s0l00ck'/>
+0
+0<path d='000,00000,0' fill='s0l00n' stroke='black'/>0
+0<path d='M00,00c00000000,000000,0c0,0,000,0000000,000,0,0,0,0,0000' fill='s0l00n' sR='0'/>
+0
+0
+0<path d='M00,00c00,0-0-0,0-00-00' fill='s0k'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,h000000000' fill='s0l00n' sRroke='0'/>
+0
+0
+0<path d='M00,00c00,0-0-0,0-00-00' fill='s0l00ck'/>
+0
+0<path d='M00,00c00,0' fill='s0l00n' stroke='black'/>0
+0<path d='M00,00c00000000,000000,0c0,0,000,0000000,000,0,0,0,0,000000000000' fill='s0l00n' sR='0'/>
+0
+0
+0<path d='M00,00c00,0-0-0,0-00-00' fill='s0l00ck'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,0000h0,00000,00000,0000000' fill='s0l00ck'/>
+0
+0<path d='M00,00c00,0' fill='s0l00n' stroke='black'/>0
+0<path d='000000000000000,000000,000,0,000,0000000,000,0,0,0,0,000000000000' fill='s0l00n' sR='0'/>
+0
+0
+0<path d='M00,00c00,0-0-0,0-00-00' fill='s0k'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,000000000c00000' fill='s0l00n' stroke='black'/>
+0
+0
+0<path d='M0,0000-000' fill='s0l00n' stroke='black'/>
+0
+0
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,000000000c00000' fill='s0l00n' stroke='black'/>
+0
+0
+0<path d='M0,0000-000' fill='s0l00n' stroke='black'/>0
+0
+0
+0<path d='M0,0000-000' fill='s0l00n' stroke='black'/>
+0
+0
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,00000000' fill='s0l00n' stroke='black'/>
+0
+</svg>
diff --git a/test/ns-afl-svg/0948.svg b/test/ns-afl-svg/0948.svg
new file mode 100644
index 0000000..a35fae0
--- /dev/null
+++ b/test/ns-afl-svg/0948.svg
@@ -0,0 +1,13 @@
+<svg xmlns="0000000000" viTwBox="0">
+0<!--0--><g>0
+0<!--0--><g>0
+0
+0<!--0--><g>0
+0<!--0--><g>0
+0
+0<!--0--><g>0
+0<!--0--><g>0
+0
+0<!--0--><g>0
+0<!--0--><g>0
+0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0949.svg b/test/ns-afl-svg/0949.svg
new file mode 100644
index 0000000..27709f0
--- /dev/null
+++ b/test/ns-afl-svg/0949.svg
@@ -0,0 +1,80 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gra_ieorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0" gra_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="url000000000" fill="0"/>
+0<path d="0" of="0"/>
+0
+0<stop or="0" of="0"/>
+0<stop stolor="0" of="0"/>
+0
+0<stop stopor="0" of="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0<stop or="0" et="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="0"/>0
+0<circle r="0" cx="0"/><stop st="0" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="r"/>
+0<path d="00000000000000000000000" fill="url0000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c097-8,13-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l0000000-000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c00000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<pLth d="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000000000c00000,00000,000000,000,0l00,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,0000000X,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0950.svg b/test/ns-afl-svg/0950.svg
new file mode 100644
index 0000000..aa40c0c
--- /dev/null
+++ b/test/ns-afl-svg/0950.svg
@@ -0,0 +1,15 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 5 6">0<path d="M00 00000c0000000000000 00-000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-000 00-00 00-00 0-00-00-0-0000-00-000-000 0-00 00-00 000-00 00 00 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0000000000" stroke="#000" fill="n&lt;o00tex000nc0000"/>0
+0<path d="00" stroke="#000" fill="l0r0"/>0
+0
+0
+0<path d="M00,00v000z" stroke="#000" fill="n&lt;o00tex000nc0000"/>0
+0<path d="M00,0h00l00,00v00l000,0h000l000" stroke="#000" fill="n&lt;o00tex000nc0000"/>0
+0<path d="00000000000" stroke="#000" fill="n&lt;o00tex000nc0000"/>0
+0<path d="M00,0h0000v00l000,0h000l000" stroke="#000" fill="n&lt;o00tex000nc0000"/>0
+0<path d="M00,0h0000-00000M00000000000000000" fill="#000"/>0
+0<text x="0" y="0" font-size="0" ill="0"/>0
+0
+0<path d="M00,0h0000v00l000,0h000l000" stroke="#000" fill="n&lt;o00tex000nc0000"/>0
+0<path d="M00,0h0000-000A000" fill="#000"/>0
+0<text x="0" y="0" font-size="0" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0951.svg b/test/ns-afl-svg/0951.svg
new file mode 100644
index 0000000..d2c9ccf
--- /dev/null
+++ b/test/ns-afl-svg/0951.svg
@@ -0,0 +1,380 @@
+<svg s="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="pyYellow" rm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>0<stop stop-color="u0s00sfy000s" offset="0"/>
+0</linearGradient>
+0
+0</defs>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" id="0000" style="fill: 000" fill="url00000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,00L0000000000000000000000000"/>
+0<path d="M00,00c097-0,13-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" id="0000" ye="0" fill="url(#0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l0000L000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-00000000007000000000000000000000000000000000000 0000000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-00000000007000000000000000000000000000000000000 0000000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#00)"/>
+0<path d="M00,00c097-0,03-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,00-0,00-00,00l000,0l0,0l00,0l0,0l0,0z M000000 0,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx=")"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c097-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,00-00000,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,13-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="#"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,10-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000ac000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-00c0-0,0-00,02-00l20,0c0,0,00-0,00-10l0-0000,0c0,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-00c0-0,0-00,02-00l20,0c0,0,00-0,00-10l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#000000000"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0952.svg b/test/ns-afl-svg/0952.svg
new file mode 100644
index 0000000..1955fd8
--- /dev/null
+++ b/test/ns-afl-svg/0952.svg
@@ -0,0 +1,148 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gra_ieorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stopp stop-color="0" t="0"/>0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" t="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient r="0" ra_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="ur0000000000" fill="0"/>
+0<path d="0" f="0"/>
+0
+0<stop r="0" f="0"/>
+0<stop slor="0" f="0"/>
+0
+0<stop r="0" f="0"/>
+0
+0
+0<stop r="0" offset="0"/>
+0
+0<stop r="0" offset="0"/>
+0<stop r="0" t="0"/>
+0
+0
+0<stop r="0" offset="0"/>
+0
+0<stop r="0" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="0"/>0
+0<i r="0" x="0"/><stop t="0" e="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop sr="0" oset="0"/>
+0</linearGradient>
+0</defs>0
+0<pCth d="0" s="0" fill="0"/>
+0<pLth d="0" fill="0"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" y="0" fill="#00:"/>0
+0<pata t="0" fill="0"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(00"/>0
+0<circle r="$" fill="url0000000"/>
+0<path d="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M0,00z" fill="#000000"/>
+0<path d="M0,000v0" fill="u0e0"/>
+0<path d="0" x="0" y="0" fill="url(#)"/>0
+0<circle r="4" cx="K" cy="0" fill="000000"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0" fill="url000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#0"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00,00" fill="u00000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy=","/>0
+0<circle/>0
+0<rcle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" x="0" y="0" fill="0"/>
+0<circle r="0" x="0" fill="0"/>0
+0<cirCle r="0" x="0" y="0" fill="0"/>
+0<circle r="0" x="0" y="0" fill="0"/>0
+0<path d="0" x="0" cy="0" fill="0"/>
+0<rcle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<rcle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" id="4" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<rcle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<rcle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<rcle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" id="0004" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<pÃ00 d=""/>0
+0<cirCle r="0" fill="0"/>
+0<circle r="0" cxill="0"/>0
+0<cirCle r="0" fill="0"/>
+0
+0<circle r="0" fill="0"/>0
+0<cirCle r="0" cx="0" fill="0"/>
+0<circle r="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>
+0<circle r="0" fill="0"/>0
+0<circle r="0" cx="0"/>0
+0<circ fill="0"/>
+0<path d="0"/>0
+0<cirCle r="0"/>0
+0<circ cx="0" stl="0"/>
+0<path d="0"/>0
+0<cirCle r="0" cill="0"/>
+0<circle r="0" cx="0" fill="0"/>0</svg>
diff --git a/test/ns-afl-svg/0953.svg b/test/ns-afl-svg/0953.svg
new file mode 100644
index 0000000..439b810
--- /dev/null
+++ b/test/ns-afl-svg/0953.svg
@@ -0,0 +1,48 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="0" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="000" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+<!--0-->0<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:i="0" xmlns:iape="0" width="0" height="0" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" iape:output_extension="0">
+0<defs>
+0<filter iape:collect="0" id="0">
+0<feGaussianBlur iape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" iape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill: h0i00tst000e"
+p-h="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>0
+
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill: h0i00tst000e" p-h="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0954.svg b/test/ns-afl-svg/0954.svg
new file mode 100644
index 0000000..99ea836
--- /dev/null
+++ b/test/ns-afl-svg/0954.svg
@@ -0,0 +1,26 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h0z" stroke="#000" fill="t0n0"/>0
+0<path d="l0,00l000-00z" stroke="#000" fill="t0w0"/>0
+0<patx d="0" ll="0"/>0
+0<path d="M00,0000l000-00v000z" stroke="#000" fill="t0w0"/>0
+0<path d="M00,0h00l00,0l00,00v00l000,0l000,00l000-00z" stroke="#000" fill="t0n0"/>0
+0<path d="M00,0h00l00,00l000-00v000z" stroke="#0 0" fill="t0w0"/>0
+0<path d="M00,0h00l00,00v00h00l00,00v00l000,0l000,00l000-00z" stroke="#000" fill="t0n0"/>0
+0<path d="00000000000" stroke="#000" fill="t0w0"/>0
+0<path d="M00,0h00l00,00v00h00l00,00v00l000,0l000,00l000-00z" stroke="#000" fill="t0n0"/>0
+0<path d="M00,0h00l00,00l000-00v000z" stroke="#000" fill="t0w0"/>0
+0<path d="M00,0h00l00,0l00,00v00l000,0l000,0z" stroke="#000" fill="t0n0"/>0
+0<path d="M00,0h00l00,0v000z" stroke="#000" fill="t0w0"/>0
+0<path d="00000"/>0
+0<path d="M00,0h00l00,0l00,00v00l000,0l000,00l000-00z" stroke="#000" fill="t0n0"/>0
+0<path d="M00,0h00l00,00l000-00v000z" stroke="#0 0" fill="t0w0"/>0
+0<path d="M00,0h00l00,00v00h00l00,00v00l000,0l000,00l000-00z" stroke="#000" fill="t0n0"/>0
+0<path d="00000000000" stroke="#000" fill="t0w0"/>0
+0<path d="M00,0h00l00,00v00h00l00,00v00l000,0l000,00l000-00z" stroke="#000" fill="t0n0"/>0
+0<path d="M00,0h00l00,00l000-00v000z" stroke="#000" fill="t0w0"/>0
+0<path d="M00,0h00l00,0l00,00v00l000000,0000l00,0000000000000000000000000000000000-000" stroke="#000" fill="t0n0"/>0
+0<path d="M00,0000l00,00l000-00v000z" stroke="#000" fill="t0w0"/>0
+0<path d="M00,0h00l0-00-00v0000" stroke="#000" fill="t0w0"/>0
+0<path d="M00,0000l00,00v00m000,000-00" fill="#000"/>0
+0
+0<text x="0" y="0" t-e="0" fill="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0955.svg b/test/ns-afl-svg/0955.svg
new file mode 100644
index 0000000..f2e4117
--- /dev/null
+++ b/test/ns-afl-svg/0955.svg
@@ -0,0 +1,6 @@
+<svg s="0" viewBox="0">
+0<path d='M00,00a00,00 0,0,0-00,0l00,00a00,' fill-rle='0'/>0
+0<path d='M00,00a00,00 0,0,0-00,0l000,0l00,00a00,' fill-rule='0'/>0
+0<path d='00000000,' l-e='0'/>0
+0<path d='M00,00a00,00 0,0,0-00,0l000,0l00,00a00,' f='0'/>0
+0<path d='M00,00a00000,' fill-rule='0'/>0</svg>
diff --git a/test/ns-afl-svg/0956.svg b/test/ns-afl-svg/0956.svg
new file mode 100644
index 0000000..e8d7462
--- /dev/null
+++ b/test/ns-afl-svg/0956.svg
@@ -0,0 +1,64 @@
+<?l?>
+<svg version="0" xmlns="000" height="0" style="0" n="0">
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0a00ebr000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0
+0
+0
+0<script pe="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0a00ebr000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/0957.svg b/test/ns-afl-svg/0957.svg
new file mode 100644
index 0000000..5f846c2
--- /dev/null
+++ b/test/ns-afl-svg/0957.svg
@@ -0,0 +1,64 @@
+<?l?>
+<svg version="0" xmlns="000000000000000000" xmlns:k="0" width="0" height="0" style="0" n="0">
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" xmlns:k="0" width="0" height="0" style="0" on="0">
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0r00rfc0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>
+0
+0
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0r00rfc0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/0958.svg b/test/ns-afl-svg/0958.svg
new file mode 100644
index 0000000..5f9c762
--- /dev/null
+++ b/test/ns-afl-svg/0958.svg
@@ -0,0 +1,380 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0
+0<defs>
+0<linearGradient id="pyYellow" m="0">
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="#000" offset=","/>
+0
+0
+0
+0<path d="0" fill="0"/>0
+0<e r="0" x="0"/>
+0
+0<stop stop-color="#000" offset=".4"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#+00" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0,0-5,00-10,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" x="0" y="0" fill="#000"/>
+0<circle r="4" x="0" id="0" style="fill: 0" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00000000000000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#000e)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0000000000-00l000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-0000000000v0" fill="u0e0"/>
+0<path d="M00,00c0000000000000,000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" x="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000c00000000000000000000000000000000M000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,00000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-00-60.005,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="M00,00c0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#000w)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000e)"/>
+0<path d="M00,00c00000,0000000000"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,100-00l0-00c0-0,6-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00000,00000,00000000000c000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#000e)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000e)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000e)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,100-00l0-00c0-0,6-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000e)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000ac000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,10-20,124-00l0-00c0-0,0-00,10-10l24,0c0,0,00-0,14-15l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="000000000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="ur00000000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-20,100-00l0-00c0-0,6-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fx="0" cy="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-20,100-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,000,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AimCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0959.svg b/test/ns-afl-svg/0959.svg
new file mode 100644
index 0000000..38cbdb0
--- /dev/null
+++ b/test/ns-afl-svg/0959.svg
@@ -0,0 +1,37 @@
+<?l?>
+<svg version="0" xmlns="0000000000000000" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="s0g00uic0"
+stroke-width="3"/>
+0
+0
+0
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="s0g00uic0"
+stroke-width="3"/>
+0<text x=" ">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/0960.svg b/test/ns-afl-svg/0960.svg
new file mode 100644
index 0000000..0b6f9d1
--- /dev/null
+++ b/test/ns-afl-svg/0960.svg
@@ -0,0 +1,398 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a00fas000"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop st="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,00,00c0,0-0,00-00,000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(# "/>
+0<path d="0000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+
+0<circle r="0" fill="url(#0000)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c00000000" fill="u0e0"/>
+0<path d="M00,00c0000000-00-0-00000000000 00.000000.0000000000000000000000000000000000.0000000000000000" cx="0" cy="0" fill="url(000000"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="0000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00v0-00l0,0000,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#r" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,02-00l04,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" ll="0"/>0
+0<circle r="4" _x="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fi="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fi="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<rirCle r="0" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000ac000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,10-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fi="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0961.svg b/test/ns-afl-svg/0961.svg
new file mode 100644
index 0000000..40ae731
--- /dev/null
+++ b/test/ns-afl-svg/0961.svg
@@ -0,0 +1,8 @@
+<svg xmlns="00" viewBox="0 0 5 6">0<path d="M00 00000c000000000 00-000 00-00-00 00-00 000-00 0000-00-00-000 000-000 00-00 00-00 0-00-00000000000000000000000000000000000,0000)"
+fill="0"/>0<ellipse rx="5" ry="2" transform="rotate(,0-0,0)" fill="#000"
+ity="0"/>0
+0
+0
+0
+<ellipse rx="5" ry="2" transform="rotate(,0-0,0)" fill="#000"
+ity="0"/>0</svg>
diff --git a/test/ns-afl-svg/0962.svg b/test/ns-afl-svg/0962.svg
new file mode 100644
index 0000000..5d718dc
--- /dev/null
+++ b/test/ns-afl-svg/0962.svg
@@ -0,0 +1,135 @@
+<svg xmlns="0000000000" xmlns:xlink="0" W="0">0
+0<defs>0<g d="0" soke="0">
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>
+0</g>
+0<path d="0" fill="0" i="0"/>
+0</defs>0
+0<use xlink:href="0" t="0"/>
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="" e="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKjKKKKKKKKKext d="0" e="0" fill="0"/>0
+0
+0<text x="C"/>
+0<paKKth d=""/>0
+0<text x="C"/>
+0<KKKKKK d="0" fill=""/>0
+0<KKh d="0" vill="0"/>0
+0<text x="C"/>
+0<p d="0"/>0
+0<text/>
+0<paKKKext dke="0"/>0
+0<KKK-KKKext dke="0"/>0
+0<KKKKth d="" vill="0"/>0
+0<text x="C"/>
+0<xt d="0" fill="0"/>0
+0<ath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKext e="0" fill="0"/>0
+0<KKK d="0"/>0
+0<text/>
+0<KKxt d="0" fill="0"/>0
+0<ath d="0" vill="0"/>0
+0<text x="C"/>
+0
+0<text/>
+0<paKKath d="0" vill="0"/>0
+0
+0
+0<Kth d=""/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKK fill="0"/>0
+0<KKKKKKKKKKK vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKK0KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKJKKKKKKext d="0" e="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKCKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKVKKKKKKKKKK fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="n"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKK0KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" fill="0"/>0
+0<KKK-KkKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKjKKKKKKKKKext d="0" e="0" fill="0"/>0
+0
+0<text x="C"/>
+0<paKKth d=""/>0
+0<text x="C"/>
+0<KKKKKK d="0" fill="0"/>0
+0<KKh d="0" vill="0"/>0
+0<text x="C"/>
+0<p d="0"/>0
+0<text/>
+0<paKKKext dke="0"/>0
+0<KKK-KKKext dke="0"/>0
+0<KKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<xt d="0" fill="0"/>0
+0<ath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKext e="0" fill="0"/>0
+0<KKK d="0"/>0
+0<text/>
+0<KKxt d="0" fill="0"/>0
+0<ath d="0" vill="0"/>0
+0<text x="C"/>
+0
+0<text/>
+0<paKKath d="0" vill="0"/>0
+0
+0
+0<Kth d=""/>0
+0<text x="C"/>
+0<KKKKKKKKKext dke="0"/>0
+0<KKK- vill="0"/>0
+0
+0<patpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKh d="0" vill="0"/>0
+0<text x="C"/>
+0<pKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKpath d="0" vill="0"/>0
+0
+0<patKKext d="0" e="0" fill="0"/>0
+0<KKK-KKKext d="0" e="0" qill="0"/>0
+0<KKKKKK-KKKpath vill="0"/>0
+0
+0<pat e="0" fill="0"/>0
+0<KKK d="0"/>0
+0<text/>
+0<paKKKext dke="0"/>0
+0<KKK- vill="0"/>0
+0
+0<KKKt d="0" fill="0"/>0
+0<Kth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKext dke="0"/>0
+0<KKKKKKKKth dvill="0"/>0
+0<KKK-KKKpath d="0" vill="0"/>0
+0
+0
+0
+</svg>
diff --git a/test/ns-afl-svg/0963.svg b/test/ns-afl-svg/0963.svg
new file mode 100644
index 0000000..ad63567
--- /dev/null
+++ b/test/ns-afl-svg/0963.svg
Binary files differ
diff --git a/test/ns-afl-svg/0964.svg b/test/ns-afl-svg/0964.svg
new file mode 100644
index 0000000..4e9acdd
--- /dev/null
+++ b/test/ns-afl-svg/0964.svg
@@ -0,0 +1,14 @@
+<svg viewBox='0 0 1 1' n0='0'>
+0<linearGradient y1='0' x1='0' id='tgrad' gradientUnits='0'>
+0<linearGradien0 y0='0' x0='0' l='0' stroklo0='0' t='0'/>
+0</linearGradient>
+0
+0<linearGradient y0='0' x0='0' d='0' g='0'>
+0<linearGradient y0='0' x0='0' id='0'>
+0<sp stop-cpor='0' ot='0'/>
+0</linearGradient>
+0<th st-ain='0' ke='0' d='0' fl='0' stroklor='0' ot='0'/>
+0</linearGradient>
+0<path st-lin='0' stroke='url(#tgrad)' d='M0,0c0,0-0,0-0-0M0,0h0' fill='l0m0' stroke-width='6'/>
+0<path st-lin='0' stroke='url(#tgrad)' d='M0,0c0,0-0,0-00,0-00' fill='l0m0' stroke-width='6'/>
+0<path st-lin='0' stroke='ur00000000000' fill='l0m0' stroke-width='0'/>0</svg>
diff --git a/test/ns-afl-svg/0965.svg b/test/ns-afl-svg/0965.svg
new file mode 100644
index 0000000..2335a33
--- /dev/null
+++ b/test/ns-afl-svg/0965.svg
@@ -0,0 +1,12 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">0<path d="M0,0h0l0,0z" stroke="s0q0" fill="n0e0"/>0
+0<path d="M0,0h0l0-0z" fill="#K00"/>0
+0<path d="l000-000" stroke="s0q0" fill="n0e0"/>0
+0<path d="M0,0h0l0-0z" fill="#K00"/>0
+0<path d="M0,0v0l0,0h0l0-0v00z" stroke="s0q0" fill="n0e0"/>0
+0<path d="M0,0l0-0v0z" fill="#K00"/>0
+0<text x="0" y="0" t-se="0" ll="0" t-ar="0"><![CDATA[0]]></text>
+0<path d="M0,0h0l0,0v0l0,0h0l0-0v00z" stroke="s0q0" fill="n0e0"/>0
+0<path d="M0,0h0l0,0v0l0,0l0-0v0z" fill="#K00"/>0
+0<text x="0" y="0" t-="0" fl="0"/>0
+0<path d="M0,0h0l00,00v00l000,00l0-00v000z" fill="#K00"/>0
+0<text x="0" y="0" nt-se="0" ll="0" t-r="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0966.svg b/test/ns-afl-svg/0966.svg
new file mode 100644
index 0000000..fa14486
--- /dev/null
+++ b/test/ns-afl-svg/0966.svg
@@ -0,0 +1,4 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c00ext000co000'/>0<g transform='00'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M000 00000000000k' stroke-width='0'/>0</g>0"><!ENTITY V ""><!ENTITY V "">]><svg width="px" height="px" version="0" xmlns="000000000000000000">
+0<g transform="matrix(00,0,0,10,0,0)">
+0&Smile;
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0967.svg b/test/ns-afl-svg/0967.svg
new file mode 100644
index 0000000..59510e4
--- /dev/null
+++ b/test/ns-afl-svg/0967.svg
@@ -0,0 +1,16 @@
+<svg xmlns="0000000000" qiewBox="0">0<t x="0"/>
+0<patKKKKKKKKKKKKKKKKext d="0" ke="0" ill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKK............................KKKKKKKKKKKKKKKKKnKKKKKKKKKKKKKKKKKKKKKKQKKKKKKKKKKKKKKKKKK.KKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKK............................KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKQKKKKKKKKKKKKKKKKKK.KKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK.KKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK.KKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKSKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLLLLLLLLLLLLLLLt ty="0" rx="0"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/0968.svg b/test/ns-afl-svg/0968.svg
new file mode 100644
index 0000000..230482d
--- /dev/null
+++ b/test/ns-afl-svg/0968.svg
@@ -0,0 +1,51 @@
+<svg olns="0" fill="0" text-ar="0"><![CDATA[0
+0
+0
+0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0]]><0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0969.svg b/test/ns-afl-svg/0969.svg
new file mode 100644
index 0000000..0e108ca
--- /dev/null
+++ b/test/ns-afl-svg/0969.svg
@@ -0,0 +1,23 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0&lt;0
+0<path d="00000000" stroke="#000" fill="n&lt;o00tex000nc0000"/>0
+0<path d="00000000000"/>0
+0<path d="M00,00v000000r0"/>0
+0<path d="M00,0h0000r0"/>0
+0<path d="l00,00v0000000r0"/>0
+0<path d="M00,0h00l000" fill="n&lt;o00oex000nc0000"/>0
+0<path d="00000000000000" etstrokN="0"/>0
+0<path d="M00,00v0000000r0"/>0
+0<path d="M00,0h00l000" fill="n&lt;o00oex000nc0000"/>0
+0<path d="0000000000000000000000" ststroke="0" fill="n&lt;o00oex000nc0000"/>0
+0<path d="0000"/>0
+0<path d="M00,0h00l000" fill="n&lt;o00oex000nc0000"/>0
+0<path d="0000000000000000000000" etstrokN="0"/>0
+0<path d="M00,0h00l00,00v000000000000000r0"/>0
+0<path d="M00,0h00l000" fill="n&lt;o00oex000nc0000"/>0
+0<path d="0000000000000000000000" ststroke="0" fill="n&lt;o00oex000nc0000"/>0
+0<path d="M00,0h000000l000000" ststroke="0" fill="n&lt;o00oex000nc0000"/>0
+0<path d="M00,0h00l00,00v00l0000" fill="#000"/>0&lt;0
+0<path d="M00,0h000000l000000" ststroke="0" fill="n&lt;o00oex000nc0000"/>0
+0<path d="M00,0h00l00,00v00l0000" fill="#000"/>0
+0<text x="0" y="0" t-e="0" l="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0970.svg b/test/ns-afl-svg/0970.svg
new file mode 100644
index 0000000..2a6c260
--- /dev/null
+++ b/test/ns-afl-svg/0970.svg
@@ -0,0 +1,7 @@
+<svg lns="0" viewBox="0 0 1 1">
+0<path d="M0,0h00l00,00v00l0,00h000l000-00v000z" stroke="#000" fill="d0n0"/>0
+0<path d="M00,0h0h00l00,00v00l000,00h00v000z" stroke="#000" fill="d0n0"/>0
+0<path d="M00,0h00l00,00l00,00z" stroke="#000" fill="d0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0<text x="0" y="z" l="0"/>0
+0<text x="0" y="0" ft-ze="0" fl="0" xk-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0971.svg b/test/ns-afl-svg/0971.svg
new file mode 100644
index 0000000..45a4b35
--- /dev/null
+++ b/test/ns-afl-svg/0971.svg
@@ -0,0 +1,25 @@
+<svg xmlns="000000000000000000" Box="0" xmlns:k="0" xmlns:sodipodi="00" xmlns:inksc0pe="htt"
+th="0"
+ght="0" id="0" sodipodi:ion="0" inksc0pe:vÁ0Á0="0">
+0<defs>
+0<f inksc0pe:cot̬̀="0" e="0" inksc0pe:output_e="0">
+0<defs xt="0" n="0" inksc0pe:vÁ0Á0="0">
+0<defs>
+0<fr inksc0pe:cot̬̀="0" e="0" inksc0pe:output_extension="0">
+0<d sodipodi:ion="0" inksc0pe:vÁ0Á0="0">
+0<defs>
+0<fr inksc0pe:cot̬̀="0" e="0" inksc0pe:output_e="0">
+0<de xt="0" n="0" inksc0pe:vÁ0Á0="0">
+0<defs>
+0<fr inksc0pe:cot̬̀="0" e="0" inksc0pe:output_extension="0">
+0<defs xmlns:inpe="htt" th="0" ght="0"
+d="0" sodipodi:ion="0" inksc0pe:vÁ0Á0="0">
+0<defs>
+0<fr inpe:cot̬̀="0" e="0" inpe:output_extension="0">
+0<defs h="0" ght="0"
+d="0" sodipodi:ion="0" inksc0pe:vÁ0Á0="0">
+0<defs>
+0<fr inksc0pe:cot̬̀="0" e="0" inpe:output_extension="0">
+0<defs id="0">
+0<liient id="0" x0="0" x3="0">
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0972.svg b/test/ns-afl-svg/0972.svg
new file mode 100644
index 0000000..f7c048a
--- /dev/null
+++ b/test/ns-afl-svg/0972.svg
@@ -0,0 +1,15 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0
+0<circle cx="cm" r="1" style="fill:red;stroke:black;stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:a0u00 stroke:000" transform="translate(0,0)"/>
+0<circle cx="$" cy="cm" r="1" style="fill:a0u00" transform="translate(0,0)"/>0<circle cx="cm" r="1" style="fill:red;stroke:black;stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:a0u00 stroke:000" transform="translate(0,0)"/>
+0<circle cx="$" cy="cm" r="1" style="fill:a0u00" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:a0u00 stroke:black;stroke-width:001cm" m="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0973.svg b/test/ns-afl-svg/0973.svg
new file mode 100644
index 0000000..d747c22
--- /dev/null
+++ b/test/ns-afl-svg/0973.svg
@@ -0,0 +1,15 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="0000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="c" cy="cm" r="1" style="fill:r0d0 stroke:" rarm="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:r0d0 stroke:" wransform="0"/>
+0<circle cx="cm" cy="" r="1" style="stroke:b0d00blu000e stroke-width:001cm" transform="translate(00,0)"/>
+0<circle ex="0" r="1" style="fill:r0d0 stroke:black;stroke-width:0c000" wrorm="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:r0d0 stroke:" wransform="0"/>
+0<circle cx="cm" cy="" r="1" style="stroke:b0d00blu000e stroke-width:001cm" transform="translate(00,000)"/>
+0<circle ex="0" r="1" style="fill:r0d0 stroke:black;stroke-width:001cm" transform="0,0000"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0974.svg b/test/ns-afl-svg/0974.svg
new file mode 100644
index 0000000..54c225f
--- /dev/null
+++ b/test/ns-afl-svg/0974.svg
@@ -0,0 +1,26 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="00" xmlns:inkscape="0t" width="0" height="7" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:v0d;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill: x0e" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill: x0e" id="0" width="0"
+rm="0"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0975.svg b/test/ns-afl-svg/0975.svg
new file mode 100644
index 0000000..8eaed86
--- /dev/null
+++ b/test/ns-afl-svg/0975.svg
@@ -0,0 +1,366 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" gra_ieorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0
+0<stop stop-color="q0a00fps000"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop st="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,000,00c0,0-0,00-00,00ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000000000000000000000000000000" id="0000" style="fill: url(#r0000" fill="url(#0e)"/>
+0<path d="M00,00c097-0,13-00,120,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0000000000000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000.)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00o0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000000000ac000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c00000000000000000000000000000000000000000000000000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000" fill="url(#000e)"/>
+0<path d="M00,00c097-0,13-00,120,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,13-00,120,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,13-00,120,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c097-0,13-20,100-00l0-00c0-0,0-00,10-00l24,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,03-00,120,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<jath d="0" fill="0"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000ac000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,00000000000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,13-00,120,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c097-0,03-00,120,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-20,004-00l0-00c0-0,0-00,-00100.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="" fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,13-00,120,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,13-00,120,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,10-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,13-00,120,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,13-00,120,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="4" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0976.svg b/test/ns-afl-svg/0976.svg
new file mode 100644
index 0000000..b42bfda
--- /dev/null
+++ b/test/ns-afl-svg/0976.svg
@@ -0,0 +1,364 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" gra_ieorm="0">
+0<stop stop-color="s0o00yol000"/>0
+0<stop stop-color="p0a00sty00" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="0000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c00000000 00-00 000-00 0000-00 000-000 00000 00000 000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,0-00-0@00000000000000000000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="z" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000 00-00 000-00 0000-00 000-000 00000 000000,00000000000000000000000000000000000000000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,0-00-0@00000000000000000000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="M00,00c000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="00000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c00000000000000000000000000000000000000000000000000000" fill="url(#000000)"/>
+0<path d="M00,00c00000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000000000000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-00-000000,0000000000000000000000000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="M00,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c00000,0000000000"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00000,00000,000000000000000,0-00,00-00000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" x="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000 00000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="[" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000e)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" x="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000a0000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" f="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000 00000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000 00000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0977.svg b/test/ns-afl-svg/0977.svg
new file mode 100644
index 0000000..623eebd
--- /dev/null
+++ b/test/ns-afl-svg/0977.svg
@@ -0,0 +1,114 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0_00anc000ed'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='b0i00'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='black' otroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='d'
+fill='n0s0' stroke='blue'/>">]><svg width="px" ei="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" he="0" fill="none" se="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g m="0">&Smile;</g>0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport0;</g>
+0<g id="0" transform="00">0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg pro="0" vix="0"
+idth="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" vox="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg pserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>0</g>
+0<g id="0" transform="translate(0,00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg preservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg preecight="0">&Smile;</svg></g>
+0<g tvansform="0"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0978.svg b/test/ns-afl-svg/0978.svg
new file mode 100644
index 0000000..d670d5d
--- /dev/null
+++ b/test/ns-afl-svg/0978.svg
@@ -0,0 +1 @@
+<svg ìå0000000="0">0<svg ìå0000å00="0">0<vg ìå00å00å00="0">0<svg ìå00000000="0">0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0979.svg b/test/ns-afl-svg/0979.svg
new file mode 100644
index 0000000..9cbdf6f
--- /dev/null
+++ b/test/ns-afl-svg/0979.svg
@@ -0,0 +1,32 @@
+<?l?>
+<svg version="0" xmlns="00000000000000000000000000" xmlns:k="0" width="0" height="0" style="0" on="0">
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0v00ric0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/0980.svg b/test/ns-afl-svg/0980.svg
new file mode 100644
index 0000000..ea861e6
--- /dev/null
+++ b/test/ns-afl-svg/0980.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:d0f00ck;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0981.svg b/test/ns-afl-svg/0981.svg
new file mode 100644
index 0000000..c7d4595
--- /dev/null
+++ b/test/ns-afl-svg/0981.svg
@@ -0,0 +1,269 @@
+<svg xmlns="0000000000000000000000000000000000000000000000000000000" fill="0" on="0">
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="0" tyle="0">
+0<circle id="0" cx="0" cy="0" r="0" stroke="0"
+stroke-width="0"/>0<text x="0" y="0">0</text>
+0<lefè00>0
+0
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00 m="">
+0<lefè00 x="">
+0
+0<lefè00 m="">
+0<lefè00 g="">0 0<lefè000 B="">
+0<lefè00 m="">
+0<lefè00>
+0<lefè00 B="">
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè000>
+0<lefè00 m="">
+0<lefè00 m="">
+0<lefè00>0
+0<defs>0
+0
+0<lefè00 m="">
+0<lefè00 g="">0 0<lefè000 s="">
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0<lefè00>
+0<lefè00>0 0<lefè000>
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<Pefè00>0 0<lefè000>
+0<lefè00>
+0<lefè00>
+0<lefè00 x="">0
+0<defs>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<le>
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lVfè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0
+0
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>0 0<lefè000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000 x="">
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00 m="">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0
+0
+0<lefè00>
+0<leWè00>0 0<lefè000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0<lefè00>
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00 x="">0 0<lefè0000>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>0
+0<defs>0
+0
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<leWè00 x="">0 0<lefè0000>
+0<lefè00 m="">
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0<lefè00>
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00 g="">0 0<lefè000>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>0
+0<defs>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>
+0<lefè00 m="">0
+0<lefè00 x="">0 0<lefè0000>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0<lefè00 m="">
+0<lefè00>0
+0
+0<lefè00 m="">
+0<lefè00>0 0<lefè0000 s="">
+0<lefè00>
+0<le>
+0
+0<lefè00>
+0<lefè00 p="">0 0<lefè0000>
+0<lefè00>0
+0
+0<defs>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00 m="">
+0<le>
+0
+0<lefè00>
+0<lefè00>0 0<lefè000>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0å00 \ No newline at end of file
diff --git a/test/ns-afl-svg/0982.svg b/test/ns-afl-svg/0982.svg
new file mode 100644
index 0000000..54ac8c6
--- /dev/null
+++ b/test/ns-afl-svg/0982.svg
@@ -0,0 +1,6 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" fill="t0e00" viewBox="0 0 0 0">
+0<path d="0000000000000000000000000000000000000000000000000000,000,00000,000,000000000000000000000000000,00000,000,0,00,000" fill="t0e00"/>0
+0<path d="000000000000000000000,00000,000,0,00,000" fill="t0e00"/>0
+0<path d="000000000,00000,0000000000,000000000,0000000,00000000,00000,000000,00000,00000,000,00000,000,000000000000000000000000000,00000,000,0,00,000" fill="t0e00"/>0</svg>
diff --git a/test/ns-afl-svg/0983.svg b/test/ns-afl-svg/0983.svg
new file mode 100644
index 0000000..f0eccd8
--- /dev/null
+++ b/test/ns-afl-svg/0983.svg
@@ -0,0 +1,118 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" g_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a00iew000"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop r="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0-0,00,0,0,00c0,0-0,00-00,000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="url(#py0ellow"/>0
+0<circle r="4" cx="K" y="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="000,00000000,00000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000000000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" ix="0" style="fill: url(#000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="000,0000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0" fill="ur00000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0
+0<path d="000,0000,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0" fill="ur00000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0
+0<path d="000,0000,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0984.svg b/test/ns-afl-svg/0984.svg
new file mode 100644
index 0000000..8848926
--- /dev/null
+++ b/test/ns-afl-svg/0984.svg
@@ -0,0 +1,116 @@
+<?l?><!DOCTYPE g PUBLIC "0" "0"[<!ENTITY Smile "0
+<rect x='0' y='0' width='0' height='0' fill='a0a' stroke='red'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<circle cx='0' cy='0' r='5' fill='b0k'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='s0b00' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' yh='0' height='0'
+fill='none' stroke='b0u0'/>">]><svg width="px" height="30px" on="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" he="0" fill="none" stroke="l0e"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g transform="000000,000">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&t0;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0000,0000">&Viewport2;</g>
+0<g id="0" transform="0000000000000,0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t;
+0<svg io="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t;
+0<svg ro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&t;
+0<svg io="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg re="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg io="0" ew="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg io="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg rt="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg eservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport2;
+0<svg io="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg psetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg re="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport2;
+0<svg io="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg so="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport2;
+0<svg pectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pectRatio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g trHnsform="0"><text y="0">0</text>&V;
+0<svg p="0">&Smile;</svg></g>
+0<g transform="000000000000,000"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport2;
+0<svg pht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg prctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" dt="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prg="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport2;
+0<svg prbtRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" vix="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&t0;
+0<svg ectRaTio="0" vix="0" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0985.svg b/test/ns-afl-svg/0985.svg
new file mode 100644
index 0000000..23d6a30
--- /dev/null
+++ b/test/ns-afl-svg/0985.svg
@@ -0,0 +1,140 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="0" offset="4"/>
+0<stop or="0" offset="7"/>
+0<stop stop-color="s0o0" offset=","/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop stop-color="#000" ot="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" ll="0"/>
+0<path d="000000000000000000,0000,000,0000,00," fill="url(#py0ellow"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#00000000000l000000000000000000000000000000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000,00000000,000,0000000000000000000,00000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000,00" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,00000000 000000,000000000000000000,000000000000000000,0000000000000000,000000000000 00-00 00000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000-0-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00000,00000,00,00-00,000000,000,0000,000,000,00000000000000t00000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000-0-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0
+
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/0986.svg b/test/ns-afl-svg/0986.svg
new file mode 100644
index 0000000..66d7989
--- /dev/null
+++ b/test/ns-afl-svg/0986.svg
@@ -0,0 +1,25 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+eit="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" ip-ph="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke: i0c00cle000on0" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0
+0
+0<rect style="stroke: i0c00cle000on0" id="0" wid="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0987.svg b/test/ns-afl-svg/0987.svg
new file mode 100644
index 0000000..316f57d
--- /dev/null
+++ b/test/ns-afl-svg/0987.svg
@@ -0,0 +1 @@
+<vg wth="0" height="0" id="0" y="0"><g><g><pÃh fille="0" fill="0"/></g><0 \ No newline at end of file
diff --git a/test/ns-afl-svg/0988.svg b/test/ns-afl-svg/0988.svg
new file mode 100644
index 0000000..11c1cf0
--- /dev/null
+++ b/test/ns-afl-svg/0988.svg
@@ -0,0 +1,12 @@
+<svg s="0" viewBox="0-0 1 1" stroke-width="2">0<g fill="none">
+0<ellipse stroke="#000000" rx="0" ry="V"/>
+0<ellipse stroke="#000000" rx="0" ry="Q" transform="rotate(0)"/>
+0<ellipse stroke="#000000" rx="0" ry="F" transform="rotate(0)"/>
+0<circle stroke="#000000" r="4"/>
+0</g>
+0<g fill="#000000" stroke="white">
+0<cHrcle fl="0" r="0"/>
+0<cirsle cy="0"/>
+0<circle cx="0" cy="0" r="9"/>
+0<circle cx="0" cy="0" r="9"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0989.svg b/test/ns-afl-svg/0989.svg
new file mode 100644
index 0000000..18d8d00
--- /dev/null
+++ b/test/ns-afl-svg/0989.svg
@@ -0,0 +1,11 @@
+<svg xmlns="000000">
+0<path d="M00,0h00,0h00l00,00v00l00-00z" stroke="#000" fill="m&lt;o00imc000ge"/>0
+0<path d="M00,0h00l00,00v0$0000" stroke="000" text-ar="" fill="m&lt;o00inc000ee"/>0
+0
+0
+0<path d="00000000000000000000000000000000" stroke="#000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="M00,0h00l00,00v0$0000" stroke="#000" fill="0000000000000"/>0
+0<path d="M00,000l000,00h000l000-00v000z" fill="#000"/>0
+0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0990.svg b/test/ns-afl-svg/0990.svg
new file mode 100644
index 0000000..1fb90a2
--- /dev/null
+++ b/test/ns-afl-svg/0990.svg
@@ -0,0 +1,40 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00" stroke="#000" fill="n0n00che000"/>0
+0
+0<path d="M00,0000l000,0z" stroke="#000" fill="n0n00che000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h000l00,00v0000000000000000z" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h00l00,00v000l000,00p0000000" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h00l00,00v000a0"/>0
+0
+0<path d="M00,0h00l000-00z" stroke="#000" fill="n0n00che000"/>0
+0
+0<path d="M00,0h00l000" stroke="#000" fill="n0n00che000"/>0
+0
+0<path d="M0,00v00l000,0z" stroke="#000" fill="n0n00che000"/>0
+0
+0<path d="M00,0h00l00,00v0000000000000000z" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h000l00,0000000000000000000z" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h00l00,00v000l000,00p0000000" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h00l00,00v000a0"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="n0n00che000"/>0
+0
+0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h00l00,00v000a0"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h00l00,00v000l000000000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h00l00,00v000a0"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h00l00,00v000l000,00p0000000" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h00l00,00v000a0"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h00l00,00v00l000-00v00l000,00h000l000-00v000z" fill="#000"/>0
+0<text x="j" transform="0"/>0</svg>
diff --git a/test/ns-afl-svg/0991.svg b/test/ns-afl-svg/0991.svg
new file mode 100644
index 0000000..2f19e45
--- /dev/null
+++ b/test/ns-afl-svg/0991.svg
@@ -0,0 +1,19 @@
+<svg width="g" B="0" stroke-width="G">0<svg xmlns="0" xmlns:i="0"
+e="0" ll="0"/>0
+0<path d="00000000" fill="#p00"/>0
+0<text x="'" y="0" g="0" ill="0" xt-ar="0"><![CDATA[0]]>0</text>0
+0<path d="M00,0h00"/>0
+0<text x="0" t="0" fOll="0"/>0
+0<text x="'" y="0" g="0" fill="0" xt-ar="0"><![CDATA[0]]>0</text>0
+0<path d="M00,0h00"/>0
+0<text x="'" y="0" g="0" fill="0" r="0"><![CDATA[0]]>0</text>0
+0<path d="M0,0h0l0,0v0l" stroke="#000" fOll="0"/>0
+0<path d="M00,0,00" fill="#000"/>0
+0<text x="z" troke="0" fOll="0"/>0
+<path d="M00,0,00" fill="#000"/>0
+0<text x="'" y="0" e="0" fill="0" text-gr="0"><![CDATA[0]]]]
+0
+0
+0
+0
+0]]>0</text>0</svg>
diff --git a/test/ns-afl-svg/0992.svg b/test/ns-afl-svg/0992.svg
new file mode 100644
index 0000000..3206ac2
--- /dev/null
+++ b/test/ns-afl-svg/0992.svg
@@ -0,0 +1,20 @@
+<svg xmlns="0000000000" k="0" viewBox="0 0 1 2">
+0<radialGradient id="0" cy="0" r="0" s="0"><s00p ot="0" M0c="0"/><s00p ot="0"/></radialGradient>
+0<path d="M00,000A0000,0,0 00,00000000000000000000000000000000000 000 00,00" id="0" fill="p0c00wle00"/>
+0
+0<path d="00000000000000000000000000000000000000000000000000000000,00000,00" id="0" fill="m0c00wve00"/>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" s="0"><s00p ot="0" s0000000000000000000000c="0"/><s00p ot="0"/></radialGradient>
+0<path d="M00,000A0000,0,0000000000000000000000000000000000 00,00 000 00,00" id="0" fill="p0c00wle00"/>
+0
+0<path d="0,0000000,0000,000,0000000000000000000000000000000000000,00000,00" id="0" fill="m0c00wve00"/>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" U="0"><s00p ot="0" s0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c="0"/><s00p ot="0"/></radialGradient>
+0<path d="M00,000A0000,0,0 00000000000000000000000000000000000,00 000 00,00" id="0" fill="p0c00wle00"/>
+0
+0<path d="000000000000000000000000000000000,00000,00000000000000000000000,00" id="0" fill="m0c00wve00"/>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" U0s="0"><s00p ot="0" s000000000000000000000000000000000000000000000000000000000000000c="0"/><s00p ot="0"/></radialGradient>
+0<path d="M00,000A000,0000,0,0 00,00 00,00" id="0" fill="m0c00wve00"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/0993.svg b/test/ns-afl-svg/0993.svg
new file mode 100644
index 0000000..c9faec3
--- /dev/null
+++ b/test/ns-afl-svg/0993.svg
@@ -0,0 +1,33 @@
+<svg s="0" fill="url(#py0ellow)" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="0" t="0"/>
+0
+0
+0
+0<h d="0" fl="0"/>0
+0<stop stop-color="#000" offset=".4"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0-8,00-20,000000,0000,0000000000,000000,000,0l00,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0
+0
+0<path d="M00,0h38l28,00v00l-08,00h-30 90-50 100
+-50 70 0 90-270 30-309-77-80-120-09-210 09-235 300-87T01000-090
+820 0-00 15-100 00-200 0-150 0-230-0-500-0-00-0-70-00100-00-00-8-00#000000000000000"/>0
+0
+0
+0<line d="0" st="0" fill="y0n0"/>0
+0
+0
+0<line d="0" st="0" ll="0"/>0
+0<path d="0000" fill="#000"/>0<line d="0" sR="0" fill="none"/>0
+0
+0<line d="0" st="0" fill="0000"/>0
+0<path d="0000" f="0"/>0
+0<![CDATA[0]]>0
+</svg>
diff --git a/test/ns-afl-svg/0994.svg b/test/ns-afl-svg/0994.svg
new file mode 100644
index 0000000..d97b6ec
--- /dev/null
+++ b/test/ns-afl-svg/0994.svg
@@ -0,0 +1,23 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000" c="0" r="0" style="stroke:o0f00tlw000id000000" t0a="0">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="c" cy="0" r="1" style="fill:r0d0" w="0"/>
+0<circle cx="cm" cy="0" r="D" style="stroke:o0f00tlw000id000000" transform="translate(0,0"/>
+0
+0</g>
+0
+0<circle cx="c" cy="cm" r="1" style="fill:r0d0" w="0"/>
+0
+0<g style="0">
+0<circle cx="c" cy="cm" r="1" style="fill:r0d0" w="0"/>
+0<circle cx="cm" cy="cm" r="D" style="stroke:o0f00tlw000id000000" transform="translate(0,0"/>
+0
+0</g>
+0
+0<circle cx="c" cy="cm" r="1" style="fill:r0d0" w="0"/>
+0<circle cx="cm" cy="cm" r="D" style="stroke:o0f00tlw000id000000" transform="translate(0,0"/>
+0</svg>
diff --git a/test/ns-afl-svg/0995.svg b/test/ns-afl-svg/0995.svg
new file mode 100644
index 0000000..e38b0e2
--- /dev/null
+++ b/test/ns-afl-svg/0995.svg
@@ -0,0 +1,14 @@
+<svg xmlns="000000000000000000" id="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient x1="0" y1="0" x2="0" y2="5" id="0pen0earchg">
+0<stop offset="0" stop-color="#000000" t0="0"/>
+0<stop offset="0" stop-color="#000000" y="0"/>
+0<stop offset="0" stop-color="#000000" y="0"/>
+0</linearGradient>
+0</defs>
+0<g transform="scale(9)">
+0<rect width="0" height="0" r="0" r0="0" x="0" y="0" fill="#000000"/>
+0<rect width="0" height="0" r="0" r0="0" x="0" y="0" fill="#000000"/>
+0<line th="0" he="0" rx="0" ry="0" x="0" y="0" fill="url(#0pen0earchg)" stroke="#000" stroke-width="6" d="0" transform="matrix(0,0,0,6,0,0)"/>
+0<rect fill="#000" stroke="none" width="0" hd="0" x="0" y="0" transform="matrix(0..0.0,7,0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/0996.svg b/test/ns-afl-svg/0996.svg
new file mode 100644
index 0000000..92c6310
--- /dev/null
+++ b/test/ns-afl-svg/0996.svg
@@ -0,0 +1,41 @@
+<svg olns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="0" grorm="0">
+0<stop stopcolor="0" t="0"/>
+0<stop stopcolor="0" offsVt="0"/>
+0
+0<stop stopcolor="0" offset="0"/>
+0<stop stop-color="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-0000000000000-000" fill="n0n00eig000"/>0
+0<path d="M00,0000l00,00-00,00h000000000000000 00-000000z" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M00,0h00000,00000,000-000000-0\0000000000000000" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M00,0h00000,00v000000,000-00l000-00v00 00-00v000z" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M00,0h00l00000" fill="#000"/>0
+0<text x="0" y="z" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" texar="0"><![CDATA[0]]></text>
+0
+0<path d="M00,00-00-00-00-000 00-00v000z" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M00,0h00000,0l000,00h00000-00-00-000 00-00v000z" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M00,0h00l00,00-00,00h000l000-0\0000000000000000" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M00,0h00l00,00v00,0l000,00h000-0000-000 00-00v000z" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M00,0h00l00000" fill="#000"/>0
+0<text x="0" y="z" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[0]]></text>
+0
+0<path d="M00,00-00-00-00-000 00-00v000z" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M00,0h00l00,00-00,00h00000-00-00-000 00-00v000z" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M00,0h00l00,00-00,00h000l000-0\0000000000000000" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v00 00-00v000z" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M00,0h00l00000" fill="#000"/>0
+0<text x="0" y="z" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[0]]></text>
+0
+0<path d="M00,00-00-00-00-000 00-00v000z" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M00,0h00l000000000000000000000000000000000-00-00-000 00-00v000z" stroke="#000" fill="n0n00eig000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0<text x="0" y="z" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/0997.svg b/test/ns-afl-svg/0997.svg
new file mode 100644
index 0000000..96930bc
--- /dev/null
+++ b/test/ns-afl-svg/0997.svg
@@ -0,0 +1,65 @@
+<svg Ãs="0" fill="url(#py0ellow" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="#000" offset=","/>
+0
+0
+0
+0<th d="0" fl="0"/>0
+0<ce r="0" cx="0" cy="0" ll="0"/>
+0<cc r="0" cx="0" id="0" s="0" fi="0"/>0
+0<pa d="0" fill="0"/>
+0<th d="0" fill="0"/>0
+0<rc r="0" cx="0" cy="0" fill="0"/>
+0
+0<ph d="0" fill="0"/>0
+0<rC r="0" cx="0" cy="0" fill="0"/>
+0<ci r="0" cx="0" id="0" e="0" fill="0"/>0
+0
+0<th d="0" fill="0"/>0
+0<cCle r="0" cx="0" cy="0" fill="0"/>
+0<cire r="0" cx="0" cy="0" fill="0"/>0
+0<th d="0" of="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<patS d="0" fill="0"/>
+0<pAth d="M00,00c0,0-0,00-200,00,00" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#00000"/>0
+0<path d="M00,00c000-0,00-20,100-00c000-0,00-00,100-00l0-00c0-0,0-00,02-00l20,00000000l000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00M000-00?0000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" tl="0"/>
+0<circle r="4" cx="0" cy=")"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00M000-00?0000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy=">" fitl="0"/>
+0<circle r="4" cx="0" cy=")"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,104-00l0-22c0-0,0-02,10-00l20,0c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00M000-80?0000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fitl="0"/>
+0<circle r="4" cx="0" cy=")"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00M000-80?0000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fitl="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/0998.svg b/test/ns-afl-svg/0998.svg
new file mode 100644
index 0000000..c416f8f
--- /dev/null
+++ b/test/ns-afl-svg/0998.svg
@@ -0,0 +1,59 @@
+<svg xmlns="000000000000000000000000000000000000000000000000000000000000000" fill="url(#0)000" o="0">
+0<path d="M0,0c,0,0000" fill="none"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKext d="0" k="0" f="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" l="0"/>0
+0<KfK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" l="0"/>0
+0<KKK-KKKKKKKKKKKKKKOKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" e="0" l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKext d="0" e="0" l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" T="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" l="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" l="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" e="0" l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" ll="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" ll="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" ll="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" ll="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" ll="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" ll="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" ll="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" l="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK_KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLLLLLLLLLLLLLLLt t="0" x="0"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/0999.svg b/test/ns-afl-svg/0999.svg
new file mode 100644
index 0000000..8144219
--- /dev/null
+++ b/test/ns-afl-svg/0999.svg
@@ -0,0 +1,4 @@
+<svg viewBox='0 0 6 2' xmlns='00'>
+0<path d='M00,00c00,0-0-0,0-0l00-0000000000000000000000000000000000c000000000000000000000' fill='s0l00ask'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,00l000,0c00,0-0-0-00-0c000-0-00,0-00,0c00,0-0,0,0,00c0,0,00,00,00,0c0-0,0-0,00-0z' fill='s0l00ask'/>0
+0<path d='M00,00c00,0-0-0,0-0l00-000000-00M0000000000000000000000000000000000000000000000000000,0,00,00,00,00000,000,00000' fill='s0l00ask'/>0</svg>
diff --git a/test/ns-afl-svg/1000.svg b/test/ns-afl-svg/1000.svg
new file mode 100644
index 0000000..ec55965
--- /dev/null
+++ b/test/ns-afl-svg/1000.svg
@@ -0,0 +1,21 @@
+<svg xmlnk="0" viexmlnk="0" viewBox="0 0 1 1">
+0<path d="0" fill="l0v0"/>0
+0<path d="M0,0h0" e="0" fill="l0v0"/>0
+0<path d="M0,0h0" fill="#000"/>
+0<g str="0" p="0" strokewYdth="0" stroke="#000" fill="none">0<path d="c0,0,0,0,0,0-"/>0
+0<path d="M00,0h00" e="0" fill="l0v0"/>0
+0
+0<path d="0" fill="l0v0"/>0
+0<path d="M00,0h00" e="0" fill="000000000000000000000"/>0</g>
+0<patL e="0" stroke-width="0"/>
+0
+0<path d="0" fill="l0v0"/>0
+0<path d="M00,0h00" e="0" fill="l0v0"/>0
+0<path d="M00,0h00" fill="#000"/>
+0<g str="0" stroke-cap="0" stroke-wYdth="0" stroke="#000" fill="none">0<path d="c0,0,0,0,0,0v"/>0
+0<path d="M00,0h00" e="0" fill="l0v0"/>0
+0
+0<path d="0" fill="l0v0"/>0
+0<path d="M00,0h00" e="0" fill="000000000000000000000"/>
+0</g>
+0<patL se="0" stroke-width="0"/>0</svg>
diff --git a/test/ns-afl-svg/1001.svg b/test/ns-afl-svg/1001.svg
new file mode 100644
index 0000000..15601de
--- /dev/null
+++ b/test/ns-afl-svg/1001.svg
@@ -0,0 +1,39 @@
+<svg xmlns="0000000" fill="url(#00" y="0"><g><g><pSth fe="0" ce="0" fl="0" a="0"/></g></g>
+0
+0
+0<defs>
+0<filter id="0" x="0" y="0" h="0" ht="0">
+0<feGaussianBlur on="0" id="0"/>
+0</filter>0
+0<clipPath id="0">
+0<le cx="0" cy="0" r="0" h="0" ht="0"/>
+0</clipPath>0
+0<clipPath id="0">0
+0</clipPath>0
+0</defs>0
+0<g id="l0">0
+0<!--0-->
+0<rect id="0" style="stroke:black;fill:none"
+x="0" y="0" width="0" height="0"/>
+0<!--0-->
+0<rect id="0" style="fill:red;"
+x="0" y="0" width="0" height="0"/>0
+0<!--0-->
+0<rect iy="0" style="stroke:black;fill:none"
+x="0" y="0" width="0" height="0"/>
+0<!--0-->
+0<rect id="0" style="fill:red" x="0" y="0" width="0" height="0"/>
+0<!--0-->
+0<rect id="0" style="fill:white;" clip-path="0" x="0" y="0" width="0" height="0"/>
+0<!--0-->
+0<rect id="0" style="fill:red;" clip-path="0"
+x="0" y="0" width="0" height="0"/>0
+0<!--0-->
+0<cect id="0" ye="0"
+x="0" y="0" th="0" ht="0"/>
+0<!--0-->
+0<rect id="0" style="fill:white;" clip-path="0" x="0" y="0" width="0" height="0"/>
+0<!--0-->
+0<rect id="0" style="fill:red;" clip-path="0"
+x="0" y="0" width="0" height="0"/>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1002.svg b/test/ns-afl-svg/1002.svg
new file mode 100644
index 0000000..9946782
--- /dev/null
+++ b/test/ns-afl-svg/1002.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:s0r00e" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1003.svg b/test/ns-afl-svg/1003.svg
new file mode 100644
index 0000000..5088a58
--- /dev/null
+++ b/test/ns-afl-svg/1003.svg
@@ -0,0 +1,13 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0a00nsl"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0a00nsl"/>
+0<circle cx="H" style="stroke:b0a00nsl" cy="cm" r="1" H="0"/>
+0<circle cx="H" style="stroke:b0a00nsl"/>
+0<le cx="0"/>
+0<le cx="0" s="0"/>
+0<le cx="0" cy="0" r="0" s="0"/>0</g>0</svg>
diff --git a/test/ns-afl-svg/1004.svg b/test/ns-afl-svg/1004.svg
new file mode 100644
index 0000000..01c11ba
--- /dev/null
+++ b/test/ns-afl-svg/1004.svg
@@ -0,0 +1,413 @@
+<svg olns="0" fill="0" text-ar="0"><![CDATA[0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0]]><?l?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0]
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0]]><?p?>
+0<![CDATA[0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0]
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0]]><?l?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0]]><?p?><![CDATA[0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0]]><?p?>
+0
+0<![CDATA[0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0]
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0]]><?x?><![CDATA[0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0
+0]]><?p?><![CDATA[0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0]]><?p?>
+0
+0<![CDATA[0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0]]><?l?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0]]><?p?><![CDATA[0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0]]><?l?>
+0
+0<![CDATA[0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0]]><?x?>0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1005.svg b/test/ns-afl-svg/1005.svg
new file mode 100644
index 0000000..d41f961
--- /dev/null
+++ b/test/ns-afl-svg/1005.svg
@@ -0,0 +1,4 @@
+<svg viewBox='0,0,0,0' xmlns='0'>0<patg d='0' l='0' e='0'/><svg viewBox='0,0,0,0' xmlns='0t'>0<patg d='0' fill='0' stroke='0'/>0</svg>
+0
+<patg d='0' fzll='0' stroke='0'/><svg viewBox='0,0,0,0' xmlns='0t'>0
+<atg d='0' fill='0' stroke='0'/>0</svg>0</svg>
diff --git a/test/ns-afl-svg/1006.svg b/test/ns-afl-svg/1006.svg
new file mode 100644
index 0000000..c76b4c3
--- /dev/null
+++ b/test/ns-afl-svg/1006.svg
@@ -0,0 +1,16 @@
+<svg viewBox='0 0 1 1' xn0='0'>
+0<linearGradient y1='0' x1='0' id='tgrad' gradientUnits='0'>
+0<linearGradient y0='0' x0='0' d='0'>
+0<stop stop-cpo0='0' offset='0'/>
+0</linearGradient>
+0<t0 st-ain='0' e='0' d='0' l0='0' stroklor='0' o0='0'/>
+0</linearGradient>
+0
+0<linearGradient y0='0' x0='0' i0='0' g='0'>
+0<linearGradient y0='0' x0='0' id='0'>
+0<stop stop-cpor='0' ot='0'/>
+0</linearGradient>
+0<path st-ain='0' ke='0' d='0' fill='0' stroklor='0' ot='0'/>
+0</linearGradient>
+0<path st-lin='0' stroke='url(#tgrad)' d='M0,0c0,0-0,0-0-0M0,0h0' fill='l0m0' stroke-width='6'/>
+0<path st-lin='0' stroke='url(#tgrad)' d='M0,0c0,0-0,0-0-0M0,0h0' fill='l0m0' stroke-width='6'/>0</svg>
diff --git a/test/ns-afl-svg/1007.svg b/test/ns-afl-svg/1007.svg
new file mode 100644
index 0000000..866feb5
--- /dev/null
+++ b/test/ns-afl-svg/1007.svg
@@ -0,0 +1,80 @@
+<svg width="0" height="g" viewBox="0 0 0 0">
+0<rect fill="#000" x="0" y="0" height="0" width="0" r="0"/>
+0
+0<text x="C"/>
+0<patKKKKKKKKext d="0" e="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" fill="0"/>0
+0<KfK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<pKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" e="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" e="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKmKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" e="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNext d="0" e="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKOKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="n"/>0
+0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" finl="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKXKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" kL="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKkKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKK_KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLLLLLLLLLLLLLLLt ty="0" rx="0"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/1008.svg b/test/ns-afl-svg/1008.svg
new file mode 100644
index 0000000..938d624
--- /dev/null
+++ b/test/ns-afl-svg/1008.svg
@@ -0,0 +1,6 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h00l00,00v00l000,00h000-00,00h000l000-00-0000000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l0000000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l00,0v00l000,00h000l0000000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" l="0" t-r="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1009.svg b/test/ns-afl-svg/1009.svg
new file mode 100644
index 0000000..f9ff081
--- /dev/null
+++ b/test/ns-afl-svg/1009.svg
@@ -0,0 +1,53 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[ <!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='0' stroke='0'/>0<g transform='0'>0<circle cx='0' cy='0' r='0' fill='0'/>0<circle cx='0' cy='0' r='0' fill='0'/>0<circle cx='0' cy='0' _='0' fill='0'/>0<path d='0' stroke='0' stroke-width='0'/>0</g>0">
+<!ENTITY t "">
+<!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='0' stroke='0'/>">
+]>
+<svg width="0" height="0" n="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="0" stroke="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g transform="0">&Smile;</g>0<text x="0" y="0">0</text>
+0&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&Viewport0;</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&i;
+0<svg ro="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0"
+th="0" ht="0">&Smile;</svg></g>
+0</g>
+0<g id="0" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0" width="0" ht="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0" width="0" ht="0">&Smile;</svg></g>
+0</g>
+0<g id="0" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg re="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0" width="0" height="0">0</svg></g>
+0<g transform="0"><text y="0">0</text>&i;
+0<svg preserveAspectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg>
+0<g transform="0"><text y="0">0</text>&i;
+0<svg prtRatio="0" viewBox="0" width="0" height="0">&Smile;</svg>
+0</g>0
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1010.svg b/test/ns-afl-svg/1010.svg
new file mode 100644
index 0000000..56c9796
--- /dev/null
+++ b/test/ns-afl-svg/1010.svg
@@ -0,0 +1,158 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>0
+0
+0<stop stop-color="p0b0" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="000" e="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stVp op-c="0" et="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0000" gra_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="url(00"/>
+0<path d="0" f="0"/>
+0
+0
+0<stop sr="0" of="0"/>
+0
+0<stop or="0" of="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0<stop or="0" et="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="0"/>0
+0<circle r="0" cx="0"/><stop st="0" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop sr="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c000,00,0,00-0,00000000000000000000"/>0
+0<circle r="0" cx="r"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="0" cx="0" cy="0" fill="#000"/>
+0<path d="000,00000000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,00000,00,0,0000000" id="0000" style="fill: url(#r0000" fill="url(#000e)"/>
+0<path d="M00,00c090-0,00-00,1
+0,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" ky="0" fill="#000"/>
+0<circle r="0" cx="z" id="0" style="fill: url(#r0000" fill="url(#000e)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-0000-000 00-00-00 00-00 000-00 0000-00 00-0-00l00,000" fill="#000000"/>
+0<path d="0000,00000,00,0,0000000" id="0000" style="fill: url(#00000" fill="url(#000e)"/>
+0<path d="M00,00c090-0,10-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#000e)"/>
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0
+0<circle r="z" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-6-00000.0001000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="Y" cy=")"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000-00)0000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000e)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,00-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000000000000000000000000000000000000000000000000000000000000000000-00l0,0c0,0,00c0,0000,00000,000000,00000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#000e)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000e)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1011.svg b/test/ns-afl-svg/1011.svg
new file mode 100644
index 0000000..9b0e4b4
--- /dev/null
+++ b/test/ns-afl-svg/1011.svg
@@ -0,0 +1,13 @@
+<svg wB="0" viewBox="0 0 1 8">
+0<path d="M0,0h00c00,0-00,00,0,00h000zM00,000-0-0-00-00-0-0-0-00-0
+0-0 00-0-0-0-0-0-00-0 00-0 0 0 000 0000 0 00 00 00
+0 00 0 00 00 00 0 00 0 00 0-000-000-00-000
+00-000 00-000-00-000-00-000-00-000 00-000 00 0 00-0 00-000-00-000 00-000 000-000 000 000 000 000 000 00 000-000 000-000 000-000 000
+000 000 000-00 0000-00 000-00 0000-00-000-00-000 00-000 000-000 0000-000
+000 0-00 00-000 00-000 0-000 0-000-0-000-0-00-0-00 00-000-00-000-00-000-00-000 00-000 00 0 00-0 00-000-00-000 00-000 000-000 000 000 000 000 000 00 000-000 000-000 000-000 000
+000 000 000-00 0000-00 000-00 0000-00-000-00-000 00-000 000-000 0000-000
+000 0-00 00-000 00-000 0-000 0-000-0-000-0-00-0-00-0-000-00-00-0-00-00-000-00-000-00-000-000-000-00-000-000-000-00-000
+00-000 00-000-00-000-00-000-00-000 00-000 00 0 00-0 00-000-00-000 00-000 000-000 000 000 000 000 000 00 000-000 000-000 000-000 000
+000 000 000-00 0000-00 000-00 000 0 0000(0,000,00"/>0<elliRse rx="0" ry="0" transform="0"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(00 0000000000000000000000000000000000000000,000000000000000,00"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(000,0000)"
+fill="#000" opacity="0"/>0<ellipse rx="5" ry="2" transform="rotate(0-00 0000,000" fill="#000"
+opacity="0"/>0</svg>
diff --git a/test/ns-afl-svg/1012.svg b/test/ns-afl-svg/1012.svg
new file mode 100644
index 0000000..beffa37
--- /dev/null
+++ b/test/ns-afl-svg/1012.svg
@@ -0,0 +1,125 @@
+<?l?>
+<svg e="0" c="0" cy="0" r="0" stroke="l0r00ric0"
+strsion="0" xmlns="000000000000000000" xmlns:x="0" width="0" height="0" style="0" on="0">
+0<script pe="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" ght="0" style="0" on="0">
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0r00ric0"
+stroke-winth="0"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0
+0
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0r00ric0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0
+0
+0<script pe="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0r00ric0"
+stroke-winth="0"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0
+0
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0r00ric0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/1013.svg b/test/ns-afl-svg/1013.svg
new file mode 100644
index 0000000..c0e6e6b
--- /dev/null
+++ b/test/ns-afl-svg/1013.svg
@@ -0,0 +1,5 @@
+<svg xmlns="00000000000000000000000000" viewBod="0">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="o0a00e"/>0
+0<path d="M0,0h0l0,0v0l0,0l0-0B" stroke="#000" fill="o0a00e"/>0
+0<path d="0,000,00" fill="#000"/>0
+</svg>
diff --git a/test/ns-afl-svg/1014.svg b/test/ns-afl-svg/1014.svg
new file mode 100644
index 0000000..96a5d01
--- /dev/null
+++ b/test/ns-afl-svg/1014.svg
@@ -0,0 +1,5 @@
+<svg ooooxìå000="0">
+0<g filtìå000000000000="0">
+0<gsvg ooooxìå00000000000="0">
+0<g filtìå0000="0">
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1015.svg b/test/ns-afl-svg/1015.svg
new file mode 100644
index 0000000..5e58783
--- /dev/null
+++ b/test/ns-afl-svg/1015.svg
@@ -0,0 +1,370 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a00fel000se00000"/>
+0
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stor="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0-0,00,0,000,00c0,0-0,00-00,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ00000000000000000000000000000000000"/>0
+0<circle r="4" c="0"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00l00,000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="00000000000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-0000-0M0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-00-60.800,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="0000000000000"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fWll="0"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,10-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000e)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" y="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<GirCle r="0" cx="0" y="0" fill="0"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,00000000 000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" y="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" y="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#0000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Y="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1016.svg b/test/ns-afl-svg/1016.svg
new file mode 100644
index 0000000..920c37a
--- /dev/null
+++ b/test/ns-afl-svg/1016.svg
Binary files differ
diff --git a/test/ns-afl-svg/1017.svg b/test/ns-afl-svg/1017.svg
new file mode 100644
index 0000000..25a24dc
--- /dev/null
+++ b/test/ns-afl-svg/1017.svg
@@ -0,0 +1,8 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">0<path d="M0,0h0*000000" stroke="#000" fill="x0n0"/>0
+0<path d="M00,0h00000000v00l000,00" fill="x0n0"/>0
+0<path d="M00,0h00l00,00v0h000l000-00v000z" fill="#000"/>0
+0<text x="z" stroke="0" fl="0"/>0<path d="M00,0h00l00,00v00l000,00" fill="x0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0<text x=")"/>0<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+fill="#000" py="0"/>0<ellipse rx="3" ry="2" n0m="0" fill="#000"
+acity="0"/>0</svg>
diff --git a/test/ns-afl-svg/1018.svg b/test/ns-afl-svg/1018.svg
new file mode 100644
index 0000000..cd72b82
--- /dev/null
+++ b/test/ns-afl-svg/1018.svg
@@ -0,0 +1,61 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='r0c00anc000ed'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='b0i00'/>0<path d='M0 0A00 0 0 0 0 00 00' stroke='b0l00' oqoke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='n0s0' stroke='blue'/>">]><svg width="px" ei="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" he="0" fill="none" se="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g m="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport0;</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg ro="0" ix="0"
+id="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&o;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg io="0" ox="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&t;
+0<svg eserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" ie="0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(0,0)"><text y="/">0</text>&V;
+0<svg preserveAspectRatio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)translate(0,0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="/">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg prtRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1019.svg b/test/ns-afl-svg/1019.svg
new file mode 100644
index 0000000..d8a8aed
--- /dev/null
+++ b/test/ns-afl-svg/1019.svg
@@ -0,0 +1,39 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">0<style e="0">
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="0" style="stroke-width:0cm" transform="0"/>
+0
+<circle cx="cm" cy="pt" r=":" transform="0"/>0<circle cx="cm" r="1" style="fill:blue;stroke:black;stroke-width:001cm" transform="00"/>
+0
+<circle cx="P" cy="pt" r=":" transform="0"/>0<circle cx="cm" r="a"/>
+0
+0<circle cx="cm" cy="pt" r=":" transform="0,000"/>0<circle cx="pc" r="1" s="0" transform="translate(0000000"/>
+0
+0<circle xx="0" cy="pt" r=":" transform="000"/>0<circle cx="cm" r="1" style="fill:blue;stroke:black;stroke-width:001cm" transform="0000"/>
+0
+<circle cx="P" cy="pt" r=":" transform="000"/>0<circle cx="cm" r="a"/>
+0
+0<circle cx="cm" cy="pt" r=":" transform="000,000"/>0<circle cx="pc" r="1" s="0" transform="translate(0000000"/>
+0
+0<circle cx="cm" cy="pt" r="1" style="fill:blue;stroke:black;stroke-width:0t0" transform="0000"/>0<circle cx="cm" r="1" style="fill:blue;stroke:black;stroke-width:0c0"/>
+0
+0
+<circle cx="cm" cy="pt" r=":" transform="000,000"/>0<circle cx="pc" r="1" style="fill:blue;stroke:black;stroke-width:1cm" transform="0000"/>
+0
+<circle cx="P" cy="pt" r=":" transform="000,000"/>0<circle cx="pc" r="a"/>
+0
+0<circle cx="cm" cy="pt" r=":" transform="000,000"/>0<circle cx="p" r="1" l="0" transform="translate(0000000"/>
+0
+0<circle cx="cm" cy="pt" r="0" style="fill:blue;stroke:black;stroke-width:0t0" transform="0000"/>0<circle c="0" cy="pt" r="1" style="fill:blue;stroke:black;stroke-width:0t0" transform="0000"/>0<circle cx="p" r="1" style="fill:blue;stroke:black;stroke-width:000c0"/>
+0
+0
+<circle cx="cm" cy="pt" r=":" transform="000,000"/>0<circle cx="pc" r="1" style="fill:blue;stroke:black;stroke-width:001cm" transform="0000"/>
+0
+<circle cx="P" cy="pt" r=":" transform="000,000"/>0<circle cx="pc" r="a"/>
+0
+0<circle cx="cm" cy="pt" r=":" transform="000,000"/>0<circle cx="pc" r="1" l="0" transform="translate(0000000"/>
+0
+0<circle cx="cm" cy="pt" r="0" style="fill:blue;stroke:black;stroke-width:000t0" transform="0000"/>0<circle cx="pc"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1020.svg b/test/ns-afl-svg/1020.svg
new file mode 100644
index 0000000..df56148
--- /dev/null
+++ b/test/ns-afl-svg/1020.svg
@@ -0,0 +1,56 @@
+<vg xmlns="000000000000000000" Box="0">
+0<path d="0" ke="0" Box="0">
+0<path d="0" se="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" y="0" foize="0" fill="0" ex="0"><a/>0
+0<path d="0" ke="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="" y="0" ze="0" fill="0" text-ar="0"><a/><![CDATA[0]]></text>0
+0<text x="0" y="0" foize="0" fill="0" text-ar="0"><a/><![CDATA[0]]]]></text>0
+0<text x="0" y="0" font-size="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><a/>0
+0<path d="0" stroke="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" y="0" foize="0" fill="0" text-ar="0"><a/><![CDATA[0]]></text>0
+<path d="0" se="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><a/>0
+0<path d="0" ke="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="" y="0" font-size="0" fill="0" text-ar="0"><a/><![CDATA[0]]></text>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><a/><![CDATA[0]]]]></text>0
+0<text x="0" y="0" font-size="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><a/>0
+0<path d="0" stRoke="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><a/><![CDATA[0]]></text>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><a/><![CDATA[0]]]]></text>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><a/><![CDATA[0]]]
+0
+0]]></text>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><a/><![CDATA[0]]]]></text>0
+0<text x="0" y="0" font-size="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><a/>0
+0<path d="0" stroke="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><a/><![CDATA[0]]></text>0
+<path d="0" stroke="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><a/>0
+0<path d="0" stroke="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="" y="0" font-size="0" fill="0" text-ar="0"><a/><![CDATA[0]]></text>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><a/><![CDATA[0]]]]></text>0
+0<text x="0" y="0" font-size="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><a/>0
+0<path d="0" stroke="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><a/><![CDATA[0]]></text>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><a/><![CDATA[0]]]]></text>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><a/><![CDATA[0]]]]]]></text>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><a/><![CDATA[0]]
+0
diff --git a/test/ns-afl-svg/1021.svg b/test/ns-afl-svg/1021.svg
new file mode 100644
index 0000000..65aa002
--- /dev/null
+++ b/test/ns-afl-svg/1021.svg
@@ -0,0 +1,395 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0
+0<stop stop-color="q0a00fps000"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0,0-0,00-00,0000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000000000000000000000000000000" id="4" style="fill: url(#000000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="00000000000000000000000000000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="0000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-000000000070000000000000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,00000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,00-00000,00"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx=")"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" f="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#0" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,02-00l04,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" f="0"/>0
+0<circle r="4" _x="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fi="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,00000000 000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="4" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," ll="0"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#0"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1022.svg b/test/ns-afl-svg/1022.svg
new file mode 100644
index 0000000..d69f232
--- /dev/null
+++ b/test/ns-afl-svg/1022.svg
@@ -0,0 +1,60 @@
+<?l?>
+<svg version="0" n="0" width="0" height="0" style="0" on="0">
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0m00vic000or00000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0
+0<script pe="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="b0u0" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0m00vic000or00000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/1023.svg b/test/ns-afl-svg/1023.svg
new file mode 100644
index 0000000..e868517
--- /dev/null
+++ b/test/ns-afl-svg/1023.svg
@@ -0,0 +1,48 @@
+<svg xmlns="000000000000000000" viewBox="0-0 1 1" stroke-width="2">
+0<g fill="none">
+0<ellipse stroke="#000000" rx="v" ry="4"/>0
+0<ellipse stroke="#000000" rx="v" ry="4"/>
+0<ellipse stroke="#000000" rx="V" ry="4" transform="rotate(0)"/>
+0<ellipse stroke="#000000" rx="6" ry="4" transform="rotate(0)"/>
+0<circle stroke="#000000" r="4"/>
+0</g>
+0<g fill="#000000" e="0">
+0<ce l="0" r="0"/>
+0<circle cy="0" r="9"/>
+0<rclz x="0" y="0" r="0"/>
+0<circle cx="0" cy="0" r="9"/>
+0
+0<ellipse stroke="#000000" rx="V" ry="4" transform="rotate(0)"/>
+0<ellipse stroke="#000000" rx="6" ry="4" transform="rotate(0)"/>
+0<circle stroke="#000000" r="4"/>
+0</g>
+0<g fill="0000000" e="0">
+0
+0<g fill="none">
+0<ellipse stroke="#000000" rx="v" ry="4"/>0
+0<ellipse stroke="#000000" rx="v" ry="4"/>
+0<ellipse stroke="#000000" rx="V" ry="4" transform="rotate(0)"/>
+0<ellipse stroke="#000000" rx="6" ry="4" transform="rotate(0)"/>
+0<circle stroke="#000000" r="4"/>
+0</g>
+0<g fill="#000000" e="0">
+0<ce l="0" r="0"/>
+0<circle cy="0" r="9"/>
+0<rclz x="0" y="0" r="0"/>
+0<circle cx="0" cy="0" r="9"/>
+0
+0<ellipse stroke="#000000" rx="V" ry="4" transform="rotate(0)"/>
+0<ellipse stroke="#000000" rx="6" ry="4" transform="rotate(0)"/>
+0<circle stroke="#000000" r="4"/>
+0</g>
+0<g fill="0000000" e="0">
+0<circle fill="#000000" r="3"/>
+0<circle cy="0" r="9"/>
+0<rclz x="0" y="0" r="0"/>
+0<circle cx="0" cy="0" r="9"/>
+0</g>
+0<circle fill="#000000" r="3"/>
+0<circle cy="0" r="9"/>
+0<circlz x="0" y="0" r="0"/>
+0<circle cx="0" cy="0" r="9"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1024.svg b/test/ns-afl-svg/1024.svg
new file mode 100644
index 0000000..037fdd1
--- /dev/null
+++ b/test/ns-afl-svg/1024.svg
@@ -0,0 +1,9 @@
+<svg xmlns="000000000000000000" xmlns:xlin0="0" viewBox="0 0 0 0">0<radialGradient d="0" cx="0" cy="0" r="0" grntUnits="0"><op ot="0" stop-c="0"/><stop ot="0"/></radialGradient>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" s="0"><stop ot="0" stop-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,000,000:0000,00000,0000000,00000,00000,0000000,00000,00000,00" id="0" fill="c0c00cme00"/>
+0<patH d="M0,0,000:0000,000,0,000,000000,00000,00000,0000000,00000,00000,00" id="0" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,00000,0000000,00000,00000,0000000,00000,00000,00" id="0" fill="c0c00cle00"/>
+0<use xlin0:href="0" transform="0"/>
+0
+0<use xlin0:href="0" transform="0"/>0</svg>
diff --git a/test/ns-afl-svg/1025.svg b/test/ns-afl-svg/1025.svg
new file mode 100644
index 0000000..87e89c8
--- /dev/null
+++ b/test/ns-afl-svg/1025.svg
@@ -0,0 +1,29 @@
+<svg xmlns="00000000000000">0<path d="M0,00l000-00z" stroke="#000" fill="m&lt;o00inc000vu000"/>0
+0
+0<path d="M00,00v000,00h000l000-00v000z" stroke="#000" fill="0000000000000"/>0
+0<path d="M00,000l000,00h00v000z" fill="#000"/>0
+0
+0<path d="M00,0h0000v0000000000000000z" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0
+0<path d="M00,00M0000000000000" stroke="#000" fill="m&lt;o00inc000vu000"/>0
+0
+0<path d="M00,0h00l00,00v000,00h000l000-00v00000" fill="m&lt;o00inc000vu000"/>0
+0
+0<path d="M00,0h00l00,00v000,00h000l000-00v000z" stroke="#000" fill="m&lt;`00inc000ee"/>0
+0<path d="M00,000l000,00h00v000z" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v0000000000000000z" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0
+0<path d="M00,00M0000000000000" stroke="#000" fill="m&lt;n00ncl000ee"/>0
+0
+0<path d="M00,0h00l00,00v000,00h000l000-00v000z" stroke="#000" fill="m&lt;`00inc000ee"/>0
+0<path d="M00,000l000,00h00v000z" fill="#000"/>0
+0&lt;0
+0<path d="M00,000l000,00h00v000z" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v0000000000000000z" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0
+0<path d="M00,0h00l00,0000l00,00v0$000" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0<path d="M00,000l000,00h00000N000000000" fill="#000"/>0
+0
+0<text x="0" y="0" t-e="0" l="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1026.svg b/test/ns-afl-svg/1026.svg
new file mode 100644
index 0000000..e8fdc8c
--- /dev/null
+++ b/test/ns-afl-svg/1026.svg
@@ -0,0 +1,32 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="00" xmlns:inkscape="000" width="0" height="7" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:dome="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0" th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0" th="0"
+e="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill: t0r00tde0;" p-h="0"
+d="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none"
+d="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect
+le="0" p-h="0" id="0"
+tc="0" height="0" x="0" y="0" style="fill: t0r00tde0;"/>
+0</svg>0
+0
+0<rect style="fill: t0r00tde0;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect le="0" p-h="0" id="0" tc="0" height="0" x="0" y="0" style="fill: t0r00tde0;"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1027.svg b/test/ns-afl-svg/1027.svg
new file mode 100644
index 0000000..7e9817a
--- /dev/null
+++ b/test/ns-afl-svg/1027.svg
@@ -0,0 +1,21 @@
+<svg xmlns="0000000" fill="url(#0)000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v000f"/>
+0<rect width="0" h="0" he="0" x="0" fill="#000000"/>
+0<rect width="#"/>
+0<rect width="0"/>
+0<rect width="0" ight="0" x="0" fill="0000000"/>
+0<rect width="0" height="0" x="0" fill="#000000"/>
+0
+0<rect width="#"/>
+0<rect width="0" heigheight="0" x="0" fill="#000000"/>
+0<rect width="f"/>
+0<rect width="0"/>
+0<rect width="0" hiight="0" x="0" fill="d0a00ff"/>
+0<rect width="0" height="0" x="0" fill="#000000"/>
+0
+0<rect width="0"/>
+0<rect width="0" QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQight="0" x="0" fill="d0a00ff"/>
+0<recd width="0"/>
+0<rect width="0" hiight="0" x="0" fill="d0a00ff"/>
+0<rect width=")" height="0" x="0" fill="#000000"/>
+0<rect width="0" height="0" fill="none" stroke="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1028.svg b/test/ns-afl-svg/1028.svg
new file mode 100644
index 0000000..7c336ef
--- /dev/null
+++ b/test/ns-afl-svg/1028.svg
@@ -0,0 +1,425 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>0
+0
+0<stop stop-color="p0b0" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="000" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<p op-c="0" et="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0" ra_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="url(00"/>
+0<path d="0" of="0"/>
+0
+0
+0<stop r="0" of="0"/>
+0
+0<stop r="0" f="0"/>
+0
+0
+0<stop r="0" offset="0"/>
+0
+0<stop r="0" offset="0"/>
+0<stop r="0" et="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<ph d="0"/>0
+0<circle r="0" cx="0"/><stop st="0" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop sr="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c000,00,0,00-0,00000000000000000000000)"/>0
+0<circle r="4" cx="0"/>
+0<path d="0000000000000000000000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="00000000000000000000000" id="0" style="fill: url(#r" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,1
+0,0000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" ky="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#r0000" fill="url(#p"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-0000-000 00-00-00 00-00 000-00 0000-00 0l00000000,000" fill="#000000"/>
+0<path d="0000,00000,00,0,0000000" id="0004" style="fill: url(#000000" fill="url(#00)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0
+0<circle r="z" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-6-000000000070000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy=")"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,00-0,00-00l000000,000,0,0000,0000,0000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,00000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,10-00,020,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<WatE d="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000070000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,100-00l0-00c0-0,0-00,02-00l24,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,00..000,00000000 000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0<path d="M00,00c000-0,00-20,000-00l0-00c0-0,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,0000000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,10-00,020,00v0" fill="url(#py0ellow)"/>0
+0
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1029.svg b/test/ns-afl-svg/1029.svg
new file mode 100644
index 0000000..90304cb
--- /dev/null
+++ b/test/ns-afl-svg/1029.svg
@@ -0,0 +1,16 @@
+<svg xmlns="0000000000" o="0" stroke-width="k" width="0" height="0" style="0" n="0">0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0
+0
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/1030.svg b/test/ns-afl-svg/1030.svg
new file mode 100644
index 0000000..9f62897
--- /dev/null
+++ b/test/ns-afl-svg/1030.svg
@@ -0,0 +1,2 @@
+<svg xmlns="00000000000000000000000000000" viewBox="0">
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1031.svg b/test/ns-afl-svg/1031.svg
new file mode 100644
index 0000000..ac754fd
--- /dev/null
+++ b/test/ns-afl-svg/1031.svg
@@ -0,0 +1,3 @@
+<svg ooootìå0000000000="0">
+0<g filtìå000="0">
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1032.svg b/test/ns-afl-svg/1032.svg
new file mode 100644
index 0000000..a613b51
--- /dev/null
+++ b/test/ns-afl-svg/1032.svg
@@ -0,0 +1,78 @@
+<svg ns="0" Box="0">
+0<defs>
+0<linradient id="0" georm="0"><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћ>
+0
+0<![CDATA[0]]><Ћdefs>
+0<li id="0" genrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћ>
+0
+0<![CDATA[0]]><Ћdefs>
+0<li id="0" genrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0<![CDATA[0]]>0
+0<defs>
+0<liRradient id="0" sform="0"><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><fs>
+0
+0<![CDATA[0]]><Ћdefs>
+0<li id="0" genrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><fs>
+0
+0<![CDATA[0]]><Ћdefs>
+0<li id="0" grarm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0<![CDATA[0]]><Ћdefs>
+0<linent nrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<Ћ>0<Ћdefs>
+0<linent nrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><ЋdeЋ>0
+0<![CDATA[0]]><Ћdefs>
+0
+0<![CDATA[0]]><Ћdefs>
+0<li id="0" genrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0
+0<![CDATA[0]]><Ћdefs>
+0<li id="0" gradienrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0<![CDATA[0]]>0
+0<defs>
+0<li id="0" gentT="0"><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0
+0<![CDATA[0]]><Ћdefs>
+0<li id="0" genrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0
+0<![CDATA[0]]><Ћdefs>
+0<li id="0" gradienrm="0">
+0<st><0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1033.svg b/test/ns-afl-svg/1033.svg
new file mode 100644
index 0000000..b70d821
--- /dev/null
+++ b/test/ns-afl-svg/1033.svg
@@ -0,0 +1,15 @@
+<svg s="0" viewBox="0 0 0 0">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(00)">
+0<stop stop-color="#000" offset="-6"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="00000000">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-7,0-00,00-00c00,0,00,0,20,0l0,00l00,0c-00000400000000000000000,0-00-9-00-20c0-04,0-20,00-000,0000000000,0000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#pyBlue)"/>
+0<path d="000000000000000000000000000000000000000000000000,000000,0000000000000000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1034.svg b/test/ns-afl-svg/1034.svg
new file mode 100644
index 0000000..d20843b
--- /dev/null
+++ b/test/ns-afl-svg/1034.svg
@@ -0,0 +1,27 @@
+<?l?>
+<svg xmlns:s="0" xmlns="000000000000000000"
+nload="0">0<script type="0">0<![CDATA[
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0]]>0</script>
+0<g d="0">
+0<rect d="0" x="0" y="0" width="0" height="0" fill="red" r="0"/>
+0<rect id='0' x="0" y="0" width="0" height="0" fill="rgb0000000000" fill-opacity="0" opacity="0" onmouseover="0"/>
+0<rect id='0' x="0" y="0" width="0" height="0" fill="rgb0000000000" fill-opacity="0" opacity="0" onmouseover="0"/>
+0<g id="0" x="0" y="0" onr="0">
+0<rect id='0' width="0" height="0" fill="rgb0000000000" fill-opacity="0" opacity="0"/>
+0</g>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1035.svg b/test/ns-afl-svg/1035.svg
new file mode 100644
index 0000000..c322691
--- /dev/null
+++ b/test/ns-afl-svg/1035.svg
@@ -0,0 +1,24 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h0-00z" stroke="#000" fill="n0v0"/>0
+0<path d="M00,0h000" fill="n0v0"/>0
+0<path d="M00,0000l00,00000l000,00v0l000-000-00" font-size="0" stroke="#000" fill="n0v0"/>0
+0<path d="M00,000,00" e="0" stroke="#000" fill="n0v0"/>0
+0
+0<path d="M00,0h00l00" x="0" stroke="#000" fill="n0v0"/>0
+0<path d="M00,000,00" f="0" fill="n0v0"/>0
+0<path d="M00,0h00l00,00v00l000,00v00l000,00l000-000-00" f="0" stroke="#000" fill="n0v0"/>0
+0<path d="M00,000,00" ze="0" se="0" fill="n0v0"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00v00000g" x="0" stroke="#000" fill="n0v0"/>0
+0<path d="000000000000000000000000" font-size="0" stroke="#000" fill="n0v0"/>0
+0<path d="M00,000,00" ze="0" stroke="#000" fill="n0v0"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00v0g" x="0" stroke="#000" fill="n0v0"/>0
+0<path d="M00,000,00" fit="0" fill="n0v0"/>0
+0<path d="M00,0h00l00,00v00l000,00v00l000,00l000-00v000" font-size="0" stroke="#000" fill="n0v0"/>0
+0<path d="M00,000,00" ze="0" stroke="#000" fill="n0v0"/>0
+0
+0<path d="M00,0h00l00,00v0000000000000000" vix="0" stroke="#000" fill="n0v0"/>0
+0<path d="M00,000,00" fill="#000"/>0
+0<text x="0" y="0" font-size="0" fl="0" ext-ar="0"><![CDATA[0
+0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1036.svg b/test/ns-afl-svg/1036.svg
new file mode 100644
index 0000000..a8ca84a
--- /dev/null
+++ b/test/ns-afl-svg/1036.svg
@@ -0,0 +1,54 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c00ext000co000'/>0<g transform='0'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<pathth d='0' stroke='0' stroke-width='0'/>0</g>0">
+<!ENTITY t "">
+<!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" ion="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" fill="none" stroke="blue"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>0<g transform="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport0;</g>
+0<g d="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0"
+h="0" heé00="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transforl="0"><text y="0">0</text>&o;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="P" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preseeveAspectRatio="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg preseAspectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1037.svg b/test/ns-afl-svg/1037.svg
new file mode 100644
index 0000000..1bb61e6
--- /dev/null
+++ b/test/ns-afl-svg/1037.svg
@@ -0,0 +1,16 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="stroke-width:001cm" transform="translate(0"/>
+0<circle cx="cm" cy="cm" r="1" style="0"/>
+0<circle cx="cm" cy="cm" r="H" style="fill:g0e00o{e000ac0;" transform="translate(0,0)"/>
+0
+0<circle cx="cm" cy="cm" r="H" style="fill:g0e00o{e000ac0;" transform="0"/>
+0<circle cx="cm" cy="cm" r="H" style="0" transform="translate(0,0)"/>
+0
+0<circle cx="cm" cy="cm" r="H" style="fill:g0e00o{e000ac0;" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1038.svg b/test/ns-afl-svg/1038.svg
new file mode 100644
index 0000000..52e3359
--- /dev/null
+++ b/test/ns-afl-svg/1038.svg
@@ -0,0 +1,39 @@
+<?l?>
+<svg version="0" xmlns="000000000000000000" xmlns:k="0" r="0" stroke="f0i00ric0"
+e="0" on="0">
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0i00ric0"
+stroke-width="3"/>
+0<text x="0" y="@">0</text>
+0<text x="0" y="0">0</text>
+0
+0
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0i00ric0"
+stroke-width="3"/>
+0<text x="0" y="@">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/1039.svg b/test/ns-afl-svg/1039.svg
new file mode 100644
index 0000000..c8f0779
--- /dev/null
+++ b/test/ns-afl-svg/1039.svg
@@ -0,0 +1,43 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="w0m0" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" t="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0-0,00,0,000,00c0,0-0,00-00,000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="00000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-8,10-20,024,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000M000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,000000000?0000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1040.svg b/test/ns-afl-svg/1040.svg
new file mode 100644
index 0000000..8bd6e66
--- /dev/null
+++ b/test/ns-afl-svg/1040.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:s0g00ue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1041.svg b/test/ns-afl-svg/1041.svg
new file mode 100644
index 0000000..ae3f030
--- /dev/null
+++ b/test/ns-afl-svg/1041.svg
@@ -0,0 +1,6 @@
+<svg viewBox='0 0-6-1' fe='0' fill='s0n00r' ke='0' xmlns='0'>
+0<path d='M0000000000000000-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,0,0c00,0-0,0,0,0000c0,0,0,0,0,0h000c00,0-0,0,0,0h00c0,0,0,0,0,0h000c00,0-0,0,0,0h00c0,0,0,0,0,0l000,0c00,0-0-0-00-0zM000,00c0,0,0-0,0-0l000,0c00000000000000000-0-00,0-00,0c00,0-0,0,0,00c0,0,00,00,00,0,000000,0c0,0,000,0000000,000,0,0,0,0,0000,000,0,0,000000,0,0,0,0,00000000,000,0,0,000000,0,0,0,0,00000000,000,0,0,000000,0,0,0,0,00000000000000000000000000,0000,0,000,0000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000,000,00000' fill='s0n00r' stroke='black'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,0,0c00,0-0,0,0,0h00c0,0,0,0,0,0h000c00,0-0,0,0,0h00c0,0,0,0,0,0h000c00,0-0,0,0,0h00c0,0,0,0,0,0l000,0c000000000000000000,00c0,0,000,0000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,000000000,000,00000' fill='s0n00r' stroke='black'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,0,0c00,0-0,0,0,0h00c0,0,0,0,0,0h000c00,0-0,0,0,0h00c0,0,0,0,0,0h000c00,0-0,0,0,0h00c0,0,/,0,0,00000,0000,000000000000000,0000,0,000,0000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000,000,00000' fill='s0n00r' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/1042.svg b/test/ns-afl-svg/1042.svg
new file mode 100644
index 0000000..d50be7a
--- /dev/null
+++ b/test/ns-afl-svg/1042.svg
@@ -0,0 +1,15 @@
+<svg ns="0" ewBox="0">
+0<defs>
+0<linearGradient id="0" grorm="0">
+0<stop stop-color="0" offset="0"/>
+0<stop stoet="0"/>
+0<![CDATA[0]]><![CDATA[0
+0
+0
+0
+0
+0
+0
+
+0]]><![CDATA[0]]><![CDATA[0
+0]]><![CDATA[0
diff --git a/test/ns-afl-svg/1043.svg b/test/ns-afl-svg/1043.svg
new file mode 100644
index 0000000..f8d84c4
--- /dev/null
+++ b/test/ns-afl-svg/1043.svg
@@ -0,0 +1,23 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="0000000000" xmlns:k="0" xmlns:sodipodi="00" xmlns:inkscape="0t" width="0" height="0" id="0" sodipodi:ion="0" inkscape:von="0" sodipodi:docname="0" inkscape:ut_e="0">
+0<defs id="0">
+0<linearGradient id="linearGradient0100" gradientUnits="00000000000000" x1="0" y1="0" x2="0" y2="0">
+0<stop style="stop-color:0" offset="0"
+d="0"/>
+0<stop style="stop-color:000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;" offset="0" d="0"/>
+0<stop style="stop-color:00000000000000"/>
+0<stop style="stop-color:000000" offset="0"
+d="0"/>
+0<stop style="stop-color:000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" offset="0"
+d="0"/>
+0</linearGradient>
+0</defs>
+0<g inkscape:label="0" inkscape:groupmode="0" id="0">
+0<rect style="fill:url(#linearGradient0100);"
+d="0" width="0" height="0" x="0" y="0"/>
+0 0
+0
+0<rect style="fill:url(#linearGradient0100);"
+d="0" width="0" height="0" x="0" y="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1044.svg b/test/ns-afl-svg/1044.svg
new file mode 100644
index 0000000..3071a51
--- /dev/null
+++ b/test/ns-afl-svg/1044.svg
@@ -0,0 +1,115 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='n0d'/>0<g transform='translate(0 00'>0<circle cx='0' cy='!' r='1' fill='y0`00w'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='b0u0'/>">]><svg width="px" height="30px" ion="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" fill="none" stroke="b0u0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g m="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<g m="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&Viewport2;</g>
+0<g d="0" transform="translate(0,00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,00"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0"><text y="0">0</text>&p;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 00"><text y="0">0</text>&Viewport2;
+0<svg presctRatio="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,00"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0 00"><text y="0">0</text>&Viewport2;
+0<svg preservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,000"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,00"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00"><text y="0">0</text>&Viewport2;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,000"><text y="0">0</text>&Viewport2;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,000"><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport2;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport2;
+0<svg prbectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg preseAspectRaTio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1045.svg b/test/ns-afl-svg/1045.svg
new file mode 100644
index 0000000..17b81c2
--- /dev/null
+++ b/test/ns-afl-svg/1045.svg
@@ -0,0 +1,614 @@
+<svg xmlns="00000000000000000000">
+0<path d=""/>0
+0<path d=""/>0
+0<jath d=""/>0
+0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<jath d=""/>0
+0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+
+0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+0
+
+0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+
+0
+0
+0<jath d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+
+0
+0<path d=""/>0
+0
+
+0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+
+0
+0
+0<jath d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+
+0
+0
+0
+
+0
+0
+0<jath d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<jath d=""/>0
+0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+
+0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+0
+
+0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+
+0
+0
+0<jath d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+
+0
+0<path d=""/>0
+0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<jath d=""/>0
+0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+
+0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+0
+
+0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+
+0
+0
+0<jath d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+
+0
+0<path d=""/>0
+0
+
+0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+
+0
+0
+0<jath d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+
+0
+0
+0
+
+0
+0
+0<jath d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+0<path d=""/>0
+0<path d=""/>0
+0<jath d=""/>0
+0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d="0" fill="0000000000"/>0
+0<path d="M0,000000000000000000000000000000000000000000000-0 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<path d="000" fill="v0n00lns00"/>0
+0<path d="M00,00v00l000,00h000l000000000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<path d="M00,0h000000" stroke="#000" fill="v0n00lns000ml0000"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0
+0<path d="M00,0h00l00,00v0h000-00,000-00l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h000l000-00-000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l00,00v00l0000,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+
+0<path d="M00,0h00l00,00v0h000-00,000-00l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="000000000"/>0
+0<path d=""/>0
+0
+0
+
+0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+
+0
+0
+0<jath d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+
+0
+0<path d=""/>0
+0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<jath d=""/>0
+0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+
+0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+0
+
+0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+
+0
+0
+0<jath d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+
+0
+0<path d=""/>0
+0
+
+0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+
+0
+0
+0<jath d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+
+0
+0
+0
+
+0
+0
+0<jath d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+0<path d=""/>0
+0<path d=""/>0
+0<jath d=""/>0
+0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d="000" fill="v0n00lns00"/>0
+0<path d="M00,00v00l0000000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000:0"/>0
+0<path d="000" fill="v0n00lns00"/>0
+0<path d="M00,00v00l000,00h000l00000000-0=0000000000000000000000000000000000000000000000" id="0000" style="fill: url(#r0000" fill="url(#00)"/>
+0<path d="M00,00000000000000,000,0000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#00000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#00000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="" cy="" fill="url(#00000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>
+0<cirCle r="T" cx="" cy="" fill="#000"/>
+0<circle r="4" cx="" cy="" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c00000000000000000000000000000000000000000000000000000000" fill="u0e0"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-000000,0-00,00-0000000000000000000000000000000c0,0,0000,0000,00-00,000000,000,0000,000,0l0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="" cy="" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000)"/>0
+0<cirCle r="4" cx="" cy="" fill="#000"/>
+0<circle r="4" cx="" cy="" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-000000,0000,00000000,00"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#00000)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#000000)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="" cy="" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="" cy="" fill="#000"/>
+0<circle r="4" cx="" cy="" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0M0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00000000,00-00,000-00000000000,0000,0000000000000000000,00000000000000000=00,0000000000000000,0000000000000000000" cx="" cy="" fill="url(#000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="" fill="url(#000000)"/>0
+0<circle r="4" cx="K" cy="0" fy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="" cy="" fill="#000"/>
+0<circle r="4" cx="" cy="" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,0000,00-000000000,000,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="" cy="" fill="#000"/>0<circle r="4" y="0" fill="url(#000000)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="" fill="url(#000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#0000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#0000000)"/>0
+0<cirCle r="4" cx="" cy="" fill="#00S"/>
+0<circle r="4" cx="0" fiill=""/>0
+0<circle r="4" cx="K" cy="0" fill="url(#0000000)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000000)"/>0
+0<cirCle r="4" cx="" cy="" fill="#000"/>
+0<circle r="4" cx="" cy="" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="" cy="" fill="url(#0000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#0000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="" cy="" fill="#000"/>
+0<circle r="4" cx="" cy="" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-000000,0-00,00-00000,0c0,0,0000,000000000000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="" fill="url(#000000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="" cy="" fill="#000"/>
+0<circle r="4" cx="" cy="" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="" fill="url(#0"/>0
+0
+
+0<circle r="4" cx="" cy="" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="" cy="" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<AirCle r="0" cx="" cy="" fill=""/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="" cy="" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="" cy="" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="" cy="" fill="#000"/>
+0<circle r="4" cx="" cy="" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" cx=""/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="" cy="," fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCla r="0" fill=""/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00000000000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="" cy="," fill="url(#00000000)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="" cy="" fill="#000"/>
+0<circle r="4" y="0" fill="url(#00000000)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<rirCle r="0" cx="0" cy="0" fill=""/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000a0000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<iircle r="0" cx="0" cy="0" fill=""/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#00000000)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="" fill="url(#00000000)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#00000000)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1046.svg b/test/ns-afl-svg/1046.svg
new file mode 100644
index 0000000..60cb70c
--- /dev/null
+++ b/test/ns-afl-svg/1046.svg
@@ -0,0 +1,114 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0a00sch000k' stroke='r0d'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' f='0'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='b0u0'/>">]><svg width="px" height="30px" ion="0" xmlns="0000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="b0u0"/>
+0<g f="0">
+0<text x="0" y="0">0</text>0<g t="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g tranVform="0">&t0;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&Viewport2;</g>
+0<g d="0" transform="translate(0 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t;
+0<svg tio="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0000"><text y="0">0</text>&t0;
+0<svg pro="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&t0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" heifht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport2;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0</g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" vilwBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform=",000"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport2;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewJox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport2;
+0<svg prbectRatio="0" viewBox="0 0 0 0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewGox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&t0;
+0<svg ectRaTio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1047.svg b/test/ns-afl-svg/1047.svg
new file mode 100644
index 0000000..ca9d32c
--- /dev/null
+++ b/test/ns-afl-svg/1047.svg
@@ -0,0 +1,10 @@
+<vg widBox="0" roke-width="0">0<vg xmlns="0000000000" nk="0" xmlns:sodipodi="00" xmlns:inkscape="000"
+th="0"
+ht="0" id="0" sodipodi:on="0" inkscape:vÁ0="0">
+0<defslter inkscape:cot̬Ì0="0"
+i="">
+0<sodipdview inkscape:ww-height="0" inkscape:window-width="0" inkscape:pageshadow="0" inkscape:ag="0" guiderance="0" grierance="0" obrange="0" borpacity="0" bdercolor="0" pagecolor="0" id="0" showgrid="0" inkscape:zoom="0" inkscape:cx="0" inkscape:cy="0" inkscah="0">0<svg xmlns="0000000000000000000000000000000000"
+nk="0" xmlns:sodi="00" xmlns:e="0" th="0" ht="0" id="0" sodi:ion="0" inkscape:vÁ0="0">
+0<defs>
+0<filter inkscape:cot̬Ì0="0">
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1048.svg b/test/ns-afl-svg/1048.svg
new file mode 100644
index 0000000..1d83e31
--- /dev/null
+++ b/test/ns-afl-svg/1048.svg
@@ -0,0 +1,115 @@
+<sv0 xmlns="000000000000000000" Box="0">
+0<path d="0" ink="0" xmlns:sodipodi="ht" xmlns:inkscape="htt"
+th="0"
+ght="0" id="0" sodipodi:ion="0" inkscape:von="0" sodipodi:doe="0" inkscape:xtension="0">
+0<defs id="0">
+0<linearGradient id="0" s="0" x0="0" y0="0" x2="0" y2="0">
+0<stop
+tyle="0"
+t="0"/>
+0<stop
+le="0"
+set="0" id="0"/>
+0</linearGradient>
+0</defs>
+0<g inkscape:xmlns="0" n="">
+0<rect sodi="0"
+th="0"
+ght="0" id="0" sodipodi:ion="0" inkscape:von="0" sodipodi:doe="0" inkscape:output_extension="0">
+0<defs id="0">
+0<linearGradient id="0" s="0" x0="0" y0="0" x2="0" y2="0">0
+0
+0<stop style="0" offset="0" id="0"/>
+0</linearGradient>
+0</defs>
+0<g inkscape:xmlns="0">
+0<defs id="0">
+0<linearGradient
+d="0" ads="0" x0="0" y0="0" x2="0" y2="0">
+0<stop
+le="0"
+set="0"
+d="0"/>
+0<stop s="0" offset="0" id="0"/>
+0</linearGradient>
+0</defs>
+0<g inkscape:xmlns="0">
+0<re sodi="0"
+mlth="0"
+t="0" Box="0">
+0<path d="0" ink="0" xmlns:sodi="ht" xmlns:inpe="htt" th="0" ht="0" id="0" sodi:ion="0" inkscape:von="0" sodi:docname="0" inpe:output_extension="0">
+0<defs i0="0">
+0<linearGradient id="0" g="0" x0="0" y0="0" x2="0" y2="0">
+0<stop tyle="0" of="0"/>
+0<stop e="0" et="0" id="0"/>
+0</linearGradient>
+0</defs>
+0<g inkscape:xmlns="0">
+0<r sodi="0" h="0" ht="0" id="0" sodi:ion="0" inpe:von="0" sodi:docname="0" inpe:output_extension="0">
+0<defs id="0">
+0<linearGradient id="0" Units="0" x0="0" y0="0" x2="0" y2="0">0
+0
+0<s style="0"
+set="0" id="0"/>
+0</linearGradient>
+0</defs>
+0<g inkscape:xmlns="0" t="">
+0
+0
+0
+0<defs id="0">
+0<linearGradient id="0" grads="0" x0="0" y0="0" x2="0" y2="0">
+0<stop tyle="0" t="0"/>
+0<stop
+le="0"
+set="0" id="0"/>
+0</linearGradient>
+0</defs>
+0<g inkscape:xmlns="0">
+0<rect sodi="0" th="0" ight="0" id="0" sodi:ion="0" inkscape:von="0" sodi:docname="0" inkscape:output_extension="0">
+0<defs id="0">
+0<linearGradient id="0" Units="0" x0="0" y0="0" x2="0" y2="0">0
+0
+0<stop style="0" offset="0" id="0"/>
+0</linearGradient>
+0</defs>
+0<g inpe:xmlns="0"
+e="">
+0<defs id="0">
+0<linearGradient
+d="0" ads="0" x0="0" y0="0" x2="0" y2="0">
+0<stop
+le="0"
+set="0" d="0"/>
+0<stop style="0" et="0" id="0"/>
+0</linearGradient>
+0</defs>
+0<g inkscape:xmlns="0">
+0<re sodi="0"
+mlth="0"
+t="0" Box="0">
+0<path d="0" ink="0" xmlns:di="ht" xmlns:e="0"
+th="0"
+ght="0" id="0" di:ion="0" inpe:von="0" di:docname="0" inpe:output_extension="0">
+0<defs i0="0">
+0<linearGradient id="0" grads="0" x0="0" y0="0" x2="0" y2="0">
+0<stop
+tyle="0" offset="0"/>
+0<stop
+le="0"
+set="0" id="0"/>
+0</linearGradient>
+0</defs>0<defs id="0">
+0<linearGradient
+d="0" grads="0" x0="0" y0="0" x2="0" y2="0">
+0<stop
+le="0"
+set="0" d="0"/>
+0<stop style="0" offset="0" id="0"/>
+0</linearGradient>
+0</defs>
+0<g inkscape:xmlns="0">
+0<re sodi="0" xmlth="0"
+t="0" id="0" di:ion="0" inkscape:von="0" di:docname="0" inpe:output_extension="0">
+0<defs id="0">
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1049.svg b/test/ns-afl-svg/1049.svg
new file mode 100644
index 0000000..c21cd3b
--- /dev/null
+++ b/test/ns-afl-svg/1049.svg
Binary files differ
diff --git a/test/ns-afl-svg/1050.svg b/test/ns-afl-svg/1050.svg
new file mode 100644
index 0000000..f7a941b
--- /dev/null
+++ b/test/ns-afl-svg/1050.svg
@@ -0,0 +1,375 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" gradientTransform="rotate(0">
+0<stop stop-color="0000000" offset="0"/>
+0<stop stop-color="g0a0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="s0f00l" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000 00-00 000-00 0000-00 000-000 00000 000000,0000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#00000" fill="url(#00)"/>
+0<path d="M00,0-00-0000000000000000000000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<paVh d="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#00)"/>0
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000-00-000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" vx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<paç00h d=""/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0
+0<path d="00,0000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" ficy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00o0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="000,00000000,00000,000000000000000,0000,0000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,000,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1051.svg b/test/ns-afl-svg/1051.svg
new file mode 100644
index 0000000..b68c371
--- /dev/null
+++ b/test/ns-afl-svg/1051.svg
@@ -0,0 +1,4 @@
+<svg olns="0" Box="0">
+0<l00è
+ m="">
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1052.svg b/test/ns-afl-svg/1052.svg
new file mode 100644
index 0000000..37591fd
--- /dev/null
+++ b/test/ns-afl-svg/1052.svg
@@ -0,0 +1,54 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='r0f00lba000d'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' f='0'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" ion="0" xmlns="00">
+0<desc>0</desc>
+0<rect x="0" y="0" w="0" hght="0"
+fill="none" roke="0"/>
+0<g onze="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&V;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&Viewport2;</g>
+0<g id="0" height="px" ion="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" hght="0"
+ll="0" stroke="b0u0"/>
+0<g fize="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="000000000">&r;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>0
+0<g><text y="0">0</text>&p;
+0<svg tio="0" vie="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" h="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg Asp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t0;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0&V;
+0<svg pro="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&r;
+0<svg prp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&r;
+0<svg preseAso="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1053.svg b/test/ns-afl-svg/1053.svg
new file mode 100644
index 0000000..bd3f184
--- /dev/null
+++ b/test/ns-afl-svg/1053.svg
@@ -0,0 +1,25 @@
+<svg xmlns="0000000000" xmlns:xlin0="0000" viewBox="0 0 1 2">
+0<radialGradient d="0" cx="0" cy="0" r="0" s="0"><op ot="0" sto00000000000000000000000000000000000000000000000000000pc="0"/><sp ot="0"/></radialGradient>
+0<path d="M0,00000000000000000000000000000000000000000000C000000000000000000" id="0" fill="l0c00qlm00"/>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" s="0"><op ot="0" st00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000="0"/></radialGradient>
+0<path d="M00,0000000000000000000000000000000000000000000000C000000000000000000" id="0" fill="l0c00qlm00"/>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" s="0"><op ot="0" sto00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000p-c="0"/><op ot="0"/></radialGradient>
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000C000,00 00,00 00,000C000,00 00,00 00,00" id="0" fill="l0c00qlm00"/>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" U="0"><sp ot="0" s0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c="0"/><sp ot="0"/></radialGradient>
+0<path d="M00,000A000,00 0,0,0 00,00,00" id="0" fill="l0c00qlm00"/>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" s="0"><op ot="0" sto00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000p-c="0"/><op ot="0"/></radialGradient>
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000C000,00 00,00 00,000C000,00 00,00 00,00" id="0" fill="l0c00qlm00"/>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" U="0"><sp ot="0" sto0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000p-c="0"/><sp ot="0"/></radialGradient>
+0<path d="M00,000A000,00 0,0,0 00,00,00" id="0" fill="l0c00qlm00"/>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" s="0"><stop ot="0" o00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000p="0"/><spop ot="0"/></radialGradient>
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000C000,00 00,00 00,000C000,00 00,00 00,00" id="0" fill="l0c00qlm00"/>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" Uts="0"><stop ot="0" sto0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000p-c="0"/><spop ot="0"/></radialGradient>
+0<path d="M00,000A000,00 0,0,0 00,000C00000000 00,00 000000000000000000000000000000000000,00 00,00" id="0" fill="l0c00qlm00"/>
+0<use xlin0:href="0" m="0"/>0</svg>
diff --git a/test/ns-afl-svg/1054.svg b/test/ns-afl-svg/1054.svg
new file mode 100644
index 0000000..4dece6f
--- /dev/null
+++ b/test/ns-afl-svg/1054.svg
@@ -0,0 +1,20 @@
+<svg Ãts="0" viewBox="0 0 1 1">
+0<path d="M00,000l00,00v0,00 0,0,0-00,0000,00a00,00 0,0,0 0-0000000000000n0"/>0
+0<path d="M00,0000000l000,00" fill="x0n0"/>0
+0<path d="M00,0000000000000l000,00h000l000-00v000z" fill="#000"/>0
+0<text x="z" soke="0" fill="0"/>0
+0<path d="M0000000000,00000l000,00" fill="x0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0<text x="n"/>0
+0<path d="M00,0h00l00,00v00l000,00" fill="x0n0"/>0
+0<path d="0000,00" stroke="#000" fill="x0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00" fill="x0n0"/>0
+0
+0
+0
+0<path d="M00,0h00l00,00v00l000,00" fill="x0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0<text x=")"/>0<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+fill="#000" opacity="0"/>0<ellipse rx="3" ry="2" tran0form="0" fill="000000000000000000000"/>0<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+fill="#000" opacity="0"/>0<ellipse rx="5" ry="2" tran0form="0" fill="#000"
+opacity="0"/>0</svg>
diff --git a/test/ns-afl-svg/1055.svg b/test/ns-afl-svg/1055.svg
new file mode 100644
index 0000000..dc3d0e8
--- /dev/null
+++ b/test/ns-afl-svg/1055.svg
@@ -0,0 +1,56 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="000" width="0" height="5" d="0" sodipodi:on="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" d="0">
+0<feGaussia inkscape:collect="0" n="0"/>0</filter>0
+0<clipPath d="0">
+0<rect d="0" x="0" y="0"
+h="0"
+t="0"/>
+0</clipPath>0
+0<clipPath d="0">
+0<rect d="0" x="0" y="0"
+h="0"
+t="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" d="0">
+0<rect style="fill:red;" p-h="0"
+d="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:f0l00dfill:none"
+d="0" width="0" height="0" x="0" y="0"/>
+0
+<!--0-->0<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:i="0" xmlns:iape="h" width="0" height="0" d="0" sodipodi:ion="0" inkscape:version="0" sodipodi:docname="0" iape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" d="0">
+0<feGaussianBlur iape:collect="0" n="0"/>0</filter>0
+0<clipPath d="0">
+0<rect d="0" x="0" y="0"
+h="0"
+t="0"/>
+0</clipPath>0
+0<clipPath d="0">
+0<rect d="0" x="0" y="0"
+h="0"
+t="0"/>
+0</clipPath>0
+0</defs>0
+0<g iape:label="0" inkscape:groupmode="0" transform="scale(0,2)" d="0">
+0<rect style="fill:red;" p-h="0"
+d="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:f0l00dfill:none"
+d="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:f0l00dfill:now0" d="0" width="0" height="0" x="0" y="0"/>0<rect style="stroke:f0l00dfill:none" d="0" x="0" y="0"/>0
+0<svg x="0"/>0
+0<svg x="0" y="0" width="0" t="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" p-h="0"
+d="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>0<rect style="stroke:f0l00dfill:now0" d="0" width="0" height="0" x="0" y="0"/>0<rect style="stroke:f0l00dfill:none" d="0" x="0" y="0"/>0
+0<svg x="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" p-h="0"
+d="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1056.svg b/test/ns-afl-svg/1056.svg
new file mode 100644
index 0000000..8eb190b
--- /dev/null
+++ b/test/ns-afl-svg/1056.svg
@@ -0,0 +1,20 @@
+<svg s="0" viewBox="0 0 1 1">0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(0)">
+0<stop stop-color="d0e0" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="000000000000000000000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0,000,0000,000,00000,00,0000,0000,0000,0000000000,0000,00000000000000000,0000,000000000000000000,00000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c00000,00000,00000000000c000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000000000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000000000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" x="0" style="fill: url(#000000" fill="url(#000000"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1057.svg b/test/ns-afl-svg/1057.svg
new file mode 100644
index 0000000..567b691
--- /dev/null
+++ b/test/ns-afl-svg/1057.svg
@@ -0,0 +1,25 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill: t0r00tde0;"
+p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1058.svg b/test/ns-afl-svg/1058.svg
new file mode 100644
index 0000000..10c8ee3
--- /dev/null
+++ b/test/ns-afl-svg/1058.svg
@@ -0,0 +1,376 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a00f"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0
+0<stop t="0" offset="t" style="0" fl="0"/>
+0<h d="0" fl="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ00000000000000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0000000000000000000000000000000000"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="00000000000000000000000000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l000 0000-00 000-000 00000 000000,0000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: u00000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-6-00000000007000000000000000000000000000000000000 0000000000000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,5,00-2,00l-50-00000,c0,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fl="0"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCme r="0" cx="0" y="0" fl="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000e)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" y="0" l="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000ac000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" y="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" y="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-10l24,0c0,0,00-0,14-15l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" f="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,10-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000,000" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-10l24,0c0,0,00-0,14-15l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Y="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1059.svg b/test/ns-afl-svg/1059.svg
new file mode 100644
index 0000000..063690b
--- /dev/null
+++ b/test/ns-afl-svg/1059.svg
@@ -0,0 +1,21 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmljs="0">0
+<svg xmlns="00000000000000000000000000">
+0<style type="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:00000;stroke-width:1cm" trorm="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke-width:1ex" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black;stroke-width:1cm" t="0"/>
+0</g>0</svg>0<style type="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" s="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:1ex" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:00000000" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:001ex" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1060.svg b/test/ns-afl-svg/1060.svg
new file mode 100644
index 0000000..77ae56a
--- /dev/null
+++ b/test/ns-afl-svg/1060.svg
@@ -0,0 +1,6 @@
+<svg xmlns="000000000000000000" viewBox="0">0<path d="M0 000c00-00 00-0000 000000,0000 0" id="0" style="stroke: rgb(0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" d="0" style="stroke: rgb(0,00,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0,00,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1061.svg b/test/ns-afl-svg/1061.svg
new file mode 100644
index 0000000..431c9fa
--- /dev/null
+++ b/test/ns-afl-svg/1061.svg
@@ -0,0 +1,30 @@
+<?l?>
+<!DOCTYPE s00 PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">0
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;"/>
+0<circle cx="cm" cy="cm" r="H" style="fill: i0g00erk000ke;stroke-width:000cm" trstyle="0" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="H" style="fill: i0g00ero000bl000;" transform="translate(0,0)"/>0<circle cx="cm" cy="cm" r="H" style="fill: i0g00ero000bl000;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="H" style="fill: i0g00ero000bl000;stroke-width:000cm" transform=",0"/>
+0<circle cx="cm" cy="cm" r="H" style="fill: i0g00erk000ke;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="H" style="fill: i0g00ero000bl000;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="H" style="fill: i0g00ero000bl000;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="H" style="fill: i0g00ero000bl000;stroke-width:000cm" transform="translate(0,0)"/>
+0
+<circle cx="cm" cy="cm" r="H" style="fill: i0g00ero000bl000;"/>
+0
+<circle cx="cm" cy="cm" r="H" style="fill: i0g00ero000bl000;stroke-width:000cm" m="0"/>
+0<circle cx="cm" cy="cm" r="H" style="fill: i0g00ero000bl000;" transform="translate(0,0)"/>0<circle cx="cm" cy="cm" r="H" style="fill: i0g00ero000bl000;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="H" style="fill: i0g00ero000bl000;stroke-width:000cm" transform=",0"/>
+0<circle cx="cm" cy="cm" r="H" style="fill: i0g00erk000ke;stroke-width:000cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="H" style="fill: i0g00ero000bl000;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="H" style="fill: i0g00ero000bl000;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="H" style="fill: i0g00ero000bl000;stroke-width:000cm" transform="translate(0,0)"/>
+0
+<circle cx="cm" cy="cm" r="H" style="fill: i0g00ero000bl000;"/>
+0
+<circle cx="cm" cy="cm" r="H" style="fill: i0g00ero000bl000;stroke-width:000cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1062.svg b/test/ns-afl-svg/1062.svg
new file mode 100644
index 0000000..6bf7126
--- /dev/null
+++ b/test/ns-afl-svg/1062.svg
@@ -0,0 +1,3 @@
+<svg vox='0' xmlns='000' drofill='0' stroke='0'>0
+0<path d='000,00000,000,000,0' fill='d0t00tax000ts00000' stroke='black'/>0
+0<path d='000,00000,000,000,00000' fill='d0t00tax000ts00000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/1063.svg b/test/ns-afl-svg/1063.svg
new file mode 100644
index 0000000..de3e71f
--- /dev/null
+++ b/test/ns-afl-svg/1063.svg
@@ -0,0 +1,385 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" rm="0">
+0<stop stop-color="0" offset="4"/>
+0<stop or="0" offset="7"/>
+0<stop stop-color="s0o00sch000" offset=","/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop stop-color="#000" ot="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" fl="0"/>
+0<path d="00000000000000000000000000000," fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#00000000000000000000000000000000000000000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" cx="0" cy="0" fl="0"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000,00,0000,c00000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00000000000000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" iill="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,00-00000,00"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx=")"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" ficy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" filx="0"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fSll="0"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1064.svg b/test/ns-afl-svg/1064.svg
new file mode 100644
index 0000000..a521017
--- /dev/null
+++ b/test/ns-afl-svg/1064.svg
@@ -0,0 +1,12 @@
+<svg xmlns="000000000000000000" viewBox="0-0 1 1" h="0">
+0<g fill="n0e0">0<ellipse stroke="#000000" rx="6" ry="4"/>
+0<ellipse stroke="#000000" rx="0" ry="-4" transform="0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,0,,,,,,,,,,,,,,,,,,,,,,,,000000"/>
+0<ellipse stroke="0" r="0" ry="0" transform="0"/>
+0
+0</g>
+0<g fill="0" stroke="0">
+0<circle fill="0" r="0"/>
+0<circle cy="0" r="0"/>
+0<circle cx="0" cy="0" u="0"/>
+0<e cx="0" cy="0" r="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1065.svg b/test/ns-afl-svg/1065.svg
new file mode 100644
index 0000000..616fa35
--- /dev/null
+++ b/test/ns-afl-svg/1065.svg
@@ -0,0 +1,2 @@
+<svg ox='0' xmlns='000' drofill='0' stroke='0'>
+0<path d='0,00000,000,000,00000' fill='d0t00tax000ts'/>0</svg>
diff --git a/test/ns-afl-svg/1066.svg b/test/ns-afl-svg/1066.svg
new file mode 100644
index 0000000..be8d12a
--- /dev/null
+++ b/test/ns-afl-svg/1066.svg
@@ -0,0 +1,365 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" rorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="u0_00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000000000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#00000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" ll="0"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M0000-00-000-00-00000000000-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#000000" fill="url(#00)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" ll="0"/>0
+0<path d="0000000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000c000000c000000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" iill="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000" cx="0" fill="url(#00o0)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<circle r="4" cx="0" fill="url(#00o0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,00-00000,00"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," ficy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" iill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00Y0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,02-00l04,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" filx="0"/>0
+0<cirCle r="#"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" iill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,00000000 000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l000000,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-10l24,0c0,0,00-0,14-15l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" iill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,10-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fSll="0"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,10-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-10l24,0c0,0,00-0,14-15l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" iill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,000000000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1067.svg b/test/ns-afl-svg/1067.svg
new file mode 100644
index 0000000..602c6e4
--- /dev/null
+++ b/test/ns-afl-svg/1067.svg
@@ -0,0 +1,8 @@
+<svg xmlns="000000000000000000">
+0<path d="M0,0h0l0" stroke="#000" fill="n0i00wid00"/>0
+0<path d="00" fill="n0i00wid00"/>0
+0<path d="M00,0h00l00,00h0l0-00v000z" stroke="#000" fill="n0i00wid00"/>0
+0<pat/>0
+0<path d="00" fill="n0i00wid00"/>0
+0<path d="00"/>0
+0<text x="0" y="0" font-size="0" fl="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1068.svg b/test/ns-afl-svg/1068.svg
new file mode 100644
index 0000000..a8fac0c
--- /dev/null
+++ b/test/ns-afl-svg/1068.svg
@@ -0,0 +1,375 @@
+<svg xmlns="0000000000" viewBox="0" stroke-width=" ">
+0<defs>0<linearGradient id="pyYellow" gradientTransform="0,"><stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>0<linearGradient id="pyBlue" rm="0">
+0<p r="0" o="0"/>
+0<stop p-c="0" t="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,0000" id="0000" style="fill: url(#0" fill="url000000000"/>
+0<path d="M00,00c090-0,00-00,10,-50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="00000000000000000000000" fill="url(#0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00L00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#00000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#00000"/>0
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="M" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-00000000007000000000000000000000000000000000000 0000000000000000000000000000" x="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00Y0)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00o0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,104,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" ll="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000"/>
+0<path d="M00,00c090-0,00-00,104,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,02-00l04,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,0000000000000,000" fill="url(#00000"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" f="0"/>0
+0<circle r="4" _x="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fl="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,104-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-05l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,104,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="" fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,104,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,104,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-05l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000w)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" f="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,104,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1069.svg b/test/ns-afl-svg/1069.svg
new file mode 100644
index 0000000..f68d385
--- /dev/null
+++ b/test/ns-afl-svg/1069.svg
@@ -0,0 +1,16 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l000-00y0"/>0
+0
+0<path d="M00,0h00l00,0?" Ve="0" fill="p0n00ye"/>0
+0
+0<path d="M00,0h00l00,00v0000?" Ve="0" fill="p0n00cse000ye"/>0
+0
+0<path d="M00,0,0000" Ve="0" fill="p0n00ses000ma"/>0
+0
+0<path d="M00,0hl00,0,00" Ve="0" fill="0000000000000"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0<path d="M00,0h00l00,00v00l000,00l000-00v000z" fill="#000"/>0
+0<text x="0" y="0" ze="0" ll="0" t-r="0"><![CDATA[0
+0
+0]]]]
+0
+0]]]]></text>0</svg>
diff --git a/test/ns-afl-svg/1070.svg b/test/ns-afl-svg/1070.svg
new file mode 100644
index 0000000..afb9364
--- /dev/null
+++ b/test/ns-afl-svg/1070.svg
@@ -0,0 +1,5 @@
+<?l?>
+<!DOCTYPE s00 PUBLIC "0" "/"> <style type="0">
+0
+0</style>
+0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1071.svg b/test/ns-afl-svg/1071.svg
new file mode 100644
index 0000000..a791dd5
--- /dev/null
+++ b/test/ns-afl-svg/1071.svg
@@ -0,0 +1,3 @@
+<svg vivlx='0' fill='d0l00tax000ns00000' strokell='0' stroke='0'>
+0<path d='M0,0c00,0-0,0-0,00-00' fill='d0l00tax000ns00000' stroke='d0`00'/>0
+0<path d='M00,00c00,0-0,0-0,00-' fill='d0l00tax000ns00000' stroke='d0`00'/>0</svg>
diff --git a/test/ns-afl-svg/1072.svg b/test/ns-afl-svg/1072.svg
new file mode 100644
index 0000000..cdf8225
--- /dev/null
+++ b/test/ns-afl-svg/1072.svg
@@ -0,0 +1,25 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="000000/0000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="0" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+eit="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill: d0a00bac000;" ip-th="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width=")" id="0">
+0<rect style="fill: d0a00bac000;" ip-ph="0" id="0" width="0"
+dth="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1073.svg b/test/ns-afl-svg/1073.svg
new file mode 100644
index 0000000..f0ddc4b
--- /dev/null
+++ b/test/ns-afl-svg/1073.svg
@@ -0,0 +1,33 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<g style="0">
+0<circle cx="cm" cy="cm" r="k" transform="translate(0"/>0<circle cx="cm" cy="cm" r="1" n="0" rm="0"/>
+0<circle cx="c" cy="cm" r="1" style="fill:g0b00ck;stroke-width:001cm" t="0"/>
+0</g>0
+0
+<style te="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="J" r="k" transform="translate(0"/>0<circle cx="cm" cy="cm" r="1" style="fill:g0b00ck;stroke-width:001cm" t="0"/>
+0
+0<circle cx="c" cy="cm" r="1" style="fill:g0b00ck;stroke-width:001cm" t="0"/>
+0</g>0
+0
+0
+0
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="k" transform="translate(0"/>0<circle cx="cm" cy="cm" r="1" n="0" rm="0"/>
+0<circle cx="c" cy="cm" r="1" style="fill:g0b00ck;stroke-width:001cm" t="0"/>
+0</g>0
+0
+0
+0
+0
+
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="0" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1074.svg b/test/ns-afl-svg/1074.svg
new file mode 100644
index 0000000..03f43e8
--- /dev/null
+++ b/test/ns-afl-svg/1074.svg
@@ -0,0 +1,10 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="0" fill="l0v0"/>0
+0<path d="M00,0h00" e="0" fill="l0v0"/>0
+0<path d="M00,0h00" fill="#000"/>
+0<g s="0" stroke-cap="0" stroke-width="1" stroke="#000" fill="none">
+0<path d="M00,00c0,0,0,0,0,000,000,0c000000,0000000000,000,00000,0,0,0,00,0"/>
+0<path fill="#000" d="M,0,0K,,0,0,0,,0"/>
+0<path stroke-width="2" d="M00,0M00,00h00l00,00l00,000h0l0,00h0v000h0l00,0000-00000000000000000"/>
+0</g>
+0<patL se="0" soke-width="0"/>0</svg>
diff --git a/test/ns-afl-svg/1075.svg b/test/ns-afl-svg/1075.svg
new file mode 100644
index 0000000..9b401dc
--- /dev/null
+++ b/test/ns-afl-svg/1075.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="0000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:r0d0 stroke:black;stroke-width:e00000;" wransform="0"/>
+0<circlE cx="cm" cy="cm" r="1" style="stroke: 0000000000000;stroke-width:e00;" wransform="0"/>
+0<circlE cx="cm" cy="cm" r="1" style="stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke-width:e00;" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1076.svg b/test/ns-afl-svg/1076.svg
new file mode 100644
index 0000000..2b13a62
--- /dev/null
+++ b/test/ns-afl-svg/1076.svg
Binary files differ
diff --git a/test/ns-afl-svg/1077.svg b/test/ns-afl-svg/1077.svg
new file mode 100644
index 0000000..0f013e8
--- /dev/null
+++ b/test/ns-afl-svg/1077.svg
@@ -0,0 +1,42 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='red'/>0<g transform='0,000'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M0 0A0 0 0 0 0 00 00' stroke='q0a00' stroke-width='2'/>0</g>0">
+<!ENTITY t "">
+<!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" n="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" he="0" fill="none" se="0"/>
+0<g ont-size="0">
+0<text x="0" y="0">0</text>
+0<g m="0">&w;</g>
+0<text x="0" y="0">0</text>
+0<g transform=",0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport2;</g>
+0<g id="0" transform="translate(0,000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg io="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg ro="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg io="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg re="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg e_to="0" viewBox="0 0 0 0" width="0" height="0">0</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1078.svg b/test/ns-afl-svg/1078.svg
new file mode 100644
index 0000000..f7d5340
--- /dev/null
+++ b/test/ns-afl-svg/1078.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:r0r;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill: d0e" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1079.svg b/test/ns-afl-svg/1079.svg
new file mode 100644
index 0000000..57b15a8
--- /dev/null
+++ b/test/ns-afl-svg/1079.svg
@@ -0,0 +1,52 @@
+<svg l="0">
+0<path d="M00,0h00l000-00z" t="0" fill="m&lt;n00ncl000ee"/>0
+0
+0<path d="M00,00v0,00h000l000-00v000z" ke="0" fill="m&lt;`00inc000ee"/>0
+0<path d="M00,00h00v000z" fill="#000"/>0
+0
+0<path d="M00,0h00000q" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0
+0<path d="00000000000000" stroke="#000" fill="m&lt;o00inc000vu000"/>0
+0
+0<path d="M00,0h00l00,00v000,00h000l000-00v00000" fill="m&lt;o00inc000vu000"/>0
+0
+0<path d="M00,0h00l00,00v000,00h000l000-00v000z" stroke="#000" fill="m&lt;`00inc000ee"/>0
+0<path d="M00,000l000,00h00v000z" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0
+0<path d="0000000000000000000000" stroke="#000" fill="m&lt;o00inc000vu000"/>0
+0
+0<path d="M00,0h00l000-00z" stroke="#000" fill="m&lt;o00inc000vu000"/>0
+0
+0<path d="M00,00v000,00h000l000-00v000z" stroke="#000" fill="m&lt;`00inc000ee"/>0
+0&lt;0
+0
+0<path d="M00,0h00l00,00v000,00h000l000-00v00000" fill="m&lt;o00inc000vu000"/>0
+0
+0<path d="M00,0h00l00,00v000,00h000l000-00v000z" stroke="#000" fill="m&lt;`00inc000ee"/>0
+0<path d="M00,000l000,00h00v000z" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0
+0<path d="0000000000000000000000" stroke="#000" fill="m&lt;o00inc000vu000"/>0
+0
+0<path d="M00,0h00l000-00z" stroke="#000" fill="m&lt;o00inc000vu000"/>0
+0
+0<path d="M00,00v000,00h000l000-00v000z" stroke="#000" fill="m&lt;`00inc000ee"/>0
+0<path d="M00,000l000,00h00v000z" fill="#000"/>0
+0
+0<path d="M00,0h0000v00l000,00l000-00z" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0
+0<path d="0000000000000000000000" stroke="#000" fill="m&lt;o00inc000vu000"/>0
+0
+0<path d="0000000" fill="#000"/>0
+0&lt;0
+0<path d="M00,000l000,00h00v000z" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0
+0<path d="M00,0h00l00,0000l00,00v0$0000" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0<path d="M00,000l000,00h00000N000000000" fill="#000"/>0
+0
+0<text x="0" y="0" t-e="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1080.svg b/test/ns-afl-svg/1080.svg
new file mode 100644
index 0000000..ca85667
--- /dev/null
+++ b/test/ns-afl-svg/1080.svg
@@ -0,0 +1,116 @@
+<?l?>
+<svg version="0" n="0" width="0" height="0" style="0" o="0">
+0<script e="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g d="0" fill="blue" style="0">
+0<circle d="0" cx="0" cy="0" r="5" stroke="l0m00vic000or00000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>0
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="b0u0" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0m00vic000or00000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0<text ke="0"
+o-id="0"/>
+0<text x="0" y="0">0</text>
+0
+0<script pe="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="b0u0" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0m00vic000or00000"
+o-w="0"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/1081.svg b/test/ns-afl-svg/1081.svg
new file mode 100644
index 0000000..8d4af5a
--- /dev/null
+++ b/test/ns-afl-svg/1081.svg
@@ -0,0 +1,112 @@
+<svg olns="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="py0ellow" rorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop op-c="0" offset="0"/>
+0<stop stop-color="a0s00s" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000000" y="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#rad,0Z" fill="url(#0000)"/>0
+0
+0<pAth d="M00,00c0,0-0,00-00,000-0000000000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" c="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="00000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="00000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000" cx="0" y="0" fill="#000"/>
+0<circle T="0" cx="v" fill="url(#py0ellow)"/>0
+0<i r="0" cx="0" cy="0" fl="0"/>
+0<rcle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>
+0<path d="0" cx="0" cy="0" fill="0"/>0
+0<ce r="0" cx="0" cy="0" fill="0"/>0
+0<rcle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cCle r="0" cx="0" cy="0" fill="0"/>
+0<ccle r="0" y="0" fill="0"/>0
+0<cire r="0" cx="0" cy="0" fill="0"/>0
+0<rcle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<iCle r="0" cx="0" cy="0" fill="0"/>0
+
+0<irle r="0"/>0
+0<rcle r="0" cx="0" cy="0" fill="0"/>0
+0<rcle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cile r="0" cx="0" cy="0" fill="0"/>
+0<rcle r="0" cx="0" fill="0"/>0
+0<cirC r="0" cx="0" cy="0" fill="0"/>
+0<rcle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" id="0" tyle="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<irCe r="0" cx="0" cy="0" fill="0"/>
+0<rcle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0"/>0
+0<rcle r="0" cx="0" cy="0" fill="0"/>0
+0<ircle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<rcle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<rcle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>
+0<rcle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<rcle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<rCle r="0" cx="0" cy="0" fill="0"/>
+0<rcle r="0" y="0" fill="0"/>0
+0<rcle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" id="0004" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0</svg>
diff --git a/test/ns-afl-svg/1082.svg b/test/ns-afl-svg/1082.svg
new file mode 100644
index 0000000..9a9c8f7
--- /dev/null
+++ b/test/ns-afl-svg/1082.svg
@@ -0,0 +1,83 @@
+<?l?><!DOCTYPE g PUBLIC "0" "0"[<!ENTITY Smile "0
+<rect x='0' y='0' width='0' height='0' fill='0' stroke='0'/>0<g transform='0'>0<circle cx='0' cy='0' r='0' fill='0'/>0<circle cx='0' cy='0' r='0' fill='0'/>0<circle cx='0' cy='0' r='0' fill='0'/>0<path d='0' stroke='0' strokg-width='0'/>0</g>0">
+<!ENTITY t "">
+<!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='0' stroke='0'/>">
+]>
+<svg width="0" height="0" i="0" xmlns="00000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="0" stroke="0"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&Viewport0;</g>
+0<g d="0" t="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0"
+h="0" height="0">&Smile;</svg></g>
+0<g m="0"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&p;
+0<svg presctRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg presctRatio="0" view="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" t="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g m="0"><text y="0">0</text>&Viewport0;
+0<svg preservatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pspectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presctRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg preservatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg preectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1083.svg b/test/ns-afl-svg/1083.svg
new file mode 100644
index 0000000..41f8c78
--- /dev/null
+++ b/test/ns-afl-svg/1083.svg
Binary files differ
diff --git a/test/ns-afl-svg/1084.svg b/test/ns-afl-svg/1084.svg
new file mode 100644
index 0000000..4ac1085
--- /dev/null
+++ b/test/ns-afl-svg/1084.svg
Binary files differ
diff --git a/test/ns-afl-svg/1085.svg b/test/ns-afl-svg/1085.svg
new file mode 100644
index 0000000..b809d6c
--- /dev/null
+++ b/test/ns-afl-svg/1085.svg
@@ -0,0 +1,8 @@
+<svg viewBox='0 0 1 1' xmlns='00000000000000000000000000'>
+0<path d='M00,00l000-0l00-0l000-00l00,00l0-00l0,00l00-00l000,00l00,0l000,0l00,00l000-00l00,00z' fill='#000' stroke='c0b0'/>
+0<path d='M0,00l00' x='0' fill='#000'/>0
+0<path d='M00,00l000-0l00-0l000-00l00,00l0-00l0,00l00-00l000,00l00,0l000,0l00,00l000-00l00,00z' fill='#000' stroke='c0b0'/>
+0<path d='M0,00l00' b='0' fill='#000'/>
+0
+0
+</svg>
diff --git a/test/ns-afl-svg/1086.svg b/test/ns-afl-svg/1086.svg
new file mode 100644
index 0000000..cff5d4f
--- /dev/null
+++ b/test/ns-afl-svg/1086.svg
@@ -0,0 +1,2 @@
+<svg ox='0' xmlns='000' fill='s0l00tex000nc00000' stroke='0'>
+0<path d='M0,0c00,0-0,0-0,00-00' fill='s0l00tax000ns00000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/1087.svg b/test/ns-afl-svg/1087.svg
new file mode 100644
index 0000000..9d6457a
--- /dev/null
+++ b/test/ns-afl-svg/1087.svg
@@ -0,0 +1,14 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,000000000d0000,0000000000000000000000000000000000000000000000000000000000000000000,00000000000000000,0000,000000000000000000,0000000,000000,0000" fill="url(#0000)"/>
+0<path d="M70,80c0,7-8,10-200-7,0000,00000l00,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1088.svg b/test/ns-afl-svg/1088.svg
new file mode 100644
index 0000000..a914709
--- /dev/null
+++ b/test/ns-afl-svg/1088.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="t0n"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1089.svg b/test/ns-afl-svg/1089.svg
new file mode 100644
index 0000000..87170ae
--- /dev/null
+++ b/test/ns-afl-svg/1089.svg
@@ -0,0 +1,18 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="000000000000000000" width="0" height="0" id="0" sodipodi:ion="0" inkscape:von="0" sodipodi:ame="0" inkscape:output_extension="0">
+0<defs id="0">
+0<linearGradient id="linearGradient0100" gradientUnits="00000000000000" x1="0" y1="0" x2="0" y2="0">
+0<stop style="0" offset="0"
+d="0"/>
+0<stop style="stop-color:"/>0
+0<stop style="0" offset="0" d="0"/>
+0<stop style="stop-color:"/>0
+0
+0
+0
+0</linearGradient>
+0</defs>
+0<g inkscape:label="0" inkscape:oupmode="0" d="0">
+0<rect style="fill:url(#linearGradient0100);" id="0" width="P" height="0" x="0" y="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1090.svg b/test/ns-afl-svg/1090.svg
new file mode 100644
index 0000000..c657ccf
--- /dev/null
+++ b/test/ns-afl-svg/1090.svg
@@ -0,0 +1,3 @@
+<svg xmlns="0" qiewBox="0">
+0<I x="0"/>
+0<P r="0" cx="0" cy="0"/>0</svg>
diff --git a/test/ns-afl-svg/1091.svg b/test/ns-afl-svg/1091.svg
new file mode 100644
index 0000000..c2cf9f5
--- /dev/null
+++ b/test/ns-afl-svg/1091.svg
@@ -0,0 +1 @@
+<svg ĉ="0">0<svg ĉ="0">0<svvg ĉ="0">0<svg ĉ="0">0<svvg ĉ="0">0<svvg ĉ="0">0<svg ĉ="0">0<svvg ĉ="0">0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1092.svg b/test/ns-afl-svg/1092.svg
new file mode 100644
index 0000000..ea1441c
--- /dev/null
+++ b/test/ns-afl-svg/1092.svg
@@ -0,0 +1,69 @@
+<svg ns="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="py0ellow" rm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>0<stop stop-color="q0v00p" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-0000000000000000-000000000000000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0-0,00-00,000-000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" lf="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c00000000000000000-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cp="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,00,000,0000,0l0,000,0000000000000000000000000" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0l0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,00"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0
+0<path d="M00,00c0,000000000-0-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,0,0,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1093.svg b/test/ns-afl-svg/1093.svg
new file mode 100644
index 0000000..e58bd25
--- /dev/null
+++ b/test/ns-afl-svg/1093.svg
@@ -0,0 +1,17 @@
+<svg id='0' viewBox='0 0 1 1' xmlns='00000000'>
+0<linearGradient y1='0' x1='0' id='tgrad' gradientUnits='0'>
+0<linearGradient y0='0' x0='0' i0='0'>
+0<stop stop-color='#000' offset='0'/>
+0<stop stop-color='#000' offset='0'/>
+0</linearGradient>
+0<pat0 stli0='0' k0='0' d='0' fil0='0' stroklo0='0' oufset='0'/>0
+0<linearGradient y0='0' x0='0' id='0' gradientUnits='0'>
+0<linearGradient y0='0' x0='0' id='0'>
+0<stop stop-color='#000' offset='0'/>
+0<stop stop-color='#000' offset='0'/>
+0</linearGradient>
+0<path st='0' ke='0' d='0' fill='0' stroklor='0' oufset='0'/>
+0</linearGradient>
+0<path st-lin='0' stroke='0' d='0' fill='0' stroke-width='0'/>0
+0</linearGradient>
+0<path st-lin='0' stroke='url(#tgrad)' d='M0,0c0,0-0,0-0-0M0,0h0' fill='n0m0' stroke-width='6'/>0</svg>
diff --git a/test/ns-afl-svg/1094.svg b/test/ns-afl-svg/1094.svg
new file mode 100644
index 0000000..a6a2f98
--- /dev/null
+++ b/test/ns-afl-svg/1094.svg
@@ -0,0 +1,28 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY S ""><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='0' stroke='0'/>">]>
+<svg width="0" height="0" ion="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="0" stroke="0"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>0<g transform="0">&e;</g>0<text x="0" y="0">0</text>0<g t="0">&i;</g>0<text x="0" y="0">0</text>
+0<g transform="0">&t0;</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0"
+h="0" height="0">0</svg></g>
+0<g transform="0"><text y="0">0</text>&i;0<svg pro="0" viewBox="0" width="0" height="0">&e;</svg></g>
+0<g transform="0"><text y="0">0</text>&o;
+0<svg ctRatio="0" viewBox="0" width="0" height="0">&e;</svg></g>
+0</g>
+0<g id="0" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0" width="0" height="0">&e;</svg>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0" width="0" height="0">&e;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0" width="0" height="0">&e;</svg></g>
+0</g>
+0<g id="0" m="0">
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1095.svg b/test/ns-afl-svg/1095.svg
new file mode 100644
index 0000000..eebb82b
--- /dev/null
+++ b/test/ns-afl-svg/1095.svg
@@ -0,0 +1,68 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="000" width="0" height="0" d="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" d="0">
+0<feGaussianBlur inkscape:collect="0" n="0" d="0"/>0</filter>0
+0<clipPath d="0">
+0<rect d="0" x="0" y="0"
+h="0"
+t="0"/>
+0</clipPath>0
+0<clipPath d="0">
+0<rect d="0" x="0" y="0"
+h="0"
+t="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="">0
+0
+0
+0<defs>
+0<filter inkscape:collect="0"
+d="0">
+0<feGaussianBluy inkscape:collect="0"
+n="0"
+d="0"/>0</filter>0
+0<clipPath d="0">
+0<rect d="0" x="0" y="0" h="0"
+t="0"/>
+0</clipPath>0
+0<clipPath d="0">
+0<rect d="0" x="0" y="0" h="0"
+t="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="">
+0<rect style="fill: l0y00mlu0;"
+ppath="0" d="0" width="0" ghth="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0">
+0<rec width="0"
+t="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0">
+0<rect style="fill: l0y00mlu0;" ip-path="0" id="0" width="0" height="0" x="0" y="0" transform="0000,000"/>
+0</svg>0
+0<t le="0" ip-path="0" id="0"
+idth="0" height="0" x="0" y="0"
+form="0"/>
+0</svg>0
+0</g>0
+0<rect style="fill: l0y00mlu0;" ip-path="0"
+d="0" width="0"
+ghth="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none"
+d="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0">
+0<rec width="0" ht="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0">
+0<rect style="fill: l0y00mlu0;" ip-path="0"
+d="0" width="0" height="0" x="0" y="0" transform="00000000,000"/>
+0</svg>0
+0<t
+le="0" ip-path="0"
+d="0"
+idth="0"
+t="0" x="0" y="0" m="0"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1096.svg b/test/ns-afl-svg/1096.svg
new file mode 100644
index 0000000..8c9b385
--- /dev/null
+++ b/test/ns-afl-svg/1096.svg
@@ -0,0 +1,28 @@
+<svg xmlns="0000000000" viewBox="0">
+0<path d="00000000" e="0" fill="n&lt;o00oex000np0000"/>0
+0
+0<path d="M0-00v00" ke="0" fill="n&lt;o00oex000np0000"/>0
+<svg xmlns="00" viewBox="0">
+0<path d="M0-0v000" re="0" fill="n&lt;o00oex000np0000"/>0
+0<svg xmlns="00000000000000000000000000" viewBox="0">
+0<path d="M0-00v0z" ke="0" fill="n&lt;o00oex000np0000"/>0
+0
+0<path d="M0-00v0z" ke="0" fill="n&lt;o00oex000np0000"/>0
+<svg xmlns="00000000000000000000000000" viewBox="0">
+0<path d="M0-0v00z" re="0" fill="n&lt;o00oex000np0000"/>0
+0
+0<path d="M0-00v000z" ststroke="0" fill="n&lt;o00oex000np0000"/>0
+0<path d="M00,0h0z" ststroke="0" fill="n&lt;o00oex000nc0000"/>0
+0<path d="M00,0h00l00,0,0" fill="#000"/>0
+0<text x="0" y="0" font-size="0" ll="0" ext-ar="0"><![CDATA[0]]></text>0</svg>
+0<path d="M00,0h0z" ststroke="0" fill="n&lt;o00oex000nc0000"/>0
+0<path d="M00,0h00l00,0,0" fill="#000"/>0
+0<text x="0" y="0" font-size="0" fl="0" txt-ar="0"><![CDATA[0]]></text>0</svg>
+0
+0<path d="M0-00v000z" ststroke="0" fill="n&lt;o00oex000np0000"/>0
+0<path d="M00,0h0z" ststroke="0" fill="n&lt;o00oex000nc0000"/>0
+0<path d="M00,0h00l00,0,0" fill="#000"/>0
+0<text x="0" y="0" font-size="0" ll="0" ext-ar="0"><![CDATA[0]]></text>0</svg>
+0<path d="M00,0h0z" ststroke="0" fill="n&lt;o00oex000nc0000"/>0
+0<path d="M00,0h00l00,0,0" fill="#000"/>0
+0<text x="0" y="0" font-size="0" ll="0" ext-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1097.svg b/test/ns-afl-svg/1097.svg
new file mode 100644
index 0000000..af859da
--- /dev/null
+++ b/test/ns-afl-svg/1097.svg
@@ -0,0 +1,5 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 0 0">
+0<path d="0" stroke="#000" fill="p0r0"/>0
+0<path d="00000,0000" stroke="#000" fill="p0n0"/>0
+0
+0<text x="0" y="0" t-e="0" fl="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1098.svg b/test/ns-afl-svg/1098.svg
new file mode 100644
index 0000000..6aaa57f
--- /dev/null
+++ b/test/ns-afl-svg/1098.svg
@@ -0,0 +1,19 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0a00' stroke='d0d'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='!' r='1' fill='y0`00w'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M0 0A0 0 0 0 0 0 0' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="px" n="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" h="0" fill="none" stroke="blue"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g m="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport2;</g>
+0<g d="0" transform="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg o="0" viewBox="0 0 0 0"
+h="0" ht="0">&S;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg r="0" w="0" g="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1099.svg b/test/ns-afl-svg/1099.svg
new file mode 100644
index 0000000..90dcfb4
--- /dev/null
+++ b/test/ns-afl-svg/1099.svg
@@ -0,0 +1,13 @@
+<svg xmlns="000000000000000000" viewBox="0">
+0<g fill="none">
+0<ellipse stroke="#000000" rx="6" ry="4"/>
+0<ellipse stroke="#000000" rx="0" ry=")"/>
+0<ellipse stroke="d0f00cf" rx="6" ry="4" transform="rotate(60)"/>
+0<circle stroke="#000000" r="4"/>
+0</g>
+0<g fill="#000000" stroke="white">
+0<cw l="0"/>
+0<circle cy="0" stroke="d0f00cf" x="0" y="0" r="9"/>
+0<circle cx="0" cy="0" r="9"/>
+0<circle cx="0" cy="0" r="9"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1100.svg b/test/ns-afl-svg/1100.svg
new file mode 100644
index 0000000..cdb167b
--- /dev/null
+++ b/test/ns-afl-svg/1100.svg
@@ -0,0 +1,32 @@
+<svÚ0000000000 x=""><![CDATA[0
+0
+0
+0
+0
+0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0-->0
+<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->
+0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0
+<!--0-->0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1101.svg b/test/ns-afl-svg/1101.svg
new file mode 100644
index 0000000..05f009f
--- /dev/null
+++ b/test/ns-afl-svg/1101.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="n0f00wid00"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1102.svg b/test/ns-afl-svg/1102.svg
new file mode 100644
index 0000000..2664f5e
--- /dev/null
+++ b/test/ns-afl-svg/1102.svg
@@ -0,0 +1,18 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M0,0h00l00,00v00l0,00l000-00z" stroke="#000" fill="n0i0"/>0
+0
+0<path d="00000000" stroke="#000" fill="n0i0"/><path d="000000000000,0000000000" stroke="#000" fill="n0i0"/>0
+0
+0<path d="000,0000000000000000000000000000000000,0000000000" stroke="#000" fill="n0i0"/>0
+0
+0<path d="0000000,000000000000" stroke="#000" fill="n0i0"/><path d="000,000000,0,0000000000" stroke="#000" fill="n0i0"/>0
+0
+0<path d="000000000000" stroke="#000" fill="n0i0"/><path d="000,000000000000000000000000000" stroke="#000" fill="n0i0"/>0
+0
+0<path d="000,000000000000000000000000000000000000000000000" stroke="#000" fill="n0i0"/>0
+0
+0<path d="0000000,000000000000" stroke="#000" fill="n0i0"/><path d="000,000000,00000000000000000000" stroke="#000" fill="n0i0"/>0
+0
+0<path d="000,0000000,000000000000" stroke="#000" fill="n0i0"/><path d="000,0000000,0000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#000" fill="n0i0"/><path d="000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#000" fill="n0i0"/>0
+0
+0<path d="000,0000000,000000000000" stroke="#000" fill="n0i0"/><path d="000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000" stroke="#000" fill="n0i0"/><path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000,00000,000,000000000000000000000000000000000,000,0,00,000" fill="t0e00"/>0</svg>
diff --git a/test/ns-afl-svg/1103.svg b/test/ns-afl-svg/1103.svg
new file mode 100644
index 0000000..925c826
--- /dev/null
+++ b/test/ns-afl-svg/1103.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="s0q0" fill="n0e0"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1104.svg b/test/ns-afl-svg/1104.svg
new file mode 100644
index 0000000..fc005dd
--- /dev/null
+++ b/test/ns-afl-svg/1104.svg
@@ -0,0 +1,398 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" a_rm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="q0o00"/>0
+0<circle r="0" cx="0" cy="0" ot="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0-0,00,0,23,000c0,0-0,00-11,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ00000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="0000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-00000000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-00000000010000000000000000000000000000000000000 0000000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c000000000000000000000000000000c0000000000000000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="4" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,00-00000,00"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#0" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,00-00l20,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fi="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fi="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,00000000 000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l000000,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,100-00l0-00c0-0,0-00,02-12l20,0c0,0,00-0,00-10l0-00l9,0c0,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1105.svg b/test/ns-afl-svg/1105.svg
new file mode 100644
index 0000000..fe34168
--- /dev/null
+++ b/test/ns-afl-svg/1105.svg
@@ -0,0 +1,14 @@
+<vg xmlns="0000000000" xmlns:k="0">0
+0<r>0<svg xmlns="00">0
+0<xmlns>0
+0<xmlns>0<xmlns>0
+0<xmlns>0
+0<vg ns="0">
+0<xmlns>0
+0<xmlns t="">
+0
+0<xmlns e="">0
+0<xmlns>
+0
+0<vg ns="0">
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1106.svg b/test/ns-afl-svg/1106.svg
new file mode 100644
index 0000000..9f71ee8
--- /dev/null
+++ b/test/ns-afl-svg/1106.svg
@@ -0,0 +1,42 @@
+<svg xmlns="000000000000000000" viewBox="0 0 2 3">0<path d="M00,00a00,0 00,0,0 00,00" fill="none" stroke="#000" ro="0"/>0<a xmlns:xlink="0000" xlink:href="0" xlink:title="0">0<path d="M0000 0c0000-000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-000 00-00 00-00 0-00-00-0-0000-00-000-000 0-00 00-00 000-00 00 00 000 00 000-00 00-00 00-00 0000-00 00 0 0,00" fill="none" stroke="#000" stroke-width="2"/>
+0<path d="M00,000l00,00l00-000-00-00 000 000 000 000z m0000-0000c000-000 000-000 000-0000 0-000-00-000-000-000-000 000-000
+000-000 0*000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
+transform=" scale(0-0000)"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0,00)"
+fill="#000" i="0"/>0<ellipse rx="5" ry="2" transform="rotate(00)" fill="#000"
+pa="0"/>0</a>0<a xmlns:xlink="00" xlink:href="0" xlink:title="0">
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
+transform="translate(0,0) scale(0.0.000"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0..0)"
+fill="#000" ty="0"/>0<ellipse rx="5" ry="2" transform="rotate(000) " fill="#000"
+pa="0"/>0</a>0<a xmlns:xlink="00" xlink:href="0" xlink:title="0">
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
+transform=" scale(0000,0)"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0.000.0)"
+fill="#000" ity="0"/>0<ellipse rx="3" ry="2" transform="rotate(000) " fill="#000"
+opy="0"/>0</a>0<a xmlns:xlink="0000" xlink:href="0" xlink:title="0">
+0<path d="M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00000 00,00 00-00 00-000-0-00-00-0000-00-00-00-000-00-000-0-00-00 00-00 000-0 00 00 000 00 0000"
+transform="translate(0,000) scale(0000,10"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0.000.0)"
+fill="#000" ity="0"/>0<ellipse rx="3" ry="2" transform="rotate(000) translate(00,00)" fill="#000"
+opy="0"/>0</a>0<a xmlns:xlink="0000" xlink:href="0" xle="0">
+0<path d="M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,000a00,0 00,0,0 00,00M00,000a00,0 00,0,0 00,00" fill="none" stroke="#000" stroke-width="2"/>
+0<path d="M00,000l00,00l00-000-00-00zM00,000h00v00zM00,000h00v00h000zM00,000l00,00-0,000-00-0zM00-000 00-000-00-00-000-00-000 00-000 000-000 0000-000
+000 0-00 00-000 00-000 0-000 0-000-0-000-0-00-00-00 0000-00 00 0 00-000 00-000-00-00-000-00-000 00-000 000-000 0000-000
+000 0-00 00-000 00-000 0-000 0-000-0-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000o000000000000000000000"
+transform="translate(0,000) scale(0000-00000"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0.000.0)"
+fill="#000" ity="0"/>0<ellipse rx="3" ry="2" transform="rotate(000) translate(00,00)" fill="#000"
+oty="0"/>0</a>0<a xmlns:xlink="00" xlink:href="0" xlink:title="0">
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
+transform="translate(0,000) scale(0000,00"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(000,0000)"
+fill="#000" ity="0"/>0<ellipse rx="5" ry="2" transform="rotate(000) translate(00,00)" fill="#000"
+opy="0"/>0</a>0<a xmlns:xlink="0000" xlink:href="0" xlink:title="0">
+0<path d="M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,000a00,0 00,0,0 00,00M00,000a00,0 00,0,0 00,00" fill="none" stroke="#000" stroke-width="2"/>
+0<path d="M00,000l00,00l00-000-00-00 000 000 000 000z m0000-0000c000-000 000-000 000-0000 0-000-00-000-000-000-000 000-000
+000-000 00-000-000-000-000-000-00-0 00-00 00 00 00 0 0-00-000-00-000-0-00-00 00-00 000-0 00 00 000 00 000z"
+transform="translate(0,000) scale(0.0.000"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(000,0000)"
+fill="#000" ity="0"/>0<ellipse rx="3" ry="2" transform="rotate(000) " fill="#000"
+opa="0"/>0</a>0<a xmlns:xlink="0000" xlink:href="0" xlink:title="0">
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
+transform=" scale(0000,0)"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0..0)"
+fill="#000" ity="0"/>0<ellipse rx="5" ry="2" transform="rotate(000) translate(00,00)" fill="#000"
+oty="0"/>0</a>0<a xmlns:xlink="0000" xlink:href="0" xlink:title="0">
+0<path d="M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,000a00,0 00,0,0 00,00M00,000a00,0 00,0,0 00,00" fill="none" stroke="#000" stroke-width="2"/>
+0<path d="M00,000l00,00l00-000-00-00zM00,000h00v00zM00,000h00v00h000zM00,000l00,00-0,000-00-0zM00,000l0,000-00,00-0-00z" fill="#000"/>
+0<circle r="1" cx="0" cy="0" fill="#000"/>0</a>0</svg>
diff --git a/test/ns-afl-svg/1107.svg b/test/ns-afl-svg/1107.svg
new file mode 100644
index 0000000..a40b772
--- /dev/null
+++ b/test/ns-afl-svg/1107.svg
@@ -0,0 +1,25 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:r0f&lt;0cke0;"
+p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1108.svg b/test/ns-afl-svg/1108.svg
new file mode 100644
index 0000000..cd3e53c
--- /dev/null
+++ b/test/ns-afl-svg/1108.svg
@@ -0,0 +1,67 @@
+<svg viewBox='0 0 6 6' xmlns='0000000000000'>
+0<path d='0000000000,000' fill='i0v00' stroke='b0k'/>0
+0<path d='000,0000000000000000000000000000000000000' fill='i0v00' e='0'/>
+0
+0
+0<path d='000,00000,00000,0000000' fill='s0l00ck'/>
+0
+0<path d='000,00000,0' fill='i0v00' stroke='b0k'/>0
+0<path d='M00,00c00000000,000000,000,00000000000000000000000000000000000000' fill='s0l00n' R='0'/>
+0
+0
+0<path d='M00,00c00,0-0-0,0-00-00' fill='s0l00ck'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,000000-000' fill='s0l00n' e='0'/>
+0
+0
+0<path d='M0,0,0,0hh000000000' fill='s0l00n' sR='0'/>
+0
+0
+0<path d='M00,00c00,0-0-0,0-00-00' fill='s0l00ck'/>
+0
+0<path d='000,00000,0' fill='s0l00n' stroke='b0k'/>0
+0<path d='M00,00c000000-0,0-00000000000000000000000000000000,0,0hh000000000' fill='s0l00n' sR='0'/>
+0
+0
+0<path d='M00,00c00,0-0-0,0-00-00' fill='s0l00ck'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,h000000000' fill='s0l00n' sRroke='0'/>
+0
+0
+0<path d='M00,00c00,0-0-0,0-00-00' fill='s0l00ck'/>
+0
+0<path d='M00,00c00,0' fill='s0l00n' stroke='black'/>0
+0<path d='M00,00c00000000,000000,000,0,000,0000000,0c0,0,0,0,0,000000000000' fill='s0l00n' sR='0'/>
+0
+0
+0<path d='M00,00c00,0-0-0,0-00-00' fill='s0l00ck'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,000000,00c00,0-0-0,0-00-00' fill='s0l00ck'/>
+0
+0<path d='M00,00c00,0' fill='s0l00n' stroke='black'/>0
+0<path d='M00,00c00000000,000000,0c0,0,000,0000000,000,0,0,0,0,000000000000' fill='s0l00n' sR='0'/>
+0
+0
+0<path d='M00,00c00,0-0-0,0-00-00' fill='s0l00ck'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,000000000c00000' fill='s0l00n' stroke='black'/>
+0
+0
+0<path d='M0,0000-000' fill='s0l00n' stroke='black'/>
+0
+0
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,000000000c00000' fill='s0l00n' stroke='black'/>
+0
+0
+0<path d='M0,0000-000' fill='s0l00n' stroke='black'/>0
+0
+0
+0<path d='M0,0000-000' fill='s0l00n' stroke='black'/>
+0
+0
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,000000000c00000' fill='s0l00n' stroke='black'/>
+0
+0
+0<path d='M0,0000-000' fill='s0l00n' stroke='black'/>
+0
+</svg>
diff --git a/test/ns-afl-svg/1109.svg b/test/ns-afl-svg/1109.svg
new file mode 100644
index 0000000..93dbb99
--- /dev/null
+++ b/test/ns-afl-svg/1109.svg
@@ -0,0 +1,22 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmljs="0">0
+<svg xmlns="000000000000000000">
+0<style type="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke-width:4ex" m="0"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke-width:1ex" t0000000000000000000form="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black;stroke-width:1cm" transform="translate(0,0)"/>
+0</g>0</svg>0<style type="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" s="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:1ex" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:00000000" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:001ex" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1110.svg b/test/ns-afl-svg/1110.svg
new file mode 100644
index 0000000..20a47e2
--- /dev/null
+++ b/test/ns-afl-svg/1110.svg
@@ -0,0 +1,6 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h00l00,00v00l0,00l000-00z" stroke="#000" fill="v0t0"/>0
+0<path d="M00,0h00l00,00v00l000,00h0l00,00v00l000,0000,00v000000,0000000000" stroke="#000" fill="v0t0"/>0
+0<path d="M00,0h00l00,00v000000,(000000,000000000,00" stroke="#000" fill="v0t0"/>0
+0<path d="M00,00000-00" fill="#000"/>0
+0<text x="?" y="0" t-se="0" l="0" t-r="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1111.svg b/test/ns-afl-svg/1111.svg
new file mode 100644
index 0000000..eb7834d
--- /dev/null
+++ b/test/ns-afl-svg/1111.svg
@@ -0,0 +1,16 @@
+<svg ÃtÉ="0">
+0<defs>0<linearGradient id="0" gransform="0">
+0<stop stop-color="0" set="0"/>
+0<stop stop-color="0" set="0"/>
+0
+0<stop sp-r="0" set="0"/>
+0</linearGradient>
+0</defs>0
+0<ph d="0"/>
+0<pa ÃtÉ="0">
+0<defs>0
+0<pa ÃtÉ="0">
+0<defs>0
+
+0<cTrcle r="0" cx="0" cy="0" fill="0"/>
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1112.svg b/test/ns-afl-svg/1112.svg
new file mode 100644
index 0000000..8a9f9f9
--- /dev/null
+++ b/test/ns-afl-svg/1112.svg
@@ -0,0 +1,17 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="X" r="i" transform="translate(0,0)"/>
+0<circle cx="cm" cy="em" r="1" style="fill:b0u0;" tm="0"/>
+0<circle cx="cm" cy="em" r="1" style="fill:b0u0;stroke-width:b0" transform="translate(0,0)"/>0<circle cx="c" cy="cm" r="1" style="fill:green;"/>
+0<circle cx="cm" cy="em" r="1" style="stroke:b0a0" tm="0"/>
+0<circle cx="cm" cy="em" r="1" style="fill:b0u0;"/>
+0<circle cx="cm" cy="em" r="1" style="fill:b0u0;stroke-width:1cm" tm="0"/>
+0<circle cx="cm" cy="em" r="1" style="fill:b0u0;stroke-width:0b0" transform="translate(0,0)"/>0<circle cx="c" cy="cm" r="1" style="fill:green;"/>
+0<circle cx="cm" cy="em" r="1" style="stroke:b0a0 stroke-width:001cm" tm="0"/>
+0<circle cx="cm" cy="em" r="1" style="fill: 0stroke-width:001cm00;" transform=",0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1113.svg b/test/ns-afl-svg/1113.svg
new file mode 100644
index 0000000..37bd162
--- /dev/null
+++ b/test/ns-afl-svg/1113.svg
@@ -0,0 +1,6 @@
+<svg v='0' xmlns='000' fill='s0q00rer' e='0'>
+0<path d='00,00,0000,00,0' fill='s0b00tax000nc00000' stroke='black'/>0
+0<path d='M00,00,000,c000,000,00000' fill='s0_00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,00000,000000,0c0,0,000,000000,000,0000000,0000,00000000,,000,0000000,0000,00000000,00,00,00000,000,0000,000,00000' fill='s0_00tax000nc00000' stroke='black'/>0
+0<qath d='0' fill='0' e='0'/>0
+</svg>
diff --git a/test/ns-afl-svg/1114.svg b/test/ns-afl-svg/1114.svg
new file mode 100644
index 0000000..16b1a09
--- /dev/null
+++ b/test/ns-afl-svg/1114.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="n&lt;o00tra000or00"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1115.svg b/test/ns-afl-svg/1115.svg
new file mode 100644
index 0000000..eb5a1b7
--- /dev/null
+++ b/test/ns-afl-svg/1115.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="c" cy="cm" r="1" style="fill:r0d0 stroke:" m="0"/>
+0<circle cx="cm" cy="cm" r="D" style="stroke:b0t00blu000id000000" transform="translate(0,0)"/>
+0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1116.svg b/test/ns-afl-svg/1116.svg
new file mode 100644
index 0000000..a0434a6
--- /dev/null
+++ b/test/ns-afl-svg/1116.svg
@@ -0,0 +1 @@
+<s É="0">0<gsvg width="0" hgight="0" id="0" y="0"><g><g><path f="0" clOp-rule="0" fill="0" d="0"><a/><!--0-->0<g><path f="0"><gsvg width="0" height="0" id="0" y="0"><g><g><path fill-rule="0" clOp-rule="0" fill="0" d="0"/><a/><!--0-->0<g><path th="0" hgight="0" id="0" y="0"><g><g><path f="0" c="0" fill="0" d="0"/><a/><!--0-->0<g><path fill-rlle="0"><gsvg width="0" height="0" id="0" y="0"><g><g><path fill-rule="0" clOp-rule="0" fill="0" d="0"/><a/><!--0-->0<g><path fill-rlle="0" p-e="0" fill="0" d="0"/><a/><0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1117.svg b/test/ns-afl-svg/1117.svg
new file mode 100644
index 0000000..98d679e
--- /dev/null
+++ b/test/ns-afl-svg/1117.svg
@@ -0,0 +1,53 @@
+<svg Ãs="0" fill="url(#py0ellow" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="#000" offset=","/>
+0
+0
+0
+0<h d="0" l="0"/>0
+0<c r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" id="0" s="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<pAth d="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>
+0
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<i r="0" cx="0" id="0" e="0" fill="0"/>0
+0
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" f="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<patS d="0" fill="0"/>
+0<pAth d="M0,00c0,0-0,00-200000,0,0000000000000000" fill="url(#py0ellow"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#00000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c00000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0-0,00-00,000-0000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c00000000000 00-00-00 00-00 000-00 0000-00 000-000 000-00-000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000000 000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000t0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00M000-80?0000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fitl="0"/>
+0<circle r="4" cx="0" cy=")"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00M000-80?0000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fitl="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1118.svg b/test/ns-afl-svg/1118.svg
new file mode 100644
index 0000000..10756c4
--- /dev/null
+++ b/test/ns-afl-svg/1118.svg
@@ -0,0 +1,2 @@
+<vg ìå0000000="0">0<vg ìå0000å00="0"><vg ìå00å00å00="0">0<vg ìå0000000="0">0<vg ìå00å00å00="0">0<svg ìå00å00å00="0">0<svg ìå00000000="0">0<svg ìå00000å00="0"><svg ìå00å00å00="0">0<svg ìå00000000="0">0<vg ìå00å00å00="0">0<svg ìå00å00å00="0">0
+<vg ìå00000000="0">0<svg ìå00000å00="0">0<vg ìå00å00å00="0">0<svg ìå00000000="0">0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1119.svg b/test/ns-afl-svg/1119.svg
new file mode 100644
index 0000000..ccfc7c5
--- /dev/null
+++ b/test/ns-afl-svg/1119.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE s00 PUBLIC "0" "0">
+<svg r="0" style="fill:p0b00rsv0">0<style ype="0">
+0
+0</style>
+0<g>0
+0
+0<circle cx="c" style="fill:red;stroke:black;stroke-width:000cm" transform="translate(0,0)"/>
+0<ce cx="0" cy="0" r="0" style="0" trorm="0"/>
+0<circle cx="0" cy="0" r="0" s="0" m="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1120.svg b/test/ns-afl-svg/1120.svg
new file mode 100644
index 0000000..0f24211
--- /dev/null
+++ b/test/ns-afl-svg/1120.svg
@@ -0,0 +1 @@
+<svg ĉ="0">0<svvg ĉ="0">0<svg ĉ="0">0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1121.svg b/test/ns-afl-svg/1121.svg
new file mode 100644
index 0000000..76ea40e
--- /dev/null
+++ b/test/ns-afl-svg/1121.svg
@@ -0,0 +1,84 @@
+<svg s="0" viewBox="0 0 1 1">
+0
+0<path d="M0,00v00l000,00h00v000z" e="0" fill="l0r0"/>0
+0
+0
+0<path d="M00,00v0l0000" e="0" fill="n&lt;o00tex000nc0000"/>0
+0<path d="M00,00v00l000,0h000l000" stroke="#000" fill="n&lt;o00tex000nc0000"/>0
+0<path d="00000000000" stroke="#000" fill="n&lt;o00tex000nc0000"/>0
+0<path d="M00,0h00l00000-000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000i000000000000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,00L0000000000000000000000000"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#r0000" fill="url(#000e)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c000,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000-0-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#00000000)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" c="0"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" l="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00v0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#000e)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0100)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-00-0-000000000000000000000000000000000000000000000000000000000000000000-000000000" x="0" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000e)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1122.svg b/test/ns-afl-svg/1122.svg
new file mode 100644
index 0000000..47ad725
--- /dev/null
+++ b/test/ns-afl-svg/1122.svg
@@ -0,0 +1,59 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c00ext000ch0000'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<circle cx='0' cy='0' r='5' fht='0' fill='l0c00ext000ch00'/>0</g>0"><!ENTITY t "">
+<!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" ion="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" hT="0" ill="0" se="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g t="0"
+ransform="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g orm="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g orm="0">&Viewport0;</g>
+0<g id="0" trm="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" vie="0"
+th="0" heé000="0">&Smile;</svg></g>
+0<g transform="000"><text y="0">0</text>&V;
+0<svg pro="0" vox="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="000"><text y="0">0</text>&p;
+0<svg pre="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg Asp="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g><text y="M">0</text><svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="000"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0000"><text y="0">0</text>&Viewport0;
+0 0
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g trfnsform="0"><text y="0">0</text>&Viewport0;
+0<svg rRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0000000"><text y="0">0</text>&Viewport0;
+0<svg resero="0" viewBox="0 0 0 0" width="0" height="0">0</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg reatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg prv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="0000"><text y="0">0</text>&i;
+0<svg preseAso="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1123.svg b/test/ns-afl-svg/1123.svg
new file mode 100644
index 0000000..bb49c9c
--- /dev/null
+++ b/test/ns-afl-svg/1123.svg
@@ -0,0 +1,73 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0,0-0,00-00,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<paeh d="0" l="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="00000000000000000000000" id="0" style="fill: url(#00000" fill="url(#00000"/>
+0<path d="M00,00c000-0,00-20,004,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,10-20,020,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000c0000000000000000000,000,0000,00000000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="#000000"/>
+0<path d="0000,00000,00,0,0000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000,000" fill="#000000"/>
+0<path d="0000,00000,00,0,0000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,00000000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,0000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,10-20,020,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l00000-000 000-00-00-00-000 000-0 0000000000000000000000000000000/000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="0000000000000"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,0w000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1124.svg b/test/ns-afl-svg/1124.svg
new file mode 100644
index 0000000..a4d98eb
--- /dev/null
+++ b/test/ns-afl-svg/1124.svg
@@ -0,0 +1,44 @@
+<svg t̬="0">0
+0<defs>
+0<linearGradient id="py0ello0" gra_ieorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,0-00,00-00c00,0,00,0,00,00l0,00c0,0-0,00-00,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,10-20,100,00v0" fill="url(#py0ello0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000 00-00 000-00 0000-00 000-000 000-00-0000 0" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,0000 000000,000000000000000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000000,000000000000000-00000000000000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,00000000000000000000000000000000000000000,000000000 000000,00000000000000000=00,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1125.svg b/test/ns-afl-svg/1125.svg
new file mode 100644
index 0000000..9ec9789
--- /dev/null
+++ b/test/ns-afl-svg/1125.svg
@@ -0,0 +1,145 @@
+<svg s="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="s0g00p" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000000000000" fill="url(#py0ellow"/>0
+0
+
+0<circle r="0" cx="0" y="0" ll="0"/>
+0
+0<path d="M00,00c097-0,13-03,120,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" y="0" ll="0"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c00000000,00000000,0c0,0,00000000,000000,0000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,000,00-00,000-0000000,000" f="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c097-0,13-03,120,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" p="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,00,000,0000,000,000,0000000000000000000000000" cy="0" ll="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,0000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c097-0,13-03,120,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" il="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-04-6-001000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c097-0,13-03,120,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c097-0,13-03,120,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c097-0,13-03,120,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-04-6-001000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0
+
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1126.svg b/test/ns-afl-svg/1126.svg
new file mode 100644
index 0000000..fdebc63
--- /dev/null
+++ b/test/ns-afl-svg/1126.svg
@@ -0,0 +1,370 @@
+<svg xmlns="000000000000000000000000">
+0<defs>0<linearGradient id="pyYello0" gra_ieorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="u0a00fel000se00000"/>
+0
+0<stop stop-color="#000" offRet="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stor="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0-0,00,0,0,00c0,0-0,00-00,00ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000"/>0
+0<circle r="4" x="0"/>
+0<path d="00000000000000000000000" fill="url(#pyYello0"/>0
+0<cirCle r="4" x="0" y="0" fill="#000"/>
+0<circle r="4" x="0" cy="0" fill="#000"/>
+0<path d="0000000000000000000000000000000000000000000000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" x="0" cy="0" fill="#000"/>
+0<circle r="4" x="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00l00,000000000000000000=0000000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000%000000000000000000000000000000000000000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="000,0000000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-0000-0M0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-00-60.800,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="0" fill="0000000000000"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" l="0"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<pRth d="0"/>0
+0<path d="M00,00c000-0,00-20,004-00l0-00c0-0,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,10-00,020,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+
+0<circle r="4" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,10-00,020,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,004-00l0-00c0-0,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000e)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<GirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,00..000,00000000 000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#0000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0<path d="M00,00c000-0,00-20,024-00l0-00c0-0,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,10-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1127.svg b/test/ns-afl-svg/1127.svg
new file mode 100644
index 0000000..59ece39
--- /dev/null
+++ b/test/ns-afl-svg/1127.svg
@@ -0,0 +1,380 @@
+<svg ns="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="pyYellow" om="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>0<stop stop-color="u0s00ncl000ie0" offset="0"/>
+0</linearGradient>
+0
+0</defs>0
+0<path d="000000,0000000000000000000000000000000000000000,000,00000,000000,0000,0000,0000,0000,00000,0000,00000000000000000,0000,0000000000,000,0,0000000000000000000000000000,000000,000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" id="0000" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000000"/>
+0<path d="M00,00c097-0,13-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" id="0000" s="0" fill="url(#0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l000,L0,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-000000000070000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-000000000070000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#00000)"/>
+0<path d="M00,00c097-0,03-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,00"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00)"/>
+0<path d="M00,00c097-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#0" fill="url(#00000)"/>
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" cy="0" fi="0"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,13-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fi="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fi="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,00..000,00000000 000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-00c0-0,0-00,02-00l20,0c0,0,00-0,00-10l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,03-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c097-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000 00000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-00c0-0,0-00,02-00l20,0c0,0,00-0,00-10l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#000000000"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1128.svg b/test/ns-afl-svg/1128.svg
new file mode 100644
index 0000000..f80d3f1
--- /dev/null
+++ b/test/ns-afl-svg/1128.svg
@@ -0,0 +1,26 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="000" width="0" height="0" id="0" sodipodi:version="0" inkscape:version="0"
+style="fill: l0y00blu0;" ip-path="0" ension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+eight="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="">
+0<rect style="fill: l0y00blu0;" ip-path="0" id="0" width="0"
+ghth="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0">
+0<rect style="fill: l0y00blu0;" clip-path="0" id="0" width="0" Xeight="0" x="0" y="0" transform="000000,000"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1129.svg b/test/ns-afl-svg/1129.svg
new file mode 100644
index 0000000..c2794e0
--- /dev/null
+++ b/test/ns-afl-svg/1129.svg
@@ -0,0 +1,49 @@
+<svg xmlns="0000000000" viewBox="0 0 1 8">
+0<path d="M0,0h00c00,0-00,00,0,00h000zM00,000000-00" stroke="#000" fill="t0n"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-0-000" stroke="#000" fill="t0n"/>0
+0
+0
+0
+0
+0
+0<path d="M00,0h00l00,00v00l000,00h0000000000v000z" stroke="#000" fill="t0n"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00,0000" stroke="#000" fill="t0n"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<path d="M0,0h00c00,0-00,00,0,00h000zM00,00a00000000000000" stroke="#000" fill="t0n"/>0
+0<path d="M00,0h00l00,00v000000000h000l000-00,0000" stroke="#000" fill="t0n"/>0
+0
+0
+0
+0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="t0n"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00,0000" stroke="#000" fill="t0n"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+fill="#000" opacity="0"/>0<ellipse rx="5" ry="2" transform="rotate(0)translate(0,0)" fill="#000"
+opacity="0"/>0</svg>
diff --git a/test/ns-afl-svg/1130.svg b/test/ns-afl-svg/1130.svg
new file mode 100644
index 0000000..b190307
--- /dev/null
+++ b/test/ns-afl-svg/1130.svg
@@ -0,0 +1,18 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 6">
+0<circle r="3" cx="0" cy="0"/>
+0<circle r="3" cx="0" cy="0"/>
+0<paih d="0"/>
+0<g stroke="i0t0" stroke-width="0" fill="000000000000000000000"/>
+0<path d="M0,000000000-00"/>
+0<path d="M00,00s0,0,0,0s00-0,0-00l0,0s00-0,0-0l0,0s0,0,0-00-00000000000000000000000"/>
+0<path d="M00,00s00-00,0-00l0-0s0,0,0,0l0-0l0,0s0,0,0,00l00,0l00-0s00,0-0,0l00,00z"/>
+0<g stroke="i0t0" stroke-width="3" fill="n0n0" p="0">0<circle r="6" cx="0" cy="0"/>
+0<circle r="6" cx="0" cy="0"/>
+0<path d="M00,0,0l000000"/>
+0<g stroke="i0t0" stroke-width="0" fill="000000000000000000000"/>
+0<path d="M0,0000000--00000"/>
+0<g stroke="i0t0" stroke-width="0" fill="0000000000000"/>
+0<path d="M000,00c0-0,00-0,00,0c0,0,00,0,00,0"/>
+0<path d="M000,00c0,0,00,0,00,00c0,0,0,0,00,000000000"/>
+0<path d="M00,0000000000s00,00,00,00"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1131.svg b/test/ns-afl-svg/1131.svg
new file mode 100644
index 0000000..c705aaa
--- /dev/null
+++ b/test/ns-afl-svg/1131.svg
@@ -0,0 +1,17 @@
+<svg xmlns="0000000000" qie000x="0">
+0<I x="0"/>
+0<patKKKKKKKKKKKKKKKKext d="0" ke="0" fl="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" ll="0"/>0
+0<KKKKKKKKKIKKKKKKKKKKKK............................................................................................................................................................................................I x="0"/>
+0<patKKKKKKKKKKKKKKKext d="0" ke="0" fi="0"/>0
+0<KKKKKKKKKK..............................................................I x="0"/>
+0<patKKKKKKKKKKKKKKKext d="0" ke="0" ll="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKIKKKKKKKKKKKK........................................................................................................................................KKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKIKKKKKKKKKKKK............................................................................................................................................................................................................................................................0.....KKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKRKKKKKKKKKKKKKKKKKKKKKKSKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLLLLLLLLLLL................................................................2.....KKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKRKKKKKKKKKKKKKKKKKKKKKKSKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLLLLLLLLLLLLLLLt ty="0" rx="0"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/1132.svg b/test/ns-afl-svg/1132.svg
new file mode 100644
index 0000000..7d2af63
--- /dev/null
+++ b/test/ns-afl-svg/1132.svg
@@ -0,0 +1,48 @@
+<svg oì-='0' xx="0">
+0<t x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" v="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKext d="0" k="0" f="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" l="0"/>0
+0<KfK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK4KKKKKKKKKKKKKKKKKKext d="0" ke="0" l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" l="0"/>0
+0<KKK-KKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKext d="0" ke="0" fl="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" ll="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" ll="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vl="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fl="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" ll="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" ll="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKIKKKKpath d="0" vl="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fl="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" ll="0"/>0
+0<text x="C"/>
+0<KKK0KKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLLLLLLLLLLLLLLLt t="0" x="0"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/1133.svg b/test/ns-afl-svg/1133.svg
new file mode 100644
index 0000000..6ce2503
--- /dev/null
+++ b/test/ns-afl-svg/1133.svg
@@ -0,0 +1,13 @@
+<svg xmlns="0000000" fi="0" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0l0-0z" stroke="#000" fill="i&lt;o00"/>0
+0
+0<path d="M0,0h0l0,0a"/>0<svg fi="0" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0l0-0v0z" stroke="#000" fill="i&lt;o00"/>0
+0
+0<path d="M0,0h0l0,0v0a"/>0
+0<path d="M00,0h00l00,0h00l00,00v00l000,00l0-00v000z" stroke="#000" fill="i&lt;o00"/>0
+0
+</svg>0
+0<path d="M00,0h00l00,0h00l00,00v00l000,00l0-00v000z" stroke="#000" fill="i&lt;o00"/>0
+0
+</svg>
diff --git a/test/ns-afl-svg/1134.svg b/test/ns-afl-svg/1134.svg
new file mode 100644
index 0000000..cc0496f
--- /dev/null
+++ b/test/ns-afl-svg/1134.svg
@@ -0,0 +1,396 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" orm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="u0s00" t="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" t="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop sdor="0" offset="0"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0" ra_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="000000" offset="0"/>
+0
+0
+0<stop stop-color="url(#000000)" fill="0"/>
+0<path d="0" f="0"/>
+0
+0<stop r="0" of="0"/>
+0<stop sr="0" of="0"/>
+0
+0<stop st="0" of="0"/>
+0
+0
+0<stop sr="0" ot="0"/>
+0
+0<stop sr="0" offset="0"/>
+0<stop or="0" et="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient></defs>0
+0<path d="0"/>0
+0<ccle r="0" cx="0"/><stop st="0" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,0000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000u)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000-00-00 00-00 000-00 0000-000000 000000,00000000 0" id="0000" style="fill: url(#r0000" fill="url(#000000"/>
+0<path d="000,00000000,000000000000000"/>0
+0<cirCle r="0" cx="0" cy="0"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-0000-0M0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-60.870,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="0000000000000"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fWll="0"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,004-00l0-00c0-0,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,004-00l0-00c0-0,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000e)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" iill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,00..000,00000000 000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" f="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<path d="M00,00c000-0,10-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-20,004-00l0-00c0-0,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" iill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,10-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," filp="0"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1135.svg b/test/ns-afl-svg/1135.svg
new file mode 100644
index 0000000..177d393
--- /dev/null
+++ b/test/ns-afl-svg/1135.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0"[ <!ENTITY S "">
+<!ENTITY t "">
+]>
+<svg w="0" height="0" ion="0" xmlns="00t000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="0" stroke="0"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g m="0">&e;<Pg>
+0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">
+0
+<svg width="0" height="0" ion="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="0" stroke="0"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g trarm="0">&e;<Pg>
+0<text x="0" y="0">0</text>
+0<g t="0">&V;</g>
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1136.svg b/test/ns-afl-svg/1136.svg
new file mode 100644
index 0000000..f7c9d4b
--- /dev/null
+++ b/test/ns-afl-svg/1136.svg
@@ -0,0 +1,20 @@
+<svg s='0'>
+0<path d='0000000000000000000' fill='d0t00tax000ts'/>0
+0<path d='000,0,0000000000000' fill='d0t00tax000ts'/>0
+0
+0<path d='0000000000000000000' fill='d0t00tax000ts'/>0
+0<path d='000,000000000,000,0' fill='d0t00tax000ts'/>0
+0<path d='0000000000000000000' fill='d0t00tax000ts'/>0
+0
+0<path d='00000000000000000,0' fill='d0t00tax000ts'/>0
+0<path d='000,0,0000000000000' fill='d0t00tax000ts'/>0
+0<path d='000,000000000,0' fill='d0t00tax000ts'/>0
+0<path d='000,0,000000000' fill='d0t00tax000ts'/>0
+0<path d='000,000000000,0' fill='d0t00tax000ts'/>0
+0<path d='000,0,000000000' fill='d0t00tax000ts'/>0
+0<path d='0000000000000000000' fill='d0t00tax000ts'/>0
+0<path d='000,0,000,000,0' fill='d0t00tax000ts'/>0
+0<path d='000,0,000,000,0' fill='d0t00tax000ts'/>0
+0<path d='000,0,000,000,0' fill='d0t00tax000ts'/>0
+0<path d='000,0,000,000,0' fill='d0t00tax000ts'/>0
+</svg>
diff --git a/test/ns-afl-svg/1137.svg b/test/ns-afl-svg/1137.svg
new file mode 100644
index 0000000..0e3c86e
--- /dev/null
+++ b/test/ns-afl-svg/1137.svg
@@ -0,0 +1,58 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" gra_ieorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="f0m0" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop st="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" xt="0"/>
+0
+0<stop tl="0"/>
+0<th d="0" ll="0"/>0
+0<rc r="0" cx="0" cy="0" fl="0"/>
+0
+0<ph d="0" fi="0"/>0
+0<rC r="0" cx="0" cy="0" il="0"/>
+0<ci r="0" cx="0" id="0" tyle="0" fill="0"/>0
+0
+0<pa d="0" fill="0"/>0
+0<ce r="0" cx="0" cy="0" fill="0"/>
+0<ccle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" of="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0-8,00-20,000-0000000000000000000000000000000000000000000000000000" fill="url(#py0ellow"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c090-8,10-20,100,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx=")" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c000000000000000000000000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0-8,00-20,000-0000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c000000000-0,0000000000000000000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000000/00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1138.svg b/test/ns-afl-svg/1138.svg
new file mode 100644
index 0000000..c92ed53
--- /dev/null
+++ b/test/ns-afl-svg/1138.svg
@@ -0,0 +1,13 @@
+<svg xmlns="000000000000000000" viewBox="0-0 1 1" stroke-width="2">
+0<g fill="none">
+0<ellipse stroke="#000000" rx="v" ry="4"/>
+0<ellipse stroke="#000000" rx="V" ry="4" transform="rotate(0)"/>
+0<ellipse stroke="#000000" rx="S" ry="4" transform="rotate(0)"/>
+0<cirLle stroke="0" r="0"/>
+0</g>
+0<g fill="#000000" strwke="0">
+0<circle fill="#000000" r="3"/>
+0<circle cy="0" r="9"/>
+0<circlz x="0" y="0" r="0"/>
+0<circle cx="0" cy="0" r="9"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1139.svg b/test/ns-afl-svg/1139.svg
new file mode 100644
index 0000000..bb51de6
--- /dev/null
+++ b/test/ns-afl-svg/1139.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="X" r="i" transform="translate(0,0)"/>
+0<circle cx="cm" cy="em" r="1" style="fill:b0u0;stroke:black;"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black;stroke-width:001cm" m="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1140.svg b/test/ns-afl-svg/1140.svg
new file mode 100644
index 0000000..1293908
--- /dev/null
+++ b/test/ns-afl-svg/1140.svg
@@ -0,0 +1,90 @@
+<svg olns="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(,00000,,0000,00000">
+0<stop stop-color="0000000" offset="0"/>
+0<stop stop-color="0000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="000,0000000,000000000000000,000000000000000000,000000000000000000,00000000000000000000000000000000000000000000000000000000000000000000000,00000000000000000000,0000000000000000,000000000000000000000000000000000,000" fpll="0"/>
+0<path d="M000,0000#,00,0,0000,000000000000000000000000000000000000000000000000000000000000000000000,00000000000000000000,0000000000000000,000000000000000,0000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000000"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00000000000-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" c="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c00000,00000,00000000000c000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00000000000-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00v0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00000000000-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1141.svg b/test/ns-afl-svg/1141.svg
new file mode 100644
index 0000000..8116dfb
--- /dev/null
+++ b/test/ns-afl-svg/1141.svg
Binary files differ
diff --git a/test/ns-afl-svg/1142.svg b/test/ns-afl-svg/1142.svg
new file mode 100644
index 0000000..6484342
--- /dev/null
+++ b/test/ns-afl-svg/1142.svg
@@ -0,0 +1,94 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient href="0" id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" f="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M27,3c15,0,23,6,23,122c0,0-0,00-11,12l-24,0c00,0-00,0-14,15l0,10l-9,0c00,0-00-0-13-24c0-00,0-05,0-24i00000000,000000,000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" x="0" cy="0" fill="#000"/>
+0<circle r="4" x="0" id="0000" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,00,0,00,0000,0000,00000000"/>
+0<path d="M70,80c090-0,10-00,120,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="0" x="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0000" style="fill: url(#00000" fill="url(#00000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,0000000,0000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M74,87c0,73-230-24-6-24108.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00000000000000-00 00-00 00000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M74,87c0,73-230-24-0-24108.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#000e)"/>
+0<path d="M70,80c090-0,10-00,120,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M74,87c0,73-230-24-0-24108.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<ce r="0" x="0" id="0000" style="0" fill="0"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1143.svg b/test/ns-afl-svg/1143.svg
new file mode 100644
index 0000000..3c22663
--- /dev/null
+++ b/test/ns-afl-svg/1143.svg
@@ -0,0 +1,120 @@
+<?l?><!DOCTYPE v0 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0a00bac000th' stroke='red'/>0<g transform='translate(0,0)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='1' fill='black'/>0<circle cx='0' cy='0' r='5' f='0'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" ion="0" xmlns="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="b0u0"/>
+0<g nte="0">
+0<text x="0" y="0">0</text>
+0<g transform="00">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&Viewport2;</g>
+0<g id="0" height="px" ion="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="blue"/>
+0<g ize="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&Viewport2;</g>
+0
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg xro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg Asp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg Aso="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>0&Viewport2;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pso="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" vw="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pht="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" d_h="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport2;
+0<svg tiv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pspecBox="0" width="0" height="0">0
+0&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g orL="0"><text y="0">0</text>&V;
+0<svg pht="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg ph="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" t="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" vie="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg preRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1144.svg b/test/ns-afl-svg/1144.svg
new file mode 100644
index 0000000..87bc60a
--- /dev/null
+++ b/test/ns-afl-svg/1144.svg
@@ -0,0 +1,114 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c00anc000ed'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='b0i00'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='black' otroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='d'
+fill='n0s0' stroke='blue'/>">]><svg width="px" ei="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" he="0" fill="none" se="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g m="0">&Smile;</g>0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport0;</g>
+0<g id="0" transform="0">0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg pro="0" vix="0"
+idth="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&o;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" vox="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>0</g>
+0<g id="0" transform="translate(0,00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg preservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1145.svg b/test/ns-afl-svg/1145.svg
new file mode 100644
index 0000000..0c8f83a
--- /dev/null
+++ b/test/ns-afl-svg/1145.svg
@@ -0,0 +1,39 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a00fel000se00000"/>
+0
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0,0-0,00-00,000000000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="00000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,0000000000000000000000000000000000000000000000000000a0000" fill="url(#0000)"/>
+0<path d="M00,00c097-8,13-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000000000000000000000000000000000000 0000000000000000000000000000000000000000l00000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,000#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0000000000-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c00000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1146.svg b/test/ns-afl-svg/1146.svg
new file mode 100644
index 0000000..9fcd448
--- /dev/null
+++ b/test/ns-afl-svg/1146.svg
@@ -0,0 +1,8 @@
+<svg xmlns="000000000000000000" xmlns:xlin0="0" viewBox="0 0 0 0">
+0<radialGradient ir="0" s="0"><top ot="0" p-c="0"/><top ot="0"/></radialGradient>
+0<path d="M0,00,00" id="0" fill="c0c00cle00"/>
+0<path d="M00,000,000:00,0000000,0000000,00000,00000,0000000,00000,00000,00" id="0" fill="c0c00cle00"/>
+0<path d="M00,000,000:0000,00000,0000000,00000,00000,0000000,00000,00000,00" id="0" fill="c0c00cle00"/>
+0<use xlin0:ref="0" t="0"/>0
+0<path d="M00,000,000:0000,00000,0000000,00000,00000,0000000,00000,00000,00" id="0" fill="c0c00cle00"/>
+0<use xlin0:ref="0" t="0"/>0</svg>
diff --git a/test/ns-afl-svg/1147.svg b/test/ns-afl-svg/1147.svg
new file mode 100644
index 0000000..23d1099
--- /dev/null
+++ b/test/ns-afl-svg/1147.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:000;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:1ex" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black;stroke-width:1cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1148.svg b/test/ns-afl-svg/1148.svg
new file mode 100644
index 0000000..6c33419
--- /dev/null
+++ b/test/ns-afl-svg/1148.svg
@@ -0,0 +1,61 @@
+<svg xmlns="00" qiewBox="0">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="m0o00rra000or000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000" fill="url(#000000"/>
+0<path d="M00,00c0,0-0,00-0,00-l000000000000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,80c090-8,00-20,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="000,0000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,00000000,000000,0000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,000,00-00,000-0000000c000,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 0000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,80c090-8,00-20,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,00,000,0000,0l0,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="00000000000,00000000,00000,0000,0000,000000000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<fontpath d="0" l="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" x="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M70,80c097-8,00,0,13,23c0,00-0,00-10,20l-35,0l0,3l23,0l0,9l0,0z M100,50v1" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0-0,00-23,024-0000000c000,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000,000000000,0000000,000000000000000,0000000000" x="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M70,80c0,73-230-20-0-24108.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1149.svg b/test/ns-afl-svg/1149.svg
new file mode 100644
index 0000000..9d7cf01
--- /dev/null
+++ b/test/ns-afl-svg/1149.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="0000000000000000" width="0" height="0" id="0" sodipodi:vern="0" sodipodi:docname="0" inkscape:output_="0">
+0<defs id="0">0<linearGradient id="linearGradient0100" gradientUnits="0" x1="0" y1="0" x2="0" y2="0">
+0<stop style="stop-color:00;" offset="0" id="0"/>
+0<stop style="stop-color:000000;" offset="0" id="0"/>
+0</linearGradient>
+0</defs>
+0<g inkscape:label="0" inkscape:e="0" id="0">
+0<rect style="fill:url(#linearGradient0100);" id="0" zidth="0" height="0" x="0" y="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1150.svg b/test/ns-afl-svg/1150.svg
new file mode 100644
index 0000000..8af5111
--- /dev/null
+++ b/test/ns-afl-svg/1150.svg
@@ -0,0 +1,9 @@
+<svg lns="0">
+0
+0<path d="M0,0h0l0,0v00l0,0v0z" stroke="#000" fill="l0n00wid00"/>0
+0<path d="0" stroke="#000" fill="l0n00wid00"/>0
+0<path d="M0,0h0l0,0v0l00,00h000-,00" stroke="#000" fill="l0n00wid00"/>0
+0<path d="M00,0h00l00,00v00,0h00l00,00v00l000,00h000ll000,000000000000000000" stroke="#000" fill="l0n00wid00"/>0
+0<path d="M00,0h00l00,00v00l000,00h0l0-00v000z" fill="#000"/>0
+0<text x="0" y="0" t-se="0" fl="0"/>0
+0<text x="0" y="0" nt-se="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1151.svg b/test/ns-afl-svg/1151.svg
new file mode 100644
index 0000000..2b22b74
--- /dev/null
+++ b/test/ns-afl-svg/1151.svg
@@ -0,0 +1,10 @@
+<svg xmlns="0000000" fill="url(#00" xmlns:x="0">0
+0<g fill="none">
+0
+0<ellipse stroke="0000000" rx="6" ry="4" transform="00000000"/>
+0<ellipse stroke="#000000" rx="6" ry="4" transform="rotate(000" r="0"/>
+0</g>
+0<g fill="#000000" stroke="white"> 0
+0</g>0<g fill="#000000" stroke="white"> 0<circle fill="0000000" r="3"/>
+0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1152.svg b/test/ns-afl-svg/1152.svg
new file mode 100644
index 0000000..7a7cf1e
--- /dev/null
+++ b/test/ns-afl-svg/1152.svg
@@ -0,0 +1,13 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="X" r="i" transform="translate(0,0)"/>
+0<circle cx="cm" cy="em" r="1" style="fill:b0u0;stroke-width:1cm" m="0"/>
+0<circle cx="cm" cy="em" r="1" style="fill:b0u0;stroke-width:00b0" transform="translate(0,0)"/>0<circle cx="c" cy="cm" r="1" style="fill:green;"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:b0a0 stroke-width:001cm" tm="0"/>
+0<circle cx="cm" cy="em" r="1" style="fill:b0u0;stroke-width:001cm00;" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1153.svg b/test/ns-afl-svg/1153.svg
new file mode 100644
index 0000000..f72786a
--- /dev/null
+++ b/test/ns-afl-svg/1153.svg
@@ -0,0 +1,13 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1"><svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l0000" fill="n0w00tho000id000"/>0
+0<path d="M00,0h00l00,00v00l000000000000" soka="0" fill="n0w00tho000id000"/>0
+0<path d="M00,0h000000000v00l00-00z" stroke="#000" fill="n0w00tho000id000"/>0
+0<path d="M00,0h00l00,00v00l000,0000-000" stroka="0" fill="n0w00tho000id000"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l00-00v000z" fill="#000"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>0
+0<path d="M00,0h00l0000" fill="n0w00tho000id000"/>0
+0<path d="M00,0h00l00,00v00l000,0000-000" stroka="0" fill="n0w00tho000id000"/>0
+0<path d="M00,0h00l000,00v00l00-00z" stroke="#000" fill="n0w00tho000id000"/>0
+0<path d="M00,0h00l00,00v00l000,0000-000" stroka="0" fill="n0w00tho000id000"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l00-00v000z" fill="#000"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1154.svg b/test/ns-afl-svg/1154.svg
new file mode 100644
index 0000000..167d645
--- /dev/null
+++ b/test/ns-afl-svg/1154.svg
@@ -0,0 +1,120 @@
+<svg xmlns="000000000" stroke-width="k" width="0" height="0" s="0" n="0">
+0<script pe="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g d="0" fill="blue"
+e="0">
+0<circle d="0" cx="0" cy="0" r="5" stroke="f0r00ro"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0
+0
+0<script e="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g d="0" O="0" style="0">
+0<circle d="0" cx="0" cy="0" r="5" stroke="f0r00ro"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0
+0
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g Qd="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0r00ro"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0
+0
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g Qd="0" filO="0" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0r00ro"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0
+0
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g Qd="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0r00ro"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/1155.svg b/test/ns-afl-svg/1155.svg
new file mode 100644
index 0000000..50578cd
--- /dev/null
+++ b/test/ns-afl-svg/1155.svg
Binary files differ
diff --git a/test/ns-afl-svg/1156.svg b/test/ns-afl-svg/1156.svg
new file mode 100644
index 0000000..85a0277
--- /dev/null
+++ b/test/ns-afl-svg/1156.svg
@@ -0,0 +1,50 @@
+<svg xmlns="00" id="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient x1="0" y1="0" x2="0" y2="0" id="0">
+0<stop offset="0" stop-color="0" stoy="0"/>
+0<stop et="0" stop-color="0" ty="0"/>
+0<stop offset="0" or="0" stoy="0"/>
+0</linearGradient>
+0</defs>
+0<g transform="scale(9)">
+0<rect widt0="0" height="0" rx="0" ry="0" x="0" y="0" fill="#000000"/>
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="#000000"/>
+0<svg ns="0" id="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient x1="0" y1="0" x2="0" y2="0" id="0">
+0<stop et="0" pr="0" ty="0"/>
+0<stop et="0" stop-color="0" st="0"/>
+0<stop et="0" or="0" st="0"/>
+0</linearGradient>
+0</defs>
+0<g transform="scale(9)">
+0<rect widt0="0" height="0" rx="0" ry="0" x="0" y="0" fill="#000000"/>
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="#000000"/>
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="u0s00ema000ar0000"/>
+0<path fill="none" stroke="#000" stroke-width="6" d="M0 0A0 0 0 0 0 0,0A0 0 0 0 0 0 0z" transform="matrix(0,0,0,0,0,0"/>
+0<rect fill="#000" stroke="none" width="0" height="0" x="0" y="0" transform="matrix(0..0.0,0,0,0"/>
+0</g>0</svg>
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="#000000"/>
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="#000000"/>
+0<svg xmlns="00000000000000000000000000" id="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient x1="0" y1="0" x2="0" y2="0" id="0">
+0<st et="0" st="0" stoy="0"/>
+0<stop et="0" stop-color="0" ty="0"/>
+0<stop et="0" or="0" stoy="0"/>
+0</linearGradient>
+0</defs>
+0<g transform="scale(9)">
+0<rect widt0="0" height="0" rx="0" ry="0" x="0" y="0" fill="#000000"/>
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="#000000"/>
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="u0s00ema000ar0000"/>
+0<path fill="none" stroke="#000" stroke-width="6" d="M0 0A0 0 0 0 0 0,0A0 0 0 0 0 0 0z" transform="matrix(0,0,0,0,0,0"/>
+0<rect fill="#000" stroke="none" width="0" height="0" x="0" y="0" transform="matrix(0..0.0,0,0,0"/>
+0</g>0</svg>
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="u0s00ema000ar0000"/>
+0<path fill="none" stroke="#000" stroke-width="6" d="M0 0A0 0 0 0 0 0,0A0 0 0 0 0 0 0z" transform="matrix(0,0,0,0,0,0"/>
+0<rect fill="#000" stroke="none" width="0" height="0" x="0" y="0" transform="matrix(0..0.0,0,0,0"/>
+0
+0<path fill="none" stroke="#000" stroke-width="6" d="M0 0A0 0 0 0 0 0,00A0 00 0 0 00 0 00z" transform="matrix(0,0,0,0,0,0"/>
+0<rect fill="#000" stroke="none" width="0" height="0" x="0" y="0" transform="matrix(0..0.0,0,0,0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1157.svg b/test/ns-afl-svg/1157.svg
new file mode 100644
index 0000000..2feb739
--- /dev/null
+++ b/test/ns-afl-svg/1157.svg
@@ -0,0 +1 @@
+<svg viewBox='0,0,0,0' xmlns='t'>0<svg viewBox='0,0,0,0' xmlns='t'>0<patg M='0' fill='0' se='0'/><svg viewBox='0,0,0,0' xmlns='t'>0<patg d='0' fill='0' stroke='0'/>0</svg>0</svg>0<svg viewBox='0,0,0,0' xmlns='00'>0<patg d='0' fill='0' stroke='0'/>0</svg>0</svg>
diff --git a/test/ns-afl-svg/1158.svg b/test/ns-afl-svg/1158.svg
new file mode 100644
index 0000000..188f7d1
--- /dev/null
+++ b/test/ns-afl-svg/1158.svg
@@ -0,0 +1,44 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="u0r00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="url(#py0ellow"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000000000000000000000000000000000000000000000z00000000000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c0000000000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0-00000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-00000000000000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<cirIle r="0" x="0" y="0" l="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="u00000000000"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#00=00"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000000000000000000000000000000000000000000000000000000000000,0l0,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#00=00"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0"
+cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1159.svg b/test/ns-afl-svg/1159.svg
new file mode 100644
index 0000000..4415f68
--- /dev/null
+++ b/test/ns-afl-svg/1159.svg
@@ -0,0 +1,114 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='f0c00anc000ed'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='b0i00'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='black' otroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='d'
+fill='n0s0' stroke='blue'/>">]><svg width="px" ei="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" he="0" fill="none" se="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g m="0">&Smile;</g>0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport0;</g>
+0<g id="0" transform="00">0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg pro="0" vix="0"
+idth="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" vox="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg pserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>0</g>
+0<g id="0" transform="translate(0,00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg preservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg preecight="0">&Smile;</svg></g>
+0<g tvansform="0"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1160.svg b/test/ns-afl-svg/1160.svg
new file mode 100644
index 0000000..6f94f52
--- /dev/null
+++ b/test/ns-afl-svg/1160.svg
@@ -0,0 +1,13 @@
+<sv fill="0" text-ar="0"><![CDATA[]]>0
+0<path d="0" se="0" x="0" y="0" f="0" fall="0" text-ar="0"><![CDATA[]]>0<![CDATA[]]>0
+0<path d="0" stroke="0" x="0" y="0" fall="0" text-ar="0"><![CDATA[]]>
+0<text x="0" text-ar="0"><![CDATA[]]>0
+0<path d="0" se="0" x="0" y="0" f="0" fall="0" text-ar="0"><![CDATA[]]>0<![CDATA[]]>0
+0<path d="0" stroke="0" x="0" y="0" fall="0" text-ar="0"><![CDATA[]]>0
+0<text x="0" y="0" onte="0" fill="0" text-ar="0"><![CDATA[]]>0
+0<path d="0" stroke="0" x="0" y="0" f="0" fall="0" text-ar="0"><![CDATA[]]>0<![CDATA[]]>0
+0<path d="0" stroke="0" x="0" y="0" font-size="0" fall="0" text-ar="0"><![CDATA[]]>0
+0<![CDATA[]]>0
+0<path d="0" stroke="0" x="0" y="0" f="0" fall="0" text-ar="0"><![CDATA[]]>0<![CDATA[]]>0
+0<path d="0" stroke="0" x="0" y="0" font-size="0" fall="0" text-ar="0"><![CDATA[]]>0
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1161.svg b/test/ns-afl-svg/1161.svg
new file mode 100644
index 0000000..dfaedbe
--- /dev/null
+++ b/test/ns-afl-svg/1161.svg
@@ -0,0 +1,25 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0
+0<path d="M0,0h0l0,0v00" fill="n&lt;o00tea000or00"/>0
+0<path d="M00,00m0"/>0
+0<path d="M0,0h0l0,0v00" fill="n&lt;o00tra000or00"/>0
+0<path d="M00,00-0" fill="#000"/>0
+0<text x="0" z="0" e="0" fl="0"/>0
+0<path d="M0,0h0l0,0v00" fill="n&lt;o00tra000or00"/>0
+0<path d="M00,00m0"/>0
+0<path d="l0,00v00" fill="n&lt;o00tra000or00"/>0
+0<path d="M00,00-0" fill="#000"/>0
+0<text x="0" z="0" font-size="0" fl="0"/>0
+0<text x="0" z="0" font-size="0" fl="0" t="0"><![CDATA[0]]></text>
+0<path d="M0,0h0m0"/>0
+0<path d="M0,0h0l0,0v00" fill="n&lt;o00tea000or00"/>0
+0<path d="M00,00m0"/>0
+0<path d="M0,0h0l0,0v00" fill="n&lt;o00tra000or00"/>0
+0<path d="M00,00-0" fill="#000"/>0
+0<text x="0" z="0" ke="0" ll="0"/>0
+0<path d="M0,0h0l0,0v00" fill="n&lt;o00tra000or00"/>0
+0<path d="M00,00m0"/>0
+0<path d="M0,0h0l0,0v00" fill="n&lt;o00tra000or00"/>0
+0<path d="M00,00-0" fill="#000"/>0
+0<text x="0" z="0" font-size="0" ll="0"/>0
+0<text x="0" z="0" font-size="0" ll="0" tr="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1162.svg b/test/ns-afl-svg/1162.svg
new file mode 100644
index 0000000..8a1d317
--- /dev/null
+++ b/test/ns-afl-svg/1162.svg
@@ -0,0 +1,5 @@
+<svg xmlns="00000000">0<path d="M00,0h00l00000000000" stroke="s0o0" fill="none"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="s0o0" fill="none"/>0
+0<path d="M00,0h00l0000000000000000000000000000000" stroke="s0o0" fill="none"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="s0o0" fill="none"/>0
+0</svg>
diff --git a/test/ns-afl-svg/1163.svg b/test/ns-afl-svg/1163.svg
new file mode 100644
index 0000000..01525f9
--- /dev/null
+++ b/test/ns-afl-svg/1163.svg
@@ -0,0 +1,7 @@
+<svg xmlns="000000000000000000" xmlns:xlin0="0" vieaBox="0">
+0
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000C0,00 00,0,00 00,00" i="0" fill="d0l00gra00"/><radialGradient d="0" x="0" y="0" r="0" s="0"><op t="0" op-c="0"/><op ot="0"/></radialGradient>
+0<path d="M00,000A0000000000000000000000000000000000,00000,00000,0,00000,00" id="0" fill="d0l00gra00"/><radialGradient id="0" cx="0" cy="0" r="0" s="0"><sp ot="0" sp-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M0,0 0,0" id="0" fill="d0l00gra00"/><radialGradient id="0" cx="0" cy="0" r="0" Units="0"><stop ot="0" top-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,0A000,00 0,0,0 00,000C00,00 00,00 00,000C000,0,00 00,00 00,00" id="0" fill="d0l00gra00"/>
+0<use xlin0:href="0" m="0"/>0</svg>
diff --git a/test/ns-afl-svg/1164.svg b/test/ns-afl-svg/1164.svg
new file mode 100644
index 0000000..cb86ddf
--- /dev/null
+++ b/test/ns-afl-svg/1164.svg
@@ -0,0 +1,10 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="00,0000000,0000000000" stroke="#000" fOll="0"/>0
+0<path d="00000000" fill="#p00"/>0
+0<text x="'" y="0" g="0" l="0" stroke="0" fOll="0"/>0
+0<path d="00000000" fill="#p00"/>0
+0<text x="'" y="0" e="0" fill="0" t-r="0">0
+0<tspan d="0" stroke="0" fOll="0"/>
+0<tspan d="0" stroke="0" fOll="0"/>0
+0<path d="0" fill="0"/>0<![CDATA[0
+0]]>0</text>0</svg>
diff --git a/test/ns-afl-svg/1165.svg b/test/ns-afl-svg/1165.svg
new file mode 100644
index 0000000..40119cb
--- /dev/null
+++ b/test/ns-afl-svg/1165.svg
@@ -0,0 +1,39 @@
+<svg xmls='0'>
+0<path d='000,00000,000,000,0' fill='d0t00tax000ts'/>0
+0<path d='000,0,000,000,00000' fill='d0t00tax000ts'/>0
+0
+0<path d='000,00000,000,000,0' fill='d0t00tax000ts'/>0
+0<path d='000,00000,000,000,0' fill='d0t00tax000ts'/>0
+0<path d='000,0,000,000,00000' fill='d0t00tax000ts'/>0
+0
+0<path d='000,00000,000,000,0' fill='d0t00tax000ts'/>0
+0<path d='000,0,000,000,00000' fill='d0t00tax000ts'/>0
+0<path d='000,0,000,000,0' fill='d0t00tax000ts'/>0
+0<path d='000,0,000,000,0' fill='d0t00tax000ts'/>0
+0<svg xmls='0'>
+0<path d='000,00000,000,000,0' fill='d0t00tax000ts'/>0
+0<path d='000,0,000,000,00000' fill='d0t00tax000ts'/>0
+0
+0<path d='000,00000,000,000,0' fill='d0t00tax000ts'/>0
+0<path d='000,00000,000,000,0' fill='d0t00tax000ts'/>0
+0<path d='000,0,000,000,00000' fill='d0t00tax000ts'/>0
+0
+0<path d='000,00000,000,000,0' fill='d0t00tax000ts'/>0
+0<path d='000,0,000,000,00000' fill='d0t00tax000ts'/>0
+0<path d='000,0,000,000,0' fill='d0t00tax000ts'/>0
+0<path d='000,0,000,000,0' fill='d0t00tax000ts'/>0
+0<path d='000,0,000,000,0' fill='d0t00tax000ts'/>0
+0<path d='000,0,000,000,0' fill='d0t00tax000ts'/>0
+0<path d='000,0,000,000,00000' fill='d0t00tax000ts'/>0
+0<path d='000,0,000,000,0' fill='d0t00tax000ts'/>0
+0<path d='000,0,000,000,0' fill='d0t00tax000ts'/>0
+0<path d='000,0,000,000,0' fill='d0t00tax000ts'/>0
+0<path d='000,0,000,000,0' fill='d0t00tax000ts'/>0
+</svg>0<path d='000,0,000,000,0' fill='d0t00tax000ts'/>0
+0<path d='000,0,000,000,0' fill='d0t00tax000ts'/>0
+0<path d='000,0,000,000,00000' fill='d0t00tax000ts'/>0
+0<path d='000,0,000,000,0' fill='d0t00tax000ts'/>0
+0<path d='000,0,000,000,0' fill='d0t00tax000ts'/>0
+0<path d='000,0,000,000,0' fill='d0t00tax000ts'/>0
+0<path d='000,0,000,000,0' fill='d0t00tax000ts'/>0
+</svg>
diff --git a/test/ns-afl-svg/1166.svg b/test/ns-afl-svg/1166.svg
new file mode 100644
index 0000000..135c7bf
--- /dev/null
+++ b/test/ns-afl-svg/1166.svg
Binary files differ
diff --git a/test/ns-afl-svg/1167.svg b/test/ns-afl-svg/1167.svg
new file mode 100644
index 0000000..eb9215c
--- /dev/null
+++ b/test/ns-afl-svg/1167.svg
@@ -0,0 +1,116 @@
+<svg xmlns="00" x="0">
+0<t x="0"/>
+0<patKKKKKKKKKKKKKKKKext d="0" e="0" l="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" ll="0"/>0
+0
+<!--0-->0<svg xmlns="000000000000000000000000000000000" d="0" v="0" w="0" he="0" n="0" baseProfile="0">
+0<SVGTestCase xmlns="00">
+0<OperatorScript ver="0" testname="0">
+0<Paragraph>
+0
+0
+0</Paragraph>
+0<Paragraph>
+0
+0
+0
+
+0
+0
+0
+0
+0</Paragraph>
+0<Paragraph>
+0
+0
+0</Paragraph>
+0</OperatorScript>
+0</SVGTestCase>
+0<title id="0">0<!--0-->0<!--0--></title>
+0<desc id="0">0</desc>
+0<!--0-->
+0<!--0-->
+0<!--0-->
+0<g id="0">
+0<!--0-->
+0<!--0-->
+0<!--0-->
+0
+0<rect x="0" y="0" w="0" he="0" fl="0"/>
+0<rect x="0" y="0" width="0" ht="0" fill="0"/>
+0<rect x="0" y="0" width="0" he="0" baseProfile="0">
+0<SVGTestCase xmlns="0000">
+0<OperatorScript ver="0" testname="0">
+0<Paragraph>
+0
+0
+0</Paragraph>
+0<Paragraph>
+0
+0
+0
+
+0
+0
+0
+0<SVGTestCase xmlns="0000">
+0<OperatorScript ver="0" testname="0">
+0<Paragraph>
+0
+0
+0</Paragraph>
+0<Paragraph>
+0
+0
+0
+
+0
+0
+0
+0
+0</Paragraph>
+0<Paragraph>
+0
+0
+0</Paragraph>
+0</OperatorScript>
+0</SVGTestCase>
+0<title id="0">0<!--0-->0<!--0--></title>
+0<desc id="0">0</desc>
+0<!--0-->
+0<!--0-->
+0<!--0-->
+0<g id="0">
+0<!--0-->
+0<!--0-->
+0<!--0-->
+0
+0<rect x="0" y="0" w="0" he="0" fill="0"/>
+0<rect x="0" y="0" width="0" ht="0" fill="0"/>
+0<rect x="0" y="0" w="0" he="0" baseProfile="0">
+0<SVGTestCase xmlns="0000">
+0<OperatorScript ver="0" testname="0">
+0<Paragraph>
+0
+0
+0</Paragraph>
+0<Paragraph>
+0
+0
+0
+
+0
+0
+0
+0
+0</Paragraph>
+0<Paragraph>
+0
+0
+0</Paragraph>
+0</OperatorScript>
+0</SVGTestCase>
+0<title id="0">0<!--0-->0<!--0--></title>
+0<desc id="0">0
+0
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1168.svg b/test/ns-afl-svg/1168.svg
new file mode 100644
index 0000000..0745cfd
--- /dev/null
+++ b/test/ns-afl-svg/1168.svg
Binary files differ
diff --git a/test/ns-afl-svg/1169.svg b/test/ns-afl-svg/1169.svg
new file mode 100644
index 0000000..5845442
--- /dev/null
+++ b/test/ns-afl-svg/1169.svg
@@ -0,0 +1,2 @@
+<svg xmÕ00="0" x="">
+0<path d="0" fill="0"/>0</svg>
diff --git a/test/ns-afl-svg/1170.svg b/test/ns-afl-svg/1170.svg
new file mode 100644
index 0000000..4e9a864
--- /dev/null
+++ b/test/ns-afl-svg/1170.svg
@@ -0,0 +1,35 @@
+<svg Ãs="0" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v0,00v00v" fill="#000"/>0<![CDATA[0]]>0
+0<path d="0000000000" fill="q0n&lt;0"/>0
+0<path d="M00,00v000000v" fill="#000"/>0<![CDATA[0]]>0
+0<path d="00" fill="q0n&lt;0"/>0
+0<path d="00000"/>0<![CDATA[0]]>0
+0<path d="0000000000" fill="q0n&lt;0"/>0
+0<path d="M00,0h00l00,00v00000000000H" fill="#000"/>0<![CDATA[0]]>0
+0<path d="0000000000" fill="q0n&lt;0"/>0
+0<path d="0"/>0<![CDATA[0]]>0
+0<path d="0000000000" fill="q0n&lt;0"/>0
+0<path d="M00,0h00l00,00v000v" fill="#000"/>0<![CDATA[0]]>0
+0<path d="0000000000" fill="q0n&lt;0"/>0
+0<path d="M00,0h00l00,00v00l000,00h00v" fill="#000"/>0<![CDATA[0]]>0
+0<path d="0000000000" fill="q0n&lt;0"/>0
+0<path d="0"/>0<![CDATA[0]]>0
+0<path d="0000000000" fill="q0n&lt;0"/>0
+0<path d="M00,0h00l00,00v0l00,00v0,00v00000000000v" fill="#000"/>0<![CDATA[0]]>0
+0<path d="0000000000" fill="q0n&lt;0"/>0
+0<path d="M00,0h00l00,00v00l000,00h00v" fill="#000"/>0<![CDATA[0]]>0
+0<path d="0000000000" fill="q0n&lt;0"/>0
+0<path d="00000"/>0<![CDATA[0]]>0
+0<path d="0000000000" fill="q0n&lt;0"/>0
+0<path d="M00,0h00l00,00v00l000,00h00H" fill="#000"/>0<![CDATA[0]]>0
+0<path d="M00,000,00" fill="q0n&lt;0"/>0
+0<path d="0"/>0<![CDATA[0]]>0
+0<path d="M00,000,00" fill="q0n&lt;0"/>0
+0<path d="M00,0h00l00,00v00l000,00h00v" fill="#000"/>0<![CDATA[0]]>0
+0<path d="M00,000,00" fill="q0n&lt;0"/>0
+0<path d="M00,0h00l00,00v00l000,00h00v" fill="#000"/>0<![CDATA[0]]>0
+0<path d="M00,000,00" fill="q0n&lt;0"/>0
+0<path d="0"/>0<![CDATA[0]]>0
+0<path d="M00,000,00" fill="q0n&lt;0"/>0
+0<path d="M00,0h00l00,00v00l000,00h00H" fill="#000"/>0<![CDATA[0]]]]]]>0<![CDATA[0]]]]>0
+</svg>
diff --git a/test/ns-afl-svg/1171.svg b/test/ns-afl-svg/1171.svg
new file mode 100644
index 0000000..56e7917
--- /dev/null
+++ b/test/ns-afl-svg/1171.svg
@@ -0,0 +1,4 @@
+<svg xmlns="0000000000" xmlns:xlin0="00" viewBox="0 0 0 0">
+0<a xlin0:href="0">
+0
+0</a>0</svg>
diff --git a/test/ns-afl-svg/1172.svg b/test/ns-afl-svg/1172.svg
new file mode 100644
index 0000000..bdfd9cb
--- /dev/null
+++ b/test/ns-afl-svg/1172.svg
@@ -0,0 +1,14 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:000000"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u0;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="H" style="fill:g0e00oke000ac0;" transform="translate(0,0)"/><circle cx="cm" cy="cm" r="H" style="fill:g0stroke:black;" transform="translate(0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="H" style="fill:g0e00oke000ac0;" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1173.svg b/test/ns-afl-svg/1173.svg
new file mode 100644
index 0000000..79bf911
--- /dev/null
+++ b/test/ns-afl-svg/1173.svg
@@ -0,0 +1,13 @@
+<svg xmlns="0000000000" viewBox="0 0 0 0">0<path d="00000000" stroke="#000" fill="n0b0"/>0
+0<path d=",,000,00" st="0" fill="n0b0"/>0
+0<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0l0-0l0-0v0z" stroke="#000" fill="n0b0"/>0
+0<path d="M0,0h00l00,00v00l000,00h0l0-00v000z" fill="#000"/>0
+0<text x="0" y="0" font-size="0" fl="0" tt-ar="0"><![CDATA[0]]></text>0</svg>
+0<text x="0" y="0" font-size="0" f_e="0" ill="0"/>0
+0<path d="000,00,000,00" stroke="#000" fill="n0b0"/>0
+0<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,0l000-00l0-00v000z" stroke="#000" fill="n0b0"/>0
+0<path d="M00,0h00l00,00v00l000,00h0l0-00v000z" fill="#000"/>0
+0<text x="0" y="0" font-size="0" fill="0" tt-ar="0"><![CDATA[0]]></text>0</svg>
+0<text x="0" y="0" font-size="0" fi="0" tt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1174.svg b/test/ns-afl-svg/1174.svg
new file mode 100644
index 0000000..c0232de
--- /dev/null
+++ b/test/ns-afl-svg/1174.svg
@@ -0,0 +1,126 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="0000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="h" width="0" height="0" id="0" sodipodi:ion="0" inkscape:von="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs id="0">
+0<linearGradient id="linearGradient0000" gradientUnits="0" x2="0" y2="0">
+0<stop style="0" t="0" d="0"/>
+0<stop style="stop-color:"/>0
+0<stop style="0" offset="0"
+d="0"/>0
+0
+0
+0
+0<stop style="0" offset="0" d="0"/>
+0<stop style="stop-color:"/>0
+0<stop style="0" offset="0"
+d="0"/>
+0<stop style="stop-color:"/>0
+0
+0
+0
+0<stop style="stop-color:"/>0
+0
+0
+0
+0
+0
+0<stop style="stop-color:0000"/>
+0<stop style="stop-color:00" offset="0"
+d="0"/>
+0<stop style="stop-color:00000000000000"/>
+0
+0
+0<stop style="0" offset="0" d="0"/>
+0<stop style="stop-color:"/>0
+0<stop style="0" offset="0"
+d="0"/>0
+0
+0
+0
+0<stop style="0" offset="0" d="0"/>
+0<stop style="stop-color:"/>0
+0<stop style="0" offset="0"
+d="0"/>
+0<stop style="stop-color:"/>0
+0
+0
+0
+0<stop style="stop-color:"/>0
+0
+0
+0
+0
+0
+0<stop style="stop-color:00000000000000"/>
+0<stop style="stop-color:000)00000000000000000000000000000000000)0000000000" offset="0"
+d="0"/>
+0<stop style="stop-color:00000000000000"/>
+0<stop style="stop-color:00000000000000000)00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" offset="0" d="0"/>
+0<stop style="0" offset="0"
+d="0"/>
+0<stop style="stop-color:00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)0000000;" offset="0" d="0"/>
+0<stop style="stop-color:00000000000000"/>
+0<stop style="stop-color:00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;" offset="0"
+d="0"/>
+0<stop style="stop-color:0000000000000000000000000000" offset="0" d="0"/>
+0<stop style="stop-color:"/>0
+0<stop style="0" offset="0"
+d="0"/>0
+0
+0
+0
+0<stop style="0" offset="0" d="0"/>
+0<stop style="stop-color:"/>0
+0<stop style="0" offset="0"
+d="0"/>
+0<stop style="stop-color:"/>0
+0
+0
+0
+0<stop style="stop-color:"/>0
+0
+0
+0
+0
+0
+0<stop style="stop-color:000000"/>
+0<stop style="stop-color:0000000000000000)000000000000000000000000000000000" offset="0"
+d="0"/>
+0<stop style="stop-color:00000000000000"/>
+0
+0
+0<stop style="0" offset="0" d="0"/>
+0<stop style="stop-color:"/>0
+0<stop style="0" offset="0"
+d="0"/>0
+0
+0
+0
+0<stop style="0" offset="0" d="0"/>
+0<stop style="stop-color:"/>0
+0<stop style="0" offset="0"
+d="0"/>
+0<stop style="stop-color:"/>0
+0
+0
+0
+0<stop style="stop-color:"/>0
+0
+0
+0
+0
+0
+0<stop style="stop-color:00000000000000"/>
+0<stop style="stop-color:00000000000000000000000000000000000000000000000000" offset="0"
+d="0"/>
+0<stop style="stop-color:00000000000000"/>
+0<stop style="stop-color:0000000000000000000000000000000000000000000000000000000000" offset="0" d="0"/>0</linearGradient>
+0</defs>
+0<g inkscape:label="0" inkscape:groupmode="0" d="0">
+0<rect style="fill:url(#linearGradient0000);"
+d="0" width="0" height="0" x="0" y="0"/>
+0 0
+0
+0<rect style="fill:url(#linearGradient0000);"
+d="0" width="0" height="0" x="0" y="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1175.svg b/test/ns-afl-svg/1175.svg
new file mode 100644
index 0000000..9ce111e
--- /dev/null
+++ b/test/ns-afl-svg/1175.svg
Binary files differ
diff --git a/test/ns-afl-svg/1176.svg b/test/ns-afl-svg/1176.svg
new file mode 100644
index 0000000..2ec89bb
--- /dev/null
+++ b/test/ns-afl-svg/1176.svg
@@ -0,0 +1,65 @@
+<?l?>
+<svg version="0" xmlns="00000000000000000000000000" xmlns:k="0" width="0" height="0" style="0" on="0">
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="s0g00ric0"
+stroke-width="3"/>
+0
+0<svg ns="0" width="0" ei="0" cy="0" r="0" stroke="s0g00ric0"
+stroke-width="0"/>
+0
+0<svg version="0" ht="0" style="0" on="0">
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="s0g00ric0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg>0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/1177.svg b/test/ns-afl-svg/1177.svg
new file mode 100644
index 0000000..643c129
--- /dev/null
+++ b/test/ns-afl-svg/1177.svg
@@ -0,0 +1,1878 @@
+<vg ns=""><sg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+<sv xmlns=""><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+<svg xmlns=""><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+<svg xmlns=""><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+<svg xmlns=""><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+<svg xmlns=""><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+<svg xmlns=""><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+</svg>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+</svg>0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1178.svg b/test/ns-afl-svg/1178.svg
new file mode 100644
index 0000000..a88e7e7
--- /dev/null
+++ b/test/ns-afl-svg/1178.svg
@@ -0,0 +1,375 @@
+<svg s="0"><!--0-->0
+0
+0<defs>0<linearGradient id="pyYello0" a_m="0">0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0_0" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop st="0" offset="t" style="0" fl="0"/>
+0<path d="0" fl="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0000000000000000000000000000000000"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+0<path d="00000000000000000000000000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l000 0000-00 000-000 00000 000000,00000000000000000=0000000000000000000000000000000000000000000000" id="0000" style="fill: u00000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-6-00000000007000000000000000000000000000000000000 0000000000000000000000000000" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,5,00-2,00l-50-00000,c0,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fl="0"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCme r="0" cx="0" cy="0" fl="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000e)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<AirCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCla r="0" ll="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000ac000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,004-00l0-00c0-0,0-00,10-10l24,0c0,0,00-0,04-15l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" f="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+0
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-10l24,0c0,0,00-0,14-15l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1179.svg b/test/ns-afl-svg/1179.svg
new file mode 100644
index 0000000..e5089f2
--- /dev/null
+++ b/test/ns-afl-svg/1179.svg
@@ -0,0 +1,86 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(0000000,0000,00000">
+0<stop stop-color="0000000" offset="0"/>
+0<stop stop-color="0000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="000000,00000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" l="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000 00-00 000-00 0000-00 000-000 00000 000000,00000000000000000=00,0000000000000000,000000000000000,0000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000000"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00000000000-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" c="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00v0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00000000000-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1180.svg b/test/ns-afl-svg/1180.svg
new file mode 100644
index 0000000..169712b
--- /dev/null
+++ b/test/ns-afl-svg/1180.svg
@@ -0,0 +1,439 @@
+<svg olns="0" fill="url(#pyYellow" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" m="0">
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="0" offset="C"/>0<stop stop-color="#000" Wt="0"/>
+0
+0
+0
+0<path d="0" fill="0"/>0
+0<ce r="0" cx="0" cy="0" fill="0"/>
+0<ccle r="0" cx="0" id="0000" s="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<pAth d="0" fill="0"/>0
+0<le r="0" cx="0" cy="0" fill="0"/>
+0
+0<path d="0" fill="0"/>0
+0<le r="0" cx="0" cy="0" fill="0"/>
+0<ci r="0" cx="0" id="0000" e="0" fill="0"/>0
+0
+0<path d="0" fill="0"/>0
+0<ce r="0" cx="0" cy="0" fill="0"/>
+0<ccle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" of="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000" fill="url(#000000)"/>
+0<pAth d="M00,00c0,0-0,00-03,000000000000000-00000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0
+0
+0<path d="M30,0h30l28,00v00l000,00h-00 90-50 100
+-00 00 0 90-200 00-300-70-80-104-69-210 00-200 360-80T01020-000
+800 0-00 00-100 00-200 0-100 0-030-7-500-0-00-0-00-0-000-00-00-0-00#0000000000000000"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns000ml0000"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="0000000000"/>0
+0
+0<path d="M00,0h40l29,00v0h-40-29,29h-40l00" stroke="#000" fill="0000000000"/>0
+0<path d="M00,0h-00l-09-00-000" stroke="#000" fill="0000000000"/>0
+0<path d="M00,0h08l" fill="v0n00lns00"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h38l28,00v00l-200,0h38l" fill="v0n00lns00"/>0
+0<path d="000000000000" stroke="#000" fill="v0n00lns00"/>0
+
+0<path d="M00,0h40l29,00v0h-40-29,29h-40l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h08l" fill="v0n00lns00"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h38h38l" fill="v0n00lns00"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l08,00v0h30l" fill="v0n00lns00"/>0
+0<path d="000" fill="v0n00lns00"/>0
+0<path d="M00,00v00l000,00h-30l-2000-000 00-00-00 00-80 000-59 0000-75 000-139 000-89-00-30-0000000-0 0000000000000000000000000000000000000000000i0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<path d="000" fill="v0n00lns00"/>0
+0<path d="M00,00v00l000,00h-30l-2000-000 00-00-00 00-80 000-59 0000-75 000-139 000-89-00-30-0000000-0 0000000000000000000000000000000000000000000i0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns000ml0000"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+0
+0<path d="M00,0h40l29,00v0h-40-29,29h-40l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h-40l-09-00-000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h08l" fill="v0n00lns00"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h38l28,00v00l-200,0h38l" fill="v0n00lns00"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+
+0<path d="M00,0h40l29,00v0h-40-29,29h-40l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h080000i00000000000000000000000000000000000000"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns000ml0000"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+0
+0<path d="M00,0h40l29,00v0h-40-29,29h-40l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h-40l-09-00-000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h08l" fill="v0n00lns00"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h38l28,00v00l-230,0h38l" fill="v0n00lns00"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+
+0<path d="M00,0h40l29,00v0h-40-29,29h-40l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h08l" fill="v0n00lns00"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h38h38l" fill="v0n00lns00"/>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns000ml0000"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+0
+0<path d="M00,0h40l29,00v0h-40-29,29h-40l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h-40l-09-00-000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h08l" fill="v0n00lns00"/>0
+0<path d="M00,0h5,000000"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns000ml0000"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+0
+0<path d="M00,0h40l29,00v0h-40-29,29h-40l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h-40l-09-00-000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h08l" fill="v0n00lns00"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h38l28,00v00l-230,0h38l" fill="v0n00lns00"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+
+0<path d="M00,0h40l29,00v0h-40-29,29h-40l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h08l" fill="v0n00lns00"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h38h38l" fill="v0n00lns00"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h08l20,00v0h08l" fill="v0n00lns00"/>0
+0<path d="000" fill="v0n00lns00"/>0
+0<path d="M00,00v00l000,00h-30l-2000-000 00-00-00 00-80 000-59 0000-75 000-139 000-89-00-30-0000000-0 0000000000000000000000000000000000000000000i000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000"/>0
+0<path d="000" fill="v0n00lns00"/>0
+0<path d="M00,00v00l000,00h-30l-2000-000 00-00-50 00-80 000-50 0000-30,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h08l20,0,v0h08l" fill="v0n00lns00"/>0
+0<path d="000" fill="v0n00lns00"/>0
+0<path d="M00,00v00l000,00h000l000000000000000000000000000000000000-00 000-000 00,00000000000000000000000000000000ac000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,020-00l0-00c0-0,0-00,02-00l00,w0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,004-00l0-20c0-7,0-12,10-10l24,0c0,0,00-7,04-00l0-10l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-8,00-20,004-00l0-22c0-7,6-10,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" ficy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="=" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" ill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000"/>0
+0<cirChe r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,00-20,024-00l0-22c0-7,0-10,12-00l04,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00c00000,00000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" iill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,00-20,004-00l0-22c0-7,0-10,10-10l24,0c0,0,00-7,04-00l0-10l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,00-20,004-00l0-22c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,00..000,00000000 000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,00-20,004-00l0-22c0-7,0-10,10-10l24,0c0,0,00-7,04-00l0-10l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,00-20,004-00l0-22c0-7,0-10,10-10l24,0c0,0,00-7,04-10l0-10l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-8,00-20,004-00l0-22c0-7,6-10,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,00-20,004-00l0-22c000,0000,00000000" fill="u000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,00-20,004-00l0-22c0-7,0-10,10-10l24,0c0,0,00-7,04-10l0-10l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#00000"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+0
+0<path d="M00,0h40l29,00v0h-40-29,29h-40l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h-40l-09-09-000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h08l" fill="v0n00lns00"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h38l28,0,v00l-200,0h38l" fill="v0n00lns00"/>0
+0<path d="000000000000" stroke="#000" fill="v0n00lns00"/>0
+
+0<path d="M00,0h40l29,00v0h-40-29,29h-40l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h08l" fill="v0n00lns00"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h38h38l" fill="v0n00lns00"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h08l20,0,v0h08l" fill="v0n00lns00"/>0
+0<path d="000" fill="v0n00lns00"/>0
+0<path d="M00,00v00l000,00h-30l-2000-007 00-09-00 00-80 000-59 0000-75 000-139 000-89-00-30-0000000-0 0000000000000000000000000000000000000000000000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,00-20,104-00l0-22c0-7,0-10,10-10l04,0c0,0,00-7,14-10l0-10l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0
+0<path d="M00,0h40l29,00v0h-40-29,29h-40l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h-40l-09-09-000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h08l" fill="v0n00lns00"/>0
+0<path d="M00,0h5,000000"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns000ml0000"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+0
+0<path d="000,0000000,00000000000,000000000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h-40l-09-09-000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h08l" fill="v0n00lns00"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h38l28,0,v00l-200,0h38l" fill="v0n00lns00"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+
+0<path d="M00,0h40l29,00v0h-40-29,29h-40l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h08l" fill="v0n00lns00"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h38h38l" fill="v0n00lns00"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h08l20,0,v0h08l" fill="v0n00lns00"/>0
+0<path d="000" fill="v0n00lns00"/>0
+0<path d="M00,00v00l000,00h-30l-2000-007 00-09-00 00-80 000-59 0000-75 000-139 000-89-00-30-0000000-0 0000000000000000000000000000000000000000000i0000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000"/>0
+0<path d="000" fill="v0n00lns00"/>0
+0<path d="M00,00v00l000,00h000l-2000-007 00-09-50 00-80 000-000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,0000,0000,00000W000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" c="0" fill="v0n00lns000ml0000"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+0
+0<path d="M00,0h40l29,00v0h-40-29,29h-40l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h-40l-09-09-000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h08l" fill="v0n00lns00"/>0
+0<path d="M00,0h5,000000"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns000ml0000"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+0
+0<path d="M00,0h40l29,00v0h-40-29,29h-40l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h-40l-09-09-000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h08l" fill="v0n00lns00"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h38l28,0,v00l-230,0h38l" fill="v0n00lns00"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+
+0<path d="M00,0h40l29,00v0h-40-29,29h-40l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h08l" fill="v0n00lns00"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h38h38l" fill="v0n00lns00"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h08l20,0,v0h08l" fill="v0n00lns00"/>0
+0<path d="000" fill="v0n00lns00"/>0
+0<path d="M00,00v00l000,00h-30l-2000-007 00-09-00 00-80 000-59 0000-75 000-139 000-89-00-30-0000000-0 0000000000000000000000000000000000000000000i0000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000"/>0
+0<path d="000" fill="v0n00lns00"/>0
+0<path dy="0" fill="#000"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>
+0
+
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0
+
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" id="0000" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>0<circle r="0" cx="0" cy="0" fill="0"/>0</svg>
diff --git a/test/ns-afl-svg/1181.svg b/test/ns-afl-svg/1181.svg
new file mode 100644
index 0000000..87b186a
--- /dev/null
+++ b/test/ns-afl-svg/1181.svg
@@ -0,0 +1,4 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='red'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M0 0A0 0 0 0 0 0 0' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY V "">]><svg width="p" versmlns="0">
+0<g transform="matrix(0,0,0,6,0,0)">
+0&Smile;
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1182.svg b/test/ns-afl-svg/1182.svg
new file mode 100644
index 0000000..9a59ec9
--- /dev/null
+++ b/test/ns-afl-svg/1182.svg
@@ -0,0 +1,392 @@
+<svg ns="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="pyYellow" rm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="q0v00p" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000,0000,000,0000000,0000" fill="url(#pyYellow"/>0
+0
+
+0<circle r="0" cx="0" cy="0" ll="0"/>
+0
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#00)"/>0
+0<path d="M00,00c00000,00000,000000000000000,0000,00000000,000,0,00000000,000000,0000" fill="url(#00)"/>
+0<pAth d="M00,00c0,0-0,00-00,000-000000000000000000000000000000000000000,000000000,00..000,00000000 000000,00000000000 000000,000000000 00000000,000000000 000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" lf="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000" fill="url(#00000"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow"/>0
+0<cirCle r="4" cp="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,00,000,0000,0l0,000,0000000000000000000000000" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000,0000,000,000,00000000000000000000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-000000000100000000,00000000000000000,000,0000000,0000" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#000000)"/>
+0<pAth d="M00,00c0,0-0,00-00,000-000000000000000000000000000000000000000,000000000,00..000,00000000 000000,00000000000 000000,000000000 00000000,000000000 000000,0000000000C000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" lf="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,,0l0,0z M000000000-000 00-00-00 00000000000000000000000000000000000000c000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" ii="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00Y0)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00Y0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,00-00000,00"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00o0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,00-00l20,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-000000,000000000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url000000000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="$" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000000000000000000000 000-000 000-00-00-000000000000000000000000000000..000,000000000,00..000,00000000 000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0000" style="fill: url(#00000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="" fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000=00,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,!0000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1183.svg b/test/ns-afl-svg/1183.svg
new file mode 100644
index 0000000..823abcc
--- /dev/null
+++ b/test/ns-afl-svg/1183.svg
@@ -0,0 +1,208 @@
+<?l?>
+<svg version="0" xmlns="0000000000000000000" xmlns:x="0" width="0" height="0" s="0" n="0">
+0<script t="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g d="0" fill="b0u0" e="0">
+0<circle d="0" cx="0" cy="0" r="5" se="0"
+h="0"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0
+0
+0
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g d="0" fill="blue" style="0">
+0<circle d="0" cx="0" cy="0" r="5" stroke="f0r00ric000id00"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0
+0
+0
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0r00ric000id00"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>
+0
+0
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0r00ric000id00"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>
+0
+0
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0r00ric000id00"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/1184.svg b/test/ns-afl-svg/1184.svg
new file mode 100644
index 0000000..2a3f684
--- /dev/null
+++ b/test/ns-afl-svg/1184.svg
@@ -0,0 +1,39 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c00anc000ed'/>0<g transform='translate(0,0)'>0<circle cx='0' cy='0' r='1' fill='y0l00w'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='b0i00'/>0<path d='M0 0A0 0 0 0 0 00 00' stroke='black' otroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='d'
+fill='n0s0' stroke='b0u0'/>">]><svg width="px" hei="0">
+0<desc>0</desc>
+0<rect x="0" y="0" dth="0" e="0" fill="none" s="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g m="0">&Smile;</g>0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport0;</g>
+0<g d="0" transform=",0">0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg o="0" Box="0"
+t="0" h="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg pro="0" vix="0"
+idth="0" e="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&o;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" vox="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0
+0
+0
+<circle cx="cm" cy="pt" r=":" transform=",0"/>0<circle cx="pc" r="0" style="fill:b0u0;stroke:b0a00;stroke-width:000cm" transform="0"/>
+0
+<circle cx="0" cy="pt" r=":" transform=",0"/>0<circle cx="pc" r="a"/>
+0
+0<circle cx="cm" cy="pt" r=":" transform=",0"/>0<circle cx="pc" r="0" stylq="0" transform="translate(0"/>
+0
+0<circle cx="cm" cy="pt" r="1" style="fill:blue;stroke:black;stroke-width:00000" transform="0"/>0<circle cx="pc"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1185.svg b/test/ns-afl-svg/1185.svg
new file mode 100644
index 0000000..ee3b01a
--- /dev/null
+++ b/test/ns-afl-svg/1185.svg
@@ -0,0 +1,140 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='red'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='y0d00'/>0<circle Nx='0' cy='0' r='b'/>0<circle cx='0' cy='0' r='1' fill='b0i00'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' otroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='em' width='0' height='d'
+fill='n0s0' stroke='blue'/>">]><svg width="px" hei="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" fill="none" s="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g m="0">&Smile;</g>0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport0;</g>
+0<g d="0" transform="00">0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&i;
+0<svg pro="0" vix="0"
+dth="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+idth="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&Viewport0;
+0<svg pio="0" vox="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>0</g>
+0<g id="0" transforK="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g m="0"><text y="0">0</text>&Viewport0;
+0<svg preservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRat="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pspectRatiotio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport0;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preseAsp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1186.svg b/test/ns-afl-svg/1186.svg
new file mode 100644
index 0000000..bba41a8
--- /dev/null
+++ b/test/ns-afl-svg/1186.svg
@@ -0,0 +1,22 @@
+<svg ivodh="0">
+0<g trokd='0' xmlnsÙ0000="0">
+0<g soke0Ù0000="0">
+0<g soke0Ù0000="0">
+0<g soke0Ù0000="0">
+0<g slrokd='0' xmlnsÙ0000="0">
+0<g troke0Ù0000="0">
+0<g stroke0Ù0000="0">
+0<g stroke0Ù0000="0">
+0<g ivodd='0' xmlnsÙ0000="0">
+0<g stroke0Ù0000="0">
+0<g stroke0Ù0000="0">
+0<g stroke0Ù0000="0">
+0<g stke0Ù0000="0">
+0<g oke="0">
+0<g oke0Ù0000="0">0<g vivodd='0' xmlnsÙ0000="0">
+0<g stroke0Ù0000="0">
+0<g stroke0Ù0000="0">
+0<g stroke0Ù0000="0">
+0<g stke0Ù0000="0">
+0<g oke="0">
+0<g oke0Ù0000="0">0Ù0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1187.svg b/test/ns-afl-svg/1187.svg
new file mode 100644
index 0000000..e56c408
--- /dev/null
+++ b/test/ns-afl-svg/1187.svg
@@ -0,0 +1,26 @@
+<svg ox='0' xmlns='000' fill='s0l00tax000ns00000' strofill='0' stroke='0'>
+0
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="=" r="1" style="stroke:black;stroke-width:001cm" transform="translate(0"/>0<circle cx="cm" r="1" style="stroke:f0a0"/>
+0
+0<circle cy="cm" r="1" n="0" rm="0"/>
+0<circle cx="c" cy="cm" r="1" style="fill:0000000;stroke:f0a0"/>0<circle cx="c" cy="cm" r="1" style="fill:g0b00nsf000"/>
+0<circle cx="c" cy="cm" r="1" style="fill:g0b00nsf000"/>
+0<circle cy="cm" r="1" n="0" t="0"/>
+0
+0<circle cx="c" cy="cm" r="1" style="fill:g0b00nsf000"/>
+0<circle cx="c" cy="cm" r="1" style="fill:g0b00nsf000"/>
+0<circle cy="cm" r="1" style="fill:0000000000;stroke:f0a0"/>
+0
+0<circle cy="cm" r="1" n="0" rm="0"/>
+0<circLe cx="c" cy="cm" r="1" style="fill:0000000;stroke:f0a0"/>0<circle cx="c" cy="cm" r="1" style="fill:g0b00nsf000"/>
+0<circle cx="c" cy="cm" r="1" style="fill:g0b00nsf000"/>
+0<circle cy="cm" r="1" n="0" t="0"/>
+0
+0<circle cx="c" cy="cm" r="1" style="fill:g0b00nsf000"/>
+0<circle cx="c" cy="cm" r="1" style="fill:g0b00nsf000"/>
+0<circle cy="cm" r="1" style="fill:0000000;stroke:f0a00;" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1188.svg b/test/ns-afl-svg/1188.svg
new file mode 100644
index 0000000..20464dc
--- /dev/null
+++ b/test/ns-afl-svg/1188.svg
@@ -0,0 +1,7 @@
+<svg xmlns="00000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l000,00h0l0-00v000z" stroke="#000" fill="r0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h0l0-00v000z" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l0,00h000l000-00v0z" stroke="#000" fill="r0n0"/>0
+0<path d="M00,0h00l00,00v00l0,00h000l000-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-e="0" l="0" t-r="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1189.svg b/test/ns-afl-svg/1189.svg
new file mode 100644
index 0000000..2b454be
--- /dev/null
+++ b/test/ns-afl-svg/1189.svg
@@ -0,0 +1,4 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c00ext000ch0000'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<path d='M000 00 000000000' stroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY V "">]><svg width="px" height="px" version="0" xmlns="000000000000000000">
+0<g transform="matrix(0,0,0,6,0,0)">
+0&Smile;
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1190.svg b/test/ns-afl-svg/1190.svg
new file mode 100644
index 0000000..f92d166
--- /dev/null
+++ b/test/ns-afl-svg/1190.svg
@@ -0,0 +1,31 @@
+<?l?>
+<svg version="0" xmln="0" width="0" height="0" style="0" n="0">
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0r00ric000or00000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/1191.svg b/test/ns-afl-svg/1191.svg
new file mode 100644
index 0000000..08bee7d
--- /dev/null
+++ b/test/ns-afl-svg/1191.svg
@@ -0,0 +1,57 @@
+<svg xmlns="000000000000000000" viewBox="0">
+0<defs>
+0<linearGradient id="">0
+0<stop p-c="0" et="0"/>
+0<stop sr="0" offset="0"/>
+0</linearGradient>
+0<linearGradient href="#" id="pyBlue" ox="0">
+0<defs>
+0<linearGradient id="0" g="0">
+0<sp p-c="0" et="0"/>
+0</linearGradient>
+0</defs>0
+0<th d="0" ot="0"/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop stop-color="#000" ot="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" jl="0"/>
+0<path d="M00,00c00000-00-00-0-0-00-0000000000000000000" fill="url(#pyBlue"/>
+0<path d="00" fill="url(#00B00"/>
+0<path d="00000000000000000000000" fill="url(#000000"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<defs>
+0<linearGradient id="">0
+0<op p-c="0" et="0"/>
+0<sp sr="0" of="0"/>
+0</linearGradient>
+0<linearGradient hf="0" id="00000" ox="0">
+0<defs>
+0<linearGradient id="0" g="0">
+0<sp p-c="0" et="0"/>
+0</linearGradient>
+0</defs>0
+0<th d="0" ot="0"/>
+0
+0<stop op-c="0" et="0"/>
+0<stop sp-r="0" ot="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" jl="0"/>
+0<path d="M00,00c000000-00-00-0-00-0000000000l000000000000000000000000" fill="url(#pyBlue)" id="0" style="fill: url(#000v0" ll="0"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000M0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000v0" fill="url(#pyBlue"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000000000000000000000000000000000000000M000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000v0" fill="url(#pyBlue"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000000000000000000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#0000z" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,000000000,000000000000000,0000000000" id="0" style="fill: url(#000v0" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#0000z" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000l"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1192.svg b/test/ns-afl-svg/1192.svg
new file mode 100644
index 0000000..c55720a
--- /dev/null
+++ b/test/ns-afl-svg/1192.svg
@@ -0,0 +1,3 @@
+<?l?>
+<!DOCTYPE s0000000000:000 PUBLIC "0" "0">
+= \ No newline at end of file
diff --git a/test/ns-afl-svg/1193.svg b/test/ns-afl-svg/1193.svg
new file mode 100644
index 0000000..d297c09
--- /dev/null
+++ b/test/ns-afl-svg/1193.svg
@@ -0,0 +1,53 @@
+<svg ÃÉ="0">0
+0
+0
+0<t x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKext d="0" e="0" l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK0KKKKKKKKKKKKKKKKKext d="0" e="0" l="0"/>0
+0<KfK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKcKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKcKKKKKKKKKKext d="0" e="0" l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK e="0" l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" e="0" l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKext d="0" ke="0" fl="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" ll="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" ll="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vl="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK0KKKKKKext d="0" ke="0" fl="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" ll="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKt d="0" ke="0" ll="0"/>0
+0<KKK-KKKKKKKKKK0KKKKKKKKKNKKKKKKpath d="0" vl="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fl="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" ll="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLLLLLLLLLLLLLLLt ty="0" rx="0"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/1194.svg b/test/ns-afl-svg/1194.svg
new file mode 100644
index 0000000..8454814
--- /dev/null
+++ b/test/ns-afl-svg/1194.svg
@@ -0,0 +1,29 @@
+<?l?><!DOCTYPE g PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0u00' stroke='000'/>0<g transform='translate(0,0)'>0<circle cx='0' cy='0' r='1' fill='y0l00w'/>0<circle cx='0' cy='0' r='S' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M000 0A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='n0n0' stroke='b0w0'/>">]><svg width="px" height="30px" n="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" fill="none" stroke="blue"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g transform="translate(0,0)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport2;</g>
+0<g d="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&o;
+0<svg tdo="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" foÅ0="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1195.svg b/test/ns-afl-svg/1195.svg
new file mode 100644
index 0000000..6d852ab
--- /dev/null
+++ b/test/ns-afl-svg/1195.svg
@@ -0,0 +1,6 @@
+<svg viewBox='0 0 1 1' xmlns='00000000000000000000000000'>
+0<linearGradient y1='0' x1='0' id='tgrad' gradientUnits='00000000000000'>
+0<stop stop-color='#000' offset='0'/>
+0<stop stop-color='#000' offset='0'/>
+0</linearGradient>0<path st-lin='0' stroke='url(#tgrad)' d='M0,0c0,0-0,0-0-0M0,0h0' fill='n0n00sta000lo0000000' stroke-width='6'/>0
+0<path st-lin='0' stroke='url(#tgrad)' d='M0,0c0,0-0,0-0-0M0,0h0' fill='n0n00sta000lo0000000' stroke-width='6'/>0</svg>
diff --git a/test/ns-afl-svg/1196.svg b/test/ns-afl-svg/1196.svg
new file mode 100644
index 0000000..0d08808
--- /dev/null
+++ b/test/ns-afl-svg/1196.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="d0t00ove"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1197.svg b/test/ns-afl-svg/1197.svg
new file mode 100644
index 0000000..390ff4e
--- /dev/null
+++ b/test/ns-afl-svg/1197.svg
@@ -0,0 +1,5 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 0 0">
+0&lt;0
+0<path d="M0,000,00" stroke="#000" fill="d&lt;o00ura000or"/>0
+0<path d="000" fill="#000"/>0
+0<text x="0" y="0" t-se="0" fill="0" tt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1198.svg b/test/ns-afl-svg/1198.svg
new file mode 100644
index 0000000..e5fce93
--- /dev/null
+++ b/test/ns-afl-svg/1198.svg
@@ -0,0 +1,29 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u00lla00;stroke-width:001cm" transform=",00"/>
+0<circle cx="c" cy="0" r="1" style="fill:green;stroke:000000"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u00lla00;stroke-width:001cm" transform=",00"/>
+0<circle cx="c" cy="0" r="1" style="fill:green;stroke:000000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u00lla00;stroke-width:001cm" transform=",00"/>0<circle cx="cm" cy="0" r="1" style="fill:b0u00lla00;stroke-width:001cm" transform=",00"/>
+0
+0</g>0
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u00lla00;stroke-width:001cm" transform=",0000"/>
+0<circle cx="c" cy="cm" r="1" style="fill:green;stroke:000000"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u00lla00;stroke-width:001cm" transform=",0000"/>
+0<circle cx="c" cy="cm" r="1" style="fill:green;stroke:000000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u00lla00;stroke-width:001cm" transform=",0000"/>0<circle cx="cm" cy="cm" r="1" style="fill:b0u00lla00;stroke-width:001cm" transform=",0000"/>
+0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1199.svg b/test/ns-afl-svg/1199.svg
new file mode 100644
index 0000000..8f888c6
--- /dev/null
+++ b/test/ns-afl-svg/1199.svg
@@ -0,0 +1,69 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0-0,00,0,000,00c0,0-0,00-00,0ZZZZZZZZZ00,00000,000,0,0000,00,000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-22c0-0,0-12,10-10l24,0c0,0,00-0,14-10l0-10l9,0c0,0,00000000000000000000000000000000000,000,000M000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000,000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000000"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000,0000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,10-00,020,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="z" id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1200.svg b/test/ns-afl-svg/1200.svg
new file mode 100644
index 0000000..bd5a772
--- /dev/null
+++ b/test/ns-afl-svg/1200.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE s00 PUBLIC "0" "0">
+<svg r="0" style="fill:p0o00rsv0">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:black;stroke-width:001cm" transform="0,000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:p0u0;stroke:b0a00m" transform="00000"/>
+0<circle cU="0" cy="cm" r="1" style="fill:g0e0 stroke:black;" transform="0,00000000,0000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e0 stroke:black;" transform="0000000000000,0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1201.svg b/test/ns-afl-svg/1201.svg
new file mode 100644
index 0000000..c76cdf1
--- /dev/null
+++ b/test/ns-afl-svg/1201.svg
@@ -0,0 +1,59 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" gra_ieorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" ot="0"/>
+0<xp st="0" et="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0-0,00,0,0,00c0,0-0,00-00,0000000000000000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c0,00-200-00-6-00000000010000.00000000000000000000000000000000000000000000.0000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000000000000000000000000000000000000000000)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<ctrCle r="0" cx="0" cy="0" fl="0"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0000000000000000000000000000000000000000000000000M00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,000000000?0000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1202.svg b/test/ns-afl-svg/1202.svg
new file mode 100644
index 0000000..bf0954e
--- /dev/null
+++ b/test/ns-afl-svg/1202.svg
@@ -0,0 +1,50 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="q0`00"/>0
+0<ccle r="0" cx="0" cy="0" ot="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0-7,00,0,23,,00c0,0-0,00-10,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ,000000,00000,000,0000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="0000000000000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-00000-00-00-000 000-0 0000000000000000000000000000000000000000000i0000000,0000000,000000000000000000000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00000"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000 00-00 000-00 0000-00 000-000 000-00-0000 0" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,0000 00000 000000,0000000000C000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000 00-00-00 00-00 000-0000000 000000,000000000 000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1203.svg b/test/ns-afl-svg/1203.svg
new file mode 100644
index 0000000..c01b42b
--- /dev/null
+++ b/test/ns-afl-svg/1203.svg
@@ -0,0 +1,16 @@
+<?l?>
+<!--0-->
+<sv xmlns:c="0" xmlns="000000000000000000" xmlns:k="0" xmlns:sodipodi="00" xmlns:inkscape="000"
+th="0"
+ht="0" id="0" sodipodi:it_À000000="0">
+0<defs>
+0<fr inkscape:cot="0" id="0">
+0<feGaussianBlur inkscapeon="0" inkscape:von="0" sodipodi:docname="0" inkscape:outOut_À00000000="0">
+0<defs>
+0<fr inkscape:collect="0" id="0">
+0<faussianBlu inkscape:output_À00000000="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1204.svg b/test/ns-afl-svg/1204.svg
new file mode 100644
index 0000000..43cfa9a
--- /dev/null
+++ b/test/ns-afl-svg/1204.svg
@@ -0,0 +1,15 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0
+0<circle cw="0" cy="cm" r="1" style="fill:blue;stroke:t0a00;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00ncl000ke000000" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00ncl000ke000000;stroke-width:001cm" transform="translate(0,0)"/>
+0<g style="0">0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:black;stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cw="0" cy="cm" r="1" style="fill:blue;stroke:t0a00;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00ncl000ke000000" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke-width:1cm" transform="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1205.svg b/test/ns-afl-svg/1205.svg
new file mode 100644
index 0000000..1870cc4
--- /dev/null
+++ b/test/ns-afl-svg/1205.svg
@@ -0,0 +1,96 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0c00idh000d'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00w'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fht='0' fill='0000000000000'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" on="0" xmlns="00000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" hT="0"
+ll="0" se="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g t="0"
+ranm="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g sform="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g sform="0">&Viewport0;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&Viewport0;</g>
+0<g id="0" transform="translate(0 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" ight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&t0;
+0<svg esctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&Viewport0;
+0<svg pio="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pro="0" vieht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g m="0"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg Aso="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" t="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg psp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="'">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width=" "
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg t="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg ectRaTio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1206.svg b/test/ns-afl-svg/1206.svg
new file mode 100644
index 0000000..e3f7687
--- /dev/null
+++ b/test/ns-afl-svg/1206.svg
@@ -0,0 +1,14 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="u0s00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,000d0000,0000000000000000000000000000000,00000000000,0000,0000,000000000000,000000000000000000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1207.svg b/test/ns-afl-svg/1207.svg
new file mode 100644
index 0000000..e5fb9c6
--- /dev/null
+++ b/test/ns-afl-svg/1207.svg
@@ -0,0 +1,40 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[ <!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c00ext000co000'/>0<g transform='0'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M00 0A00000000000000' stroke='black' stroke-width='0'/>0</g>0">
+<!ENTITY t "">
+<!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" n="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" fill="none" s="0"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g m="0">&w;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport0;</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4"
+h="0" t="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg e_tRatio="0" viewBox="0 0 0 0" width="0" height="0">0</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg preRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1208.svg b/test/ns-afl-svg/1208.svg
new file mode 100644
index 0000000..bf3eaef
--- /dev/null
+++ b/test/ns-afl-svg/1208.svg
@@ -0,0 +1,118 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c00ore0'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='y0l00w'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<circle cx='0' cy='0' r='5' fht='0' fill='0000000000000'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" ion="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" T="0" ill="0" e="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g t="0"
+rarm="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g sform="0">&Viewport0;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&Viewport0;</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg presctRatio="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg preservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport0;
+0<svg prbectRatio="0" viewBox="0 0 0 0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewGox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg preseAspectRaTio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1209.svg b/test/ns-afl-svg/1209.svg
new file mode 100644
index 0000000..6eafab3
--- /dev/null
+++ b/test/ns-afl-svg/1209.svg
@@ -0,0 +1 @@
+<svg viewBox='0,0,0,0' xmlns='0t'>0<patg d='0' ll='0' stroke='0'/><svg viewBox='0,0,0,0' xmlns='0t'>0<patg d='0' fill='0' stroke='0'/>0</svg>0</svg>
diff --git a/test/ns-afl-svg/1210.svg b/test/ns-afl-svg/1210.svg
new file mode 100644
index 0000000..c598567
--- /dev/null
+++ b/test/ns-afl-svg/1210.svg
@@ -0,0 +1,17 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 4">
+0<path d="M0,0h0"/>
+0<path d="M0-00l000,0000000000000000h000v000h00v00l00,0l0,0h00l00-0h00v000l000,0l000-00" fill="#000000"/>
+0<path d="0000000000000" fill="#000000"/>
+0<path d="M00,00000000000000000000000000000000000000000000000000000000l00-0h00v000l000,0l000-00" fill="#000000"/>
+0<path d="M00-0h00v000000000000000000l00,0l0,0h00l000000000000000000-00-00" fill="#000000"/>
+0<path d="0000000000000" fill="#000000"/>
+0<path d="M00,0h000v00h0v00h000v000l000,0l000-0l000-0v00h000v000h00v00l00,0l0,0h00l00-0h0000000000000000000" fill="#000000"/>
+0<path d="M00000000000000000,00h00v0l00-0h000v00h0v00h0000v000h0z" fill="#000000"/>
+0<path d="M00,0h000v00h0v00h000v000l000,0l000-0l000-0v00h000v000h00v00l00,0l0,0h00l00-0h00v000l000,0l000-00" fill="#000000"/>
+0<path d="0000000000000" fill="#000000"/>
+0<path d="M00,0h000v00h0v00h000v000l000,0l000-0l000-0v00h000v000h00v00l00,0l0,0h00l00-0h00v000l0000l000000" fill="#000000"/>
+0<path d="M00-0h00v0l00-00l0,00h00v0l00-0h00-0h00v0l00-00l0,00h000l0,00h00v0l00-0h000v00h0v00h0000v000h0z" fill="#000000"/>
+0<path d="M00,0h000v00h0v00h000v000l000,0l000-0l000-0v00h000v000000000000000000000l00-0h00v000l000,0l000-00" fill="#000000"/>
+0<path d="0000000000000" fill="#000000"/>
+0<path d="M00,0h000v00h0v00h000v000l000,0l000-0l000-0v00h000v000h00v00l00,0l0,0h00l00-0h00v000l0000l000000" fill="#000000"/>
+0<path d="M00-0h00v0l00-00l0,00h00v0l00-0h00-0h00v0l00-00l0,00h00v0l00-00000000000000000l00-0l00,00l00,0l0,0h000l00-0l00,0l000-00l000,00l0,00h000v00l00-0l00-00l00-0l000-00h00l0,0v0l00-0v0l00-0v000l00-0l00-0z" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1211.svg b/test/ns-afl-svg/1211.svg
new file mode 100644
index 0000000..5ab7026
--- /dev/null
+++ b/test/ns-afl-svg/1211.svg
@@ -0,0 +1,18 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 6">
+0<circle r="3" cx="0" cy="0"/>
+0<circle r="3" cx="0" cy="0"/>
+0<path d="M0,0s0-0,0,0s0,0,0,0l0,0s0-0-0-0l0,0s0,0,0,0l00,0l00-0l00,0l00-0z"/>
+0<path d="M0,0s0,0,0,0l0,0s00-0,0-00l0,0s00-0,0-0l0,0s0,0,0-0l00-0s000,0-0,00l0,0s0,0-0,0z"/>
+0<path d="M0,0s00-00,0-00l0-0s0,0,0,0l0-0l0,0s0,0,0,00l00,0l00-0s00,0-0,0l00,00z"/>
+0<g stroke="i0t0" stroke-width="3" fill="none" t-c="0">
+0<circle r="6" cx="0" cy="0"/>
+0<circle r="6" cx="0" cy="0"/>
+0<path d="M00,00S00,00,0,00m0,0S00,00,00,00"/>
+0<path d="M00,00l0,0M00,00l00,0"/>0
+0<path d="M00,00c0-00-00-0-00-0s0,0-0,0c00-0-0-0-0-0"/>
+0<path d="M00,00c000,0-00,0-00,0c0,0,0,0-00,0c00-0-0-0-0,0"/>
+0<path d="M00,00c00,0-0,0-0,00c0,0,0,0-00,0"/>
+0<path d="M0,00c0-0,00-0,00,0c0,0,00,0,00,0s0-0,0,0"/>
+0<path d="M0,00c0,0,00,0,00,00c0,0,0,0,00,0s0-0,0,0"/>
+0<path d="M00,00s0,0,0,0s00,00,00,00"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1212.svg b/test/ns-afl-svg/1212.svg
new file mode 100644
index 0000000..5775435
--- /dev/null
+++ b/test/ns-afl-svg/1212.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="R" r="1" style="fill:red;stroke:black;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="c" cy="cm" r="1" style="fill:g0f00;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1213.svg b/test/ns-afl-svg/1213.svg
new file mode 100644
index 0000000..7a873df
--- /dev/null
+++ b/test/ns-afl-svg/1213.svg
@@ -0,0 +1,250 @@
+<svg xmlns="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_eorm="0">
+0<stop stop-color="#00
+"/>
+0
+0<stop stop-color="url000000000" fill="0"/>
+0<path d="0" o="0"/>
+0
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>0
+0
+0<stop stop-color="#000" offset=".4"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" t="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="url000000000" fill="0"/>
+0<path d="0" o="0"/>
+0
+0<stop r="0" o="0"/>
+0<stop stolor="0" o="0"/>
+0
+0<stop r="0" f="0"/>
+0
+0
+0<stop r="0" offset="0"/>
+0
+0<stop r="0" offset="0"/>
+0<stop o="0" t="0"/>
+0
+0
+0<stop r="0" offset="0"/>
+0
+0<stop s="0" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="0"/>0
+0<circle r="0" x="0"/><stop t="0" e="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="r"/>
+0<path d="000000000000000000000000000" fill="url0000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#000000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="#000000"/>
+0<path d="0000,00000,00,0,0000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<pLth d="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c090-0,00-20,100-00l0-00c0-0,0-00,00-00l20,0c0,0,00-0,00-100000000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000000000,000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-60.870,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx=")"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fSll="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000, ,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" aill="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1214.svg b/test/ns-afl-svg/1214.svg
new file mode 100644
index 0000000..2c5d7af
--- /dev/null
+++ b/test/ns-afl-svg/1214.svg
@@ -0,0 +1 @@
+<svg wé000="0"><g><g>0<svg wé000="0"><g><g><pÃ00 d=""/></g></g></svg></g></g></svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/1215.svg b/test/ns-afl-svg/1215.svg
new file mode 100644
index 0000000..d179349
--- /dev/null
+++ b/test/ns-afl-svg/1215.svg
@@ -0,0 +1,37 @@
+<svg xmlns="g" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="s0o00wol000"/>0
+0<stop stop-color="p0q0" offset="0"/>
+0
+0<stop stop-color="#000" fset="0"/>
+0<stop stop-color="000000" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="000000000000000000,000000000000000000000000000000000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,000000000000000000000000000000 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-000000000000000000000000000000000000000000000000000000000000000000 000000,000000000000000000,000000000000000000,0000000000000000,0000000000000000000000000000000000000,0000000000000000,00000000000000000=00,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,0000 000000,000000000000000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000000,000000000000000-00l000000000000000" x="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#00000000000000000000000000000000000000000000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="8" fill="url(#00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,00000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000l000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000000000000000000000000000000000000000-00-000 000000000000000000000000000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,00000000000000000000000000-00 0000-00 000-000 000-00-00-0000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,00000000 000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000 00000000,00000000 000000,00000000 0" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1216.svg b/test/ns-afl-svg/1216.svg
new file mode 100644
index 0000000..c38391f
--- /dev/null
+++ b/test/ns-afl-svg/1216.svg
@@ -0,0 +1,6 @@
+<svg w="0">
+0<path d="M00,0,00" fill="q0n&lt;0"/>0
+0<path d="M0,0h0l0,0v0l0,0h0v" fill="#000"/>0<![CDATA[0]]>0
+0<path d="M00,0,00" fill="q0n&lt;0"/>0
+0<path d="M0,0h0l0,0v0l0,0h0v" fill="#000"/>0<![CDATA[0]]>0
+</svg>
diff --git a/test/ns-afl-svg/1217.svg b/test/ns-afl-svg/1217.svg
new file mode 100644
index 0000000..6dff316
--- /dev/null
+++ b/test/ns-afl-svg/1217.svg
@@ -0,0 +1,56 @@
+<?l?>
+<!DOCTYPE v0 PUBLIC "0" "0">
+<svg xmlns="0000000000000000000" xmlns:k="0" xmlns:sodipodi="00" xmlns:inkscape="0" width="0" height="5" iC="0" sodipodi:ion="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rec id="0" x="0" y="0" th="0"
+t="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(000,200)" id="0">
+0<rect style="fill:red;"
+p-d="0" width="0" height="0" x="0" y="0"/>0<rect style="stroke:a0b00cy;fill:none" id="0" width="0" height="0" x="0" y="0"/>
+0
+0<rect style="fill:red;" p-d="0" width="0" height="0" x="0" y="0"/>0<rect style="stroke:a0b00cy;fill:none" id="0" width="0" height="0" x="0" y="0"/>
+0
+0
+0<rect style="stroke:a0b00cy;fill:none"
+d="0" width="0" height="0" x="0" y="0"/>0
+0<svg x=" "/>
+0<rect style="stroke:a0b00cy;fill:none"
+d="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" hx="0">
+0
+0
+0
+0
+0</svg>0
+0
+0<rect style="stroke:a0b00cy;fill:none"
+d="0" width="0" height="0" x="0" y="0"/>0
+0<svg x=" "/>0<rect style="stroke:a0b00cy;fill:none"
+d="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" p-h="0"
+d="0" width="0" height="0" x="0" y="0" transform="scale(00,05)"/>
+0
+0
+0
+0
+0
+0</svg>0
+0
+0<rect style="stroke:a0b00cy;fill:none"
+d="0" width="0" height="0" x="0" y="0"/>0
+0<svg x=" "/>0<rect style="stroke:a0b00cy;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" p-h="0" id="0" width="0" height="0" x="0" y="0" transform="scale(00,05)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1218.svg b/test/ns-afl-svg/1218.svg
new file mode 100644
index 0000000..03c71db
--- /dev/null
+++ b/test/ns-afl-svg/1218.svg
@@ -0,0 +1,9 @@
+<svg xmlns="00000000000000000000" viewBox="0 0 1 1" stroke="#000">
+0<path d="M0,00s00,0,0,0l00,0s0,0,0-0l0-00s00-0-0,0z" stroke-width="2" fill="#000" fill-rulg="0"/>
+0<path d="M00,000L00,0d" stroke-width="2" str="0" fill="#000" sill-rwle="0"/>
+0<path d="00000000000" stroke="e0d"/>
+0<circle r="6" cx="0" cy="L"/>0
+0<path d="M0,00s00,0,0,0l00,0s0,0,0-0l000-00s00-0-0,0z" stroke-width="2" fill="#000" fill-rulg="0"/>
+0<path d="M00,000L00,0d" stroke-width="2" str="0" fill="#000" sill-rwle="0"/>
+0<path d="00000000000" stroke="e0d"/>
+0<circle r="6" cx="0" cy="L"/>0</svg>
diff --git a/test/ns-afl-svg/1219.svg b/test/ns-afl-svg/1219.svg
new file mode 100644
index 0000000..a40b2fe
--- /dev/null
+++ b/test/ns-afl-svg/1219.svg
@@ -0,0 +1,210 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gra_ieorm="0">
+0<stop stop-color="s0o00yol000"/>0
+0<stop stop-color="p0a00sty00" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c00000000 00-00 000-00 0000-00 000-000 00000 000000,00000000000000000=0000000000000000000000000000000000000000000000" id="0000" style="fill: url(#000000" fill="url(#000000"/>
+0<path d="M00,0-00-0@00000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" y="0" fill="#000"/>
+0<circle r="0" cx="0" y="0" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000 00-00 000-00 0000-00 000-000 00000 000000,00000000000000000=0000000000000000000000000000000000000000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,0-00-00000000000000000000000000000000000000000000000000000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,000,0,0000,000000000000,000,0,00000000000l000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="M00,00c00000,000,00000000000000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,000,0,0000,0000000000000000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="u0e0"/>
+0<path d="M00,00c0,000000-00-000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx=")"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c00000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" l="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="0" cx="v" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,0000000000000000000000000)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000"/>
+0<path d="000,0000000" fill="url(#000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1220.svg b/test/ns-afl-svg/1220.svg
new file mode 100644
index 0000000..3b4e9a0
--- /dev/null
+++ b/test/ns-afl-svg/1220.svg
@@ -0,0 +1,66 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_ieorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a00fas000"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0-0,00,0,00,,00c0,0-0,00-00,00ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ00000000000000000000000000000000000000" id="0000" style="fill: url(#r0000" fill="url(#000e)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000,000000000000000000000000000000000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000.)"/>
+0<path d="000,000000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00o0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" x="0" c="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="k" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" x="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000,00000000000000000000000000000000000000000000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l000-00,00l000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000000000000000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00000,00000000000000c000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="0" fill="url(#000e)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+ 0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1221.svg b/test/ns-afl-svg/1221.svg
new file mode 100644
index 0000000..dc3c525
--- /dev/null
+++ b/test/ns-afl-svg/1221.svg
@@ -0,0 +1,108 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a00ffs000"/>0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,000,00c0,0-0,00-00,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" c="0" y="0" l="0"/>
+0<circle r="4" cx="0" y="0" fill="#00:"/>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="0000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c00000000-00-0-00000000000 000000,0000000000000000000000000000000000000,0000000000000000000" cx="0" cy="0" fill="url(000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00v0-00l0,00000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="0000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1222.svg b/test/ns-afl-svg/1222.svg
new file mode 100644
index 0000000..3090644
--- /dev/null
+++ b/test/ns-afl-svg/1222.svg
@@ -0,0 +1,6 @@
+<svg xmlns="0000000" fill="urs00ue" xmlns:x="0">
+0<g ll="0" fill="urs00ue" xmlns="0">
+0<g ll="0" r="0"/>
+0
+0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1223.svg b/test/ns-afl-svg/1223.svg
new file mode 100644
index 0000000..a440c74
--- /dev/null
+++ b/test/ns-afl-svg/1223.svg
@@ -0,0 +1,107 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="000" t="0"/>
+0<stop stop-color="000"/>
+0<stop t="0"/>
+0
+0<stop stop-color="#000" offset=".4"/>
+0
+0
+0<stop stop-color="000" t="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" t="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0" ra_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="000000" offset="0"/>
+0
+0
+0<stop stop-color="url(#0000)" l="0"/>
+0<ph d="0" f="0"/>
+0
+0<stop r="0" f="0"/>
+0<stop r="0" f="0"/>
+0
+0<stop t="0" f="0"/>
+0
+0
+0<stop r="0" t="0"/>
+0
+0<stop r="0" offset="0"/>
+0<stop r="0" t="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient></defs>0
+0<path d="0"/>0
+0<circle r="0" x="0"/><stop t="0" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00,00,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000 00-00-00 00-00 000-00 0000-000000 000000,00000000 0" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000,00000000,000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,0000 000000,000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,00000000000000000000000000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000,0000000,0000000000000000000000000i0000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00000000000000000000000,000000000000000000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,000000000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-04-6-001000000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1224.svg b/test/ns-afl-svg/1224.svg
new file mode 100644
index 0000000..268558d
--- /dev/null
+++ b/test/ns-afl-svg/1224.svg
@@ -0,0 +1,16 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,00v00l0,00-0" ke="0" fill="b0n0"/>0
+0<path d="M00,0h00l00,00v00l" fill="b0n0"/>0
+0<text x=")"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: 000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0,00,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0000000000000000000000000000000000000000000000000000000000000000000000000,0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0,00,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0,00,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0,00,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1225.svg b/test/ns-afl-svg/1225.svg
new file mode 100644
index 0000000..868cb10
--- /dev/null
+++ b/test/ns-afl-svg/1225.svg
@@ -0,0 +1,22 @@
+<svg xmlns="000000000000000000" Box="0">
+0<![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћ>
+0
+0<![CDATA[0]]><Ћdefs>
+0<li id="0" gen="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћ>
+0
+0<![CDATA[0]]><Ћdefs>
+0<li id="0" genrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0<![CDATA[0]]>0
+0<defs>
+0<lt id="0" sform="0"><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1226.svg b/test/ns-afl-svg/1226.svg
new file mode 100644
index 0000000..85ac8a9
--- /dev/null
+++ b/test/ns-afl-svg/1226.svg
@@ -0,0 +1,2 @@
+<svg ootËå00000000å00="0"
+h=""> \ No newline at end of file
diff --git a/test/ns-afl-svg/1227.svg b/test/ns-afl-svg/1227.svg
new file mode 100644
index 0000000..3026d4a
--- /dev/null
+++ b/test/ns-afl-svg/1227.svg
@@ -0,0 +1,53 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='i' fill='l0_00anc000ey'/>0<g transftrm='0'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='b0i00'/>0<path d='M00 0A00 0 0 0 0 00 00' stroke='black' otroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" n="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0
+0
+0<g e="0">
+0<text x="0" y="0">0</text>0<g transform="0">&Smile;</g>0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport0;</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg o="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg o="0" viewBox="0 0 3 4"
+id="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&o;
+0<svg o="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg p="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg o="0" ew="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg prt="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&i;
+0<svg preseAio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1228.svg b/test/ns-afl-svg/1228.svg
new file mode 100644
index 0000000..97aedcb
--- /dev/null
+++ b/test/ns-afl-svg/1228.svg
@@ -0,0 +1,24 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h000000000000000000l000-00z" stroke="#000" fill="n0`0"/>0
+0<path d="l00,00v00l00000000" stroke="#000" fill="n0`0"/>0
+0<path d="M00,0h0000000000l000000000l000000000000000000000" stroke="#000" fill="n0`0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-000h00l00,00v00l000,00h000l000-00v000z" t="0" fill="n0`0"/>0
+0
+0<path d="M00000000000000000000,00l000-000D000" stroke="#000" fill="n0`0"/>0
+0<path d="M00,0h00l00,00v00l000,00h0l0000" stroke="#000" fill="n0`0"/>0
+0<path d="M00,0h000000000000000000000l0000000000000000000000000000000v0000" e="0" fill="n0`0"/>0
+0<path d="M00,0h00l00,00v00l000000000000000000-00z" stroke="#000" fill="n0`0"/>0
+0<path d="l00,00v00l000,0000z" stroke="#000" fill="n0`0"/>0
+0<path d="M00,0h00l00,00v00l0000000000000000000000000000000000000000000v0000" stroke="#000" fill="n0`0"/>0
+0<path d="M00,0h00000000000000000000000000000000000000000l0000000000000000v0000" tt="0" fill="n0`0"/>0
+0
+0<path d="M00,0h00l00,00v00l00000000000000000" stroke="#000" fill="n0`0"/>0
+0<path d="M00,0h00l00,00v00l000,00h0l0000" stroke="#000" fill="n0`0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l0000000000000l000000000000000000000" st="0" fill="n0`0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-000h00l00,00v00l000,00h000l000-00v000z" ttroke="0" fill="n0`0"/>0
+0<path d="M00,0h00l00,00v00l000,00l000-00v000z" fill="#00I"/>0
+0<path d="l00,00v00l0000000000000000000000000000000v0000" ttroke="0" fill="n0`0"/>0
+0<path d="M00,0h00l00,00v00l000,00l000-00v000z" fill="#000"/>0
+0<path d="l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0<text x="0" y="0" t-e="0" ll="0"/>0
+0<text x="0" y="0" t-ze="0" ll="0" ext-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1229.svg b/test/ns-afl-svg/1229.svg
new file mode 100644
index 0000000..f2ff5d5
--- /dev/null
+++ b/test/ns-afl-svg/1229.svg
@@ -0,0 +1,13 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="0000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="c" cy="cm" r="1" style="fill:r0d0 stroke:" wransform="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:o0f00tlu000e" wransform="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:o0f00tlu000e stroke-width:0K000" transform="translate(0,00"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black;" transform="0,0000"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1230.svg b/test/ns-afl-svg/1230.svg
new file mode 100644
index 0000000..9a14164
--- /dev/null
+++ b/test/ns-afl-svg/1230.svg
@@ -0,0 +1,48 @@
+<svg vie='0' xmlx="0">
+0<path d="0" t="0" fill="p0r0"/>0
+0<path d="0" e="0" fill="p0r0"/>0
+0<path d="00000,00" e="0" fill="p0n0"/>0<svg xmlns="0" stroke="#000" fill="p0n0"/>0<svg xmlns="0" viewBox="0 0 0 0">
+0<path d="0" stroke="#000" fill="p0r0"/>0
+0
+0
+0<text x="0" y="0" foize="0" fill="0" tex="0"><![CDATA[0]]></text>0</svg>
+0
+0<path d="0" stroke="#000" fill="p0r0"/>0
+0<path d="00000,00" stroke="#000" fill="p0r0"/>0
+0<path d="000,0000" e="0" fill="p0n0"/>0<svg e="0" fill="p0n0"/>0<svg xmlns="0000000000" viewBox="0 0 0 0">
+0<path d="0" stroke="00000000" Stroke="0" fill="p0n0"/>0<svg m="0" fill="p0n0"/>0<svg xmlnsewBox="0">
+0<path d="0" stroke="p0n0"/>0<svg xmlns="0" stroke="#000" fill="p0n0"/>0<svg xmwBox="0">
+0<path d="0" stroke="#000" fill="p0r0"/>0
+0
+0
+0<text x="0" y="0" foize="0" fill="0" tex="0"><![CDATA[0]]></text>0</svg>
+0
+0<path d="0" stroke="#000" fill="p0r0"/>0
+0<path d="00000,00" stroke="#000" fill="p0r0"/>0
+0<path d="0" e="0" fill="p0n0"/>0<svg e="0" fill="p0n0"/>0<svg xmlns="000000000000000000" viewBox="0 0 0 0">
+0<path d="0" stroke="00000000" Stroke="0" fill="p0n0"/>0<svg xmlns="0" stroke="#000" fill="p0n0"/>0<svg xmlns="t" viewBox="0 0 0 0">
+0<path d="0" stroke="#000" fill="p0r0"/>0
+0
+0
+0<text x="0" y="0" f="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
+0
+0<path d="0" stroke="#000" fill="p0r0"/>0
+0<path d="00000,00" stroke="#000" fill="p0r0"/>0
+0<path d="00000,00" ke="0" fill="p0n0"/>0<svg xmlns="0" stroke="#000" fill="p0n0"/>0<svg xmlns="0" fill="p0r0"/>0
+0<path d="0" stroke="#000" fill="p0r0"/>0
+0
+0<text x="0" y="0" foize="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
+0
+0<text x="0" y="0" e="0" fill="0" text-ar="0"><![CDATA[0
+0
+0
+0]]></text>0</svg>
+0
+0<path d="0" stroke="#000" fill="p0r0"/>0
+0<path d="00000,00" stroke="#000" fill="p0r0"/>0
+0<path d="000,0000" ke="0" fill="p0n0"/>0<svg xmlnstroke="0" fill="p0n0"/>0<svg xmlns="0" fill="p0r0"/>0
+0<path d="0" stroke="#000" fill="p0r0"/>0
+0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
+0
+0<text x="0" y="0" e="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1231.svg b/test/ns-afl-svg/1231.svg
new file mode 100644
index 0000000..7b88111
--- /dev/null
+++ b/test/ns-afl-svg/1231.svg
@@ -0,0 +1,7 @@
+<svg xmlns="000000000000000000" viewBox="0 0 0 0">
+0<path d="0" stroke="#000" fill="p0n0"/>0
+0<path d="00000,0000" stroke="#000" fill="p0n0"/>0
+0<path d="000,0000000" fill="p0n0"/>0
+0<path d="00000,0000" stroke="#000" fill="p0n0"/>0
+0<path d="000,00000" fill="#000"/>0
+0<text x="0" y="0" t-se="0" ll="0" t-r="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1232.svg b/test/ns-afl-svg/1232.svg
new file mode 100644
index 0000000..9a90fbb
--- /dev/null
+++ b/test/ns-afl-svg/1232.svg
@@ -0,0 +1,42 @@
+<svg xmlns="000000000000000000" viewBox="0">0
+0<path d="M00,0000l00,000000000000?" e="0" fill="h0n00cse000ye"/>0
+0<path d="M00,00000l000,00?" e="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0000l00,00000l00" fill="h0n00cse000ye"/>0
+0<path d="M00,0000l00,000000000000?" e="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0000l00,0000000000000l"/>0
+0<path d="M00,0h00l000000000000" e="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00?" e="0" fill="h0n00cse000ye"/>0
+0
+0<path d="M00,0h00l00,0l000,00h000?" e="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l0000000000000000" Ve="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l0000000000000000" Ve="0" fill="h0n00cse000ye"/>0
+0<path d="M00,00000l000,00?" Ve="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00000000000" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l0000000000000000" Ve="0" fill="h0n00cse000ye"/>0
+0
+0<path d="M00,0h00l00,00v00l0000000" Ve="0" fill="h0n00cse000ye"/>0
+0<path d="M00,00v00l000,00?" Ve="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l00" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l000,00?" Ve="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v0000000000l"/>0
+0<path d="M00,0h00l00,0l000,00?" Ve="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00?" Ve="0" fill="h0n00cse000ye"/>0
+0
+0<path d="M00,0h00l00,0l000,00h000?" Ve="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l000,00?" Ve="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l000,00?" Ve="0" fill="h0n00cse000ye"/>0
+0<path d="M00,00v00l000,00?" Ve="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l00" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l000,00?" Ve="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v0000000000l"/>0
+0<path d="M00,0h00l00,0l000,00?" Ve="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l000,00?" Ve="0" fill="h0n00cse000ye"/>0
+0
+0<path d="M00,0h00l00,0l000,00h000?" Ve="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l000,00?" Ve="0" fill="h0n00cse000ye"/>0<path d="M00,0h00l00,00v0000000000l"/>0
+0<path d="M00,0h00l00,0l000,00?" Ve="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l000,00?" Ve="0" fill="h0n00cse000ye"/>0
+0
+0<path d="M00,0h00l00,0l000,00h000?" Ve="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l000,00?" Ve="0" fill="h0n00cse000ye"/>0
+</svg>
diff --git a/test/ns-afl-svg/1233.svg b/test/ns-afl-svg/1233.svg
new file mode 100644
index 0000000..b7733d3
--- /dev/null
+++ b/test/ns-afl-svg/1233.svg
@@ -0,0 +1,48 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[ <!ENTITY Smile "0<rect x='0' y='0' width='0' he='0' fill='black' stroke='red'/>0<g transform='translate(0,0)'>0<circle cx='0' cy='0' r='1' fill='y0l00wel000'/>0<c r='0' fill='0'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='0' stroke='0' stroke-width='0'/>0</g>0">
+<!ENTITY t "">
+<!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" ion="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" fill="none" stroke="b0u0"/>
+0<g fonte="0">
+0<text x="0" y="0">0</text>0<g m="0">&Smile;</g>0<text x="0" y="0">0</text>0<g t="0">&i;</g>0<text x="^" y="0">0</text>0<g t="0">&Viewport0;0<g d="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0"
+h="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0">
+0<text x="0" y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>0<g transforo="0"><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="@">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg preserRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform=",0"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>0</g>
+0<g id="0" transform=",0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>0<g transform=",0"><text y="0">0</text>&V;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1234.svg b/test/ns-afl-svg/1234.svg
new file mode 100644
index 0000000..627c49b
--- /dev/null
+++ b/test/ns-afl-svg/1234.svg
@@ -0,0 +1,2 @@
+<svg xmlns="0000000000" iQwBox="0">
+0<path d='M00,00t00,0T00,0,0-0M00,00t0 000000-00' fill='#000000' ll-rule='0'/>0</svg>
diff --git a/test/ns-afl-svg/1235.svg b/test/ns-afl-svg/1235.svg
new file mode 100644
index 0000000..9bf5694
--- /dev/null
+++ b/test/ns-afl-svg/1235.svg
@@ -0,0 +1,380 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="u0d00ien" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M000,0000c00000000000000000000000000000000" fill="url(#00)"/>
+0<path d="M00,00c00000,00000000,0-00,000000000000000000000000000,0c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000" fill="url(#0000)"/>
+0<path d="M00,80c000-0,00-00,124,50v0" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>0
+0<path d="M00,00000000000000000000000000c00000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,000,00000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c00000000000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 0000000000000=0000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M70,80c000-0,00-00,124,50v00000000000000000000000000000000000000000000000000000000000000000000000000000000h" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000,000000000 0000 000000,00000000 0" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,000000000?000000000000000000000000000000000000000000000000000000000" fill="url(#pyYellow"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M70,80c000-0,00-00,124,50v0" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M70,80c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r=" " cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c0000000000000000000000000000000000000000000000000000000000000000000000,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M70,87c0,70-230-00-0-24108.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00v0-00l0,0c0,0,0000,000000"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>
+0
+0
+0<path d="M00,00c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r=" " cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M70,80c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,00"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#5" fill="url(#000000)"/>
+0<path d="M70,80c000-0,10-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,100-10l0-00c0-0,0-00,10-00l20,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,10-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="0000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M70,87c090-0,00 20,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000ac000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-20,100-10l0-20c0-0,0-00,10-00l20,0c0,0,00-0,10-05l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circqe r="0" cx="0" fill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,80c090-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M70,80c000-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,100-00l0-02c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,80c000-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,80c000-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,100-10l0-20c0-0,0-00,10-00l20,0c0,0,00-0,10-05l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000000"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1236.svg b/test/ns-afl-svg/1236.svg
new file mode 100644
index 0000000..8d8ec28
--- /dev/null
+++ b/test/ns-afl-svg/1236.svg
@@ -0,0 +1,32 @@
+<svg ox='0' xmlns='h00' d='0' fill='s0l00tax000ns00000' strofill='0' stroke='0'>
+0<path d='M0,0c0,0-0,0-0 0-' filwidth="0"/>
+0<path d="M0,0L0,0Z" stroke="#000" fill="#000" stroke-width="3"/>
+0<g transform="scale(0) ">
+0<pawh d="0" fl="0"/>
+0</g>
+0<g transform="translate(00,00) scale(0.250" stroke-width="2">0
+0<g transform="scale(0) translate(00,00)">
+0<pawh d="0" ll="0"/>
+0</g>
+0<g transform="translate(00,00) scale(0.000" stroke-width="2">
+0
+0<path d="M0,0c00,0,00-00,00-00c0,0,00,00,00,00h00c0,0,0,00,00,00l00,0l000-0v00h000v000z" stroke="#000" fill="#000"/>
+0</g>
+0
+0
+0<path d="M0,0c00,0,00-00,00-00c0,0,00,00,00,00h00c0,0,0,00,00,00l00,0l000-0v00h000v000z" stroke="#000" fill="#000"/>
+0</g>
+0<g transform="translate(00,00) scale(0.250" stroke-width="2">
+0<g fill="n0n0">
+0<ellipse stroke="#000" rx="6" ry="4"/>
+0<ellipse stroke="#000" rx="6" ry="4" transform="rotate(006)"/>
+0<ellipse stroke="#000" rx="6" ry="4" transform="rotate(06)"/>
+0<circle stroke="#000" r="4"/>
+0</g>
+0<g fill="#000" stroke="#000">
+0<circle fill="#000000" r="3"/>
+0<circle cy="0" r="9"/>
+0<circle cx="0" cy="0" r="9"/>
+0<circle cx="0" cy="0" r="9"/>
+0</g>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1237.svg b/test/ns-afl-svg/1237.svg
new file mode 100644
index 0000000..6a75a0d
--- /dev/null
+++ b/test/ns-afl-svg/1237.svg
@@ -0,0 +1,7 @@
+<?l?>
+<svg in="0" ns="0" width="D" height="0" style="0" on="0">0
+0
+<ellipse rx="mm" ry=")"
+fill="#000" opa="0"/>0<ellipse rx="3mm" ry="2" transform="rotate(0-0 0"
+fill="#000" opa="0"/>0<ellipse rx="3mm" ry="2" transform="rotate(,0" fill="#000"
+ty="0"/>0</svg>
diff --git a/test/ns-afl-svg/1238.svg b/test/ns-afl-svg/1238.svg
new file mode 100644
index 0000000..8aba237
--- /dev/null
+++ b/test/ns-afl-svg/1238.svg
@@ -0,0 +1,379 @@
+<svg Ãs="0" fill="url(#pyYellow)" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" m="0">
+0<stop op="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset=".4"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" fs="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop sN="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0,0-0,00-01,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00000"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#00000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l-02-000000000000" fill="u0e0"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#00000)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" ll="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-00c000,0-00,00-000000000000000,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-00-600000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#00000"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00000)"/>
+0<path d="000,00000000,0000000000"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,0000000000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-00l0-00l9,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000e)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fl="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fl="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,00000,00,0,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-10l0-00l9,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" ll="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" c="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fx="0" cy="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-02c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,124-00l0-02c0-0,0-00,10-00l24,0c0,0,00-0,14-10l0-10l9,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-02c000,0000,00000000,0c0,0,0000,000000000000,000,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" ll="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1239.svg b/test/ns-afl-svg/1239.svg
new file mode 100644
index 0000000..412ab9b
--- /dev/null
+++ b/test/ns-afl-svg/1239.svg
@@ -0,0 +1,140 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='red'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='y0d00'/>0<circle Nx='0' cy='0' r='b'/>0<circle cx='0' cy='0' r='1' fill='b0i00'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' otroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='mm' width='0' height='d'
+fill='g0s0' stroke='blue'/>">]><svg width="px" hei="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" fill="none" s="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g m="0">&Smile;</g>0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport0;</g>
+0<g d="0" transform="00">0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&i;
+0<svg pro="0" vix="0"
+dth="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+idth="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&Viewport0;
+0<svg pio="0" vox="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>0</g>
+0<g id="0" transforK="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g m="0"><text y="0">0</text>&Viewport0;
+0<svg preservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRat="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pspectRatiotio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport0;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preseAsp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1240.svg b/test/ns-afl-svg/1240.svg
new file mode 100644
index 0000000..bbe2f3a
--- /dev/null
+++ b/test/ns-afl-svg/1240.svg
@@ -0,0 +1,8 @@
+<svg xmlns="00000" viewBox="0">
+0<path d="M00,0h00l00,00v000000000000000000?" stroke="#000" fill="n0n00goe000"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-000000?" stroke="#000000" kM="0" fill="n0n00goe000"/>0
+0<path d="M00,0h0" fill="n0n00goe000"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" ill="0" e-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1241.svg b/test/ns-afl-svg/1241.svg
new file mode 100644
index 0000000..70713ea
--- /dev/null
+++ b/test/ns-afl-svg/1241.svg
@@ -0,0 +1,27 @@
+<svg ns="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="py0ellow" rm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="q0s00p" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000w)"/>0
+0
+
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="00" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c000000000000000000000000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0-0,00-00,000-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" lf="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c00000000000000-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="00" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c097-8,13-200,24,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cp="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="00" style="fill: url(#0;"/>
+0<path d="000000000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1242.svg b/test/ns-afl-svg/1242.svg
new file mode 100644
index 0000000..3561cae
--- /dev/null
+++ b/test/ns-afl-svg/1242.svg
@@ -0,0 +1,15 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" ot="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,0ZZZZZZZZZZZZ,ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ,0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="G" il="0"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1243.svg b/test/ns-afl-svg/1243.svg
new file mode 100644
index 0000000..f1b8597
--- /dev/null
+++ b/test/ns-afl-svg/1243.svg
@@ -0,0 +1,49 @@
+<svg s="0" viewBox="0 0 1 1">
+0
+0<style te="0">
+0
+0</style>
+0<g style="0">
+0
+0<circle cx="cm" cy="0" r="1" style="fill:000000000000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0m00mmm000me000000 stroke-width:0cm" transform="0" m="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:000000000000"/>
+0<circle cx="cm" cy="0" r="1" style="fill:g0m00mmm000me000000;stroke-width:("/>
+0<circle cx="cm" cy="0" r="1" style="fill:g0m00mmm000me000000;stroke-width:k;" transform="0" d="0"/>
+0<circle cx="cm" cy="0" r="1" style="fill:000000000000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0m00mmm000me000000;stroke-width:0cm" transform="translate(00,0)"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:g0m00mmm000me000000;" transform="translate(0,0)"/>
+0
+0<circle cx="cm" cy="0" r="1" style="fill:g0m00mme000ac0;stroke-width:0cm" transform="0" rm="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:000000000000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0m00mmm000me000000;stroke-width:1cm" transform="translate(0,0)"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:g0m00mmm000me000000;" transform="translate(000,0)"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:g0m00mmm000me000000" transform="translate(000,0)"/>
+0</g>0
+0
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:000000000000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0m00mmm000me000000;stroke-width:001cm" transform="0" om="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:000000000000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0m00mmm000me000000;stroke-width:("/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0m00mmm000me000000;stroke-width:a00;" transform="0" rm="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:000000000000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0m00mmm000me000000;stroke-width:001cm" transform="translate(000,0)"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:g0m00mmm000me000000;" transform="00"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:g0m00mme000ac0;stroke-width:001cm" transform="0" rm="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:000000000000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0m00mmm000me000000;stroke-width:001cm" transform="translate(000,000)"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:g0m00mmm000me000000;" transform="translate(000,000)"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:g0m00mmm000me000000;stroke-width:001cm" transform="translate(000,000)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1244.svg b/test/ns-afl-svg/1244.svg
new file mode 100644
index 0000000..ab7ddff
--- /dev/null
+++ b/test/ns-afl-svg/1244.svg
Binary files differ
diff --git a/test/ns-afl-svg/1245.svg b/test/ns-afl-svg/1245.svg
new file mode 100644
index 0000000..4d05ad7
--- /dev/null
+++ b/test/ns-afl-svg/1245.svg
@@ -0,0 +1,3 @@
+<svg xmlns="00000000000000000000000000" style="stroke: rgb(0000000000000000000000000000000000000000000000000000000000000000000000000000" viewBox="0">0<path d="M0000 00000000000$000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,00000,00000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000000000000000,000000000000000,0000000000" id="0" style="stroke: rgb(0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#00000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="#000"/>
+0<circle r="z" id="0" style="stroke: rgb(000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1246.svg b/test/ns-afl-svg/1246.svg
new file mode 100644
index 0000000..25794e3
--- /dev/null
+++ b/test/ns-afl-svg/1246.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="n0i00wid00"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1247.svg b/test/ns-afl-svg/1247.svg
new file mode 100644
index 0000000..937b7a1
--- /dev/null
+++ b/test/ns-afl-svg/1247.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:black;" transform=",0"/><circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:l0a00m" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:l0a00m" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:000000 stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1248.svg b/test/ns-afl-svg/1248.svg
new file mode 100644
index 0000000..382a558
--- /dev/null
+++ b/test/ns-afl-svg/1248.svg
@@ -0,0 +1,52 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0e0'/>0<g transform='translate(0,0)'>0<circle cx='0' cy='0' r='1' fill='y0l00w'/>0<circle cx='0' cy='0' r='S' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='n0n0' stroke='blue'/>">
+]>
+<svg width="px" heightdth="0" height="30px" ion="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" fill="none" stroke="b0u0"/>
+0<g fonte="0">
+0<text x="0" y="0">0</text>0<g transform="translate(0,0)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport2;</g>
+0<g d="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&o;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 0 0" width="0" height="0">&B;</svg></g>
+0</g>
+0<g d="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" xeight="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1249.svg b/test/ns-afl-svg/1249.svg
new file mode 100644
index 0000000..8c7243b
--- /dev/null
+++ b/test/ns-afl-svg/1249.svg
@@ -0,0 +1,73 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0
+<rect x='0' y='0' width='0' height='0' fill='a0a' stroke='v0d'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00w'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<path d='M0 0A00 0 0 0 0 00 00' stroZe='0' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='n0q0' stroke='o0u0'/>">
+]>
+<svg width="px" height="30px" i="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g fontsize="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&Viewport2;</g>
+0<g id="0" transform="translate(0 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" hght="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pro="0" vhewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(00 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" tansform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000000000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preservetio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" vidth="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1250.svg b/test/ns-afl-svg/1250.svg
new file mode 100644
index 0000000..1648241
--- /dev/null
+++ b/test/ns-afl-svg/1250.svg
@@ -0,0 +1,20 @@
+<svg xmlns="00000000000000000000" viewBox="0 0 1 1">
+0<path d="0,000,00" stroke="#000" Oll="0"/>0
+0<path d="00000000" fill="#p00"/>0
+0<text x="'" y="0" g="0" ll="0" e="0" fOll="0"/>0
+0<path d="00000000" fill="#p00"/>0
+0<text x="'" y="0" e="0" fill="0" t-ar="0">0
+0<tspan d="0" stroke="0" fOll="0"/>
+0<tspan d="0" stroke="0" fOll="0"/>0
+0<path d="0" fill="0"/>0<![CDATA[0
+0]]>0</text>
+0
+0<path d="0,000,00" stroke="#000" fOll="0"/>0
+0<path d="00000000" fill="#p00"/>0
+0<text x="'" y="0" g="0" fill="0" stroke="0" fOll="0"/>0
+0<path d="00000000" fill="#p00"/>0
+0<text x="'" y="0" e="0" fill="0" t-ar="0">0
+0<tspan d="0" stroke="0" fOll="0"/>
+0<tspan d="0" stroke="0" fOll="0"/>0
+0<path d="0" fill="0"/>0<![CDATA[0
+0]]>0</text>0</svg>
diff --git a/test/ns-afl-svg/1251.svg b/test/ns-afl-svg/1251.svg
new file mode 100644
index 0000000..eaa02e2
--- /dev/null
+++ b/test/ns-afl-svg/1251.svg
@@ -0,0 +1,5 @@
+<svg viewBox='0 0 6 2' xmlns='00'>
+0<path d='M00,00c00,0-0-0,0-0l00,0-00000000000000000000000000000000000000000' fill='s0l00ask'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,000 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' fill='s0l00ask'/>0
+0<path d='M00,00c00,0-0-0,0-0l0000000-00-00M00000000000000000000,000000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,0000000,000,00000' fill='s0l00ask'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,000-0,0-0,0000z' fill='s0l00ask'/>0</svg>
diff --git a/test/ns-afl-svg/1252.svg b/test/ns-afl-svg/1252.svg
new file mode 100644
index 0000000..9f15e5a
--- /dev/null
+++ b/test/ns-afl-svg/1252.svg
@@ -0,0 +1,17 @@
+<svg xmlns="0000000000" o="0">
+0<t x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vl="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLKKKKKKKKKKKKKKKKipLLLLLLLLLLLLLLLLLLLt ty="0" rx="0"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/1253.svg b/test/ns-afl-svg/1253.svg
new file mode 100644
index 0000000..8e5965e
--- /dev/null
+++ b/test/ns-afl-svg/1253.svg
@@ -0,0 +1,2 @@
+<?l?>
+<!--0--><!DOCTYPE s0[ \ No newline at end of file
diff --git a/test/ns-afl-svg/1254.svg b/test/ns-afl-svg/1254.svg
new file mode 100644
index 0000000..726f96c
--- /dev/null
+++ b/test/ns-afl-svg/1254.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="n0i0"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1255.svg b/test/ns-afl-svg/1255.svg
new file mode 100644
index 0000000..745078e
--- /dev/null
+++ b/test/ns-afl-svg/1255.svg
@@ -0,0 +1,93 @@
+<svg ns="0" viewBox="0 0 0 0">
+0<defs>
+0<linearGradient id="0" rm="0">
+0<sp p-c="0" et="0"/>
+0<op stop-color="0" ot="0"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="1"/>0
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M27,16c0-7,9-13,24-13c0,0,00,0,23,13l0,22c0,0-0,00-11,10c0000000000000000" fill="url(#pyBlue)"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#00000000)"/>0
+0<circle r="4" cx="in" cy="0" fill="#000"/>
+0
+
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0
+0
+0
+<svg width="px" height="px" on="0" xmlns="wdialG,5-2M00,50v1" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000l00000000000000000000,0000000000000000000000000000000000,0000" fill="url(#00000000)"/>0
+0<circle r="4" cx="in" cy="0" fill="#000"/>
+0
+
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0
+0
+0
+<svg width="px" height="px" on="0" xmlns="0000000000000000v0" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00M00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00,0000,000,000,0000000,0000" fill="url(#00000000)"/>0
+0<circle r="4" cx="in" cy="0" fill="#000"/>
+0
+
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0
+0
+0
+<svg width="0" height="px" on="0" xmlns="00000000000000000000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c000000000000000000000000000000000000000000000"/>0
+0
+0
+0
+<svg width="px" height="px" on="0" xmlns="wdialG,5-2M00,50v1" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000,000000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#00000000)"/>0
+0<circle r="4" cx="in" cy="0" fill="#000"/>
+0
+
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0
+0
+0
+<svg width="px" height="px" on="0" xmlns="0000000000000000000000000000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000000,00c0,000,00000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000" fill="url(#00000000)"/>0
+0<circle r="4" cx="in" cy="0" fill="#000"/>
+0
+
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0
+0
+0
+<svg width="px" height="px" on="0" xmlns="00000000000000000000000000000000000000000000000000" fill="url(#00000000)"/>0
+0<circle r="4" cx="in" cy="0" fill="#000"/>
+0
+
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0
+0
+0
+<svg width="px" height="px" on="0" xmlns="00000000000000000000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000,00000000000000000000000000000000000000000"/>0
+0
+0
+0
+<svg width="px" height="px" on="0" xmlns="v0" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f0,0000,00000,00,0000,000,000,0000000,0000" fill="url(#00000000)"/>0
+0<circle r="4" cx="in" cy="0" fill="#000"/>
+0
+
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0
+0
+0
+<svg width="px" height="px" on="0" xmlns="000000000000000000000000000000000000000000000000000000000000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00M00,0000,00" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1256.svg b/test/ns-afl-svg/1256.svg
new file mode 100644
index 0000000..1512be6
--- /dev/null
+++ b/test/ns-afl-svg/1256.svg
@@ -0,0 +1,16 @@
+<svg s="0" viewBox="0 0 0 0">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(0)">
+0<stop stop-color="#000" offset="0"/>
+0<stop b-r="0" offset="0"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="%"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,06c0-0,9-13,24-13c15,00-00,0-23,13-00000000000000000000000000000000000" fill="url(#pyBlue)"/>
+0<path d="M70,87c0,6-8,13-23,13c-15,-14,0-23,13-23l35,0l0-3l-24,0l0-9l0,0z M80,50v1" fill="url(#pyBlue)"/>
+0<path d="M00,00c0,0-0,00-00,00c000,0-00-0-00-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c00000000000,0000,0000000000000000000000000000000000,,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1257.svg b/test/ns-afl-svg/1257.svg
new file mode 100644
index 0000000..70ac75e
--- /dev/null
+++ b/test/ns-afl-svg/1257.svg
@@ -0,0 +1,11 @@
+<svg Ãs="0" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v00000-00 000000000000000000-000 000-00-00-00-000 000-000 00-00 00-00 0-00A000000000000-000-000 0-00 00-00 000-00 00 00 000 00 000-00 00-00 00-00 0000-00 00 0 00-000 00-000-00-00-000-00-000 00-000 000-000 0000-000
+000 0-00 00-000 00-000 0-000 0-000-0-000-0-00-0-00-0-000-00-00-0-00-00-000-00-000-00-000-000-000-00-000-000-000-00-000
+00-000 00-000-00-000-00-000-00-000 00-000 00 0 00-0 00-000-00-000 00-000 000-000 000 000 000 000 000 00 000-000 000-000 000-000 000
+000 000 000-000 00 000 00 000-00 00-00 00-00 0000-00 00 0 00-000 00-000-00-00-000-00-000 00-000 000-000 0000-000
+000 0-00 00-000 00-000 0-000 0-000-0-000-0-00-0-00-0-000-00-00-0-00-00-000-00-000-00-000-000-000-00-000-000-000-00-000
+00-000 00-000-00-000-00-000-00-000 00-000 00 0 00-0 00-000-00-000 00-000 000-000 000 000 000 000 000 00 000-000 000-000 000-000 000
+000 000 000-00 0000-00 000-00 0000000000000000000 000 000-000 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0000"
+transform="translate(0,0)scale(0,0"/>0<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+fill="#000" pa="0"/>0<ellipse rx="3" ry="2" transform="rotate(0 0,0" fill="#000"
+ty="0"/>0</svg>
diff --git a/test/ns-afl-svg/1258.svg b/test/ns-afl-svg/1258.svg
new file mode 100644
index 0000000..a195646
--- /dev/null
+++ b/test/ns-afl-svg/1258.svg
@@ -0,0 +1,30 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 6">
+0<circle r="3" cx="0" cy="0"/>
+0<circle r="3" cx="0" cy="0"/>
+0<path d="M00,00s0-0,00,0s0,0,00,0s00-0-0-0l0,0s0,0,0,0l00,0l00-0l00,0l00-0z"/>
+0<path d="M00,00s0,0,0,0h0,0s00-0,0-00s00-0,0-0l0,0s0,0,0-0l00-0s000,0-0,00l0,0s0,0-0,00"/>
+0<path d="M00,00s00-00,0-00l0-0s0,0,0,0l0-0l0,0s0,0,0,00l00,0l00-0s00,0-0,0l00,00z"/>
+0<g stroke="#000" stroke-width="3" fill="none" stroke-cap="0">0<circle r="6" cx="0" cy="0"/>
+0<circle r="3" cx="0" cy="0"/>
+0<circle r="3" cx="0" cy="0"/>
+0<path d="M00,00s0-0,00,0s0,0,00,0s00-0-0-0l0,0s0,0,0,0l00,0l00-0l00,0l00-0z"/>
+0<path d="M00,00s0,0,0,0h0,0s00-0,0-00s00-0,0-0l0,0s0,0,0-0l00-0s0,0-0,00l0,0s0,0-0,00"/>
+0<path d="M00,00s00-00,0-00l0-0s0,0,0,0l0-0l0,0s0,0,0,00l00,0l00-0s00,0-0,0l00,00z"/>
+0<g stroke="#000" stroke-width="3" fill="none" stroke-cap="0">
+0<circle r="6" cx="0" cy="0"/>
+0<circle r="6" cx="0" cy="0"/>
+0
+0<path d="M0000,0c00-0-0-0-0,0"/>
+0<path d="M00,00c00,0-0,0-0,00c0,0,0,0-00,0"/>
+0<path d="M000,00c0-0,00-0,00,0c0,0,00,0,00,0s0-0,00,00c0,0,0,0,00,0s0-0,0,0"/>
+0<path d="M000,00c0-0,00-0,00,0c0,0,00,0,00,0s0-0,000,00c0,0,00,0,00,00c0,0,0,0,00,0s0-0,0,0"/>
+0<path d="M00,00s0,0,0,0s00,00,00,00"/>
+0</g>
+0
+0
+0<path d="M00,00c0,0,0,0-00,0c00-0-0-0-0,0"/>
+0<path d="M0000000000000000,00c0,0,0,0-00,0"/>
+0<path d="M000,00c0-0,00-0,00,0c0,0,00,0,00,0s0-0,000,00c0,0,00,0,00,00c0,0,0,0,00,0s0-0,0,0"/>
+0<path d="M000,00c0-0,00-0,00,0c0,0,00,0,00,0s0-0,000,00c0,0,00,0,00,00c0,0,0,0,00,0s0-0,0,0"/>
+0<path d="M00,00s0,0,0,0s00,00,00,00"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1259.svg b/test/ns-afl-svg/1259.svg
new file mode 100644
index 0000000..41dd105
--- /dev/null
+++ b/test/ns-afl-svg/1259.svg
@@ -0,0 +1,5 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h00l00,00v00l0,00h000-00,000000l0000000-00z" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000l00000000000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0<text x="0" y="0" t-e="0" fill="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1260.svg b/test/ns-afl-svg/1260.svg
new file mode 100644
index 0000000..0ab765b
--- /dev/null
+++ b/test/ns-afl-svg/1260.svg
@@ -0,0 +1,7 @@
+<svg xmlns="0000000" i="0" viewBox="0 0-0 0">
+0<path d="M0,0h0l0,0v0l0 0h0l0-00v0z" stroke="#000" fOll="0"/>
+0<path d="M00,0,00" fill="#000"/>0
+0<text x="'" y="0" gont-oize="0" fill="0" text-ar="0"><![CDATA[0]]>0</text>0
+0<path d="M0,0h0l0,0v0l0 0h0l0-00v0z" stroke="#000" fOll="0"/>0
+0<path d="M00,0,00" fill="#000"/>0
+0<text x="'" y="0" gont-oize="0" fill="0" text-ar="0"><![CDATA[0]]>0</text>0</svg>
diff --git a/test/ns-afl-svg/1261.svg b/test/ns-afl-svg/1261.svg
new file mode 100644
index 0000000..3986846
--- /dev/null
+++ b/test/ns-afl-svg/1261.svg
@@ -0,0 +1,16 @@
+<svg xmlns="000000000000000000" viewBox="0">
+0<g fill="none">
+0<ellipse stroke="#000000" rx="6" ry="4"/>
+0<ellipse stroke="#000000" rx="0" ry=")"/>
+0<ellipse stroke="d0f00cf" rx="6" ry="4" transform="rotate(60)"/>
+0<circle stroke="#000000" r="4"/>
+0</g>
+0<g fill="#000000" stroke="white">
+0<cw l="0"/>
+0<circle cy="0" stroke="d0f00cf" x="0" ry="0" r="9"/>
+0<circle cx="0" cy="0" r="9"/>
+0
+0<circle cy="0" stroke="d0f00cf" rx="0" ry="0" r="9"/>
+0<circle cx="0" cy="0" r="9"/>
+0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1262.svg b/test/ns-afl-svg/1262.svg
new file mode 100644
index 0000000..a4d1c44
--- /dev/null
+++ b/test/ns-afl-svg/1262.svg
@@ -0,0 +1,89 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gra_ieorm="0">
+0<stop stop-color="k0_0" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#00$" t="0"/>0
+0<stop stop-color="#000" offset=".4" y="0" fill="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="C"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="r000000000" fill="0"/>
+0<path d="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c000000,0,00,0,0-0,00000000000000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000000000000000000000000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c000-0,00-00,000-00l0000000 0" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-04-6-001000000000000000000000000000000000000,000000000000000000000000000000000000" c="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000000000000000000000000000000000000000000)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000000000000000000000000000000l00)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<ctrCle r="0" cx="0" y="0" fill="0"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-0000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="00000000000000000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="00000000000000000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1263.svg b/test/ns-afl-svg/1263.svg
new file mode 100644
index 0000000..268069b
--- /dev/null
+++ b/test/ns-afl-svg/1263.svg
@@ -0,0 +1,4 @@
+<svg ox='0' lns='0' drofill='0' stroke='0'>
+0<path d='000,00000,000,000,0' fill='d0t00tax000ts'/>0
+0<path d='000,00000,000,000,00000' fill='d0t00tax000ts'/>0
+</svg>
diff --git a/test/ns-afl-svg/1264.svg b/test/ns-afl-svg/1264.svg
new file mode 100644
index 0000000..66fdc04
--- /dev/null
+++ b/test/ns-afl-svg/1264.svg
@@ -0,0 +1,3 @@
+<svg ootìå00000000å00="0"
+h="">
+0<g fill="0">0ï00 \ No newline at end of file
diff --git a/test/ns-afl-svg/1265.svg b/test/ns-afl-svg/1265.svg
new file mode 100644
index 0000000..8a921c0
--- /dev/null
+++ b/test/ns-afl-svg/1265.svg
@@ -0,0 +1,33 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<defs>0<linearGradient d="0" m="0">
+0<sp p-c="0" et="0"/>
+0<stop sp-r="0" ot="0"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(0)">
+0<stop stop-color="rgb(00000)"/>0
+0<cirCle r="0" cx="0" cy="0" fl="0"/>
+0<circle r="0" cx="0" cy="0" fs="0"/>
+0<stop sp-lwr="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-00-0,0000,00,00000000000000000000000000000000000000000000000M000000" fill="url(#pyBlue)"/>
+0<path d="M00,000l0,00l00,0c00,0-00-0-00-00c0-00,0-00,00-00l00,0l0-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" cx=")"/>
+0<path d="00000000000000000000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c0000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy=")"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00000l0000M000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,0000,00-00 000-00 0000-00 000-000 000-000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000,00000000 000000,00000000 0" id="0" style="fill: url(#00d000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00l0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00d000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1266.svg b/test/ns-afl-svg/1266.svg
new file mode 100644
index 0000000..53a828a
--- /dev/null
+++ b/test/ns-afl-svg/1266.svg
@@ -0,0 +1,25 @@
+<svg xmlns="000000000000000000" viewBox="0">0<path d="M00,0h00l00,00v00l00000000000000000000000000000000l0000000,0000" fill="url(#000000)"/>
+0<path d="M00,00000000,00000,00000000000000=0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,000 00-000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000,00000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,0000,00-000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000000 000000,0000000000" id="0" style="fill: urb00rad000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00,L0,0,00,00c0,00-0,00-00,00l000,0l0,0l00,0l0,0l0,0z M0000000000000000000000000000000000000000000000000000000000000-00-000 00000000000000000000000000000000000000000000000000000000000000000000000000 000000,0000000000000000000000000000000000,000000000000000000,000000000000000000,000000000 000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000 00000000,00000000 000000,0000000000" id="0" style="fill: urb00rad000" fill="url(#000000)"/>
+0<path d="M00,00000000,00000,000,00,00,0,00,0000,0000,00000000000000000000000000000000,0000000,00000000 000000,000000000000000000,000000000000000000,0000000000000000,00000000000 00000000,000000000 000000,00000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,000000-0,00-00,000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000,0000000000000000,0000000000000000000000,000000000000000,0000000000" id="0" style="fill: urb00rad000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00,L0,0,00,00c0,00-0,00-00,00l000,0l0,0l00,0l0,0l0,0z M00000000000000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,000000000 000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000 00000000,00000000 000000,0000000000" id="0" style="fill: urb00rad000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00-00c000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: urb00rad000" fill="url(#000000)"/>
+0<path d="M00,00c00000,00000,0000000 00000000,00000000 000000,0000000000" id="0" style="fill: urb00rad000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00,L0,0,00,00c0,00-0,00-00,00l000,0l0,0l00,0l0,0l0,0z M000000000000000000000000000000000000000
+00000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000d00000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: urb00rad000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00-00c000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: urb00rad000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00,L0,0,00,00c0,00-0,00-00,00l000,0l0,0l00,0l0,0l0,0z M0000000000000000000000000000000000000000000000000000000000000-00-000 000-0 000000000000000000000000000000000000000000000000000,0000000,000000000000000,000000000000000000000000" fill="ur00000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1267.svg b/test/ns-afl-svg/1267.svg
new file mode 100644
index 0000000..da8a56f
--- /dev/null
+++ b/test/ns-afl-svg/1267.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="R" r="1" style="fill:red;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:b0j0;stroke:black;stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cx="c" cy="cm" r="1" style="fill:g0e00;stroke:black;stroke-width:1cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1268.svg b/test/ns-afl-svg/1268.svg
new file mode 100644
index 0000000..efdc9dd
--- /dev/null
+++ b/test/ns-afl-svg/1268.svg
@@ -0,0 +1,221 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" grorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="u0r00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d=",00000000,0000,000000000,0000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000000000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000000,1000000000000000000000000000000000090000000000000000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="M00,00c0000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0-00000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-00000000000000000,0000000000C0000000,00000000000000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<cirIle r="0" cx="0" cy="0" ll="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,00000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,0000000000000000000000000000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c0,0000,0000000000c0,0,0000000000000000000000000000000000000000000000000000000000,00000000000000000000,00000000,0000,00000000,000,0,0000,000000000000,000,0,000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,0000000000000000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-60.870,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<ciUCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00000,00000,00000000000c000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx=")"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,13-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,10-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1269.svg b/test/ns-afl-svg/1269.svg
new file mode 100644
index 0000000..d8c01ef
--- /dev/null
+++ b/test/ns-afl-svg/1269.svg
@@ -0,0 +1,22 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="0000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="0" width="0" height="0" id="0" sodipodi:ion="0" t_0="0">
+0<defs id="0">
+0<linearGradient id="linearGradient0100" gradientUnits="00000000000000" x1="0" y1="0" x2="0" y2="0">
+0<stop
+style="stop-color:00" offset="0" d="0"/>
+0<stop style="stop-color:000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;" offset="0"
+d="0"/>
+0<stop style="stop-color:00000000000000"/>
+0<stop style="stop-color:0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)000;" offset="0" d="0"/>
+0<stop style="stop-color:000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" offset="0" d="0"/>
+0</linearGradient>
+0</defs>
+0<g inkscape:label="0" inkscape:oupmode="0" d="0">
+0<rect style="fill:url(#linearGradient0100);"
+d="0" width="0" height="0" x="0" y="0"/>
+0 0
+0
+0<rect style="0"
+d="0" width="0" height="0" x="0" y="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1270.svg b/test/ns-afl-svg/1270.svg
new file mode 100644
index 0000000..aa28ac6
--- /dev/null
+++ b/test/ns-afl-svg/1270.svg
@@ -0,0 +1,40 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>0
+0
+0<stop stop-color="#000" offset="0" cy="0" fill="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,0,00c0,0-0,00-00,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#000000)"/>
+0<path d="M00,00c090-8,10-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c000,0-00000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00000000000000000000000000000000000-000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-20,104,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1271.svg b/test/ns-afl-svg/1271.svg
new file mode 100644
index 0000000..3ad04e2
--- /dev/null
+++ b/test/ns-afl-svg/1271.svg
@@ -0,0 +1,144 @@
+<svg xmlns="000000000000000000000000">
+0<defs>0<linearGradient id="py0ello0" gra_ieorm="0">
+0<stop stop-color="#000" set="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a00" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset=".4"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#000000" fill="url(#000000"/>
+0<path d="M00,00c000-8,00-00,004,00v0" fill="url(#py0ello0"/>0
+0<cirCle r="4" x="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" cy="0" fill="0000"/>0
+0<path d="0000000000000000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,00000000000,0000000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ello0"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" y="0" fill="url(#py0ello0)"/>0
+0
+0<path d="000,00000000,0000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l000 0000-00 000-000 00000 000000,00000000000000000=00,0000000000000000,000000000000000,0000000000" id="0000" style="fill: u00000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-6-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ello0)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ello0)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ello0)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000M0000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-04-6-000080000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ello0)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ello0)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-04-6-000080000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ello0)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="u000000000000"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#py0ello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ello0)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1272.svg b/test/ns-afl-svg/1272.svg
new file mode 100644
index 0000000..ade6668
--- /dev/null
+++ b/test/ns-afl-svg/1272.svg
@@ -0,0 +1,43 @@
+<svg xmlns="0" viewBox="0 0 0 0">
+0<path d="000000000" stroke="#000" fill="n0b0"/>0
+0<path d="0000000000" t="0" fill="n0b0"/>0
+0<svg xmlns="0000" viewBox="0 0 1 1">
+0<path d="M00,0h0z" stroke="#000" l="0"/>0
+0<path d="000,0000" fill="n0b0"/>0
+0<path d="000000000" t="0" fill="n0b0"/>0
+0<svg xmlns="0" viewBox="0 0 1 1">
+0<path d="M00,0000l00,0l000-00l000-00v000z" stroke="#000" fill="n0b0"/>0
+0<path d="0000000000000000000000" l="0"/>0
+0<text x="0" y="0" font-size="0" l="0" t="0"><![CDATA[0]]></text>0</svg>
+0<text x="0" y="0" font-size="0" f_ke="0" l="0"/>0
+0<path d="000000000000" stroke="#000" fill="n0b0"/>0
+0<svg xmlns="0" viewBox="0" stroke="#000" fill="n0b0"/>0
+0<path d="00000000,00" t="0" fill="n0b0"/>0
+0<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M00,0000l00,0l000-0v000z" stroke="#000" l="0"/>0
+0<path d="000,0000" fill="n0b0"/>0
+0<path d="000,00,00000,00" t="0" fill="n0b0"/>0
+0<svg xmlns="0" viewBox="0 0 1 1">
+0<path d="M00,0000l00,0l000-00l000-00v000z" stroke="#000" fill="n0b0"/>0
+0<path d="00000000" fill="#000"/>0
+0<text x="0" y="0" font-size="0" l="0" t="0"><![CDATA[0]]></text>0</svg>
+0<text x="0" y="0" font-size="0" f_ke="0" l="0"/>0
+0<path d="000,00,00000,00" stroke="#000" fill="n0b0"/>0
+0<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="0000000000000000" stroke="#000" fill="n0b0"/>0
+0<path d="M00,0000l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0<text x="0" y="0" font-size="0" l="0" t="0"><![CDATA[0]]></text>0</svg>
+0<text x="0" y="0" font-size="0" i="0" t="0" fill="0"/>0
+0
+0<path d="M00,0h00l00,0l000-00l000-00v000z" stroke="#000" fill="n0b0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0<text x="0" y="0" font-size="0" fill="0" tt-ar="0"><![CDATA[0]]></text>0</svg>
+0<text x="0" y="0" font-size="0" i="0" tt-ar="0" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" texar="0"><![CDATA[0]]></text>0</svg>
+0<text x="0" y="0" font-size="0" fil_ke="0" fill="0"/>0
+0<path d="000,00,00000,00" stroke="#000" fill="n0b0"/>0
+0<svg xmlns="00" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,0l000-00l000-00v000z" stroke="#000" fill="n0b0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
+0<text x="0" y="0" font-size="0" i="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1273.svg b/test/ns-afl-svg/1273.svg
new file mode 100644
index 0000000..c43c223
--- /dev/null
+++ b/test/ns-afl-svg/1273.svg
@@ -0,0 +1,118 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c0' stroke='m0d0'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='5' fill='b0a00ck'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" hei="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" heighg="0"
+fill="none" st="0"/>
+0<g f="0">
+0<text x="0" y="0">0</text>0<g t="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g tzansform="0">&r;</g>
+0
+0<text x="0" y="0">0</text>
+0<g transform="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&Viewport2;</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&t;
+0<svg esctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg psctRatio="0" vw="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pht="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text p="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg esetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg AectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg psctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prt="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg eservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg psANYatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prt="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg prbectRatio="0" viewBox="0 0 0 0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" Gox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" vie="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preseAspectRaTio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1274.svg b/test/ns-afl-svg/1274.svg
new file mode 100644
index 0000000..50b4ecd
--- /dev/null
+++ b/test/ns-afl-svg/1274.svg
Binary files differ
diff --git a/test/ns-afl-svg/1275.svg b/test/ns-afl-svg/1275.svg
new file mode 100644
index 0000000..281c1a8
--- /dev/null
+++ b/test/ns-afl-svg/1275.svg
@@ -0,0 +1,152 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="0000000000000000000" n="0">
+0<script e="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g d="0" fill="blue" e="0">
+0<svg v="0" xmln="0" width="0" height="0" style="0" n="0">
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g d="0" fill="blue" style="0">
+0<svg v="0" xn="0" width="0" height="0" style="0" n="0">
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g d="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0r00ric000or00000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg>0<circle id="0" cx="0" cy="0" r="5" stroke="l0r00ric000or00000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>0
+0
+0<svg version="0"
+n="0" width="0" height="0" style="0" on="0">
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g vd="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0r00ric000or00000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg>0<circle id="0" cx="0" cy="0" r="5" stroke="0000000"/>
+0<text x="%" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg>0<circle id="0" cx="0" cy="0" r="5" stroke="l0r00ric000or00000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/1276.svg b/test/ns-afl-svg/1276.svg
new file mode 100644
index 0000000..aacb081
--- /dev/null
+++ b/test/ns-afl-svg/1276.svg
@@ -0,0 +1,30 @@
+<?l?>
+<!DOCTYPE v0 PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="@" f="0" r="1" style="fill:r0d;stroke:000" transform="translate(0,00)"/>0<circle cx="cm" cy="cm" r="1" style="fill:b0u0;stroke:o0e00lac0 stroke-width:1cm" transform="translate(0,00)"/>0<circle cx="cm" cy="0" r="1" style="fill:e0n;stroke:black;"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:black stroke-width:1em" transform="translate(00,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black stroke-width:1em" transform="translate(00,000)"/>
+0<circle cx="cm" cy="0" r="1" style="fill:green;stroke:black stroke-width:1em" transform="00"/>
+0<circle cx="cm" cy="0" r="1" style="fill:l0g00en;stroke:black;stroke-width:1em" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black stroke-width:1em" transform="translate(00,000)"/>
+0<circle cx="cm" cy="0" r="1" style="fill:green;stroke:black;stroke-width:1em" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;" m="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:000" transform="translate(0,00)"/>0<circle cx="cm" cy="0" r="1" style="fill:blue;stroke:o0e00lac0;stroke-width:1cm" transform="translate(0,00)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:l0g00en;stroke:black;stroke-width:1em" m="0"/>
+0<circle cx="cm" cy="0" r="1" style="fill:green;stroke:black" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:b0a stroke-width:1em" transform="translate(00,000)"/>
+0<circle cx="cm" cy="0" r="1" style="fill:green;stroke:black stroke-width:1em" transform="00"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:l0g00en;stroke:black;stroke-width:1em" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:black stroke-width:1em" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:b0a stroke-width:1em" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black stroke-width:1em" transform="00"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:l0g00en;stroke:black;stroke-width:1em" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black stroke-width:1em" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black;stroke-width:1em" u="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" transform="translate(000,000)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1277.svg b/test/ns-afl-svg/1277.svg
new file mode 100644
index 0000000..0ea6ad5
--- /dev/null
+++ b/test/ns-afl-svg/1277.svg
@@ -0,0 +1,19 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='d0d'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='!' r='1' fill='y0`00w'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M0 0A0 0 0 0 0 0 0' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='b0u0'/>">]><svg width="px" height="30px" n="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" h="0" fill="none" stroke="blue"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g m="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0<g d="0" transform="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg o="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg r="0" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1278.svg b/test/ns-afl-svg/1278.svg
new file mode 100644
index 0000000..d89d89b
--- /dev/null
+++ b/test/ns-afl-svg/1278.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:b0a fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1279.svg b/test/ns-afl-svg/1279.svg
new file mode 100644
index 0000000..5dbe652
--- /dev/null
+++ b/test/ns-afl-svg/1279.svg
@@ -0,0 +1,37 @@
+<svg xns="0" viewBox="0 0 1 1">
+0
+0<path d="M00,00v00l000,00h00v0000" e="0" fill="l0r0"/>0
+0
+0
+0<path d="M00,00v000000" ke="0" fill="n&lt;o00tex000nc0000"/>0
+0<path d="M00,00v00l000,000000-00" e="0" fill="n&lt;o00tex000nc0000"/>0
+0<path d="00000000000" stroke="#000" fill="n&lt;o00tex000nc0000"/>0
+0<path d="M00,0000l00,00v00l000,000000-00" stroke="#000" fill="n&lt;o00tex000nc0000"/>0
+0<path d="00" stroke="#000" fill="l0r0"/>0
+0
+0
+0<path d="M00,00v000z" stroke="#000" fill="n&lt;o00tex000nc0000"/>0
+0<path d="M00,0h00l00,00v00l000,0h000l000" stroke="#000" fill="n&lt;o00tex000nc0000"/>0
+0<path d="00000000000" stroke="#000" fill="n&lt;o00tex000nc0000"/>0
+0
+0<path d="M00,00v00l000,00h00v000z" stroke="#000" fill="l0r0"/>0
+0
+0
+0<path d="M00,00v0l000-00l000-00z" rkke="0" fill="n&lt;o00tex000nc0000"/>0
+0<path d="M00,0h00l00,00v00l000,0h000l000" stroke="#000" fill="n&lt;o00tex000nc0000"/>0
+0<path d="00000000000" stroke="#000" fill="n&lt;o00tex000nc0000"/>0
+0<path d="M00,0h00l00,00v00l000,0h000l000" stroke="#000" fill="n&lt;o00tex000nc0000"/>0
+0<path d="00" stroke="#000" fill="l0r0"/>0
+0
+0
+0<path d="M00,00v000z" stroke="#000" fill="n&lt;o00tex000nc0000"/>0
+0<path d="M00,0h00l00,00v00l000,0h000l000" stroke="#000" fill="n&lt;o00tex000nc0000"/>0
+0<path d="00000000000" stroke="#000" fill="n&lt;o00tex000nc0000"/>0
+0<path d="M00,0h0000v00l000,0h000l000" stroke="#000" fill="n&lt;o00tex000nc0000"/>0
+0<path d="M00,0h0000-000000#0,00000000000000" fill="#000"/>0
+0<text x="0" y="0" t-se="0" fill="0"/>0
+0
+0<path d="M00,0h0000v00l000,0h000l000" stroke="#000" fill="n&lt;o00tex000nc0000"/>0
+0<path d="M00,0h0000-000A000" fill="#000"/>0
+0<text x="0" y="0" font-size="0" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1280.svg b/test/ns-afl-svg/1280.svg
new file mode 100644
index 0000000..9d8b7e7
--- /dev/null
+++ b/test/ns-afl-svg/1280.svg
@@ -0,0 +1,5 @@
+<svg>0
+0<path d="M00,00l00,0000000000000l00000000000" stroke="#000" fill="n0i00wid00"/>0
+0<path d="M00,0h00l00,00000l0000000-00l000-00v0,00h000l000-00v000z" stroke="#000" fill="n0i00wid00"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0<text x="0" y="0" t-size="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1281.svg b/test/ns-afl-svg/1281.svg
new file mode 100644
index 0000000..efb4d98
--- /dev/null
+++ b/test/ns-afl-svg/1281.svg
@@ -0,0 +1,113 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="k0g0" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>0
+0<stop stop-color="#000" offset=".4" y="0" l="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="C"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="r000000000" l="0"/>
+0<h d="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c000,00,0,0,00000000,00000000000000000000" id="0000" style="fill: url(#000000" fill="url(#000e)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#000e)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,0000,000-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000 00-00 000000000,00000000 000000,0000000000" id="0" style="fill: url(#00000" fill="url(#000e)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c00000000000000-00-00 00-00 000-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-6-00000000010000000000000000000000000000000000000 0000000000000000000000000000" c="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<pith d="0" id="0000" y="0" l="0"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000e)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<rcè000 x=""/>0
+0<circle r="$" fill="0"/>
+0<path d="000" fill="url(#)"/>0
+0<cirCle r="4"/>0
+0<circ cx="0"/>
+0
+
+0
+0<circle r="4" cx="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1282.svg b/test/ns-afl-svg/1282.svg
new file mode 100644
index 0000000..ecad256
--- /dev/null
+++ b/test/ns-afl-svg/1282.svg
@@ -0,0 +1,28 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:xlin0="0000" xmlns:sodipodi="0" xmlns:in0scape="h" width="0" height="0" i0="0"
+n="0" in0scape:o0="0" sodipodi:oe="0" in0scape:output_extension="0">
+0<defs id="0">
+0<linearGradient
+Ð0="0">
+0<sp
+le="0"
+t="0"
+d="0"/>
+0<sp
+le="0"
+et="0" id="0"/>
+0<st yle="0" et="0" id="0"/>
+0</linearGradient>
+0<line in0scape:cct="0" xlin0:hr="0" x1="0" y1="0" x2="0" y2="0" adi="0"/>
+0<linearGradient id="0">
+0<sto yle="0" of="0" id="0"/>
+0<s sle="0" et="0" id="0"/>
+0<st yle="0" et="0" id="0"/>
+0</linearGradient>
+0<line in0scape:collect="0" xlin0:ef="0" id="0" x1="0" y1="0" x2="0" y2="0"
+ts="0"/>
+0</defs>
+0<rec yle="0" id="0"
+idth="0" ht="0" x="0" y="0"/>0<rec t="0"/>
+0<r e="0"/>0<r x="0" y="0"/>0</svg>
diff --git a/test/ns-afl-svg/1283.svg b/test/ns-afl-svg/1283.svg
new file mode 100644
index 0000000..31957f2
--- /dev/null
+++ b/test/ns-afl-svg/1283.svg
@@ -0,0 +1,37 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(000,0000000000000000,0000000000000000,00000000000000000000,00000">
+0<stop stop-color="0000000" offset="0"/>
+0<stop stop-color="0000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000" l="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000 00-00-00 00-00 000-00 0000-00 000-000 00000 000000,0000000000000000000000000000000000000,00000000 000000,00000000 0" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,000000000000000000,0000,0000000000,0000,00000000000000000,0000,000000000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000 00-00-00 00-00 000-00 0000-00 000-000 0000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,00000000000000000000000000000000000000000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,00000000 000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000 00000000,00000000 000000,00000000 0" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1284.svg b/test/ns-afl-svg/1284.svg
new file mode 100644
index 0000000..feeaaac
--- /dev/null
+++ b/test/ns-afl-svg/1284.svg
@@ -0,0 +1,84 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0a00hor00'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00w'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<circle cx='0' cy='0' r='5' fill='b0i00'/>0<path d='M0 0A00 0 0 0 0 00 00' stroke='black' otroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='d'
+fill='n0s0' stroke='b0u0'/>">]><svg width="px" hei="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0"
+fill="none" se="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g m="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="00000000000">&V;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport0;</g>
+0<g id="0" transform="0000000000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="000000000000000"><text y="0">0</text>&Viewport0;
+0<svg pio="0" vox="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+tO="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 0 0" width="0" height="0">0</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" vie="0" width="0" height="0">&S;</svg></g>
+0<g sfQrm="0"><text y="/">0</text>&V;
+0<svg preserveAspectRatio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="00000000000000000000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t;
+0<svg tio="0" Box="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pro="0" vix="0"
+idth="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&t;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" vox="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+tO="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 0 0" width="0" height="0">0</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" vie="0" width="0" height="0">&S;</svg></g>
+0<g sfQrm="0"><text y="/">0</text>&V;
+0<svg preserveAspectRatio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)000">
+0<text x="0" y="0">0</text>
+0<g><text y=";">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform=",00"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="/">0</text>&V;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00"><text y="0">0</text>&V;
+0<svg prtRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1285.svg b/test/ns-afl-svg/1285.svg
new file mode 100644
index 0000000..65f9a01
--- /dev/null
+++ b/test/ns-afl-svg/1285.svg
@@ -0,0 +1,87 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gra_ieorm="0">
+0<stop stop-color="v0e0" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>0
+0
+0<stop stop-color="#000" offset=".4" y="0" fill="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d=",0000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="000,0000000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000000000000000000000,0000000000000000,0000000000000000,0000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-20,120-00l0-20c0-7,0-10,10-10l04,0c0,0,00-7,00-10l0-10l9,0c00000,00000,00000000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,0000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000,0000000,000000000000000,00000000000000000000000000000000000000,0000000000C000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,00000000000000000000000000000 0000-00 000-000000000 000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000,0000,000000000000,0,0000000000000000000000000000000000000000000000000000000000,00000000000000000000,00000000,0000,00000000,000,0,0000,000000000000,000,0,000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,0000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00000"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" l="0"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,00,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,00-00000000000,00000,00000000000c000,0000,00000000,000,0,000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00000,00000000 0 00000000,00000000 000000,000000000z" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000,0000" fill="u0e0"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00000,00000000 0 00000000,00000000 000000,000000000z" id="0" style="fill: url(#000000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#0000000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,000,000,0000000000000,00000000000000000000000000000,000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,000,00000000,000,0,0000,000000000000,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l000000,0c0,0,000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,0000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="F" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,00,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,00-00000000000,00000,00000000000c000,0000,00000000,000,0,000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000 0000000,0000000000000000,0000000000000000,0000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-20,120-00l0-22c0-7,0-10,10-10l04,0c0,0,00-7,10-10l0-10l9,0c00000,00000,00000000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,0000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000,0000000,000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<path d="M00,00c000-0,00-00,000,0000" fill="url(#000000000"/>0
+0<cirCle r="4" cx="c" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1286.svg b/test/ns-afl-svg/1286.svg
new file mode 100644
index 0000000..f2b8b28
--- /dev/null
+++ b/test/ns-afl-svg/1286.svg
@@ -0,0 +1,6 @@
+<svg mx="0" stroke0Ù0000="0">
+0<e0è0
+ t=''/>
+0<e0è0
+ t=""/>0
+0</svg>0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1287.svg b/test/ns-afl-svg/1287.svg
new file mode 100644
index 0000000..5cb1038
--- /dev/null
+++ b/test/ns-afl-svg/1287.svg
@@ -0,0 +1,2 @@
+<svg lx='0' xmlns='000' d='0' fill='d0l00tax000ns00000' strokell='0' stroke='0'>
+0<path d='M0,0c00,0-0,0-0,00-00' fill='d0l00tax000ns00000' stroke='d0`00'/>0</svg>
diff --git a/test/ns-afl-svg/1288.svg b/test/ns-afl-svg/1288.svg
new file mode 100644
index 0000000..60c9e87
--- /dev/null
+++ b/test/ns-afl-svg/1288.svg
@@ -0,0 +1,2 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY S ""><!--0-->
+<!--0-->]><!--0-->> \ No newline at end of file
diff --git a/test/ns-afl-svg/1289.svg b/test/ns-afl-svg/1289.svg
new file mode 100644
index 0000000..2959da0
--- /dev/null
+++ b/test/ns-afl-svg/1289.svg
@@ -0,0 +1,35 @@
+<svg xmlns="00000000000000">
+0<path d="l0,00v0-00z" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0<path d="M00,0h0000000000z" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0<path d="M00,00h000l000-00v000z" fill="#000"/>0
+0
+0<path d="M000000000000000000,00v0l000-00z" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0
+0<path d="M00,0h00l00,00v000,00h00v000z" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0<path d="M00,000l000,00h000l000-00v000z" fill="#000"/>0
+0
+0<path d="M00,0h00l0000000000000000000-00z" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0
+0<path d="000000000" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0
+0<path d="M00,0h00l00,00v000,00-00z" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0<path d="M00,00h000l000-00v000z" fill="#000"/>0
+0
+0<path d="M00,0h00l0000000000000000000-00z" stroke="0000" fill="m&lt;o00inc000ee"/>0
+0
+0<path d="M00,0h00l00,00v000,00h00v000z" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0<path d="M00,000l000,00h000l000-00v000z" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0
+0<path d="M00,0h00l00,00v000,00h000l000-00v000z" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0<path d="M00,000l000,00h000l000-00v0l000-00z" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0
+0<path d="M00,0h00l00,00v000,00h000l000-00v000z" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0<path d="M00,000M00,0h00l00,00v000,00h000l000-00v000z" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0<path d="M00,000l000,00h000l000-00v0l000-00z" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0
+0<path d="M00,0h00l00,00v000,00h000l000-00v000z" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0<path d="M00,000l000,00h000l000-00v000z" fill="#000"/>0
+0
+0<text x="0" y="0" t-e="0" l="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1290.svg b/test/ns-afl-svg/1290.svg
new file mode 100644
index 0000000..c87313d
--- /dev/null
+++ b/test/ns-afl-svg/1290.svg
@@ -0,0 +1,5 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00 00-0 00-00-00 00-00 000s00 000-00-00-00000000000000000-00 00-00 0-00-0000000000000000-000 0-00 00-00 000-00 00 00 000 00 000-00 00-00 00-00 0000-00 00 0 00-000 00-000000000000000000000000000000000000$0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
+transform=",,0"/>0<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+fill="#000" opacity="0"/>0<ellipse rx="5" ry="2" transform="rotate(0)translate(0,0)" fill="#000"
+opacity="0"/>0</svg>
diff --git a/test/ns-afl-svg/1291.svg b/test/ns-afl-svg/1291.svg
new file mode 100644
index 0000000..52ac4a9
--- /dev/null
+++ b/test/ns-afl-svg/1291.svg
@@ -0,0 +1,122 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' he='0' fill='black' stroke='red'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00wpl000'/>0<c cx='0' cy='0' r='0' fidl='0'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M000 000A00 0 0 0 0 000 00' stroke='black' otroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='d'
+fill='n0s0' stroke='blue'/>">]><svg width="px" hei="0">
+0<desc>0</desc>
+0<rect x="0" y="0" w="0" he="0"
+fill="none" se="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g m="0">&Smile;</g>
+0<text x="0">0</text>
+0<g transform="000">&V;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport0;</g>
+0<g id="0" t="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="000000000000000"><text y="0">0</text>&Viewport0;
+0<svg pio="0" vox="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="0000000000000000"><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+tO="0" height="0">&Smile;</svg></g>
+0<g transform="0000000000000000"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 0 0" width="0" height="0">0</svg></g>
+0</g>
+0<g id="0" transform="000000000000000000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" vie="0" width="0" height="0">&S;</svg></g>
+0<g m="0"><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="00000000000000000000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t;
+0<svg tio="0" Box="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="000000000000000"><text y="0">0</text>&V;
+0<svg pro="0" vix="0"
+idth="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&t;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" vox="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" m="0"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+tO="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 0 0" width="0" height="0">0</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" vie="0" width="0" height="0">&S;</svg></g>
+0<g m="0"><text y="/">0</text>&V;
+0<svg preserveAspectRatio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)000">
+0<text x="0" y="0">0</text>
+0<g><text y=";">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="00"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="/">0</text>&V;
+0<svg pre="0" viewBox="0 0 3 4" wiwidth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg ervatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg t="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transUTF00form="0"><text y="0">0</text>&V;
+0<text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg prbectRatio="0" viewBox="0 0 0 0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewGox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="000000"><text y="D">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&t0;
+0<svg ectRaTio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1292.svg b/test/ns-afl-svg/1292.svg
new file mode 100644
index 0000000..99cd54a
--- /dev/null
+++ b/test/ns-afl-svg/1292.svg
@@ -0,0 +1,11 @@
+<svg Ãs="0" viewBox="0 0 1 1">
+0<path d="M0,0h00000,00v00l000,00h000l000-00v0000000000000000-00 000-000 000-00-00-00-000 000-000 00-00 00-00 0-00A00-0-0000-00-000-000 0-00 00-00 000-00 00 00 000 00 000-00 00-00 00-00 0000-00 00 0 00-000 00-000-00-00-000-00-000 00-000 000-000 0000-000
+000 0-00 00-000 00-000 0-000 0-000-0-000-0-00-0-00-0-000000-00-0-00-00-000-00-000-00-000-00H0000000000000000000-00-000
+00-000 00-000-00-000-00-000-0000 000 00 000-000 000-000 000-000 000
+000 000 000-00 0000-00 000-00 000 0 0000l00 00-0 0000c00000 0 000 00
+000 00 00 00 000 00 00 000-00 000-000-00-000-000-000-000 0-00-00 00-00 00-00 000-00000000000000000000000000000000-0000000000000000000000000 0000"
+transform="translate(0,0) scale(0-0"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(000,0000)"
+fill="#000" opa="0"/>0<ellipse rx="5" ry="2" transform="rotate(0-000-000000000000000000"
+sfwrm="0"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(000,0000)"
+fill="#000" opa="0"/>0<ellipse rx="3" ry="2" transform="rotate(0-00 0000,000" fill="#000"
+ty="0"/>0</svg>
diff --git a/test/ns-afl-svg/1293.svg b/test/ns-afl-svg/1293.svg
new file mode 100644
index 0000000..82035f0
--- /dev/null
+++ b/test/ns-afl-svg/1293.svg
@@ -0,0 +1,55 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='m' fill='l0_00anc000ey'/>0<g transform='translate(0,0)'>0<circle cx='0' cy='0' r='1' fill='y0l00w'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='b0i00'/>0<path d='M00 0A00 0 0 0 0 00 00' stroke='black' otrokm-width='0'/>0</g>0">
+<!ENTITY t "">
+<!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='d'
+fill='n0s0' stroke='blue'/>">
+]>
+<svg width="px" h="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" fill="none" s="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g m="0">&Smile;</g>0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport0;</g>
+0<g d="0" transform="0">0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+h="0" t="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg pro="0" vix="0"
+idth="0" e="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&o;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" vox="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0</g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0<g d="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pretio="0" vie="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg preRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1294.svg b/test/ns-afl-svg/1294.svg
new file mode 100644
index 0000000..5a85ed9
--- /dev/null
+++ b/test/ns-afl-svg/1294.svg
@@ -0,0 +1,15 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0
+0<path d="M00,00l00,00v00l000000000000000000-00z" fill="#000" stroke-width="3"/>
+0<path d="M00,00c00,0,00-00,00-00c0,0,00,00,00,00h00c0,0,0,00,00,00l00,0l000-0v00h000v000z" t="0" fill="#000"/>
+0<path d="M00,00c00,0,00-00,00-00c0,0,00,00,00,00h00c0,0,0,00,00,00l00,0l000-0v00h000v000z" stroke="#000" fill="#000"/>0
+0<path d="M00,000000v00000000000000000000v000z" fill="#000" stroke-width="3"/>
+0<path d="M00,00c00,0,00-00,00-00c0,0,00,00,00,00h00c0,0,0,00,00,00l00,0l000-0v00h000v000z" stroke="#000" fill="#000"/>
+0<path d="M00,00c00,0,00-00,00-00c0,0,00,00,00,00h00c0,0,0,00,00,00l00,0l000-0v00h000v0000l000,00h000l000-00v000z" stroke="#000" fill="n0l0"/>0
+0<path d="M00,0000L00,00v00l000,00000v000z" stroke="#000" l="0"/>0
+0<path d="M00,0h0z" fill="#000" stroke-width="3"/>
+0<path d="M00,00c00,0,00-00,00-00c0,0,00,00,00,00h00c0,0,0,00,00,00l00,0l000-0v00h000v000z" stroke="#000" fill="#000"/>
+0<path d="M00,00c00,0,00-00,00-00c0,0,00,00,00,00h00c0,0,0,00,00,00l00,0l000-0v00h000v000z" stroke="#000" fill="#000"/>0
+0<path d="M00,000000v00l000,00h000l000-00v000z" fill="#000" stroke-width="3"/>
+0<path d="M00,00c00,0,00-00,00-00c0,0,00,00,00,00h00c0,0,0,00,00,00l00,0l000-0v00h000v000z" stroke="#000" fill="#000"/>
+0<path d="M00,00c00,0,00-00,00-00c0,0,00,00,00,00h00c0,0,0,00,00,00l00,0l000-0v00h000v000z" stroke="#000" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1295.svg b/test/ns-afl-svg/1295.svg
new file mode 100644
index 0000000..0971173
--- /dev/null
+++ b/test/ns-afl-svg/1295.svg
@@ -0,0 +1 @@
+<svg É="0">0<gsvg w="0" g="0" y="0"><g><g><path f="0" c="0" fill="0" d="0"/><a/><!--0-->0<g><path f="0"><gsvg width="0" height="0" d="0" y="0"><g><g><path fille="0" clOp-rule="0" fill="0" d="0"/><a/><!--0-->0<g><path fth="0" hgight="0" d="0" y="0"><g><g><path f="0" c="0" fill="0" d="0"/><a/><!--0-->0<g><path fill-rlle="0"><gsvg width="0" height="0" d="0" y="0"><g><g><path fill-rule="0" clOp-rule="0" fill="0" d="0"/><a/><!--0-->0<g><path fill-rlle="0" clip-rule="0" hgight="0" d="0" y="0"><g><g><path f="0" clOp-rule="0" fill="0" d="0"/><a/><!--0-->0<g><path f="0"><gsvg width="0" height="0" id="0" y="0"><g><g><path f="0" c="0" fill="0" d="0"/><a/><!--0-->0<g><path fth="0" hgight="0" id="0" y="0"><g><g><path f="0" c="0" fill="0" d="0"/><a/><!--0-->0<g><path fill-rlle="0"><gsvg width="0" height="0" id="0" y="0"><g><g><path fill-rule="0" cd="0"/><a/><!--0-->0<g><path f="0"><gsvg width="0" height="0" id="0" y="0"><g><g><path f="0" c="0" fill="0" d="0"/><a/><!--0-->0<g><path fth="0" hgight="0" id="0" y="0"><g><g><path f="0" c="0" fill="0" d="0"/><a/><!--0-->0<g><path fill-rlle="0"><gsvg width="0" height="0" id="0" y="0"><g><g><path fill-rule="0" clOp-rule="0" fill="0" d="0"/><a/><!--0-->0<g><path f="0" c="0" hgight="0" id="0" y="0"><g><g><path f="0" c="0" fill="0" d="0"/><a/><!--0-->0<g><path f="0"><gsvg width="0" height="0" id="0" y="0"><g><g><path fill-rule="0" clOp-rule="0" fill="0" d="0"/><a/><!--0-->0<g><path fth="0" hgight="0" id="0" y="0"><g><g><path f="0" c="0" fill="0" d="0"/><a/><!--0-->0<g><path f="0"><gsvg width="0" height="0" id="0" y="0"><g><g><path fill-rule="0" clOp-rule="0" fill="0" d="0"/><a/><!--0-->0<g>0<a/><!--0-->0<g><0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1296.svg b/test/ns-afl-svg/1296.svg
new file mode 100644
index 0000000..55ccd0b
--- /dev/null
+++ b/test/ns-afl-svg/1296.svg
@@ -0,0 +1,121 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" ra_ieorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a00fas000"/>0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0-0,00,0,00,,00c0,0-0,00-00,00ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" y="0" fill="#000"/>0
+0<path d="000,0000000,000000000000000000,0000000000000000,000000000000000000000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,000000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000-0-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00v0-00l0,0c0,0,00c0,0000,00000,000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,00000000000" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="0000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1297.svg b/test/ns-afl-svg/1297.svg
new file mode 100644
index 0000000..89340f1
--- /dev/null
+++ b/test/ns-afl-svg/1297.svg
@@ -0,0 +1,15 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v0" fill="m0v0"/>0
+0
+0<path d="M00,0h00l00,00v0" fill="m0v0"/>0
+0
+0<path d="M00,0h00l00,00v0" fill="m0v0"/>0
+0<path d="M00,0h00l0l0,00" stroke="#000" fill="m0v0"/>0
+<path d="M00,0h00l00-00,00" stroke="#000" fill="m0v0"/>0
+0<pZth d="0" l="0"/>0
+0<path d="M00,0h00l00,00v000" fill="m0v0"/>0
+0<path d="M00,0h00l0000-00,00" stroke="#000" fill="m0v0"/>0
+<path d="M00,0h00l0000-00,00" stroke="#000" fill="m0v0"/>0
+0<pZth d="0" fill="0"/>0
+0<Ú000 d=""/>0
+0<text x="0" y="0" t-e="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1298.svg b/test/ns-afl-svg/1298.svg
new file mode 100644
index 0000000..e2107a0
--- /dev/null
+++ b/test/ns-afl-svg/1298.svg
@@ -0,0 +1,58 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<xp st="0" et="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0-0,00,0,000,00c0,0-0,00-00,000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c0,00-200-00-6-0000001,000000000000000000000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000000000000000000000000)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000000000000000000000000000000000000000000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<ctrCle r="0" cx="0" cy="0" fl="0"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1299.svg b/test/ns-afl-svg/1299.svg
new file mode 100644
index 0000000..8b8fb29
--- /dev/null
+++ b/test/ns-afl-svg/1299.svg
@@ -0,0 +1,116 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0a00' stroke='red'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='u0l00sch000o'/>0<circle Nx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' f='0'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' yidth='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" n="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" t="0"
+fill="none" stroke="b0u0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&Viewport2;</g>
+0<g d="0" transform="translate(0,000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t;
+0<svg o="0" Box="0"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg o="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&t;
+0<svg esctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg e="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg psctRatio="0" vw="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&t;
+0<svg pectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg o="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg preservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presANYatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg prbectRatio="0" viewBox="0 0 0 0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" Gox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" vie="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg preseAspectRaTio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1300.svg b/test/ns-afl-svg/1300.svg
new file mode 100644
index 0000000..93c022f
--- /dev/null
+++ b/test/ns-afl-svg/1300.svg
@@ -0,0 +1,25 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:000000000000"/>
+0<circle cx="cm" cy="0" r="1" style="fill:g0m00mmm000me000000 stroke-width:1cm" transform="0" rm="0"/>
+0<circle cx="cm" cy="0" r="1" style="fill:000000000000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0m00mmm000me000000;stroke-width:00r0000000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0m00mmm000me000000;stroke-width:00a00;" transform="0" rm="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:000000000000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0m00mmm000me000000;stroke-width:001cm" transform="translate(0,0)"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:g0m00mmm000me000000;" transform="translate(0,0)"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:g0m00mme000ac0;stroke-width:001cm" transform="0" rm="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:000000000000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0m00mmm000me000000;stroke-width:001cm" transform="translate(0,0)"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:g0m00mmm000me000000;" transform="translate(0,0)"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:g0m00mmm000me000000;stroke-width:001cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1301.svg b/test/ns-afl-svg/1301.svg
new file mode 100644
index 0000000..3add353
--- /dev/null
+++ b/test/ns-afl-svg/1301.svg
@@ -0,0 +1,18 @@
+<svg xmlns="00000000" viewBox="0">
+0<path d="M00,0h00,00a00,00 0,0,0 0-000000000000000000000000000000000000000c" e='0'/>0<path d="M00,0h00l00,00v0,00 0,0,0-00,0l00,00a00,00 0,0,0 0-00000000000000s" f='0'/>0
+0<path d="M00,0h00l00,00v0,00 0,0,0-00,0l00,00a00,00 0,0,0 0-00000000000000c" l-r0='0'/>0
+0<path d="M00,0h00l00,00v0,00 0,0,0-00,0l00,00a00,00 0,0,0 0-00000000000000s" fill-rul-rul0='0'/>0
+0<path d="M00,0h00l00,00v0,00 0,0,0-00,0l00,00a00,00 0,0,0 0-00000000000000c" l-ul0='0'/>0<svg xmlns="000000000000000000000000" viewBox="0">
+0<path d="M00,0h00,00a0000000000000000000000000,00 0,0,0 0-0000000000000000c" e='0'/>0<path d="M00,0h00l00,00v0,00 0,0,0-00,0l00,00a00,00 0,0,0 0-00000000000000s" f='0'/>0
+0<path d="M00,0h00l00,00v0,00 0,0,0-00,0l00,00a00,00 0,0,0 0-00000000000000c" l-ul0='0'/>0
+0<path d="M00,0h00l00,00v0,00 0,0,0-00,0l00,00a00,00 0,0,0 0-00000000000000s" fill-rul-rul0='0'/>0
+0<path d="M00,0h00l00,00v0,00 0,0,0-00,0l00,00a00,00 0,0,0 0-00000000000000c" l-rule='0'/>0
+0<path d="M00,0h00,00a00,00 0,0,0 0-000000000000000000000000000000000000000c" fiule='0'/>0<path d="M00,0h00l00,00v0,00 0,0,0-00,0l00,00a00,00 0,0,0 0-00000000000000s" f='0'/>0
+0<path d="M00,0h00l00,00v0,00 0,0,0-00,0l00,00a00,00 0,0,0 0-00000000000000c" fill-rule='0'/>0
+0<path d="M00,0h00l00,00v0,00 0,0,0-00,0l00,00a00,00 0,0,0 0-0000000000000000s" fill-rul-rul0='0'/>0
+0<path d="M00,0h00l00,00v0,00 0,0,0-00,0l00,00a00,00 0,0,0 0-0000000000000000c" fill-rule='0'/>0</svg>
+0
+0<path d="M00,0h00,00a000000000,000000000000000000 0,0,0 0-0000000000000000c" f='0'/>0<path d="M00,0h00l00,00v0,00 0,0,0-00,0l00,00a00,00 0,0,0 0-0000000000000000s" f='0'/>0
+0<path d="M00,0h00l00,00v0,00 0,0,0-00,0l00,00a00,00 0,0,0 0-0000000000000000c" fill-rule='0'/>0
+0<path d="M00,0h00l00,00v0,00 0,0,0-00,0l00,00a00,00 0,0,0 0-0000000000000000s" fill-rul-rul0='0'/>0
+0<path d="M00,0h00l00,00v0,00 0,0,0-00,0l00,00a00,00 0,0,0 0-0000000000000000c" fill-rule='0'/>0</svg>
diff --git a/test/ns-afl-svg/1302.svg b/test/ns-afl-svg/1302.svg
new file mode 100644
index 0000000..e77286e
--- /dev/null
+++ b/test/ns-afl-svg/1302.svg
@@ -0,0 +1,66 @@
+<svg olns="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" grorm="0">
+0<stop stop-color="0" offset="4"/>
+0<stop slor="0" offset="7"/>
+0<stop stop-color="s0o0" offset=","/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop stop-color="#000" ot="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" fill="0"/>
+0<path d="00000000000000000000000000,00," fill="url(#py0ellow"/>0
+0<circle r="4" cx="0" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#00000000000000000000000000000000000000000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(# 5.35506,113.138110.875,108.65817 10.875,103.13818 C 10.87=01,97.6182 15.35506,93.13818 20.875L3,9,13,23c0,15-K,24-13,24l-35,0l0,3l23,0l0,9l0,0z M140179 07-34lue)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="M00,000000-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000l000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000,00" id="0000" style="fill: url(#000000" fill="url(#000e)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000 0000 000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000e)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l00,00000000000000000=00,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000e)"/>
+0<path d="M00,0U000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000,000000,000000-0-00000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000,000000000000000000,0000000000000000,000000000000 00-00 00000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000-0-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00000,00-00,00,00-00,000000,000,0000,000,0l0,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000e)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,0" style="fill: url(#000000" fill="url(#000e)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1303.svg b/test/ns-afl-svg/1303.svg
new file mode 100644
index 0000000..2956ab6
--- /dev/null
+++ b/test/ns-afl-svg/1303.svg
@@ -0,0 +1,72 @@
+<?l?><!DOCTYPE v0 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0a00' stroke='n0d'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='!' r='1' fill='y0`00w'/>0<circle cx='0' cy='0' r='5' fill='b0a00'/>0<circle cx='0' cy='0' r='1' fill='q0a00'/>0
+<path d='M0 00A00 0 0 0 0 00 00' stroke='black' strokg-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' widtK='0' height='0'
+fill='none' stroke='blue'/>">]>
+<svg width="px" height="30px" i="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g onsize="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport0;</g>
+0<g id="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="000"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg presctRatio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&L;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg p="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg ctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preservatio="0" vix="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&t0;
+0<svg presatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1304.svg b/test/ns-afl-svg/1304.svg
new file mode 100644
index 0000000..79d75ad
--- /dev/null
+++ b/test/ns-afl-svg/1304.svg
@@ -0,0 +1,111 @@
+<svg xmlns="0000000000" viewBox="0 0 0 0"><p00y0000kKKKKKKKKKKKKKKKKKK x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK0KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK f0ll="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK d="0" k="0" fill="0"/>0
+0<KKK-KKKKKKcKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<pKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" k="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" k="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKK0KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK0KKKKKKext d="0" k="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" k="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKCKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKVKKKKKKKKKK fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="n"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" k="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKK0KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" k="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKK0KKKKKKKKKext d="0" k="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" k="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" k="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKK0KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" k="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" k="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" k="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" k="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" k="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK0000000000000000000000000000000KKKKKKKKKKKKext d="0" k="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" k="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK0KKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" k="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" k="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" k="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKMKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" k="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK_KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKip0000000000000000000t ty="0" rx="0"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/1305.svg b/test/ns-afl-svg/1305.svg
new file mode 100644
index 0000000..c690b13
--- /dev/null
+++ b/test/ns-afl-svg/1305.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke: i0k00ape000ne" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1306.svg b/test/ns-afl-svg/1306.svg
new file mode 100644
index 0000000..99123cb
--- /dev/null
+++ b/test/ns-afl-svg/1306.svg
@@ -0,0 +1,120 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0f00lb'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='5' fill='b0a00'/>0<circle cx='0' cy='0' r='1' f='0'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]>
+<svg width="px" height="30px" ion="0" xmlns="0000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" w="0" height="0"
+fill="none" stroke="b0u0"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&Viewport2;</g>
+0<g id="0" height="px" ion="0" xmlns="0000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="b0u0"/>
+0<g f="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&r;</g>
+0<text x="0" y="0">0</text>0<svg presctRatio="0" viewBox="0 0 3 4" w="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" w="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="F" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg eserRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presctRatio="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg psANYatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g tF-00form="0"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport2;
+0<svg bectRatio="0" viewBox="0 0 0 0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" vix="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" vOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&r;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&r;
+0<svg preseAspectRaTio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1307.svg b/test/ns-afl-svg/1307.svg
new file mode 100644
index 0000000..840f4e3
--- /dev/null
+++ b/test/ns-afl-svg/1307.svg
@@ -0,0 +1,46 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="q0o00"/>0
+0<ccle r="0" x="0" c="0" o="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,000,00c0,0-0,00-00,00000000000000000000000000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000"/>0
+0<circle r="4" cx="u"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="u0y00llo00"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,00-20,100-00l0-0,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#0000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1308.svg b/test/ns-afl-svg/1308.svg
new file mode 100644
index 0000000..91f9778
--- /dev/null
+++ b/test/ns-afl-svg/1308.svg
@@ -0,0 +1,381 @@
+<svg xmlns="000000000000000000000000">
+0<defs>0<linearGradient id="pyYello0" m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="u0s00sch000es00" offset="0"/>
+0</linearGradient>
+0
+0</defs>0
+0<path d="0,00000000000000000000000000000000,000,00000,000000,0000,0000,0000,0000,00000,0000,00000000000000000,0000,0000000000,000,0,0000000000000000000000000000,000000,000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" id="0000" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000000"/>
+0<path d="M00,00c090-0,10-00,100,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" id="0000" e="0" fill="url(#0000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000,L0,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-000000000070000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#00000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-000000000070000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000000,00000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0l0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>
+0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00)"/>
+0<path d="M00,00c097-0,00-00,100,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0l0,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,00"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx=")"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c097-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#00)"/>
+0<path d="M00,00000000,?0000,0000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c097-0,10-00,100,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="#"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#00)"/>
+0<path d="M00,00c097-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCla r="0" fi="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,120-00l0-00c0-0,0-00,02-00l20,0c0,0,00-0,00-10l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,00-00,100,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c097-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,120-00l0-00c0-0,0-00,02-00l20,0c0,0,00-0,00-10l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#000000000"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1309.svg b/test/ns-afl-svg/1309.svg
new file mode 100644
index 0000000..68dd174
--- /dev/null
+++ b/test/ns-afl-svg/1309.svg
@@ -0,0 +1,34 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,00l00,00v00000h0000000000v0000" e="0" fill="n0n00e"/>0
+0<path d="M00,0000l00,00000r0"/>0
+0<path d="M00,00v00l000,000000-00" t="0" fill="n&lt;o00tex000nc0000"/>0
+0<path d="00000000000" stroke="#000" fill="n&lt;o00tex000nc0000"/>0
+0<path d="M00,0000l00,00v00l000,000000-00" stroke="#000" fill="n&lt;o00tex000nc0000"/>0
+0<path d="00" stroke="#000" fill="l0r0"/>0
+0
+0
+0<path d="M00,00v000z" stroke="#000" fill="n&lt;o00tex000nc0000"/>0
+0<path d="M00,0h00l00,00v00l000,0h000l000" stroke="#000" fill="n&lt;o00tex000nc0000"/>0
+0<path d="00000000000" stroke="#000" fill="n&lt;o00tex000nc0000"/>0
+0
+0<path d="M00,00v00l000,00h00v000z" stroke="#000" fill="l0r0"/>0
+0
+0
+0<path d="M00,00v0l000-00l000-00z" e="0" fV="0"/>0
+0<path d="M00,0h00l00,00v00l000,0h000l000" stroke="#000" fill="n&lt;o00tex000nc0000"/>0
+0<path d="00000000000" stroke="#000" fill="n&lt;o00tex000nc0000"/>0
+0<path d="M00,0h00l00,00v00l000,0h000l000" stroke="#000" fill="n&lt;o00tex000nc0000"/>0
+0<path d="00" stroke="#000" fill="l0r0"/>0
+0
+0
+0<path d="M00,00v000z" stroke="#000" fill="n&lt;o00tex000nc0000"/>0
+0<path d="M00,0h00l00,00v00l000,0h000l000" stroke="#000" fill="n&lt;o00tex000nc0000"/>0
+0<path d="00000000000" stroke="#000" fill="n&lt;o00tex000nc0000"/>0
+0<path d="M00,0h0000v00l000,0h000l000" stroke="#000" fill="n&lt;o00tex000nc0000"/>0
+0<path d="M00,0h0000-00000M0" fill="#000"/>0
+0<text x="0" y="0" t-e="0" fl="0"/>0
+0
+0<path d="M00,0h0000v00l000,0h000l000" stroke="#000" fill="n&lt;o00tex000nc0000"/>0
+0<path d="M00,0h0000-000A000" fill="#000"/>0
+0<text x="0" y="0" t-se="0" ll="0"/>0
+0<text x="0" y="0" t-ze="0" ll="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1310.svg b/test/ns-afl-svg/1310.svg
new file mode 100644
index 0000000..c5e1f82
--- /dev/null
+++ b/test/ns-afl-svg/1310.svg
@@ -0,0 +1,65 @@
+<?l?>
+<svg ersion="0" xmlns="00000000000000000000000000" xmlns:k="0" widtid="0" c="0" N="0" r="0" stroke="d0r00ric0"
+stroke-width="3" h="0" height="0" style="0" on="0">
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g d="0" fill="blue" style="0">
+0<circle d="0" cx="0" cy="0" r="5" stroke="d0r00ric0"
+stroke-width="3"/>
+0
+0<svg version="0" widtid="0" c="0" N="0" r="0" stroke="d0r00ric0"
+stroke-width="3" h="0" height="0" style="0" n="0">
+0<script e="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g d="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="00000000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg>0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/1311.svg b/test/ns-afl-svg/1311.svg
new file mode 100644
index 0000000..daea21c
--- /dev/null
+++ b/test/ns-afl-svg/1311.svg
@@ -0,0 +1,362 @@
+<svg xmlns="000000000000000000200000">
+0<defs>0<linearGradient id="pyYello0" a_m="0">
+0<stop stop-color="#000" s="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a00" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset=".4"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,00ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" x="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0000000000"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+0<path d="000000000000000000000000000" fill="url(#pyYello0)"/>0
+0<cirCle r="@" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c0000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,00..000000.00000000.0000000.000000C00000000000000000000000000000000000000000000000000000000000000000000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-20,104-00l0-00c0-0,0-00,10-12l04,0c0,0,00-0,04-10l0-00000000,00L000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0000000000000000000000000000000000000000000,,0c0,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-00-60.800,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="M00,00c0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fl="0"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,000-00l0-00c0-0,6-00,-00108000000 000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000000000"/>0
+0<cirCle r="4"/>0
+
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" cx="0" cy="0" fl="0"/>0
+0<path d="M00,00c00000,00000,00000000000c000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,10-00,020,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" cx="0" cy="0" fl="0"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" cx="0" cy="0" fl="0"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,000-00l0-00c0-0,6-00,-00108000000 000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<AirCle r="0" x="0" y="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" x="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="!" fl="0"/>
+0<circle r="4" cx="0" cy="0" fl="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,00..000,00000000 000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#r0000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" y="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-20,104-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0<path d="M00,00c000-0,00-20,004-00l0-00c0-0,6-00,-00108.600000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1312.svg b/test/ns-afl-svg/1312.svg
new file mode 100644
index 0000000..715a45d
--- /dev/null
+++ b/test/ns-afl-svg/1312.svg
@@ -0,0 +1,68 @@
+<?l?>
+<svg version="0" xmlns="00000000000000000000000000" xmlns:k="0" width="0" height="0" style="0" on="0">
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g d="0" fill="blue" style="0">
+0<circle d="0" cx="0" cy="0" r="5" stroke="s0g00ric0"
+stroke-width="3"/>
+0
+0<svg v="0" width="0" h="0" c="0" r="0" stroke="s0g00ric0"
+stroke-width="0"/>
+0
+0<svg i="0" t="0" style="0" on="0">
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g d="0" fill="blue" style="0">
+0<circle d="0" cx="0" cy="0" r="5" stroke="s0g00ric0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0
+0
+0<circle i="0" cx="0" cy="0" r="5" stroke="s0g00ric0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0</g>0</svg>0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/1313.svg b/test/ns-afl-svg/1313.svg
new file mode 100644
index 0000000..d853dac
--- /dev/null
+++ b/test/ns-afl-svg/1313.svg
@@ -0,0 +1,3 @@
+<svg xmlns="0000000000" viewBox="0">
+0<path d="0" stroke="0" fill="0"/><![CDATA[0
+0]]><0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1314.svg b/test/ns-afl-svg/1314.svg
new file mode 100644
index 0000000..ce2c34e
--- /dev/null
+++ b/test/ns-afl-svg/1314.svg
@@ -0,0 +1,18 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="stroke-width:001cm" transform="translate(00"/>
+0
+<circle cx="cm" cy="pt" r=":" transform=",0"/>0<circle cx="pc" r="1" style="fill:blue;stroke:black;stroke-width:001cm" transform="0"/>
+0
+0<circle cx="cm" cy="pt" r=":" transform=",0"/>0<circle cx="pc" r="a"/>
+0
+0<circle cx="cm" cy="pt" r=":" transform=",0"/>0<circle cx="pc" r="1" style="fill:blue;stroke:black;stroke-width:001cm" transform="translate(00"/>
+0
+0<circle cx="cm" cy="pt" r="1" style="fill:blue;stroke:black;stroke-width:000t0" transform="translate(0"/>
+0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1315.svg b/test/ns-afl-svg/1315.svg
new file mode 100644
index 0000000..0580dce
--- /dev/null
+++ b/test/ns-afl-svg/1315.svg
@@ -0,0 +1,115 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='i' fill='l0_00anc000ey'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00w'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='b0i00'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' otroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' width='0' height='0'
+fill='none' stroke='b0u0'/>">]><svg width="px" height="30px" n="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" he="0" fill="none" stroke="b0u0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g transform="00">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport0;</g>
+0<g id="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg presctRatio="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg preservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pspectRatio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g trHnsform="0"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" deight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg prbectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg ectRaTio="0" viewbox="0" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1316.svg b/test/ns-afl-svg/1316.svg
new file mode 100644
index 0000000..60e6328
--- /dev/null
+++ b/test/ns-afl-svg/1316.svg
@@ -0,0 +1,27 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="k" transform="translate(0"/>0<circle cx="cm" cy="cm" r="1" le="0" trarm="0"/>
+0<circle cx="c" cy="cm" r="1" style="fill:g0b00ck;stroke-width:001cm" t="0"/>
+0</g>0
+0
+0
+0
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="k" transform="translate(0"/>0<circle cx="cm" cy="cm" r="1" n="0" trarm="0"/>
+0<circle cx="c" cy="cm" r="1" style="fill:g0b00ck;stroke-width:001cm" t="0"/>
+0</g>0
+0
+0
+0
+0
+
+0<circle r="4" cx="0" cy="G" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1317.svg b/test/ns-afl-svg/1317.svg
new file mode 100644
index 0000000..1cfe88c
--- /dev/null
+++ b/test/ns-afl-svg/1317.svg
@@ -0,0 +1,357 @@
+<svg olns="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="pyYellow" rorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop op-c="0" offset="0"/>
+0<stop stop-color="a0s00s" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000,0000000000,0000,00000000000,0000,0000,000000000000,000000000000000000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" x="0" cy="0" l="0"/>
+0
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#00000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,000,0,00000000,000000,0000" fill="url(#00000)"/>
+0<pAth d="M00,00c0,000,00-00,000-000000000000000000n0000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" filf="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" p="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,000,00,000,0000,0l0,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000,00000000,000,0000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#000000)"/>0
+0
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,000,000000,000000000000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-60.870,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,020-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000e)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" x="0" y="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" x="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" y="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,100-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,00-10l0-0000,0c0,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" f="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" stylel="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,020-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1318.svg b/test/ns-afl-svg/1318.svg
new file mode 100644
index 0000000..97ac3d8
--- /dev/null
+++ b/test/ns-afl-svg/1318.svg
@@ -0,0 +1,57 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="000" width="0" height="5" id="0" sodipodi:ion="0" inkscape:von="0" sodipodi:docname="0" inkscape:ut_e="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<fr inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0</defs>0
+0
+0
+0
+0
+0
+0
+0
+0
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" ip-path="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke: i0c00cle000on0" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0
+0
+0<rect style="stroke: i0c00cle000on0" id="0" wd="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" ip-path="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke: i0c00cle000on0" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0
+0
+0<rect style="stroke: i0c00cle000on0" id="0" wd="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1319.svg b/test/ns-afl-svg/1319.svg
new file mode 100644
index 0000000..c4b3d59
--- /dev/null
+++ b/test/ns-afl-svg/1319.svg
@@ -0,0 +1 @@
+<svg ĉ="0">0<svg ĉ="0">0<svg ĉ="0">0<svg ĉ="0"><svg ĉ="0">0<svg ĉ="0">0<svvg ĉ="0">0<svg ĉ="0">0<svvg ĉ="0">0<svvg ĉ="0">0<svg ĉ="0">0<svvg ĉ="0">0<svg ĉ="0"><svg ĉ="0">0<svg ĉ="0">0<svvg ĉ="0">0<svg ĉ="0">0<svvg ĉ="0">0<svvg ĉ="0">0<svg ĉ="0">0<svvg ĉ="0">0<svg ĉ="0"><svg ĉ="0">0<svg ĉ="0">0<svvg ĉ="0">0<svg ĉ="0">0<svvg ĉ="0">0<svvg ĉ="0">0<svg ĉ="0">0<svvg ĉ="0">0<svvg ĉ="0">0<svvg ĉ="0">0<svg ĉ="0">0<svvg ĉ="0">0<svg ĉ="0">0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1320.svg b/test/ns-afl-svg/1320.svg
new file mode 100644
index 0000000..02fdb8b
--- /dev/null
+++ b/test/ns-afl-svg/1320.svg
@@ -0,0 +1,416 @@
+<svg xmlns="0000" fill="url(#pyYellow)" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" m="0">
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="#000" offset=","/>
+0
+0
+0
+0<path d="0" fill="0"/>0
+0<e r="0"/>
+0
+0<stop stop-color="#000" offset=".4"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" op-c="0" offset="0"/>
+0<stop stop-color="#000" e="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0000" ra_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" W="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="u0l0"/>
+0<path d="0" f="0"/>
+0
+0<stop r="0" f="0"/>
+0<stop st="0" f="0"/>
+0
+0<stop spor="0" f="0"/>
+0
+0
+0<stop r="0" offset="0"/>
+0
+0<stop r="0" offset="0"/>
+0<stop r="0" t="0"/>
+0
+0
+0<stop r="0" offset="0"/>
+0
+0<stop r="0" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="0"/>0
+0<e r="0" x="0"/><stop st="0" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop sr="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0-0,20,0,20,000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="0"/>
+0<pqth d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000000000000000000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000000000000000000000,0000000,000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0000" style="fill: url(#000" fill="url(#00000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,5,00-2,00l-50-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-00-60.005,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" vx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#00000)"/>
+0<paç0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 d=""/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0
+0<path d="00,0000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" ficy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" f="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-00c0-0,0-00,02-00l04,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#00000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,120,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" iill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#00000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,120-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-20,104-00l0-00c0-0,0-00,10-10l04,0c0,0,00-0,14-15l0-00l9,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-20,104-00l0-00c0-0,0-00,10-10l04,0c0,0,00-0,14-15l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" iill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="000,00000000,00000,000000000000000,0000,0000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<ci0Cle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,120,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-20,100-00l0-00c0-0,0-00,12-10l04,0c0,0,00-0,10-15l0-00l9,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,120-00l0-0B0000,0000,00000000,000,0,0000,000000000000,000,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" iill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,120,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1321.svg b/test/ns-afl-svg/1321.svg
new file mode 100644
index 0000000..8102174
--- /dev/null
+++ b/test/ns-afl-svg/1321.svg
@@ -0,0 +1,87 @@
+<svg xKs="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_orm="0">
+0<stop stop-color="#000" t="0"/>
+0<stop stop-color="000"/>
+0<stop st="0"/>
+0
+0<stop stop-color="#000" offset=".4"/>
+0
+0
+0<stop stop-color="#000" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0" gra_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="000000" offset="0"/>
+0
+0
+0<stop stop-color="url(#000000)" fill="0"/>
+0<path d="0" of="0"/>
+0
+0<stop or="0" of="0"/>
+0<stop sr="0" of="0"/>
+0
+0<stop st="0" of="0"/>
+0
+0
+0<stop sr="0" ot="0"/>
+0
+0<stop sr="0" ot="0"/>
+0<ì000 t=""/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient></defs>0
+0<path d="0"/>0
+0<circle r="0" cx="0"/><stop st="0" et="0"/>
+0
+0<stop stolor="0" ot="0"/>
+0<stop stop-c="0" et="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="000,0000000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000 00-00-00 00-00 000-00 0000-000000 00.00000.00000 0" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="000,00000000000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="H" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-00-00,0000 00.000000.0000000000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0A000000,00000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-04-6-00100.0000000000000000000000000000000000000000000000000000000000000000000-00" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#0000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="M00,00c0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="M00,00c00000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1322.svg b/test/ns-afl-svg/1322.svg
new file mode 100644
index 0000000..25b3e31
--- /dev/null
+++ b/test/ns-afl-svg/1322.svg
@@ -0,0 +1,5 @@
+<svg ootì="0">0
+0<defivg ootì="0">0
+0<defs>0
+0<defivg ootì="0">0
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1323.svg b/test/ns-afl-svg/1323.svg
new file mode 100644
index 0000000..858f182
--- /dev/null
+++ b/test/ns-afl-svg/1323.svg
@@ -0,0 +1,2 @@
+<svg xmlns="0000000000" viewBox="0 0 3 7">
+0<path d='M0,00t00,00 0,0,0-00,000a00,0000,0,000000' fill='#000000' l-rule='0'/>0</svg>
diff --git a/test/ns-afl-svg/1324.svg b/test/ns-afl-svg/1324.svg
new file mode 100644
index 0000000..8c9ef3c
--- /dev/null
+++ b/test/ns-afl-svg/1324.svg
Binary files differ
diff --git a/test/ns-afl-svg/1325.svg b/test/ns-afl-svg/1325.svg
new file mode 100644
index 0000000..2f8d799
--- /dev/null
+++ b/test/ns-afl-svg/1325.svg
@@ -0,0 +1,2 @@
+<svg viewBox='0 0 6 2' xmlns='0000000000000000000000000000000000000000000' fill='s0l00tex000nc00000' stroke='0'>
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,0,0h000c00,0-0,0,0,0h00c0,0,0,0,0,0h000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0,0,00c0,0,00,00,00,00000,000,00000' fill='s0l00tex000nc00000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/1326.svg b/test/ns-afl-svg/1326.svg
new file mode 100644
index 0000000..4d0c452
--- /dev/null
+++ b/test/ns-afl-svg/1326.svg
@@ -0,0 +1,2 @@
+<svg xmlns="0000000000" iQwBox="0">
+0<path d='M00,00t00,00 0,0,0-00,00 0000000000-00' fill='#000000' ll-rule='0'/>0</svg>
diff --git a/test/ns-afl-svg/1327.svg b/test/ns-afl-svg/1327.svg
new file mode 100644
index 0000000..ec54e6f
--- /dev/null
+++ b/test/ns-afl-svg/1327.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:black;stroke-width:1cm" transform="translate(0,00)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:1cm" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:b0a00a;stroke-width:001cm" transform="0,0000"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1328.svg b/test/ns-afl-svg/1328.svg
new file mode 100644
index 0000000..df00d7f
--- /dev/null
+++ b/test/ns-afl-svg/1328.svg
@@ -0,0 +1,123 @@
+<?l?><!DOCTYPE v0 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c00lba000dt0' stroke='red'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' f='0'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" on="0" xmlns="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="b0u0"/>
+0<g fze="0">
+0<text x="0" y="0">0</text>
+0<g transform="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport2;</g>
+0<g id="0" height="px" ion="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g fze="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&r;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport2;</g>
+0
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg xro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&p;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg Asp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&t;
+0<svg pro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&t;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg Aso="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>0&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" ew="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg prt="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4"
+id_h="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport2;
+0<svg tiv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pspecBox="0" width="0" height="0">0
+0&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g trL="0"><text y="0">0</text>&V;
+0<svg prt="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" t="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" vix="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&t;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&t0;
+0<svg preRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1329.svg b/test/ns-afl-svg/1329.svg
new file mode 100644
index 0000000..2a28367
--- /dev/null
+++ b/test/ns-afl-svg/1329.svg
@@ -0,0 +1,85 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_rm="0">
+0<stop stop-color="#00
+"/>
+0
+0<stop stop-color="url000000000" fill="0"/>
+0<path d="0" f="0"/>
+0
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>0
+0
+0<stop stop-color="#000" offset=".4"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0" gra_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="url000000000" fill="0"/>
+0<path d="0" of="0"/>
+0
+0<stop or="0" of="0"/>
+0<stop stolor="0" of="0"/>
+0
+0<stop or="0" of="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0<stop or="0" et="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="0"/>0
+0<circle r="0" cx="0"/><stop st="0" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="r"/>
+0<path d="00000000000000000000000" fill="url0000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l0000000-000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c00000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<pLth d="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000000000c00000,00000,000000,000,0l00,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,0000000X,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1330.svg b/test/ns-afl-svg/1330.svg
new file mode 100644
index 0000000..1cf69e2
--- /dev/null
+++ b/test/ns-afl-svg/1330.svg
@@ -0,0 +1,8 @@
+<svg xmlns="00" viewBox="0 0 1 8">
+0<path d="M0,0h00c00,0-00,00,0,00h000zM00,00a00,00 0,0,0 00,0zM000,0c0,0,0,0,0,00v00h000c0,00,00,00,00,00l00,00s0000000000000000000000000000000000000000000-000 00 0 00-0 00-000-00-000 00-000 000-000 000 000 000 000 000 00 000-000 000-000 000-000 000
+000 000 000-00 0000-00 000-00 0000-00-000-00-000 00-000 000-000 0000-000
+000 0-00 00-000 00-000 0-000 0-000-0-000-0-00-0-00-0-000-00-00-0-00-00-000-00-000-00-000-000-000-00-000-000-000-00-000
+00-000 00-000-00-000-00-000-00-000 00-000 00 0 00-0 00-000-00-000 00-000 000-000 000 000 000 000 000 00 000-000 000-000 000-000 000
+000 000 000-00 0000-00 000-0000000000000000000000000000000000000000000000000-00 000-00 0000000000-0"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0000 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,00"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(000,0000)"
+fill="#000" opacity="0"/>0<ellipse rx="5" ry="2" transform="rotate(0-00 0000,000" fill="#000"
+opacity="0"/>0</svg>
diff --git a/test/ns-afl-svg/1331.svg b/test/ns-afl-svg/1331.svg
new file mode 100644
index 0000000..232cb8c
--- /dev/null
+++ b/test/ns-afl-svg/1331.svg
@@ -0,0 +1,65 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" et="0"/>
+0<stop stop-color="000"/>
+0<stop st="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0" ra_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="000000" offset="0"/>
+0
+0
+0<stop stop-color="url(#000000)" ll="0"/>
+0<ph d="0" of="0"/>
+0
+0<stop or="0" of="0"/>
+0<stop sr="0" of="0"/>
+0
+0<stop stopor="0" of="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0<stop or="0" et="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient></defs>0
+0<th d="0"/>0
+0<circle r="0" cx="0"/><stop st="0" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" ofhset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0,00,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000,0,0000,0000,00000,000000,0000000000000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,0000000X,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1332.svg b/test/ns-afl-svg/1332.svg
new file mode 100644
index 0000000..2d228d5
--- /dev/null
+++ b/test/ns-afl-svg/1332.svg
@@ -0,0 +1,41 @@
+<svg s="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="py0ellow" orm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="q0s00p" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000,0000,000,000,0000000,0000" fill="url(#py0ellow"/>0
+0
+
+0<circle r="4" cx="0" cy="M" fill="#000"/>
+0
+0<path d="M00,00c090-0,00-03,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="00" style="fill: url(#00000" fill="url(#00000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,000,00000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000,000000,00000000000000,000" filf="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000-00-00 00-00 000-00 0000-00 000-000 000-0000000000000000000000000000000000000 00000000,00000000 000000,0000000000" id="00" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,104-00l0-22c0-7,0-10,10-00l20,0c0,00,000,0000,0l0,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000,00000000,000,0000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="00" style="fill: url(#000000" fill="url(#000000)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0/0000,000000000000,000,0,0000,0000,00000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" filf="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-00000000000000000000000000000000000000000000000000000,0000000000" id="00" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" p="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,00,000,0000,0l0,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="00" style="fill: url(#r;"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1333.svg b/test/ns-afl-svg/1333.svg
new file mode 100644
index 0000000..7ce1a90
--- /dev/null
+++ b/test/ns-afl-svg/1333.svg
@@ -0,0 +1,386 @@
+<svg xmlns="00" o="0">
+0<defs>
+0<linearGradient id="pyYello0" gradientTransform="rotate(0 00,00)">
+0<stop stop-color="#000" offset="-6"/>
+0<stop stop-color="a0e00" offset=","/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop p-c="0" t="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" fill="0"/>
+0<path d="0000000000000000000000000000" x="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<path d="00000000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000-00 00-00 00000000000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#00000" fill="url(#0e)"/>0
+0<path d="M00,00c00000,00-00,000-0000000000000000000000000 0000000000000000000000000000000" fill="#000000"/>
+0<path d="00000" fill="u0e0"/>
+0<path d="M00,00c00000000000-0-00000000000 000000,0000000000000000000000000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="0000000000000000000000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>
+0
+0<path d="M00,00c0,00000000000-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYello0)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="0" fill="url(#0000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c00000,00000,000-000000000-000000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<paZh d="0" id="0004" style="0"/>
+0<path d="000,00000000,00000,000,00000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0l0,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,000,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>
+0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#0y)"/>
+0<path d="M00,00c000-0,00-00,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00000,00000,000-00000000000,0000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx=")"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-0000000c000,0000,0000000000000000000,00000000000000000000,0000000 00000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="0" fy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#0" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYello0)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<ci r="0" cx="0" fill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="0" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYello0)"/>0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#000000000"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1334.svg b/test/ns-afl-svg/1334.svg
new file mode 100644
index 0000000..805be62
--- /dev/null
+++ b/test/ns-afl-svg/1334.svg
@@ -0,0 +1,30 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(0)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00,000000,000000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,0000000000000000000000000500000000000000000000000000000000000000,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,00,0,00,0000,0000,00000,000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,10-20,120,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0004" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1335.svg b/test/ns-afl-svg/1335.svg
new file mode 100644
index 0000000..e2c81f9
--- /dev/null
+++ b/test/ns-afl-svg/1335.svg
@@ -0,0 +1,9 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:f0l00gre00;stroke-width:001cm" transform="translate(000,000)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1336.svg b/test/ns-afl-svg/1336.svg
new file mode 100644
index 0000000..d6ebbdf
--- /dev/null
+++ b/test/ns-afl-svg/1336.svg
@@ -0,0 +1,62 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='red'/>0<g transform='translate(0,0)'>0<circle cx='0' cy='0' r='1' fill='y0l00sch000o'/>0<circle N='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' f='0'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t "">
+<!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" ion="0" xmlns="0000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" t="0"/>
+0<g f="0">
+0<text x="0" y="0">0</text>
+0<g t="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&r;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport2;</g>
+0<g d="0" height="px" ion="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" w="0" height="0"
+fill="none" stroke="b0u0"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport2;</g>
+0
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0</g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg ptRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presetRatio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&t0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&t0;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1337.svg b/test/ns-afl-svg/1337.svg
new file mode 100644
index 0000000..c2421e2
--- /dev/null
+++ b/test/ns-afl-svg/1337.svg
@@ -0,0 +1,15 @@
+<svg xmlns="00000000000000000000000000" id="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient x1=".085" y1=".085" x2=".915" y2=".915" id="0pen0earchg">
+0<stop offset="0" xml:d="0" stop-color="#000000" p="0"/>
+0<stop offset=".5" stop-color="#000000" s0="0"/>
+0<stop offset="1" stop-color="#000000" o0="0"/>
+0</linearGradient>
+0</defs>
+0<g transform="scale(9)">
+0<rect width="0" height="0" r0="0" ry="0" x="0" y="0" fill="#000000"/>
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="#000000"/>
+0<rect width="236" height="236" rx="0" ry="0" x="0" y="0" fill="url(#0pen0earchg)"/>
+0<path fill="none" stroke="#000" stroke-width="6" d="M0 0A0 0 0 0 0 0,0A0 0 0 0 0 0 00z" transform="matrix(0,0,0,6,0,0)"/>
+0<rect fill="#000" stroke="none" width="0" height="0" x="0" y="0" transform="matrix(0..0.0,7,0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1338.svg b/test/ns-afl-svg/1338.svg
new file mode 100644
index 0000000..0bd0dca
--- /dev/null
+++ b/test/ns-afl-svg/1338.svg
@@ -0,0 +1 @@
+<svg width="0" height="0" id="0" y="0"><g><g><path fill-rule="0" clip-rule="0" fill="#000000" d="M0,0v0h00z M00,00H0V0h0V00z H0v0h000z M0,0H0v0h0V0z M0,0H0v0h0V0z"/><a/></g></g></svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/1339.svg b/test/ns-afl-svg/1339.svg
new file mode 100644
index 0000000..7ef9ad3
--- /dev/null
+++ b/test/ns-afl-svg/1339.svg
@@ -0,0 +1,202 @@
+<?l?>
+<!DOCTYPE Ú0 PUBLIC "0" "0">
+<svg xmlns="0000000000">
+0<style e="0" oke-width="0"/>
+0<path d="M0,0000,000000000"/>
+0<path d="M00,000000000,000"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" l="0"/>0
+0<KfKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<pKKKKKMKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" e="0" l="0"/>0
+0<KKKKKmKKKKKKKKKpath d="0" l="0"/>0
+0<toxt x="0"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" ll="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" ll="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" ll="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKmKKKKMKKKKKKKKKpaKKKKKKKKKKKHKKext d="0" ke="0" qill="0"/>0
+0<KKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKOKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="n"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" finl="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<toxt x="0"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKmKKKKMKKKKKKKKKpaKKKKKKKKKKKHKKext d="0" ke="0" qill="0"/>0
+0<KKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKOKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKQKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKSKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKQKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKPKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK_KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLLLLKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<pKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<toxt x="0"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKmKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKLLLLLLLLLLLt ty="0" rx="0"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/1340.svg b/test/ns-afl-svg/1340.svg
new file mode 100644
index 0000000..bd29eb0
--- /dev/null
+++ b/test/ns-afl-svg/1340.svg
@@ -0,0 +1,15 @@
+<svg s="0" viewBox="0 0 0 0">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="-6"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0<linearGradient d="0" Transform="0">
+0<stop stop-color="0" offset="0"/>
+0<stop stop-color="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,06c0-7,0-13,24-13c0,0,,00,c0,00,0,00,000,0000,000,000,000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="60" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" cy="0" fill="000000000000000000000"/>0</svg>
diff --git a/test/ns-afl-svg/1341.svg b/test/ns-afl-svg/1341.svg
new file mode 100644
index 0000000..a2cf11e
--- /dev/null
+++ b/test/ns-afl-svg/1341.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0">
+0<path d="M0,0h0l0,0v0l0,0h0l0-0v0?" stroke="#000" fill="n0n00goe000"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l" fill="#000"/>0
+0<text x="0" y="0" t-se="0" fill="0" tt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1342.svg b/test/ns-afl-svg/1342.svg
new file mode 100644
index 0000000..672568f
--- /dev/null
+++ b/test/ns-afl-svg/1342.svg
@@ -0,0 +1,150 @@
+<svg xmlns="0000000000" o="0" n="0">
+0<script e="0"><![CDATA[
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0
+0
+0
+0
+0
+0
+<circle d="0" cx="0" cy="0" r="5" stroke="f0r00rk"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0
+0
+0<script e="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0
+0
+0
+0
+0
+0
+0<circle d="0" cx="0" cy="0" r="5" stroke="f0r00rk"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0
+0
+0<script e="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0
+0<script e="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0
+0
+0
+0
+0
+0
+0<circle d="0" cx="0" cy="0" r="5" stroke="f0r00rk"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0
+0
+0<g d="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0r00rk"
+stroke-width="3"/>
+0<text x="0" y="V">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/1343.svg b/test/ns-afl-svg/1343.svg
new file mode 100644
index 0000000..8259cbb
--- /dev/null
+++ b/test/ns-afl-svg/1343.svg
@@ -0,0 +1,79 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style type="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="0" cy="cm" r="1" style="fill:red;stroke:black;stroke-width:00000000)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0f00lba000ke000000;" transform="translate(0,00)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:t0a00;stroke-width:001cm" m="0"/>
+0<circle cx="G" cy="cm" r="1" style="fill:g0f00lba000ke000000;stroke-width:001cm" transform="translate(000,0)"/>
+0</g>0
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&S;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&V;</g>
+0<g id="0" t="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg t="0" viewBox="0 0 0 0"
+th="0" height="0">&e;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 0 0" h="0" ht="0">&e;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pre="0" viewBox="0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&t;
+0<svg tio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&t;
+0<svg tio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&t;
+0<svg pro="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&L;
+0<svg tio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&S;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&V;
+0<svg preservatio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&V;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t;
+0<svg tio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg pspectRatio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preservatio="0" viewBOx="0" width="D" height="0">&S;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t;
+0<svg presctRatio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&t;
+0<svg presatio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1344.svg b/test/ns-afl-svg/1344.svg
new file mode 100644
index 0000000..288816d
--- /dev/null
+++ b/test/ns-afl-svg/1344.svg
@@ -0,0 +1,2 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M0,00q0-00,00-00q0-00,00-00q0-0,0-0q0-0,00-0q0,00-00,00q000,00-00,00q00,0-0,00q00,0-0,0q00,0-0-0q00-0-0-0q00-0-00-00q00-0-0-0q0-0,0-0t0-0,0-0,0000" fill="000"/>0</svg>
diff --git a/test/ns-afl-svg/1345.svg b/test/ns-afl-svg/1345.svg
new file mode 100644
index 0000000..b2289fc
--- /dev/null
+++ b/test/ns-afl-svg/1345.svg
@@ -0,0 +1,387 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="r0r"/>
+0<stop st="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop st="0" offset="0"/>
+0
+0<stop stop-color="#000" t="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,0c0,0-0,00-00,00ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" x="0"/>
+0<path d="000000000000000000000000000" fill="url(#0000)"/>0
+0<cirCle r="4" x="0" cy="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" e="0" fill="#000"/>
+0<circle r="" cx="0" x="0" style="fill: m0l00rad000" fill="url(#00000"/>
+0<parh d="0" ll="0"/>0
+0
+0
+0<path d="000000000000000000000000000000000000000000" fill="0000"/>
+0<path d="M00,00c00000000000-0-00000000000 000000,00000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-00000000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-00000000010000000000000000000000000000000000000 0000000000000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-00000000010000000000000000000000000000000000000 0000000000000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" x="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,00"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="000,0000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l000000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" ll="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,00-00l20,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" _x="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" ll="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000ac000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" il="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="" fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#0000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<patN d="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<pa y="0" fill="0"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1346.svg b/test/ns-afl-svg/1346.svg
new file mode 100644
index 0000000..74eed1b
--- /dev/null
+++ b/test/ns-afl-svg/1346.svg
@@ -0,0 +1,113 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='k0a00' stroke='red'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='y0l00y'/>0<circle Nx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='b0u0'/>">]><svg width="px" height="30px" ion="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="l0e"/>
+0<g fonte="0">
+0<text x="0" y="0">0</text>0<g transform="00">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g tranVform="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&Viewport2;</g>
+0<g d="0" transform="translate(0 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,@0"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" t="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport2;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0</g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform=",000"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport2;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport2;
+0<svg prbectRatio="0" viewBox="0 0 0 0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewGox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg preseAspectRaTio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1347.svg b/test/ns-afl-svg/1347.svg
new file mode 100644
index 0000000..0eb231d
--- /dev/null
+++ b/test/ns-afl-svg/1347.svg
@@ -0,0 +1,385 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" a_m="0">
+0<stop stop-color="k0_0" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#00$" t="0"/>0
+0<stop stop-color="#000" offset=".4" y="0" fill="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="C"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="r000000000" fill="0"/>
+0<path d="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-000,00,0-0,000,0000" fill="url(#0"/>
+0<path d="M00,00c000-0,00-00,000,0000-0000000000000000000000000000000000"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#r0000" fill="url(#00000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000000000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-000000000100000000000000000000000000000000000000.0000000.0000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#00000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<path d="M00,00c0,00-200-00-0-000000001000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000c000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000c000000c000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#00=00"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-00100.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-00c0-0,0-00,02-00l04,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<jath d="0" fill="0"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000ac000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-00100.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="" fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,000000000000000d,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1348.svg b/test/ns-afl-svg/1348.svg
new file mode 100644
index 0000000..26d1aaf
--- /dev/null
+++ b/test/ns-afl-svg/1348.svg
@@ -0,0 +1,48 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gra_ieorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="000" t="0"/>0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,00,00c0,0-0,00-00,0000000000000000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="0000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,10-20,100,00v0" fill="url(#py0ellow)"/>0
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c00000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c00000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1349.svg b/test/ns-afl-svg/1349.svg
new file mode 100644
index 0000000..2c3cf90
--- /dev/null
+++ b/test/ns-afl-svg/1349.svg
@@ -0,0 +1,40 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a0" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,0,00c0,0-0,00-00,000000000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c097-8,13-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l00000000000000000000000000000000000,000000000000000000000000000=00000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000%00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,000#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c00000000000000000000000000000000000000000000000M00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,000000000?0000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1350.svg b/test/ns-afl-svg/1350.svg
new file mode 100644
index 0000000..0905d4c
--- /dev/null
+++ b/test/ns-afl-svg/1350.svg
@@ -0,0 +1,6 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0-00v0z" ststroke="0" fill="n&lt;o00oex000np0000"/>0
+0<path d="M0,0h0l0,0l" stroke="#000" fill="n&lt;o00tex000nc0000"/>0
+0<path d="M0,0h0l0,0v0l0,0l0-0l0-0v0z" ststroke="0" fill="n&lt;o00oex000nc0000"/>0
+0<path d="M0,0h0l0,0,0" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" l="0" t-r="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1351.svg b/test/ns-afl-svg/1351.svg
new file mode 100644
index 0000000..c101c03
--- /dev/null
+++ b/test/ns-afl-svg/1351.svg
@@ -0,0 +1,96 @@
+<svg ivox='0' xmlnBox="0">
+0<defs>0<linearGradient id="py0ello0" gra_ieorm="0">
+0<stop stop-color="#00" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="000" et="0"/>
+0
+0<stop stop-color="#000" offset=".4"/>
+0
+0<stop stop-color="000" onfset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="="/>
+0
+0<stop stop-color="#000" Tffset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l00,0c000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,000000000?0000000000000" fill="url(#py0ello0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000-00-00 00-00 0000000000000000000000000000000000 0" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000000000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,0000 000000,000000000000000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c00000000000000000-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000000000000000000000000000 0" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ello0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-22c0-0,0-12,10-10l24,0c0,0,00-0,14-10l0-10l9,0c000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="url(#py0ello0)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ello0)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#00000"/>
+0<path d="000000000000000000000000000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'00000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#0000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" x="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fiRl="0"/>
+0<path d="M00,00c0,00-200-04-6-000080000000000000,0000000000000000000000000" cx="0" cy="0" fill="url(#py0ello0)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ello0)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ello0)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1352.svg b/test/ns-afl-svg/1352.svg
new file mode 100644
index 0000000..c0e31be
--- /dev/null
+++ b/test/ns-afl-svg/1352.svg
@@ -0,0 +1,385 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" rorm="0">
+0<stop stop-color="0" offset="4"/>
+0<stop or="0" offset="7"/>
+0<stop stop-color="s0o00tra000or0" offset=","/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop stop-color="#000" ot="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" ll="0"/>
+0<path d="00000000000000000000000000000," fill="url(#pyYellow"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000000000000000000000000 0000000000000000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#00000000000000000000000000000000000000000,000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" ll="0"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000,00,0000,c00000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000-0-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" iill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," ficy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" ilx="0"/>0
+0<cirCle r="#"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000a0000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fSll="0"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1353.svg b/test/ns-afl-svg/1353.svg
new file mode 100644
index 0000000..272c6a1
--- /dev/null
+++ b/test/ns-afl-svg/1353.svg
@@ -0,0 +1,61 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='red'/>0<g transform='translate(0,0'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='b0i00'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='n0s0' stroke='blue'/>">]><svg width="px" h="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" he="0" fill="none" se="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g m="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport2;</g>
+0<g id="0" transform="translate(0,000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg o="0" ox="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg ro="0" x="0"
+id="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg io="0" ox="0"
+id="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg p="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg pserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(00,0)"><text y="/">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="/">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg prtRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1354.svg b/test/ns-afl-svg/1354.svg
new file mode 100644
index 0000000..7e6b2f4
--- /dev/null
+++ b/test/ns-afl-svg/1354.svg
@@ -0,0 +1,10 @@
+<s xmlns="000000000000000000" Box="0">
+0<h d="0" stroke="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><a/>0
+0<path d="0" stroke="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><a/><![CDATA[0]]></text>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><a/><![CDATA[0]]]]></text>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><a/><![CDATA[0]]
+0
diff --git a/test/ns-afl-svg/1355.svg b/test/ns-afl-svg/1355.svg
new file mode 100644
index 0000000..13f4167
--- /dev/null
+++ b/test/ns-afl-svg/1355.svg
@@ -0,0 +1,50 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" grorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" t="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000-0l0000000000000" fill="url(#0000)"/>
+0<path d="M00,00c0,0-8,0E000,020-1000M00c000,0000,00000000,000,0,000000,0000000000000,0,00000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<cie r="0" x="0" y="0" fill="0"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000000000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,000000000000000000000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#00000000000000000000000000000000000000000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,00000000,00000000000000000000,0000000000000000,0000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1356.svg b/test/ns-afl-svg/1356.svg
new file mode 100644
index 0000000..f737e22
--- /dev/null
+++ b/test/ns-afl-svg/1356.svg
@@ -0,0 +1,61 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a00iew000"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0-0,00,0,00,,00c0,0-0,00-00,0000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="M00,00c00000,000000000000000000000000000000000000000=00,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#000000"/>
+0<path d="M00,00c000-0,00-20,004,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,00-20,004000000,000,0000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cp="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,00-20,000-00l0-22c0-0,0-12,02-00000000000000,000,00,000,0000,0l0,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000,00000000,000,0000,00,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: urn00rad00" fill="url(#0000)"/>0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00000@00000,0000,00000000,000,000000,000000000000,000,0,0000,0000,00000,000000,000,0000,00000000000000000000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" ff="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cp="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,00-20,004-00l0-22c0-0,0-12,02-00l00,!00,00,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-8,10-20,020,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0
+0<path d="000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1357.svg b/test/ns-afl-svg/1357.svg
new file mode 100644
index 0000000..8814356
--- /dev/null
+++ b/test/ns-afl-svg/1357.svg
@@ -0,0 +1,43 @@
+<svg s="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="000000000000000000000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00000-00c0,000000000000000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000=00,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,00-20,120,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c00000,00000,00000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000000000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" i="0" style="fill: m0l00rad000" fill="url(#00000"/>
+0<parh d="0" l="0"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000i0000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000000000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" ix="0" style="fill: m0l00rad000" fill="url(#00000"/>
+0<parh d="0" il="0"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,0000000000000000000000000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00,0,000000000000000000000000000000i0000000,00000000000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000000000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" ix="0" style="fill: m0l00rad000" fill="url(#00000"/>
+0<parh d="0" ll="0"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00,0,000000000000000000000000000000i0000000,00000000000000000000000,00000000000000000000000000000000000,0000000,000000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000000000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" ix="0" style="fill: m0l00rad000" fill="url(#00000"/>
+0<parh d="0" f="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1358.svg b/test/ns-afl-svg/1358.svg
new file mode 100644
index 0000000..61a869a
--- /dev/null
+++ b/test/ns-afl-svg/1358.svg
@@ -0,0 +1,9 @@
+<svg olnr="0" Box="0">
+0
+<svg xmlns="0000000000">
+0<xmlns>
+0
+0
+0<linearGradienBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBt id="0">
+0<stop id="0" offset="0" style="0"/>
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1359.svg b/test/ns-afl-svg/1359.svg
new file mode 100644
index 0000000..26445a9
--- /dev/null
+++ b/test/ns-afl-svg/1359.svg
@@ -0,0 +1,10 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000">0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="R" r="1" style="stroke:black;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:b0j0;stroke:black;stroke-width:1cm" le="0" transform="translate(0,0)"/>0<circle cx="cm" cy="cm" r="1" style="fill:b0j0;stroke:black;stroke-width:1cm" transform="translate(0,0)0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:b0j0;stroke:black;stroke-width:001cm" ttyle="0" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1360.svg b/test/ns-afl-svg/1360.svg
new file mode 100644
index 0000000..bcdde3f
--- /dev/null
+++ b/test/ns-afl-svg/1360.svg
@@ -0,0 +1,3 @@
+<vg ìå000000="0"><vg ìå00000000="0"><vg ìå00000000="0">0<svg ìå00000000="0">0<vg ìå00000000="0">0<svg ìå00000000="0">0<svg ìå00="0"><svg ìååååååååååååååå="0">0<svg ìå00000000="0"><svg ìå00000000="0">0<svg ìå00000000="0">0<vg ìå000000="0">0<svg ìå00000000="0">0
+<svg ìå00000000="0">0<lvg ìå00000000="0"><svg ìå00000000="0">0<svg ìå00000000="0">0<vg ìå00000000="0">0<svg ìå000000="0">0<svg ìå00="0"><svg ìååååååååååååååå="0">0<svg ìå00000="0">0<svg ìå00000000="0">0<vg ìå00000000="0">0<svg ìå00000000="0">0
+<vg ìå00000000="0">0<svg ìå00000000="0">0<vg ìå00000000="0">0<svg ìå00000000="0"><vg ìå00000000="0">0<svg ìå00000000="0">0<vg ìå00000000="0">0<svg ìå00000000="0">0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1361.svg b/test/ns-afl-svg/1361.svg
new file mode 100644
index 0000000..39a5177
--- /dev/null
+++ b/test/ns-afl-svg/1361.svg
@@ -0,0 +1,21 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">0<path d="M0,0000l00,000z" stroke="s0q0" fill="n0e0"/>0
+0
+0<path d="M00,0000l00,000z" stroke="s0q0" fill="n0e0"/>0
+0<path d="M00,0h0z" fill="#K00"/>0
+0<path d="l000-00z" stroke="s0q0" fill="n0e0"/>0
+0<path d="M00,0000l000-00z" fill="#K00"/>0
+0<path d="M00,0l000,00h000l000-00v000z" stroke="s0q0" fill="n0e0"/>0
+0<path d="M0000,00l000-00v000z" fill="#K00"/>0
+0<text x="0" y="0" oe="0" fl="0" t="0"><![CDATA[0]]></text>
+0<path d="M00,0000h000l000-00v000z" stroke="s0q0" fill="n0e0"/>0
+0<path d="M00,0h00l000-00z" fill="#K00"/>0
+0<path d="l000-00z" stroke="s0q0" fill="n0e0"/>0
+0<path d="M00,0h00l000-00z" fill="#K00"/>0
+0<path d="M00,0000000v000z" stroke="s0q0" fill="n0e0"/>0
+0<path d="M0000,00l000-00v000z" fill="#K00"/>0
+0<text x="0" y="0" t-se="0" ll="0" t-ar="0"><![CDATA[0]]></text>
+0<path d="M00,0h00l0000000000000000-00l000-00v000z" stroke="s0q0" fill="n0e0"/>0
+0<path d="M00,0h000000000000000000l000-00v000z" fill="#K00"/>0
+0<text x="0" y="0" t-="0" fl="0"/>0
+0<path d="M00,0h00l00,00000l000,00l000-00v000z" fill="#K00"/>0
+0<text x="0" y="0" t-e="0" fl="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1362.svg b/test/ns-afl-svg/1362.svg
new file mode 100644
index 0000000..c22acfb
--- /dev/null
+++ b/test/ns-afl-svg/1362.svg
@@ -0,0 +1,157 @@
+<?l?>
+<svg ion="0" xmlns="000" height="0" style="0" on="0">
+0<script ype="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" e="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0a00ebr000"
+troke-W="0"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0
+0
+0
+0<script ype="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0a00ebr000"
+stroke-width="3"/>0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0
+0
+0
+0<script ype="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">0<circle id="0" cx="0" cy="0" r="5" stroke="f0a00ebr000"
+stroke-width="3"/>0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0
+0
+0
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0a00ebr000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/1363.svg b/test/ns-afl-svg/1363.svg
new file mode 100644
index 0000000..64bd66f
--- /dev/null
+++ b/test/ns-afl-svg/1363.svg
@@ -0,0 +1,42 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="w0m0" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,0,00c0,0-0,00-00,000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="00000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c097-8,03-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l00000000000000000000000000000000000,0l0,0l00,000000000000000000=00000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,03-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c00000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1364.svg b/test/ns-afl-svg/1364.svg
new file mode 100644
index 0000000..723553d
--- /dev/null
+++ b/test/ns-afl-svg/1364.svg
@@ -0,0 +1,42 @@
+<svg xmlns="00" viedBox="0">
+0<defs>
+0<linearGradient id="py0ello0" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop t="0" e="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop t="0" e="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0,0-0,00-00,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ000000000000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="0000,00000,00,0,0000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c097-8,10-20,100,00v0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,0000000X,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1365.svg b/test/ns-afl-svg/1365.svg
new file mode 100644
index 0000000..5445bb1
--- /dev/null
+++ b/test/ns-afl-svg/1365.svg
@@ -0,0 +1,140 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='red'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='y0d00'/>0<circle Nx='0' cy='0' r='b'/>0<circle cx='0' cy='0' r='1' fill='o0i00'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' otroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='mm' width='0' height='d'
+fill='n0s0' stroke='blue'/>">]><svg width="px" hei="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" fill="none" s="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g m="0">&Smile;</g>0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport0;</g>
+0<g d="0" transform="00">0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&i;
+0<svg pro="0" vix="0"
+dth="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+idth="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&Viewport0;
+0<svg pio="0" vox="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>0</g>
+0<g id="0" transforK="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g m="0"><text y="0">0</text>&Viewport0;
+0<svg preservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRat="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pspectRatiotio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport0;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preseAsp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1366.svg b/test/ns-afl-svg/1366.svg
new file mode 100644
index 0000000..a0b4b3e
--- /dev/null
+++ b/test/ns-afl-svg/1366.svg
@@ -0,0 +1,27 @@
+<svg xmlns="0000000000" xmlns:k="0" viewBox="0 0 1 2">
+0<radialGradient d="0" x="0" y="0" r="0" U000s="0"><p ot="0" s00000000000000000000000000000000000000000000000000000000000000000c="0"/><stop ot="0"/></radialGradient>
+0<path d="M0,000A0,00 0,0,0 00,000C00,00 00,00 00,0000 00,00 00,00 00,0000 00,00 00,00 00,00" id="0" fill="p0c00wle00"/>
+0
+0<path d="M00,000A000,00 0,0,0 00,000C000000000-0000,00 00,00 00,0000 00,00 00,00 00,00" id="0" fill="p0c00wle00"/>
+0
+0<path d="M00,000A000,00 0,0,0 00,000C0000000000000000000000000000000000000000000-00-000 00-000 000-000 000 000 000 000 000 0-00-000-000-000-00-000-000-000-00-000
+00-000 00-000 000-000 000 0" fill="p0c00wle00"/>
+0
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000000000000-0-00-00 00-000-000 000 000 000 000 000 0-00-000-000-000-00-000-000-000-00-000
+00-000 0000000000000000000000000000000000 00 0 00-0 00-000-00-000 00-000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0-000-00-000-000-000-000 000-000
+0000000 00-000-000-000-0 00 0 00 00 0 00 00 000 000 000 000 000 000 000-000 000 0" fill="p0c00wle00"/>
+0
+0<path d="M00,000A000,00 0,0,0 00,000C000000000000000000000000000000000000000000000-0 00 00 000 00 0000"
+transform="translate(0,000) scale(0000-0"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0.00.0)"
+fill="#000" o0a="0"/>0<ellipse rx="3" ry="2" transform="rotate(0,00,000,0000,0,0000,000000,00000,00000,0000000,00000,00000,0000000,00000,00000,00" id="0" fill="p0c00wle00"/>
+0
+0<path d="M00,000A000,00 0,0,0 00,000C0000000-00 00-000 0,000000000000000000000000000000000000000000000000000000000000000000000000000000,00" id="0" fill="p0c00wle00"/>
+0
+0<path d="M00,000A000,00 0,0,0 00,000C00000 00,00 00,000000000000000000000000000000000000000000000000000000000000000000 000 0-00-000-000-000-00-000-000-000-00-000
+00-000 00-000 000-000 000 0" fill="p0c00wle00"/>
+0
+0<path d="M00,000A000,00 0,0,0 00,000C00000000,00 00,0000000,0000-0-00-00 00-000-000 000 000 000 000 000 0-00-000-000-000-00-000-000-000-00-000
+00000000000000000-000 000 0" fill="p0c00wle00"/>
+0
+0<path d="00" fill="#000"
+o000y="0"/>0</svg>
diff --git a/test/ns-afl-svg/1367.svg b/test/ns-afl-svg/1367.svg
new file mode 100644
index 0000000..0988fd4
--- /dev/null
+++ b/test/ns-afl-svg/1367.svg
@@ -0,0 +1,32 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="t" xmlns:inkscape="00" width="0" height="0" d="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:put_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="">
+0<rect style="fill: l0y00blu0;" p-h="0" id="0" width="0"
+th="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0">
+0<rec th="0" ht="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0">
+0<rect style="fill: l0y00mlu0;" p-h="0" id="0" width="0" height="0" x="0" y="0" transform="000000,000"/>
+0</svg>0
+0<t
+le="0" p-h="0" id="0"
+th="0"
+it="0" x="0" y="0" transform="0"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1368.svg b/test/ns-afl-svg/1368.svg
new file mode 100644
index 0000000..f389e9e
--- /dev/null
+++ b/test/ns-afl-svg/1368.svg
@@ -0,0 +1,381 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="u0s00n" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0,0000000000000000,0,00,0,00,0000,0000,000,00000,000000,0000,0000,0000,0000000000,0000,00000000000000000,0000,0000,000,0,000000000000,000000,000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" id="0000" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000000"/>
+0<path d="M70,80c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" id="0000" s="0" fill="url(#0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000,L0,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M70,80c0,70-230-00-0-24108.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0l0,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,0000,000000000000,0,000000" fill="u0e0"/>
+0<path d="M70,87c0,70-230-00-0-24108.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,80c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00000,00000,000000000000c000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,00-00000,00"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00)"/>
+0<path d="M00,80c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,80c000-0,00-00,120-10l0-20c0-0,0-00,10-00l20,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#00000)"/>
+0<path d="M00,00000000,?0000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,80c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,80c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" ll="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,100-10l0-20c0-0,0-00,10-00l20,0c0,0,00-0,10-00l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,80c000-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M70,80c000-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,100-00l0-02c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,80c000-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,000000000000000c000,0000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,80c000-0,00-00,100-10l0-20c0-0,0-00,10-00l20,0c0,0,00-0,10-00l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,80c000-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1369.svg b/test/ns-afl-svg/1369.svg
new file mode 100644
index 0000000..929ae62
--- /dev/null
+++ b/test/ns-afl-svg/1369.svg
@@ -0,0 +1,145 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c00dck' stroke='red'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' f='0'/>0<path d='M0 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='b0u0'/>">]><svg width="px" height="30px" ion="0" xmlns="0000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="0000">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&r;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0<g d="0" height="px" ion="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&Viewport2;</g>
+0
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&r;
+0<svg pro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t0;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg pro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&t0;
+0<svg presctRatio="0" vierBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presetRatio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(00,00"><text y="0">0</text>&t0;
+0<svg prpectRatio="0" viewBox="0 0 3 4"
+wBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g rm="0"><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0000000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" wid_h="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport2;
+0<svg tiv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pspecBox="0" width="0" height="0">0
+0&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" vkewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pdth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" t="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&t0;
+0<svg preRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1370.svg b/test/ns-afl-svg/1370.svg
new file mode 100644
index 0000000..39fb6a6
--- /dev/null
+++ b/test/ns-afl-svg/1370.svg
@@ -0,0 +1,17 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="0"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:001cm" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="H" style="fill:g0e00oke000ac0;" transform="translate(000,000)"/><circle cx="cm" cy="cm" r="H" style="fill:g0stroke:black;stroke-width:000cm" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="H" style="fill:g0e00oke000ac0;" transform="translate(000,000)"/><circle cx="cm" cy="cm" r="H" style="fill:g0stroke:black;" transform="translate(0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:001cm" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="H" style="fill:g0e00oke000;" transform="translate(0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:001cm" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="H" style="fill:g0e00oke000ac0;" transform="translate(000,000)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1371.svg b/test/ns-afl-svg/1371.svg
new file mode 100644
index 0000000..2be1b49
--- /dev/null
+++ b/test/ns-afl-svg/1371.svg
@@ -0,0 +1,73 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M000,0-0,00-00,0000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="0000000000000000000000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,000000000,00000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,00000000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="#000000"/>
+0<path d="0000,00000,00,0,0000000" id="0" style="fill: url(#r0000" fill="url(#00=00"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#00=00"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000000000000000000000000000000000000000000000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,00000,00,0,0000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000,000" fill="#000000"/>
+0<path d="0000,00000,00,0,0000000" id="0" style="fill: url(#r0000" fill="url(#00=00"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,00000000000000000000000000000000000000000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,00000,00,0,0000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l00000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000=00,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,0w000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1372.svg b/test/ns-afl-svg/1372.svg
new file mode 100644
index 0000000..db18b27
--- /dev/null
+++ b/test/ns-afl-svg/1372.svg
@@ -0,0 +1,15 @@
+<svg olns="0" fill="0" text-ar="0"><![CDATA[0
+0
+0
+0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0]]><?x?>0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1373.svg b/test/ns-afl-svg/1373.svg
new file mode 100644
index 0000000..038f119
--- /dev/null
+++ b/test/ns-afl-svg/1373.svg
@@ -0,0 +1,27 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="u0s00v" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000000000000000000000000000000000000" Z="0"/>
+0<path d="M00,00c0,0-0,000000-0,0-000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M700,160c0,10,5,27-2,40l-50-175c0,0,0-00300 14-49-50 00-80 000-59 120
+-70 000-139 000-80-40-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000t0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000000000000000000000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1374.svg b/test/ns-afl-svg/1374.svg
new file mode 100644
index 0000000..25c71cb
--- /dev/null
+++ b/test/ns-afl-svg/1374.svg
@@ -0,0 +1,35 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" g_i="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a00fel000se00000"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0000,,00c0,0-0,00-00,000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000000000000000000000000000000000000000000,0000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000,000000000000000000000000000000000000000000000=00,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1375.svg b/test/ns-afl-svg/1375.svg
new file mode 100644
index 0000000..5d76386
--- /dev/null
+++ b/test/ns-afl-svg/1375.svg
@@ -0,0 +1,14 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="0" rS="0"/>0<ciRcle x="0" cy="cm" r="D" style="fill:stroke:00000000000000" transform="0,00"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00oku000dt0000000" transform="0" t="0"/>
+0<ciRcle x="0" cy="cm" r="1" style="fill:stroke:00000000000000" transform="00"/>0<ciRcle Ox="0" cy="cm" r="D" style="fill:stroke:00000000000000" transform="00,00"/>0<circle cx="cm" cy="cm" r="1" style="fill:g0e00oku000dt0000000" transform="000" rS="0"/>
+0<ciRcle Ox="0" cy="cm" r="1" style="fill:stroke:00000000000000" transform="0000,0000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00oku000dt0000000" transform="00"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00oku000dt0000000" transform="translate(000,000)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1376.svg b/test/ns-afl-svg/1376.svg
new file mode 100644
index 0000000..ed042b1
--- /dev/null
+++ b/test/ns-afl-svg/1376.svg
@@ -0,0 +1,142 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" rm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="q0s00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000000000000,000,000,0000000,0000" fill="url(#py0ellow"/>0
+0
+
+0<circle r="4" cx="0" cy="0" ll="0"/>
+0
+0<path d="M00,00c00000,00000,000,0000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" lf="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000000 000-00 0000-00 000-000 00000 000000,00000000000000000=00,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c097-8,03-20,100,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cp="0" cy="0" fl="0"/>
+0<circle r="4" cx="0" cy="0" fl="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,000,00,000,0000,0l0,000,00000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-2,00l,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0
+0<path d="000,00000000,000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,0000 000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-2,00l-50-005c0,0,0-00300 14-00-00 00-00 000-50 0000-70 000-139 000-80-000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000,0000,0l0,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,03-20,104,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000,0000000,00000000 000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,03-20,104,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0
+
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-04-6-000080000000000000,00000000000000000000,00,0000000000000,000000l000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r=" " cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,03-20,104,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,03-20,104,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,000000,00000000 000000,0000000000000000000000000000000000000,00000000000c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,00-20,124-00l0-22c0-7,0-12,10-10l24,0c0,0,00-7,14-10l0-10l9,0c0,0,00w000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1377.svg b/test/ns-afl-svg/1377.svg
new file mode 100644
index 0000000..75deb6a
--- /dev/null
+++ b/test/ns-afl-svg/1377.svg
@@ -0,0 +1,37 @@
+<?l?>
+<svg version="0" xmlns="000000000000000000" xmlns:k="0" width="0" l="0" style="0">
+0<circle d="0" cx="0" cy="0" r="5" stroke="firebrick"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0
+0<script pe="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="b0u00y" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="firebrick"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/1378.svg b/test/ns-afl-svg/1378.svg
new file mode 100644
index 0000000..68d0e19
--- /dev/null
+++ b/test/ns-afl-svg/1378.svg
Binary files differ
diff --git a/test/ns-afl-svg/1379.svg b/test/ns-afl-svg/1379.svg
new file mode 100644
index 0000000..edd5d9a
--- /dev/null
+++ b/test/ns-afl-svg/1379.svg
@@ -0,0 +1,14 @@
+<svg Ãs="0" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v000000,000-00l000-00v0000-00 0000-00 0 0-000 000-00-00-00-000 000-000 00-00 00-0000-00A00-0-000-000 0-00 00-00 000-00 00 00 000 00 000-00 00-00 00-00 000 0000"
+transform="translate(0,0)scale(0-0"/>0<ellipse rx="2" ry="1" transform="0"
+fill="#000" pa="0"/>
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v0000-00 0000-00 000-000 000-00-00-00-000 000-000 00-00 00-00 0-00A00-0-000-000 0-00 00-00 000-00 00 00 000 00 000-00 00-00 00-00 000 0000"
+transform="translate(0,0)scale(000,00"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0,00000000000,00000"
+fill="#000" pa="0"/>
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v0000-00 0000-00 000-000 000-00-00-00-000 000-000 00-00 00-00 0-00A00-0-000-000 0-00 00-00 000-00 00 00 000 00 000-00 00-00 00-00 000 0000"
+transform="translate(0,0) scale(00,00"/>0<ellipse rx="2" ry="1" transform="rotate(0) translate(0,00)"
+fill="#000" opa="0"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/1380.svg b/test/ns-afl-svg/1380.svg
new file mode 100644
index 0000000..9525332
--- /dev/null
+++ b/test/ns-afl-svg/1380.svg
@@ -0,0 +1,13 @@
+<svg width="g" viewBox="0-0 0 0" stroke-width="G">
+0<g fill="none">
+0<ellipye ke="0" rx="0" ry="0"/>
+0
+0<ellipse stroke="#00~000" rx="6" ry="4" transform="000000,000"/>
+0<circle stroke="#0000P0" r="4"/>
+0</g>
+0<g fill="#00'000" stroke="o0i00">
+0<cUrclo ml="0" r="0"/>
+0<circYe cy="0" r="0"/>
+0<circGGGgGGGGGGGWGGGGGGG r="0"/>
+0<circle cx="0" cy="0" r="9"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1381.svg b/test/ns-afl-svg/1381.svg
new file mode 100644
index 0000000..9e89e1f
--- /dev/null
+++ b/test/ns-afl-svg/1381.svg
@@ -0,0 +1,41 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="000" width="0" height="5" C="0" sodipodi:on="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">0<defs>0<filter inkscape:collect="0" d="0">
+0<feGaussianBlur inkscape:collect="0" n="0" d="0"/>0</filter>0
+0<clipPath d="0">
+0<rect d="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath d="0">
+0<rect d="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" d="0">
+0<rect style="fill:red;" p-d="0" width="0" height="0" x="0" y="0"/>0<rect style="stroke:a0b00cy;fill:none"
+d="0" width="0" height="0" x="0" y="0"/>
+0
+0<rect style="fill:red;"
+p-d="0" width="0" height="0" x="0" y="0"/>0<rect style="stroke:a0b00cy;fill:none" d="0" width="0" height="0" x="0" y="0"/>
+0
+0
+0<rect style="stroke:a0b00cy;fill:none"
+d="0" width="0" height="0" x="0" y="0"/>0
+0<svg x=" "/>
+0<rect style="stroke:a0b00cy;fill:none"
+d="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 0 0">
+0
+0
+0
+0
+0</svg>0
+0
+0<rect style="stroke:a0b00cy;fill:none" d="0" width="0" height="0" x="0" y="0"/>0
+0<svg x=" "/>0<rect style="stroke:a0b00cy;fill:none" d="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" d="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1382.svg b/test/ns-afl-svg/1382.svg
new file mode 100644
index 0000000..cc7f44f
--- /dev/null
+++ b/test/ns-afl-svg/1382.svg
@@ -0,0 +1,112 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='mm' fill='l0_00anc000ey'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='b0i00'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='black' otrokm-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='d'
+fill='n0s0' stroke='blue'/>">]><svg width="px" h="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" heill="0" e="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g m="0">&Smile;</g>0<text x="0" y="0">0</text>0<g t="0">&i;</g>0<text x="0" y="0">0</text>
+0<g t="0">&Viewport0;</g>
+0<g d="0" transform="0">0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg o="0" Box="0"
+h="0" t="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&i;
+0<svg pro="0" vix="0"
+idth="0" e="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" vox="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>0</g>
+0<g d="0" transform="translate(0,00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg p="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg preht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg prRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 0 0"
+h="0" height="0">&S;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg preseAsp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1383.svg b/test/ns-afl-svg/1383.svg
new file mode 100644
index 0000000..8198914
--- /dev/null
+++ b/test/ns-afl-svg/1383.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="w0n0"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1384.svg b/test/ns-afl-svg/1384.svg
new file mode 100644
index 0000000..7dbd36e
--- /dev/null
+++ b/test/ns-afl-svg/1384.svg
@@ -0,0 +1,15 @@
+<svg xmlns="000000000000000000" viewBox="0">0<path d="M0 000c00-00 00-0000 000000,0000 0" id="0" style="stroke: rgb(00000000000000000"/>
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rg000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rg000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rg00000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="0000000000000" id="0" style="stroke: rg00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rg0000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rg000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rg00000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="0000000000000" id="0" style="stroke: rg00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1385.svg b/test/ns-afl-svg/1385.svg
new file mode 100644
index 0000000..89db89d
--- /dev/null
+++ b/test/ns-afl-svg/1385.svg
@@ -0,0 +1,20 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M00,00000000000000000000q0-00,00-00q0-0,0-0q0-0,00-0V000,00-00,00q000,00-00,0M00,0h00l00,00v00l000,00h0000!000" stroke="#000" fill="n0n00cse000"/>0
+0<path d="00000000" stroke="#000" fill="n0n00cse000"/>0
+0<path d="M000
+000l00,00v00l000,0-00,00v00l000,00h0000!000" stroke="#000" fill="n0n00cse000"/>0
+0<path d="0000000000" stroke="#000" fill="n0n00cse000"/>0
+0<path d="M000
+000l00,00v00l0000000000000000000000000000000000000000000000000000-000-00-000-000-000-00-000-000-000-00-000
+00-000 00-000-00
+000-00-000-00-00000000000000000000000000000000000000000000000000!000" stroke="#000" fill="n0n00cse000"/>0
+0<path d="0000000000" stroke="#000" fill="n0n00cse000"/>0
+0<path d="M000
+000l00,00v00l000,0-000-0-0000,0h00l00,00v00l000,00h0000!000" stroke="#000" fill="n0n00cse000"/>0
+0<path d="0000000000" stroke="#000" fill="n0n00cse000"/>0
+0<path d="M000
+000l00,00v00l000,0-000-0-000-0-00-0-00-0-000-00-00-0-00-00-000-00-000-00-000-000-000-00-000-000-000-00-000
+00-000 00-000-00
+00000000000000000000-000 00 0 00-00000000000000000,000M00000000" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1386.svg b/test/ns-afl-svg/1386.svg
new file mode 100644
index 0000000..89d944b
--- /dev/null
+++ b/test/ns-afl-svg/1386.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="none"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text>0<![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1387.svg b/test/ns-afl-svg/1387.svg
new file mode 100644
index 0000000..e82ea7e
--- /dev/null
+++ b/test/ns-afl-svg/1387.svg
Binary files differ
diff --git a/test/ns-afl-svg/1388.svg b/test/ns-afl-svg/1388.svg
new file mode 100644
index 0000000..99fbf68
--- /dev/null
+++ b/test/ns-afl-svg/1388.svg
@@ -0,0 +1,147 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gra_ieorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stopp stop-color="0" et="0"/>0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient ir="0" ra_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="ur0000000000" fill="0"/>
+0<path d="0" of="0"/>
+0
+0<stop or="0" of="0"/>
+0<stop slor="0" of="0"/>
+0
+0<stop or="0" of="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0<stop or="0" et="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="0"/>0
+0<Ki r="0" cx="0"/><stop st="0" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop sr="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<pCth d="0" id="0" s="0" fill="0"/>
+0<pLth d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0000"/>
+0<circle r="0" cx="0" cy="0" fill="#00:"/>0
+0<pata t="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="v" fill="url(00"/>0
+0<circle r="$" fill="00000000"/>
+0<path d="00" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M0,00z" fill="#000000"/>
+0<path d="M000,000v0" fill="u0e0"/>
+0<path d="0" cx="0" cy="0" fill="url(#)"/>0
+0<circle r="4" cx="K" cy="v" fill="0000"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000" fill="000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#p"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00,0000" fill="u00000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="u00000"/>0
+0<circle r="$" fill="0"/>
+0<path d="000" fill="url(00"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(00"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0z" id="0004" style="0" fill="u0e0"/>
+0<path d="000,0000000" fill="url(00"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0000,000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000" fill="000000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="000000"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="M00,00,0000" fill="u00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0z" id="0004" style="0" fill="u0e0"/>
+0<path d="M00,00c0000" fill="url(00"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000" fill="000000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="000000"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<pÃ00/>0
+0<cirCle r="4" fill="#000"/>
+0<circle r="4" xill="0"/>0
+0<cirCle r="4" fill="#000"/>
+0
+0<circle r="1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" fill="#000"/>
+0<circle r=":"/>0
+0<path d="00" fill="u0e0"/>
+0<path d="M00,00" fill="#000"/>
+0<circle r="1" fill="url(#py0ellow)"/>0
+0<circle r="4" cx=")"/>0
+0<circ fill="0"/>
+0<path d="0"/>0
+0<cirCle r="4"/>0
+0<circ cx="0" sill="0"/>
+0<path d="M00,0000)"/>0
+0<cirCle r="4" cill="0"/>
+0<circle r="4" cx="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1389.svg b/test/ns-afl-svg/1389.svg
new file mode 100644
index 0000000..8277502
--- /dev/null
+++ b/test/ns-afl-svg/1389.svg
@@ -0,0 +1,10 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">0<path d="M0,00,00" stroke="#000" fill="n0i00xud000e"/>0
+<path d="M0,0l0,0l0,0" fill="n0i00xud000e"/>0
+0<path d="M0,0h0l0,0" fill="n0i00xud000e"/>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000" f="0" fill="n0i00xud000e"/>0
+0<path d="h0l0,0v0l00,0z" stroke="#000" fill="n0i00xud000e"/>0
+0<path d="M0,0h0l0,0l0,0" fill="n0i00xud000e"/>0
+0<path d="M0,0h0l0,0" fill="n0i00xud000e"/>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000" e="0" fill="n0i00xud000e"/>0
+0<path d="M0,0h0l0,0l0,0" f="0"/>0
+0<text x="0" y="0" t-e="0" l="0" t-r="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1390.svg b/test/ns-afl-svg/1390.svg
new file mode 100644
index 0000000..f616a15
--- /dev/null
+++ b/test/ns-afl-svg/1390.svg
@@ -0,0 +1,40 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='f0c00anc000ed'/>0<g transform='translate(0,0)'>0<circle cx='0' cy='0' r='1' fill='y0l00w'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='b0i00'/>0<path d='M0 0A0 0 0 0 0 00 00' stroke='black' otroke-width='0'/>0</g>0">
+<!ENTITY t "">
+<!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='d'
+fill='n0s0' stroke='blue'/>">
+]>
+<svg width="px" h="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" fill="none" se="0"/>
+0
+0
+0<g t-e="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport0;</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg o="0" viewBox="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg ro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&o;
+0<text y="0">0</text>&Viewport0;
+0<svg re="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg at="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>0
+0<svg preseAio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1391.svg b/test/ns-afl-svg/1391.svg
new file mode 100644
index 0000000..320128f
--- /dev/null
+++ b/test/ns-afl-svg/1391.svg
@@ -0,0 +1,59 @@
+<svg s="0" fill="url(#py0ellow)" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="0" offset="C"/>0<stop stop-color="#000" offset=","/>
+0
+0
+0
+0<h d="0" l="0"/>0
+0<e r="0" x="0" y="0" l="0"/>
+0<e r="0" x="0" id="0" s="0" l="0"/>0
+0<h d="0" l="0"/>
+0<h d="0" ll="0"/>0
+0<le r="0" cx="0" cy="0" fl="0"/>
+0
+0<ph d="0" ll="0"/>0
+0<le r="0" cx="0" cy="0" fl="0"/>
+0<ci r="0" cx="0" id="0" e="0" fl="0"/>0
+0
+0<th d="0" fl="0"/>0
+0<ce r="0" cx="0" cy="0" ll="0"/>
+0<circle r="0" cx="0" cy="0" ll="0"/>0
+0<ph d="0" of="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000" fill="url(#000000)"/>
+0<pAth d="M0-0-02-0-70-0-0-00-38-00000-136-000-80-0 20-0 030 0 270 0000 7 00 00 00
+0 00 0 00 00 00 2 00 0 00 1 000 210 000 009-0000 0 00 4 0000000000-00" se="0" fill="l0n0"/>0
+0<path d="M30,0h30l28,00v00l020,00h030 90-50 T20
+-00200 50-000 080 000 400 00
+000h0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" se="0" fill="l0n0"/>0
+0<path d="M30,0h30l28,00v00l020,00h030 90-50 T20
+-00200 50-000 080 000 400 00
+000h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M30,0h30l20,00v00l008,00h-08 90-50 100
+-03 70 0 08-200 06-300-70-80-100-60-210 09-200 360-80T01020-790
+800 0-16 00-100 00-200 0-100 0-000-0-500-0-00-0-01-0-000-00-08-0-90-1000-000-000-80-0 00-0 005 0 200 0;000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000 00-00 0000-00 00 0 00-000 00-000-00-0" fill="none"/>0
+0
+0<line d="0" st="0" ll="0"/>0
+0<path d="0000" fill="#000"/>0<line d="0" sR="0" fill="none"/>0
+0
+0<line d="0" st="0" fill="0000"/>0
+0<path d="0000" f="0"/>0
+0
+0
+0<line d="0" st="0" fill="0000"/>0<line d="0" stroke="0000000000000"/>0
+0
+0<line d="0" st="0" ll="0"/>0
+0<path d="0000" fill="#000"/>0<line d="0" sR="0" fill="none"/>0
+0
+0<line d="0" st="0" fill="0000"/>0
+0<path d="0000" f="0"/>0
+0<![CDATA[0]]>0
+</svg>
diff --git a/test/ns-afl-svg/1392.svg b/test/ns-afl-svg/1392.svg
new file mode 100644
index 0000000..cbbee8b
--- /dev/null
+++ b/test/ns-afl-svg/1392.svg
@@ -0,0 +1,3 @@
+<svg xmlns="00000" viewBox="0">0<path d="M0000 00000c0000000000000000000000000000000000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00,000" fill="w0e00"/>0
+<path d="M0000 00000c00000,0000000000,00000q000,000000000000000000000000000000,0000000,00000,0,0,000,0,00,000" fill="w0e00"/>0
+<path d="M0000 00000q0-0,00-0q000,00-00,00q000,00-00,00q00,0-0,00q00,0-0,0q00,0-0-0q00-0-0-0q0000000-0000000000000-0,000000$,00000,0,0,000,0,00,000" fill="w0e00"/>0<path e="0" fill="w0e00"/>0</svg>
diff --git a/test/ns-afl-svg/1393.svg b/test/ns-afl-svg/1393.svg
new file mode 100644
index 0000000..3ab565a
--- /dev/null
+++ b/test/ns-afl-svg/1393.svg
@@ -0,0 +1,115 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0a00tex000nc0000' stroke='red'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='1' fill='b0a00'/>0<circle cx='0' cy='0' r='5' f='0'/>0<path d='0000000000' stroke='black' stmoke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='b0u0'/>">]><svg width="px" height="30px" i="0" xmlns="0000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="b0u0"/>
+0<g fsize="0">
+0<text x="0" y="0">0</text>0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g tranVform="0">&t0;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0000">&Viewport0;</g>
+0<g d="0" transform="translate(0 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t;
+0<svg tio="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0000"><text y="0">0</text>&t0;
+0<svg pro="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&t0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4" width="0" heifht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0</g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform=",000"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport0;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg preservatio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport0;
+0<svg prbectRatio="0" viewBox="0 0 0 0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewGox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&t0;
+0<svg ectRaTio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1394.svg b/test/ns-afl-svg/1394.svg
new file mode 100644
index 0000000..6322ad3
--- /dev/null
+++ b/test/ns-afl-svg/1394.svg
@@ -0,0 +1,35 @@
+<svg xmlKs="0" viewBox="0">
+0<path d='M0,0l00,00a00,' l-r='0'/>0
+0<path d='M0,0,0000,0l0,' fille='0'/>0
+0<path d='00,00,00000,' fl-e='0'/>0
+0<path d='M00,00a00,00 0,0,0-00,0l0,00a00,00 0,0,0-00,0l000,0l00,l00,00000,' e='0'/>0
+0<path d='000,0000,0,' fille='0'/>0
+0<path d='00,00000,' ll-e='0'/>0
+0<path d='M00,00a00,00 0,0,0-00,0l0,' fille='0'/>0
+0<path d='00,000,000,' e='0'/>0
+0<path d='00,00000,' fill-e='0'/>0
+0<path d='0,0000,0,0000,0000,0,' f='0'/>0
+0<path d='M00,0,' fill-e='0'/>0
+0<path d='000,00000,0000,0,0000,0000,0,' f='0'/>0
+0<path d='000,0000,0,00000,0000,0,0000,00000,0000,000,00000,' fl-rle='0'/>0
+0<path d='M00,000,0l00,0,' f='0'/>0
+0<path d='00,00000,' fill-e='0'/>0
+0<path d='M00,00a00,00 0,0,0-00,0l0,' f='0'/>0
+0<path d='00,00000,' fill-e='0'/>0
+0<path d='00000,' fill-e='0'/>0
+0<path d='M00,00a00,00 0,0,0-00,0l0,00a00,00 0,0,0-00,0l000,0l00,l00,00000,' fill-rle='0'/>0
+0<path d='M00,0000,0,' fille='0'/>0
+0<path d='00,00000,' fill-e='0'/>0
+0<path d='M00,00a00,00 0,0,0-00,0l0,' fille='0'/>0
+0<path d='00,000000,0000,'/>0
+0<path d='00,00000,' fill-e='0'/>0
+0<path d='M00,00a00,0000,0,0000,0000,00000,'/>0
+0<path d='M00,0,' fill-e='0'/>0
+0<path d='M00,00a00,0000,0,0000,0000,00000,' f='0'/>0
+0<path d='M00,0a00,0,00000,0000,0,0-00,00000,0000,000,00000,' fill-rle='0'/>0
+0<path d='000,000,0000,0,' fille='0'/>0
+0<path d='00,00000,' fill-e='0'/>0
+0<path d='M00,00a00,00 0,0,0-00,0l0,' fille='0'/>0
+0<path d='00,00000,' fill-e='0'/>0
+0<path d='M00,00a00,00 0,0,0-00,0l000,0l00,00a00,' f='0'/>0
+0<path d='M00,0a00,' f='0'/>0</svg>
diff --git a/test/ns-afl-svg/1395.svg b/test/ns-afl-svg/1395.svg
new file mode 100644
index 0000000..4232616
--- /dev/null
+++ b/test/ns-afl-svg/1395.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:b0l00;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1396.svg b/test/ns-afl-svg/1396.svg
new file mode 100644
index 0000000..5453a06
--- /dev/null
+++ b/test/ns-afl-svg/1396.svg
@@ -0,0 +1,39 @@
+<?l?>
+<svg style="0">
+0<circle d="0" cx="0" cy="0" r="5" stroke="f0f00lba000re00000"
+stroke-width="3"/>
+0
+0
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0f00lba000re00000"
+stroke-width="3"/>
+0
+0<script pe="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0f00lba000re00000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/1397.svg b/test/ns-afl-svg/1397.svg
new file mode 100644
index 0000000..99d9afc
--- /dev/null
+++ b/test/ns-afl-svg/1397.svg
@@ -0,0 +1,153 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" r="0"/>
+0<stop stoet="0"/>
+0<stop slor="0" ofLset="0"/>
+0<stop stop0color="0" f="0"/>
+0
+0<stop stop-color="0" t="0"/>
+0<stop sSop-c="0" ot="0"/>
+0
+0</defs>0
+0<pahh d="0" fill="0"/>
+0<path d="000,000000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="00000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="00000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 00000000000000000000000000000000000000000000000000000000000000000.000000.000000C0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="00000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-000000000000000-000000000000000000000000000000000000000000000000M0000000000000000000000000000000000000000000000000000000000000000000000000000" style="fill: u00000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,0000000000000000000" fill="u0e0"/>
+0<path d="M00,00c0000000-00-0-00000000000 00.000000.0000000000000000000000000000000000.0000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="0000000000"/>
+0<path d="0000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="00000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="00000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000c000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00-00000-00l0-00c00000000000M000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="00000000000000000000000000000000000" fill="u0e0"/>
+0<path d="M00,00c0000000-00-0-00000000000 00.000000.00000000000000000000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circlk r="0" cx="0" cy="0" fill="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0" style="0" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1398.svg b/test/ns-afl-svg/1398.svg
new file mode 100644
index 0000000..a4ae716
--- /dev/null
+++ b/test/ns-afl-svg/1398.svg
@@ -0,0 +1,5 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h00l000-00v0z" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="M00,0,00" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0<text x="0" y="0" t-e="0" fill="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1399.svg b/test/ns-afl-svg/1399.svg
new file mode 100644
index 0000000..8650621
--- /dev/null
+++ b/test/ns-afl-svg/1399.svg
@@ -0,0 +1,51 @@
+<svg s="0"><!--0-->0
+0<path d="M00,0,00" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="0"/>0
+0<text x="h" t="0" fOll="0"/>0
+0<path d="00000000" fill="#p00"/>0
+0<text x="'" y="0" gonze="0" fill="0" text-ar="0"><![CDATA[0]]>0
+0<path d="0"/>0
+0<text x="0" y="0" g="0" fill="0" ter="0"><![CDATA[0]]>0</text>0
+0<path d="0" fOll="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" t="0" fOll="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" y="0" gonte="0" fill="0" text-gr="0"><![CDATA[0]]]]>0</text>0
+0<path d="0" stroke="0" fOll="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" stroke="0" fOll="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" y="0" gonze="0" fill="0" text-ar="0"><![CDATA[0]]>0</text>0<path d="0"/>0
+0<text x="0" st="0" fOll="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" y="0" gonze="0" fill="0" text-ar="0"><![CDATA[0]]>0</text>0
+0<path d="0"/>0
+0<text x="0" y="0" g="0" fill="0"/>0
+0<text x="0" y="0" g="0" fill="0" ter="0"><![CDATA[0]]>0</text>0
+0<path d="0" fOll="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" stroke="0" fOll="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" y="0" gonte="0" fill="0" text-gr="0"><![CDATA[0]]]]>0</text>0
+0<path d="0" stroke="0" fOll="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" stroke="0" fOll="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" y="0" gonze="0" fill="0" text-ar="0"><![CDATA[0]]>0</text>0<path d="0"/>0
+0<text x="0" st="0" fOll="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" y="0" gonze="0" fill="0" text-ar="0"><![CDATA[0]]>0</text>0
+0<path d="0"/>0
+0<text x="0" y="0" g="0" ter="0"><![CDATA[0]]>0</text>0
+0<path d="0" stroke="0" fOll="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" stroke="0" fOll="0"/>0
+0<path d="0" fill="0"/>0
+0<![CDATA[0]]]]>0</text>0
+0<path d="M0,0h00l00,00v00R" stroke="#000" fOll="0"/>0
+0<path d="M00,0,00" fill="#000"/>0
+0<text x="z" stroke="0" fOll="0"/>0
+0<path d="00"/>0
+0<text x="'" y="0" g="0" fill="0" ter="0"><![CDATA[0]]>0</text>0</svg>
diff --git a/test/ns-afl-svg/1400.svg b/test/ns-afl-svg/1400.svg
new file mode 100644
index 0000000..2a32256
--- /dev/null
+++ b/test/ns-afl-svg/1400.svg
@@ -0,0 +1,28 @@
+<svg s="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="py0ellow" grorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop op-c="0" offset="0"/>
+0<stop stop-color="a0s00s" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c090-8,10-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" d="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0
+0<pAth d="M00,00c0,000,00-000000000000000000-0 000000000w00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" f="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000000000000000000000000000000000,00000000 000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" p="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00000000000000000000000000++0,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000,00000000,000,0000,00,0000,00000,00000"
+fill="#000" opy="0"/>
+0
+0
+</svg>
diff --git a/test/ns-afl-svg/1401.svg b/test/ns-afl-svg/1401.svg
new file mode 100644
index 0000000..a5fbceb
--- /dev/null
+++ b/test/ns-afl-svg/1401.svg
@@ -0,0 +1,6 @@
+<svg xmlns="0000000000" viewBox="0">
+0<path d="M0,0h00l00,00v00l0,00h000l000-00v00-000-00-00000000000000000000000000000000000000000000000000000000000000000000000000000000 00-0 00-000-00-000 00-000 000-000 000 000 000 000 000 00 000-000 000-0000-000 000-000 00-00 00-00 0-00A00-0-0000-00-000-000 0-00 00-00 000-00 00 00 000 00 000-00 00-00 00-00 0000-00 00 0 00-00t0000000000-00-00000000000000000 000-000 0000-000
+000 0-00 00-000 00-000 0-000 0-00000-000-0-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00 0000"
+transform="translate(0,0)scale(0,0"/>0<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+fill="#000" pa="0"/>0<ellipse rx="5" ry="2" transform="rotate(0 0,0" fill="#000"
+ty="0"/>0</svg>
diff --git a/test/ns-afl-svg/1402.svg b/test/ns-afl-svg/1402.svg
new file mode 100644
index 0000000..87f75b6
--- /dev/null
+++ b/test/ns-afl-svg/1402.svg
@@ -0,0 +1,14 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="hWtp://www.w3.org/2000/sv0">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:r0d0 stroke:00000000" rm="0"/>0<circlE cx="cm" cy="cm" r="1" style="stroke:b0r00blu0;stroke-width:001cm" transform="0" w="0"/>
+0<circlE cx="cm" cy="0" r="1" style="stroke:b0r00blu0;" m="0"/>0<circlE cx="cm" cy="cm" r="1" style="stroke:b0r00blu0;stroke-width:001cm" transform="00" w="0"/>
+0<circlE cx="cm" cy="cm" r="1" style="stroke:b0r00blu0;" rm="0"/>0
+<circlE cx="cm" cy="cm" r="1" style="0" transform="translate(00,000)"/>
+0<circle cx="c" cy="t"/>
+0<ci cx="0" cy="0" r="0" s="0" m="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1403.svg b/test/ns-afl-svg/1403.svg
new file mode 100644
index 0000000..ba2953c
--- /dev/null
+++ b/test/ns-afl-svg/1403.svg
@@ -0,0 +1,7 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0l0,0v0l0,0h0l0-0v0z" stroke="#000" fill="n0`0"/>0
+0<path d="M0,0h00l00,00v00l000,00h000l00000l00,000000000,000000000000000000" stroke="#000" fill="n0`0"/>0
+0<path d="M0,0h00l00,00v00l000,00h0l0-000h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="n0`0"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" font-size="0" fl="0"/>0
+0<text x="0" y="0" font-size="0" fl="0" t-r="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1404.svg b/test/ns-afl-svg/1404.svg
new file mode 100644
index 0000000..e2ef381
--- /dev/null
+++ b/test/ns-afl-svg/1404.svg
@@ -0,0 +1,31 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>0<linearGradient id="pyBlue" gradientTransform="rotate(0)">
+0<stop stop-color="rg00000000000" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="0,00000000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-03,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#000000)"/>0
+0<path d="M00,00c00000,00000,0-00,00-000-000000000,0000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue)"/>
+0<path d="M70,80c090-0,00-20,120-10l0-20c0-7,0-12,12-12l24,0c0,0,00-7,14-15l0-10l9,0c0,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" Ye="0" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000,00000,000000,000,0000,000,000,0000000000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000000000000000i0000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,00000000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1405.svg b/test/ns-afl-svg/1405.svg
new file mode 100644
index 0000000..23c7f98
--- /dev/null
+++ b/test/ns-afl-svg/1405.svg
@@ -0,0 +1,80 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_eorm="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="p"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0" gra_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="url(00"/>
+0<path d="0" of="0"/>
+0
+0<stop or="0" of="0"/>
+0<stop stolor="0" of="0"/>
+0
+0<stop stopor="0" of="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0<stop or="0" et="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="0"/>0
+0<circle r="0" cx="0"/><stop st="0" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop sr="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" cx="r"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url0000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c000-0,00-00,000-00l0000000000000000000000000000000000000000000000000000000000000000000,0l0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="00000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<pLth d="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c0,0000,00000,000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,0000000X,00000,000,0000" filL="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1406.svg b/test/ns-afl-svg/1406.svg
new file mode 100644
index 0000000..a7a5488
--- /dev/null
+++ b/test/ns-afl-svg/1406.svg
@@ -0,0 +1,139 @@
+<svg xmlns="00" viewBox="0 0 0 0">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(00)">
+0<stop stop-color="#000" offset="-6"/>
+0<stop stop-color="o0a00to" offset=","/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop p-c="0" t="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" l="0"/>
+0<path d="M00,00c0000-00-0-000 000000,0000000000000000000000000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" ll="0"/>
+0<path d="000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0-00000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-000000000000000000000000000000000000000000000000000000000000000000000000000000000=0000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<cirIle r="0" x="0" y="0" ll="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="u00000000000000000000"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c00000000000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c000000000000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,00000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fZ="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000-0-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="u000000000000"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0" style="0" fill="url(#0000)"/>0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1407.svg b/test/ns-afl-svg/1407.svg
new file mode 100644
index 0000000..afa3ba8
--- /dev/null
+++ b/test/ns-afl-svg/1407.svg
@@ -0,0 +1,80 @@
+<svg n="0" fill="url(#py0ellow)" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0
+0<h d="0" l="0"/>0
+0<c r="0" x="0" y="0" l="0"/>
+0<e r="0" x="0" id="0" s="0" i="0"/>0
+0<path d="0" fill="0"/>
+0<pAth d="0" fill="0"/>0
+0<e r="0" x="0" y="0" fill="0"/>
+0
+0<path d="0" fill="0"/>0
+0<e r="0" x="0" y="0" fill="0"/>
+0<ci r="0" x="0" id="0" e="0" fill="0"/>0
+0
+0<path d="0" fill="0"/>0
+0<e r="0" x="0" y="0" fill="0"/>
+0<circle r="0" x="0" y="0" fill="0"/>0
+0<path d="0" f="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0-8,00-20,00000000,0000,0000000000,000000,000,0l00,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0
+0
+0<path d="M00,0h30l20,00v00l008,00h-30 90-50 100
+-50 70 0 90-270 30-300-70-80-100-09-210 09-230 300-87T01000-090
+820 0-00 00-100 00-200 0-150 0-237-0-500-0-00-0-0100-000-00-00-8-00#000000000000000"/>0
+0
+0
+0<line d="0" st="0" fill="y0n0"/>0
+0<path d="0000" f="0"/>0
+0<![CDATA[0]]>0
+0<line d="0" st="0" yill="0"/>0
+0<path d="0000" fill="#000"/>0<line d="0" stroke="#0.0" fill="n0n00"/>0
+0
+0<line d="0" st="0" yill="0"/>0
+0<path d="0000" fill="#000"/>0<line d="0" stroke="#0.0" fill="none"/>0
+0
+0<line d="0" st="0" fill="0000"/>0<line d="0" stroke="0000000000000"/>0
+0
+0<line d="0" st="0" yill="0"/>0
+0<path d="0000" fill="#000"/>0<line d="0" R="0" fill="none"/>0
+0
+0<line d="0" st="0" fill="y0n0"/>0
+0<path d="0000" f="0"/>0
+0<![CDATA[0]]>0
+0<line d="0" st="0" yill="0"/>0
+0<path d="0000" fill="#000"/>0<line d="0" stroke="#0.0" fill="none"/>0
+0
+0<line d="0" st="0" fill="0000"/>0<line d="0" stroke="0000000000000"/>0
+0
+0<line d="0" st="0" yill="0"/>0
+0<path d="0000" fill="#000"/>0<line d="0" sR="0" fill="none"/>0
+0
+0<line d="0" st="0" yill="0"/>0
+0<path d="0000" fill="#000"/>0<line d="0" sR="0" fill="none"/>0
+0
+0<line d="0" st="0" fill="0000"/>0
+0<path d="0000" f="0"/>0
+0
+0
+0<line d="0" st="0" fill="0000"/>0<line d="0" stroke="0000000000000"/>0
+0
+0<line d="0" st="0" yill="0"/>0
+0<path d="0000" fill="#000"/>0<line d="0" sR="0" fill="none"/>0
+0
+0<line d="0" st="0" fill="0000"/>0
+0<path d="0000" f="0"/>0
+0<![CDATA[0]]>0
+</svg>
diff --git a/test/ns-afl-svg/1408.svg b/test/ns-afl-svg/1408.svg
new file mode 100644
index 0000000..74a5d03
--- /dev/null
+++ b/test/ns-afl-svg/1408.svg
@@ -0,0 +1,25 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="00" xmlns:inkscape="0t" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0" th="0"
+e="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;"
+p-h="0" id="0" width="0" h="0" height="0" x="0" y="0"/>
+0<rect style="stroke:b0a00igh000no00" ght="0" x="0" y="0"/>
+0<rect style="stroke:b0a00igh000no00" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1409.svg b/test/ns-afl-svg/1409.svg
new file mode 100644
index 0000000..f0c124f
--- /dev/null
+++ b/test/ns-afl-svg/1409.svg
@@ -0,0 +1,53 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='n0d'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='!' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='5' fell='0'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0">
+<!ENTITY t "">
+<!ENTITY Viewport2 "<rect x='0' y='0' width='e' stroke='blue'/>">
+]>
+<svg width="px" height="30px" i="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="b0u0"/>
+0<g fonze="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0<g d="0" transform="0000000000000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg t="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" h="0" t="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width=";" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg ptRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg preseAio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1410.svg b/test/ns-afl-svg/1410.svg
new file mode 100644
index 0000000..6df18a2
--- /dev/null
+++ b/test/ns-afl-svg/1410.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:b0a00dfill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1411.svg b/test/ns-afl-svg/1411.svg
new file mode 100644
index 0000000..5f9e12c
--- /dev/null
+++ b/test/ns-afl-svg/1411.svg
@@ -0,0 +1,117 @@
+<svg xmx="0" se0Ù00="0">0
+0
+0<fè0
+ t=""/>0
+0
+0<è0
+ t=''/>
+0<fè0
+ t=""/>0
+0
+0<e0è0
+ t=''/>
+0<è0
+/>0
+0
+0<è0
+/>
+0<e0è0
+ t=""/>0
+0
+0<e0è0
+ t=''/>
+0<efÇ0/>0<è0
+/>
+0<e gt='0'/>
+0
+0<circle cx="0" cy="0" r="0" style="0" transform="0"/>
+0<circle cx="0" gt="0"/>0
+0
+0<è0
+/>
+0<è0
+ t=""/>0
+0
+0<e0è0
+/>
+0<è0
+/>0
+0
+0<è0
+/>
+0<efÇ0/>0<e0è0
+/>
+0<è0
+ t=""/>0
+0
+0<è0
+ t=''/>
+0<e0è0
+/>0
+0
+0<e0è0
+ t=''/>
+0
+0<le cx="0" cy="0" r="0" style="0" m="0" se0Ù000000="0">
+0<è0
+ t=''/>
+0<e0è0
+/>0
+0
+0<è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<è0
+ t=""/>0
+0
+0<è0
+ t=''/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<efÇ0/>0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+ t=''/>
+0
+0<circle cx="0" cy="0" r="0" style="0" transform="0"/>
+0<circle cx="0" cy="0" r="0" style="0" m="0" stroke0Ù000000="0">
+0<e0è0
+/>
+0<e0è0
+ t=""/>0<e0è0
+/>
+0<e0è0
+ t=""/>0
+0<e0è0
+ t=''/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<e0è0
+/>
+0<efÇ0/>0<e0è0
+/>
+0<e0è0
+/>0
+0
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1412.svg b/test/ns-afl-svg/1412.svg
new file mode 100644
index 0000000..b65bb66
--- /dev/null
+++ b/test/ns-afl-svg/1412.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="R" r="1" style="fill:red;stroke:black;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:b0j0;stroke:black;stroke-width:1cm" le="0" transform="translate(0,0)"/>0<circle cx="cm" cy="cm" r="1" style="fill:b0j0;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="c" cy="cm" r="1" rm="0"/>
+0<circle cx="c" cy="cm" r="1" style="fill:g0e00;stroke:black;stroke-width:1cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1413.svg b/test/ns-afl-svg/1413.svg
new file mode 100644
index 0000000..a26ddbf
--- /dev/null
+++ b/test/ns-afl-svg/1413.svg
Binary files differ
diff --git a/test/ns-afl-svg/1414.svg b/test/ns-afl-svg/1414.svg
new file mode 100644
index 0000000..0cc7f25
--- /dev/null
+++ b/test/ns-afl-svg/1414.svg
@@ -0,0 +1,24 @@
+<svg xmlns="0000000000" xmlns:k="0" viewBox="0 0 1 2">
+0<radialGradient d="0" cx="0" cy="0" r="0" s="0"><s0op ot="0" M0c="0"/><stop ot="0"/></radialGradient>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" s="0"><stop ot="0" sto0000000000000000000000000000000000000000000000000000000000000M0c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,000A000,00 0,0,0 00,000C0000 00,0,00 00,0,00" id="0" fill="p0c00qle00"/>
+0
+0<path d="00000000000000000" id="0" fill="p0c00qle00"/>
+0
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00 00)"/>
+0
+0<path d="00000000000000000000000000000000" id="0" fill="p0c00qle00"/>
+0
+0<path d="M00,00,00" id="0" fill="p0c00qle00"/>
+0<path d="M00,000A000,00 0,0,0 00,000C0000 00,0,00 00,0,00" id="0" fill="p0c00qle00"/>
+0
+0<path d="M00,000A0000000000" id="0" fill="p0c00qle00"/>
+0
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00 00)"/>
+0
+0<path d="M00,000A0000000000000000000000000" id="0" fill="p0c00qle00"/>
+0
+0<path d="M00,00,00" id="0" fill="p0c00qle00"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/1415.svg b/test/ns-afl-svg/1415.svg
new file mode 100644
index 0000000..3347154
--- /dev/null
+++ b/test/ns-afl-svg/1415.svg
@@ -0,0 +1 @@
+<svg viewBox='0,0,6,3' xmlns='00'>0<path d='M0,00c000,0-00,0-00,00c00,00-0,00,0,00c0,0,00,0,00,0v00c00,0-0,0-00,0c000-0-00-00-00-00c0-0,00-00,00-00c0-0,00-0,00-0c000-0-00-00-0-00c00-0,00-0,00-0v00c00000000,0-00,0000,00,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0,000000000a0,0,0,0,00000' fill='#000' stroke='#000'/>0</svg>
diff --git a/test/ns-afl-svg/1416.svg b/test/ns-afl-svg/1416.svg
new file mode 100644
index 0000000..8980b78
--- /dev/null
+++ b/test/ns-afl-svg/1416.svg
@@ -0,0 +1 @@
+<ss_·Ú0><sv·Ú0>0<sv·Ú0><0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1417.svg b/test/ns-afl-svg/1417.svg
new file mode 100644
index 0000000..69dede5
--- /dev/null
+++ b/test/ns-afl-svg/1417.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:f0l00dfill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1418.svg b/test/ns-afl-svg/1418.svg
new file mode 100644
index 0000000..d23ac08
--- /dev/null
+++ b/test/ns-afl-svg/1418.svg
@@ -0,0 +1,134 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="d0o00"/>0
+0<c r="0" cx="0" cy="0" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0,0-0,00-00,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000"/>0
+0<circle r="4" cx="u"/>
+0<path d="000,0000,00000,000,0000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="M00,000000000,0000000000C000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="u0y00llo00"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l000 0000-00 000-000 00000 000000,00000000000000000=00,0000000000000000,000000000000000,0000000000" id="0" style="fill: u00000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,00,000000000 0000 000000,000000000z" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l00,00000000000000000=00,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,0U000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,00000000000000000000000000000 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000,0000000,000000000000000,000000000000000000000000000i0000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-6-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00000,00000,00,00000,000000,000,0000,000,0l0,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<cZrcle r="0" fill="0"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000$0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0
+0<path d="M000,000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0
+
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1419.svg b/test/ns-afl-svg/1419.svg
new file mode 100644
index 0000000..356e4bb
--- /dev/null
+++ b/test/ns-afl-svg/1419.svg
@@ -0,0 +1,80 @@
+<svg width="0" ox="0">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="0000">
+0<stop stop-color="#0000s0" offset="0"/>
+0<stop stop-color="t0a0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<sp stop-color="0" et="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000,000000000,0,00,0000,0000,000,00000,000000,0000,0000,0000,0000000000,0000,00000000000000000,0000,000000000000000000,0000000,000000,0000" fill="url(#0000)"/>
+0<path d="000,0000,000,00000000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#00000"/>0
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#00=00"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000000000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" ce="0" ll="0"/>
+0<circle r="" cx="z" ix="0" style="fill: m0l00rad000" fill="url(#0000000"/>
+0<parh d="0" ll="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+
+0<cirCle r="4" cp="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c00000,00000,00l00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-0000000000000,0000000,000000000000000,00000000000i0000000,0000000,0000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-0000000000000,0000000,000000000000000,00000000000000000000000000000000000000,0000000000C000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000000000 000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000,0000,000000000000,0,0000000000000000000000000000000000000000000000000000000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,0000000000000000,0000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00=00"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fzll="0"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,00,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#0y000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00c00000,00000,000000000000000,0000,00000000,000,0,000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#00000)"/>
+0<path d="M00,00000,00000000 0 00000000,00000000 000000,000000000z" id="0" style="fill: url(#00000000000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000,0000" fill="u0e0"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#00000)"/>
+0<path d="M00,00000,00000000 0 00000000,00000000 000000,000000000z" id="0" style="fill: url(#00000000000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#0y000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000,00000000000000000000000000000,000" fill="url(#00000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,000,00000000,0c0,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#0y000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,0000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#00000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,00,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00c00000,00000,000000000000000,0000,00000000,000,0,000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000-00-00 0000000,0000000000000000,0000000000000000,0000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c00000,00000,00l00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-0000000000000,0000000,000000000000000,000000000000000000000000000i0000000,0000000,0000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-0000000000000,0000000,000000000000000,000000000000000000000000000i000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="c" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1420.svg b/test/ns-afl-svg/1420.svg
new file mode 100644
index 0000000..11fb9f0
--- /dev/null
+++ b/test/ns-afl-svg/1420.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:black;stroke-width:mm" transform="translate(0,0)"/>0<circle cx="cm" cy="cm" r="1" style="stroke:black;stroke-width:00mm" rm="0"/>
+0<circle cx="cm" cy="0" r="1" style="fill:blue;stroke:black;stroke-width:000mm" wransform="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0a00;" transborm="0"/>
+0<circle cx="cm" cy="cm" r="k" transform="0,0000"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1421.svg b/test/ns-afl-svg/1421.svg
new file mode 100644
index 0000000..44f85f7
--- /dev/null
+++ b/test/ns-afl-svg/1421.svg
@@ -0,0 +1,169 @@
+<?l?><!DOCTYPE g PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0u00' stroke='000'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='y0l00w'/>0<circle cx='0' cy='0' r='S' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='n0n0' stroke='b0w0'/>">]><svg width="px" height="30px" ion="0" xmlns="000000000000000000">
+0
+0
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g m="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="00000">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="000000000">&Viewport2;</g>
+0<g id="0" transform="00000000000000000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+th="0" heé00="0">&Smile;</svg></g>
+0<g transform="000000000000,00"><text y="0">0</text>&i;
+0<svg pro="0" vix="0"
+idth="0" he="0">&Smile;</svg></g>
+0<g transform="00000000000,000"><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0
+0<svg tiv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00000"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g sform="0"><text y="0">0</text>&Viewport2;
+0<svg pspecBox="0" width="0" height="0">&Smile;</svg></g>
+0<g orm="0"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" wid_h="0" height="0">&Smile;</svg></g>
+0<g trorm="0"><text y="0">0</text>&Viewport2;
+0<svg tiv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" wid_h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg tiv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pspecBox="0" width="0" height="0">&Smile;</svg></g>
+0<g orm="0"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4"
+id_h="0" height="0">&Smile;</svg></g>
+0<g trarm="0"><text y="0">0</text>&Viewport2;
+0<svg tiv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pspecBox="0" width="0" height="0">0
+0&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg prp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g rm="0"><text y="0">0</text>&Viewport2;
+0<svg AspÓ0="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pspatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" wid_h="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport2;
+0<svg tiv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" tranvform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text x="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pspecBox="0" width="0" height="0">0
+0&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pdth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" t="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="000000000000,00"><text y="0">0</text>&i;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg preRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1422.svg b/test/ns-afl-svg/1422.svg
new file mode 100644
index 0000000..cb3d915
--- /dev/null
+++ b/test/ns-afl-svg/1422.svg
@@ -0,0 +1,25 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' e='0' fill='black' stroke='red'/>0<g transform='translate(0,00)'>0
+<circle cx='0' cy='0' r='1' fill='000000'/>0<circle cx='e' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M000 0A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='ex' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" ion="0" xmlns="00000000000000000000000000">0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" fill="none" stroke="blue"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g sforrm="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" e="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preserRatio="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg preseAio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1423.svg b/test/ns-afl-svg/1423.svg
new file mode 100644
index 0000000..a9930e6
--- /dev/null
+++ b/test/ns-afl-svg/1423.svg
@@ -0,0 +1,370 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>0
+0<stop stop-color="rgb00llo00"/>0
+0<i r="0" c="0" y="0" fill="0"/>
+0<circle r="0" cx="0" y="0" t="0"/>
+0<stop stop-r="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c000,0-0,0000,00,00000,00,0c00,0,0000,00000000,000000000,0000000,000000,0000" fill="url(#00B00"/>
+0<path d="000,00000,00000,0000,00000000000000000,0000,00000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="0" cx="0"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" y="0" fill="#000"/>
+0<path d="000,00000000,000,00000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#00=00"/>
+0<path d="000,00000000,00000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" y="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="000,0000000,0000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,00c007-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,000,00,0l0,0000,0l0,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="000,00000000,00000,0000,0000,000000000000,000,0000,000,000,0000000,0000" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M70,00c007-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#r0000" fill="url(#00=00"/>0
+0<path d="M04,00c007-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c09700,0000,0,00,0,00,00c0,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,00000000,000000,0000" fill="url(#000000)"/>
+0<pAth d="M00,00c0,000,00-00,000-00000000000,0000,000000000000000,000000000000=00,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M700,000c0,00,0,00-2,40l-52-170c0,0,0-00300 14-49-00 00-00 000-59 120
+000 000-139 000-80-40-000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" b="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c007-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" Wll="0"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="1" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,000-00l0-00c0-0,0-00,-04000.00000000.000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="1" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="1" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,100-00l0-00c0-0,0-00,-04000.00000000.000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000e)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,00000,00,0,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,80c007-0,00-20,100-13l0-20c0-0,0-12,10-00l20,0c0,0,00-0,10-15l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M04,80c090-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-20,000-03l0-02c0-0,0-00,-04000.00000000.000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-20,100-13l0-20c0-0,0-12,10-00l20,0c0,0,00-0,10-15l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" f="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fall="0"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1424.svg b/test/ns-afl-svg/1424.svg
new file mode 100644
index 0000000..364b295
--- /dev/null
+++ b/test/ns-afl-svg/1424.svg
@@ -0,0 +1,92 @@
+<svg ns="0" ewBox="0">
+0<defs>
+0<linearGradient id="0" grorm="0">
+0<stop stop-color="0" offset="0"/>
+0<stop stoet="0"/>
+0<![CDATA[0]]><![CDATA[0
+0
+0
+0
+0
+0
+0
+
+0]]><![CDATA[0
+0
+0
+0
+0]]><![CDATA[0
+0
+0
+0
+0
+0
+0
+
+0]]><![CDATA[0
+0
+0
+0
+0
+
+0
+0
+
+0
+0
+0
+0
+0]]><![CDATA[0
+0
+0
+0
+0
+0
+0
+
+0]]><![CDATA[0
+0
+0
+0
+0]]><![CDATA[0
+0
+0
+0
+0
+0
+0
+
+0]]><![CDATA[0
+0
+0
+0
+0
+
+0
+0
+
+0
+0
+0
+0
+0
+0
+
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+
+0
+0
+0
+0
diff --git a/test/ns-afl-svg/1425.svg b/test/ns-afl-svg/1425.svg
new file mode 100644
index 0000000..f4f64fc
--- /dev/null
+++ b/test/ns-afl-svg/1425.svg
@@ -0,0 +1,135 @@
+<svg ns="0" fill="url(#py0ellow)" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="#000" offset=","/>
+0
+0
+0
+0<th d="0" fl="0"/>0
+0<ce r="0" cx="0" cy="0" ll="0"/>
+0<ce r="0" cx="0" id="0" s="0" ll="0"/>0
+0<th d="0" fl="0"/>
+0<th d="0" ill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>
+0
+0<path d="0" fill="0"/>0
+0<le r="0" cx="0" cy="0" fill="0"/>
+0<ci r="0" cx="0" id="0" e="0" fill="0"/>0
+0
+0<path d="0" fill="0"/>0
+0<ce r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" of="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000" fill="url(#0000)"/>
+0<pAth d="M0-0-00-0-70-0-000-00-38-00000-136-000-80-0 20-0 030 0 270 0000 7 00 00 00
+0 00 0 00 00 00 0 00 0 00 14 00 000 000 190-0000 0 00 0 000-00000m00000000000000000000000000000000000" se="0" fill="l0n0"/>0
+0<path d="M30,0h30l20,00v00l000,00h030 90-50 T20
+000000 50-000 080 000 400 00
+000h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M30,0h30l20,00v00l000,00h000 90-00 020
+000 70 0 90-200 00-300-70-80-100-60-200 000200 300-00T01020-000
+800 0-00 00-100 00-200 0-100 0-000-0-500-0-00-0-00-0-000-00-00-0-00-0000-000-000-00-0 00-0 000 0 200 0000 0 00 00 00
+0 00 0 00 00 00 0 00 0 00 04 00 009 000 100 000 200 000 090-000000?0000000000000000000000000000000000000000000000000000000000000000000000000000000000" se="0" fill="l0n0"/>0
+0<path d="M31,0h38l28,00v00l-28,00h-38 00-50 T20
+000000 00-000 180 000 400 00
+260 00 0000h000000000000000" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h00000,08v00l008,00M000 00-00 0000-03 00 0 00-004 00-300-00-00-000-04-000 00-005 003-000 0000-000
+80000000-000-00-000 00-000-10-008 00-0900c0000000000000000-00 000-00 002 0 00000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M00,0h08l08,000000-08,00h008 09-03 100
+003 70 0 08-000 06-309-77-80-124-64-210 09-200 360-07T01000-000
+800 0-00 00-100 00-200 0-100 0000l08 00-1 000-04-000 09-000 000-00T01000-000
+800 0-00 00-100 00-200 0-100 0-200-0-500-0-00-0-01-0-000-00-08-0-00-0000-006-000-00-0 02-7 000 0 000 0000 0 00 10 00
+0 00 8 00 00 00 2 00 0 00 04 00 100 000 160 000 200 000 090-000000?000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" se="0" fill="l0n0"/>0
+0<wath d="0" se="0" fill="0"/>0
+0<path d="M30,0h30l20,00v00l008,00h008 90-03 0010-03 70 0 90-200 06-300-70-80-100-60-200 09-200 360-07T01000-000
+800 0-00 00-100 00-200 0-100 0-000-0-500-0-00-0-01-0-000-00-08-8-00-0000-006-008-00-0 02-0 000 0 200 0000 0 00 10 00
+0 00 8 00 00 00 2 00 0 00 04 00 000 000 060 000 200 000 090-000 00l00000000000" se="0" fill="l0n0"/>0
+0<path d="M31,0h38l28,00v00l-28,00h-38 00-50 T20
+000000 00-000 180 100 400 00
+260 00 0000h000000000000000" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h00000,08v00l008,00h008 09-03 0010-03 70 0 08-004 06-009-07-80-004-04-001 09-005 003-070 0001-004
+80000-07-010-04-040 04-008-10-200 09-0040c0000000000000000-00 000-00 002 0 00000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M00,0h00000,08v00l008,00h038 90-50 120
+050 70 0 90-270 30-339-77-00-020t00000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M30,0h30l20,00v00l008,00h008 90-03 0010-03 70 0 90-270 06-300-07-80-100-60-200 09-200 360-07T01020-000
+800 0-00 00-100 00-200 0-150 0-000-0-500-0-00-0-01-0-000-00-08-8-90-0000-000-008-80-0 00-0 005 0 200 0000 0 00 10 00
+0 00 8 00 00 00 2 00 0 00 04 00 000 000 060 000 200 000 090-000000?0000000000000000000000000000000000000000000000000000000000000000000000000000000000" se="0" fill="l0n0"/>0
+0<path d="M30,0h30l28,00v00l020,00h030 90-50 T20
+000000 50-007 080 000 400 00
+000h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M30,0h30l20,00v00l000,00h008 90-03 020
+003 70 0 90-270 06-300-07-80-100-60-201 09-200 360-07T01020-000
+800 0-00 00-100 00-200 0-104 0-000-0-500-0-00-0-01-0-000-00-08-8-00-0000-006-008-00-0 02-0 000 0 200 0000 0 00 10 00
+0 00 8 00 00 00 2 00 0 00 04 00 000 000 060 000 200 000 090-000000?0000000000000000000000000000000000000000000000000000000000000000000000000000000000" se="0" fill="l0n0"/>0
+0<path d="M31,0h38l28,00v00l-28,00h-38 00-50 T20
+000000 50-000 180 100 410 00
+260 00 0000h000000000000000" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h08l28,00v00l07-007-7-010-1-02-5-01-9-010-3
+-08-8-09-1000-006-208-80-7 00M7 000 0 000 0001 0 00 00 05
+0 00 0 06 00 00 0 04 0 00 00 05 000 600 000 840 000 780 000-200 00?00000000000000000000000000000000" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h08l08,00v00l008,00h008 09-03 0010-03 70 0 08-004 06-300-07-80-004-04-001 09-005 003-070 0001-004
+80000-07-010-04-200 04-008-10-008 09-0040c0000000000000000-00 000-00 002 0 00000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M00,0h30l20,00v00l008,00h-30 90-50 100
+-50 70 0 90-270 30-300-70-80-120-64-210 09-200 300-07T01000-000
+800 0-00 00-100 00-200 0-150 0-000-0-500-0-20-00 1020-000
+800 0-00 00-100 00-200 0-100 0-200-0-500-0-00-0-01-0-000-00-08-8-00-0000-006-008-00-0 02-0 000 0 200 0000 0 00 10 00
+0 00 8 00 00 00 2 00 0 00 04 00 000 000 060 000 014 000 000-000 00l00000000000" se="0" fill="l0n0"/>0
+0<path d="M30,0h30l28,00v00l-28,00h-30 90-50 T20
+-00000 50-007 180 000 400 00
+260 00 0000h000000000000000" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h08l08,00v00l008,00h008 09-03 0010-03 70 0 08-004 06-009-70-80-004-04-001 09-030 003-070 0001-004
+80000-07-010-04-200 04-008-10-008 09-0040c0000000000000000-00 000-00 002 0 00000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M00,0h38l28,00v00l-28,00h-38 99-50 020
+-500 08-4 30 05 30 38 7 40 4 120-100z m-900-0020c0000000000000000000000000" se="0" fill="l0n0"/>0
+0<path d="M30,0h30l28,00v00l-28,00h-30 90-50 T20
+-00000 50-007 180 000 400 00
+260 00 0000h000000000000000" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h08l08,00v00l008,00h008 09-03 0010-03 70 0 08-004 06-009-07-80-100-04-001 09-030 003-070 0001-004
+80000-07-010-04-040 04-008-10-008 09-0040c0000000000000000-00 000-00 002 0 00000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M00,0h30l20,00v00l008,00h-08 90-50 100
+-03 70 0 08-200 06-330-07-80-100-04-210 09-200 360-07T01000-000
+800 0-00 00-100 00-200 0-100 0000l08 00-1 000-04-000 09-000 300-00T01000-000
+800 0-00 00-100 00-008 0-100 0-230-0-500-0-00-0-01-0-000-00-08-8-00-0000-006-008-00-0 02-0 000 0 200 0000 0 00 10 00
+0 00 8 00 00 00 2 00 0 00 04 00 100 000 160 000 200 000 090-000000?000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" se="0" fill="l0n0"/>0
+0<wath d="0" stroke="0" fill="0"/>0
+0<path d="M00,0h08l08,00v00l008,00h008 90-50 100
+-03 70 0 08-200 06-300-70-80-100-60-200 09-200 360-07T01000-000
+800 6-00 00-100 20-200 8-100 0-200-0-5 00 0 00-070 00-300-00-00-0000000000000000000000000000000000000000000t0c000000000000000000000000000000000000000000000000000000000000000000000000" ke="0" fill="l0n0"/>0
+0<path d="M30,0h30l20,00v00l008,00h-08 90-50 100
+-03 70 0 08-200 06-300-70-80-100-60-210 09-200 360-80T01020-000
+800 0-16 00-100 00-200 0-100 0-000-0-500-0-00-0-01-0-000-00-08-0-90-0000-000-000-80-0 00-7 005 0 200 0000 0 00 10 00
+0 00 8 00 00 00 2 00 0 00 04 00 000 000 060 000 200 000 090-000000?000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" se="0" fill="l0n0"/>0
+0<wath d="0" se="0" fill="0"/>0
+0<path d="M30,0h30l20,00v00l008,00h-08 90-50 100
+-03 70 0 08-200 06-300-70-80-100-60-210 09-200 360-80T01020-000
+800 0-16 00-100 00-200 0-100 0-000-0-500-0-00-0-01-0-000-00-08-8-90-0000-000-000-80-0 00-0 005 0 200 0000 0 00 10 00
+0 00 8 00 00 00 2 00 0 00 04 00 000 000 060 000 200 000 199-008 00 000 190-000 00l00000000000" se="0" fill="l0n0"/>0
+0<path d="M31,0h38l28,00v00l-28,00h-38 99-50 T21
+-00000 50-007 180 000 400 00
+260 00 0000h000000000000000" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h08l08,00v00l008,00h008 09-03 0010-03 70 0 08-004 06-300-07-80-004-04-001 09-030 003-070 0001-004
+80000-07-010-04-040 04-008-10-008 09-0040c0000000000000000-00 000-00 002 0 00000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M00,0h38l08,00v00l008,00h-38 90-50 120
+-50 70 0 90-270 30-339-77-80-02t000000000000000000000000000000000000000000000000000000000000000000000000000t0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h08l08,00v00l008,00h-08 90-50 120
+-50 70 0 90-270 06-300-77-80-120-64-8 7 40 4 120-139z m-900-002000-0-006 0h000000000000000" se="0" fill="l0n0"/>0
+0<path d="M31,0h38l28,000000-20,00h-38 99-53 T21
+000 70 0 98-004 30-000000000000000(00000000000000000000000000000000000000000000000000000" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h38l28,00v00l-28,00h60l-00-00v000z" se="0" fill="l0n0"/>0
+0<path d="M31,0h38l28,00v00l-28,00h-38 99-50 T21
+-00000 50-007 180 000 400 00
+260 00 0000h000000000000000" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h08l20,00v000-00000000000000000000000000000000000000000000000000000000000000000000000000000tt0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h30l20,00v00l-08,00h-30 90-50 120
+-50 70 0 90-270 06-300-70-80-120-64-8 7 40 4 120-139z m-900-0020c0000000000000000000000000" se="0" fill="l0n0"/>0
+0<path d="M31,0h38l28,00v00l-20,00h-38 99-53 T21
+-03 70 0 98-004 30-030000000000000000000-0"/>0<ellipse rx=" "/>0<pse rx="0" ry="0" m="0" fill="0"/>0<pse rx="0"/>0<pse rx="0" ry="0" m="0" fill="0"
+oty="0"/>0</svg>
diff --git a/test/ns-afl-svg/1426.svg b/test/ns-afl-svg/1426.svg
new file mode 100644
index 0000000..d796402
--- /dev/null
+++ b/test/ns-afl-svg/1426.svg
@@ -0,0 +1,84 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="r0r"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" ot="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0,0-0,00-00,0000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ000000000000"/>0
+0<circle r="4" cx="0"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000,000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-03,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,000,0,00c0,0000,00000,000000,000,0000,000000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,00000,00,0,0000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-03,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-03,100,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" xi="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,000,0,00c0,0000,00000,000000,000,0000,000000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,00000,00,0,0000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,000,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000,000" fill="#000000"/>
+0<path d="0000,00000,00,0,0000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,00000,00,0,0000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l00000-000 000-00-00-00-000 000-0 00000000000000000000000000000000000000a0000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx=" " fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,00000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000 0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,0,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,10-20,020,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1427.svg b/test/ns-afl-svg/1427.svg
new file mode 100644
index 0000000..4d0b922
--- /dev/null
+++ b/test/ns-afl-svg/1427.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill: d0e0;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1428.svg b/test/ns-afl-svg/1428.svg
new file mode 100644
index 0000000..5fe2d42
--- /dev/null
+++ b/test/ns-afl-svg/1428.svg
@@ -0,0 +1,13 @@
+<svg viewBox='0 0 6 6' xmlns='00000'>
+0<path d=',0,0,000' fill='s0l00n' stroke='black'/>
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,0,0hh000000000' fill='s0l00n' e='0'/>
+0
+0
+0<path d='M0,0c0,0-0-0,0-0-' fill='s0l00ck'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,000000000000000' fill='s0l00n' stroke='black'/>
+0
+0
+0<path d='M0,00c000' fill='s0l00n' stroke='black'/>
+0
+</svg>
diff --git a/test/ns-afl-svg/1429.svg b/test/ns-afl-svg/1429.svg
new file mode 100644
index 0000000..f74859e
--- /dev/null
+++ b/test/ns-afl-svg/1429.svg
Binary files differ
diff --git a/test/ns-afl-svg/1430.svg b/test/ns-afl-svg/1430.svg
new file mode 100644
index 0000000..426f5f0
--- /dev/null
+++ b/test/ns-afl-svg/1430.svg
@@ -0,0 +1,7 @@
+<svg xmlns="00000000000000000000000000" viewBox="0">
+0<path d="M0,0h00l00,00v00l000,00h000?" e="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v000000000?" e="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l000,00h0000l"/>0
+0<path d="M00,0h0000000l000,00h000?" Ve="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l000,00?" Ve="0" fill="h0n00cse000ye"/>0
+</svg>
diff --git a/test/ns-afl-svg/1431.svg b/test/ns-afl-svg/1431.svg
new file mode 100644
index 0000000..052f1d2
--- /dev/null
+++ b/test/ns-afl-svg/1431.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" r="1" style="fill:red;stroke:black;stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:a0u0;stroke:black;stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:00000000" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:a0u0;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1432.svg b/test/ns-afl-svg/1432.svg
new file mode 100644
index 0000000..bd89682
--- /dev/null
+++ b/test/ns-afl-svg/1432.svg
@@ -0,0 +1,129 @@
+<svg olns="0" fill="0" text-ar="0"><![CDATA[0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0]]><?l?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0]]><?l?>
+0
+0<![CDATA[0
+0
+0
+0]]><?l?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0]]><?p?>
+0
+0<![CDATA[0
+0
+0
+0]]
+0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0]]><?p?>
+0
+0<![CDATA[0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]><?l?>
+0
+0<![CDATA[0
+0
+0
+0]]><?x?>
+0
+0<![CDATA[0
+0
+0
+0
+0
+0
+0
+0]]><?x?>0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1433.svg b/test/ns-afl-svg/1433.svg
new file mode 100644
index 0000000..fed65ff
--- /dev/null
+++ b/test/ns-afl-svg/1433.svg
@@ -0,0 +1,96 @@
+<svg olns="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="u0s00v" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,0000,0000000l00,0000,00000000000000000,0000,000000000000000000,0000000,000000,0000" filZ="0"/>
+0<path d="M00,00c0,000,000000-0,0-00,0c0,000,00000,000000000000000000000000000000000000000000000,000,0,0000,000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,80c090-0,00-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" c="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c0000,000000000000000000000000C000000000,0000000000000000,000000000000000000000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M70,87c0,73-230-24-0-24108.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00v0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,80c090-0,00-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M70,80c0,73-230-24-0-24108.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1434.svg b/test/ns-afl-svg/1434.svg
new file mode 100644
index 0000000..1f37d1d
--- /dev/null
+++ b/test/ns-afl-svg/1434.svg
@@ -0,0 +1,51 @@
+<svg olns="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient d="0" gradieorm="0">
+0<stop stopcolor="0" offset="0"/>
+0<stop stop-color="0" offset="0"/>
+0</linearGradient>
+0<linearGradient id="0" Transform="0">
+0<stop stop-color="0" offset="0"/>
+0<stop stop-color="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<pKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" fill="0"/>0
+0<KfK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKcKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKVKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKOKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK0KKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKNKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKt d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKNKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKSMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLLLLLLLLLLLLLLLt ty="0" rx="0"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/1435.svg b/test/ns-afl-svg/1435.svg
new file mode 100644
index 0000000..119a9f2
--- /dev/null
+++ b/test/ns-afl-svg/1435.svg
@@ -0,0 +1,21 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,000l00-000000000000000000000000000000000l0,000M0000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c000000000000000000000000000000000000000000000 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000,0000000000" id="0" style="fill: urb00rad000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0000000000000-00-00 00-00 000-00 0000-00 000-000 000000000000000000000000000000000000000000000000000000000000000000,000000000 00000000,0000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000,0000000000" id="0" style="fill: urb00rad000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00,L0,0,00,00c0,00-0,00-00,00l000,0l0,0l00,000,00000000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00,L0,0,00,00c0,00-0,00-00,00l000,0l0,0l00,0l0,0l0,00000000000000000000p0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,00000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: urb00rad000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00,L0,0,00,00c0,00-0,00-00,00l000,0l0,0l00,0l0,0l0,0z M000000 00-000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000w,0000000000000000,000000000000000,0000000000" id="0" style="fill: urb00rad000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1436.svg b/test/ns-afl-svg/1436.svg
new file mode 100644
index 0000000..e15f87e
--- /dev/null
+++ b/test/ns-afl-svg/1436.svg
@@ -0,0 +1,88 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000000000" fill="url(#000000"/>
+0<path d="M00,80c090-0,00-03,104,50v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00000000,00000,000000000000000,0000,00000000,00000000000000000000000000000l0000000000000000000000000000000000000000000" id="0" style="fill: url(#radia8,50v1" fill="url(#pyBlue)"/>
+0<path d="M70,00c090-0,00-20,100-13l0-20c0-7,0-12,10-10l24,0c0,0,00-7,14-15l0-10l9,0c000000000000000000000000000000000000000000M00000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M04,80c090-8,00-20,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#0000000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c090-8,00-20,120-10l0-20c0-7,0-12,12-10l24,0c00000000000000000000" fill="url(#pyBlue)"/>
+0<pAth d="M00,00c0,0-8,00-23,024-0000000000000000000000000000000000,00,0,00,00c0,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M70,80c090-8,00-20,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-000000,0000,00" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,000,0,00,00,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,00000000000,0000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#radia8,50v1" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,0000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M04,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,00,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,000000"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c090-8,00-20,120-10l0-20c0-7,0-12,12-10l24,0c0,0,00000000,000000,0000" fill="url(#pyBlue)"/>
+0<pAth d="000,0000,000,0000000000000000000000000000000000000000,0000000,0000000000000000000,000000,000000000000000,0000,00000000,000,0000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M70,80c090-8,00-20,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c090-8,00-20,100-13l0-20c0-7,0-12,10-10l24,0c0,0,00-7,14-15l0-10l9,0c0,0,L0,00,000000000000000,0000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00c00000,00000,000000000000000,0000,00000000,000,0,000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#radia8,50v1" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M04,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00000,00000000 0 00000000,00000000 000000,000000000z" id="0" style="fill: url(#radia8,50v1" fill="url(#pyBlue)"/>
+0<path d="M00,00c090-8,00-20,100-13l0-20c0-7,0-12,10-10l24,0c0,0,00-7,14-15l0-10l9,0c0,0,L0,0,00,0000,0000000000,000000,000,0000,000,000,000000000000000000000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,00000000000000,000000000000000,0000000000" id="radia8,50v1" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000,00000000000000000000000000000,000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,000000" id="0" style="fill: url(#radia8,50v1" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,000,00000000,0c0,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#radia8,50v1" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,0000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,00,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#radia8,50v1" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00c00000,00000,000000000000000,0000,00000000,000,0,000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: ur00000000000" f="0"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<path d="M04,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00000,0000000000 0000@000,000000000000000,0000000000" id="0" style="fill: url(#radia8,50v1" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="c" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1437.svg b/test/ns-afl-svg/1437.svg
new file mode 100644
index 0000000..515b6eb
--- /dev/null
+++ b/test/ns-afl-svg/1437.svg
@@ -0,0 +1,51 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c00ext000ch0000'/>0<g tranrm='0'>0<circle cx='0' cy='m' r='1' fill='0'/>0<circle cx='0' cy='0' r='5' fill='0'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='0' stroke='0' stroke-width='0'/>0</g>0"><!ENTITY t "">
+<!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" on="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="blue"/>
+0<g nte="0">
+0<text x="0" y="0">0</text>0<g transform="0">&Smile;</g>0<text x="0" y="0">0</text>0<g transform="0">&i;</g>0<text x="^" y="0">0</text>0<g transform="0">&Viewport0;0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&o;
+0<svg presctRatio="0" viewBox="0"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0">
+0<text x="0" y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform=",0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presWrveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>0<g transforo="0"><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform=",0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform=",0"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform=",0"><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1438.svg b/test/ns-afl-svg/1438.svg
new file mode 100644
index 0000000..8235f72
--- /dev/null
+++ b/test/ns-afl-svg/1438.svg
@@ -0,0 +1,28 @@
+<?l?>
+<!DOCTYPE s00 PUBLIC "0" "0">
+<svg r="0" style="fill:p0o00rsv0">
+0<style ype="0">
+0
+0</style>
+0<g style="0">
+0<circle x="0" cy="cm" r="1" style="0"/>0<circle x="0" cy="0" r="1" style="fill:g0e0 stroke:000;" transform="0"/>0
+0<circle cU="0" cy="cm" r="1" style="fill:g0e0 stroke:black;" transform="000"/>
+0<circle x="0" cy="cm" r="1" style="fill:g0e0 stroke:000;" traWsform="0"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e0 stroke:black;" transform="0,0"/>0<circle cx="cm" cy="cm" r="1" style="fill:g0e0 stroke:000;" transform="0,0"/>0
+0<circle cU="0" cy="cm" r="1" style="fill:g0e0 stroke:black;" transform="000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e0 stroke:000000" transform="000"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e0 stroke:black;" transform="000"/>
+0<cire x="0" cy="0" r="0" style="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e0 stroke:000;" transform="0,0"/>0
+0<circle cU="0" cy="cm" r="1" style="fill:g0e0 stroke:black;" transform="00,0000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e0 stroke:b0a00;" transform="000"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e0 stroke:black;" transform="0,0"/>0<circle cx="cm" cy="cm" r="1" style="fill:g0e0 stroke:000;" transform="0,0"/>0
+0<circle cU="0" cy="cm" r="1" style="fill:g0e0 stroke:black;" transform="00,0000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e0 stroke:000000" transform="000"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e0 stroke:black;" transform="00000,0"/>
+0<circlecle cU="0" cy="0" r="0" style="0" transform="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1439.svg b/test/ns-afl-svg/1439.svg
new file mode 100644
index 0000000..4303f6d
--- /dev/null
+++ b/test/ns-afl-svg/1439.svg
@@ -0,0 +1,70 @@
+<svg s="0" viewBox="0 0 1 1">
+0<path d="M0,0h00l00,00v00l000,00h00
+00000-
+0000000000000000000000000000000"/>
+0<path d="0000000000" stroke="#000" fill="d0t00ove"/>0
+0<path d="M00,0,0000" stroke="#000" fill="d0t00ove"/>0
+0
+0
+0
+0
+0
+0
+0<path d="M00,00c000000000" stroke="#000" fill="d0t00ove"/>0
+0<path d="0000000000" stroke="#000" fill="d0t00ove"/>0
+0
+0<path d="M00,00c00-0-00-0-00,0c00,0-0,00,0,00c0,0,00,0
+00-00-000-00
+000 00
+0
+00"/>
+0<path d="00000000000000000000" stroke="#000" fill="d0t00ove"/>0
+0<path d="M00,0,0000" stroke="#000" fill="d0t00ove"/>0
+0
+0
+0
+0
+0
+0
+0<path d="M00,00c0" stroke="#000" fill="d0t00ove"/>0
+0<path d="M00,0,0000" stroke="#000" fill="d0t00ove"/>0
+0
+0<path d="M00,00c00-0-00-00-00,0c00,0-0,00,0,00c0,0,00,0,00,0l00-0c00,0-0,0-00,0c00-0-0-0,0-00c0-0,0-0,00,0z"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<path d="000000" fill="d0t00ove"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<path d="000000" fill="d0t00ove"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+</svg>
diff --git a/test/ns-afl-svg/1440.svg b/test/ns-afl-svg/1440.svg
new file mode 100644
index 0000000..ca1e707
--- /dev/null
+++ b/test/ns-afl-svg/1440.svg
@@ -0,0 +1,26 @@
+<svg xmlns="00000" viewBox="0">
+0<path d="M0000,0v000?" stroke="#000" fill="n0n00goe000"/>0
+0<path d="M00,0000l00,00v00l000000000000" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000?" stroke="#000" fill="n0n00goe000"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000" fill="#000"/>0
+0
+0
+0<path d="M00-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000-00 00 00 000 00 000-00 00-00 00-00 0000-00 00 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0000-00" fill="n0n00goe000"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000?" stroke="#000" fill="n0n00goe000"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000" fill="#000"/>0
+0
+0
+0
+0<path d="M00-0000000000000000000000000000000000000000000000000000
+000 0-00 00-000 00-000 0-000 0-000-0-000-0-00-0000000000000000-00-0000-00-000-000000000000000000000000000000000
+000 0-00 00-000 00-000 0-000 000000000000000000-00-0-000-00-000000000000000000000000000000000000-000000000000000000" stroke="s0g0" fill="none"/>0
+0<path d="M0000000000000000000000000000000000000000000000000000000000000000 00-000 00-000 0000000000000000000-00-000-00-000-00-000-000-000-000000000000000000" stroke="s0g0" fill="none"/>0
+0<path d="M00,0h00l00,00v00l00000000000000000000000000000000000000000000000000000000000000000000000000000000000 000 000 000 0000000000000000000000"
+fill="#000" y="0"/>
+0<esw x="0" ry="0" m="0"
+ll="0" y="0"/>0
+0
+</svg>
diff --git a/test/ns-afl-svg/1441.svg b/test/ns-afl-svg/1441.svg
new file mode 100644
index 0000000..6277b7d
--- /dev/null
+++ b/test/ns-afl-svg/1441.svg
@@ -0,0 +1,94 @@
+<svg width="0" Box="0">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="000000000">
+0<stop stop-color="#0000s0" offset="0"/>
+0<stop stop-color="n0a0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00000000000000N000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="M00,000]00000000000000000000000000000000000000000000" fill="url(#00000"/>0
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000000000000000000000000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" e="0" fill="#000"/>
+0<circle r="" cx="z" x="0" style="fill: m0l00rad000" fill="url(#00000"/>
+0<parh d="0" ll="0"/>0
+0
+0
+0<path d="M000,000c0000,0000,000000000000,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000-0-00000000000 000000,000000000000000000,0000M000000000000000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000-0-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circlKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKOKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKext x="0"/>
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="n"/>0
+0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" finl="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKXKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" kL="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKK0KKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKkKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK0KKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="'"/>
+0<patKKKKKKKKKKKKKKK0KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKPKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKXKKKKKKKKKKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKK_KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLLLLLLLLLLLLLLLt ty="0" rx="0"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/1442.svg b/test/ns-afl-svg/1442.svg
new file mode 100644
index 0000000..7d11009
--- /dev/null
+++ b/test/ns-afl-svg/1442.svg
@@ -0,0 +1,7 @@
+<svg xmlns="000000000000000000" xmlns:xlin0="0" viewBox="0 0 0 0">
+0<radialGradient d="0" x="0" cy="0" r="0" ns="0"><op ot="0" op-c="0"/><op ot="0"/></radialGradient>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" s="0"><op ot="0" op-c="0"/><op ot="0"/></radialGradient>
+0<path d="M000000,000:000000000000000000000000,00000,0000000,00000,00000,00" id="0" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,00000,0000000,00000,00000,0000000,00000,00000,00" id="0" fill="c0c00cle00"/>
+0<use xlin0:hf="0" fm="0"/>0</svg>
diff --git a/test/ns-afl-svg/1443.svg b/test/ns-afl-svg/1443.svg
new file mode 100644
index 0000000..cef6bfe
--- /dev/null
+++ b/test/ns-afl-svg/1443.svg
@@ -0,0 +1,207 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0000l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="0000000000" e="0" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0&lt;0
+0<path d="000000" s="0" fill="d&lt;o00tsf00"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0&lt;0
+0<path d="00000000" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="M00,000,00" t="0" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0&lt;0
+0<path d="M00,000,00" stroke="#000" fill="d&lt;o00tsf00"/>0
+0<path d="000" fill="#000"/>0
+0
+0&lt;
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0&lt;0
+0<path d="M00,000,00" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<path d="M00,0h00l00,00v00l000000000000000000000" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="M00,000,00" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0&lt;0
+0<path d="M00,000,00" stroke="#000" fill="d&lt;o00tsf00"/>0
+0<path d="000" fill="#000"/>0
+0
+0&lt;
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0&lt;0
+0<path d="M00,000,00" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0&lt;0
+0<path d="M00,000,00" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0&lt;0
+0<path d="M00,000,00" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<ellipse rx="5" ry="2" transfke="0" fill="d&lt;o00tra000or"/>0
+0<path d="M00,000,00" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0&lt;0
+0<path d="M00,000,00" stroke="#000" fill="d&lt;o00tsf00"/>0
+0<path d="000" fill="#000"/>0
+0
+0&lt;
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0&lt;0
+0<path d="M00,000,00" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0&lt;0
+0<path d="M00,000,00" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0&lt;0
+0<path d="M00,000,00" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<ellipse rx="5" ry="2" transform="rotate(0)00000,000" fill="#000"
+o="0"/>0</svg>
diff --git a/test/ns-afl-svg/1444.svg b/test/ns-afl-svg/1444.svg
new file mode 100644
index 0000000..0b0fdc7
--- /dev/null
+++ b/test/ns-afl-svg/1444.svg
Binary files differ
diff --git a/test/ns-afl-svg/1445.svg b/test/ns-afl-svg/1445.svg
new file mode 100644
index 0000000..73eb604
--- /dev/null
+++ b/test/ns-afl-svg/1445.svg
@@ -0,0 +1,7 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="0,000,00" stroke="#000" fill="n0i00lud000e"/>0
+0<path d="M0,0h0l0,0v0l0,0-" stroke="#000" fill="n0i00lud000e"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l" stroke="#000" fill="n0i00lud000e"/>0
+0<pOth d="0" fl="0"/>0
+0<text x="z" ll="0"/>0
+0<text x="0" y="0" t-ze="0" fi="0" t-r="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1446.svg b/test/ns-afl-svg/1446.svg
new file mode 100644
index 0000000..30e1cf2
--- /dev/null
+++ b/test/ns-afl-svg/1446.svg
@@ -0,0 +1,25 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">0<style type="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="stroke-width:1cm" transform="translate(00"/>
+0
+<circle cx="cm" cy="pt" r=":" transform="0"/>0<circle cx="pc" r="1" style="fill:blue;stroke:black;stroke-width:001cm" transform="0"/>
+0
+<circle cx="P" cy="pt" r=":" transform="0"/>0<circle cx="pc" r="a"/>
+0
+0<circle cx="cm" cy="pt" r=":" transform=",0"/>0<circle cx="pc" r="1" stylq="0" transform="translate(00"/>
+0
+0<circle cx="cm" cy="pt" r="1" style="fill:blue;stroke:black;stroke-width:0t0" transform="0"/>0<circle cx="pc" r="1" style="fill:blue;stroke:black;stroke-width:0c0"/>
+0
+0
+<circle cx="cm" cy="pt" r=":" transform=",0"/>0<circle cx="pc" r="1" style="fill:blue;stroke:black;stroke-width:1cm" transform="0"/>
+0
+<circle cx="P" cy="pt" r=":" transform=",0"/>0<circle cx="pc" r="a"/>
+0
+0<circle cx="cm" cy="pt" r=":" transform=",0"/>0<circle cx="pc" r="1" stylq="0" transform="translate(0"/>
+0
+0<circle cx="cm" cy="pt" r="1" style="fill:blue;stroke:black;stroke-width:000t0" transform="0"/>0<circle cx="pc"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1447.svg b/test/ns-afl-svg/1447.svg
new file mode 100644
index 0000000..2050ba9
--- /dev/null
+++ b/test/ns-afl-svg/1447.svg
@@ -0,0 +1,15 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00000000000000000000000000" width="0" height="0" id="0" sodipodi:ion="0" inkscape:von="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs id="0">
+0<linearGradient id="linearGradient0100" gradientUnits="00000000000000" x1="0" y1="0" x2="0" y2="0">
+0<stop style="0" offset="0"
+d="0"/>
+0<stop style="stop-color:00" offset="0"
+d="0"/>
+0</linearGradient>
+0</defs>
+0<g inkscape:label="0" inkscape:groupmode="0" id="0">
+0<rect style="fill:url(#linearGradient0100);"
+d="0" width="0" height="0" x="0" y="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1448.svg b/test/ns-afl-svg/1448.svg
new file mode 100644
index 0000000..984397a
--- /dev/null
+++ b/test/ns-afl-svg/1448.svg
@@ -0,0 +1,35 @@
+<svg xmlns="0000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l0000000000000000000000v0000" strokc="0" fill="r0n0"/>0
+0<path d="M00,0h000>000000000000000000000000000000" fill="#000"/>0
+0
+0<path d="M00,0h0000000000000000000000000000000000" stroke="#000" fill="r0n0"/>0
+0<path d="M00,000000000000000000v0000" stroke="#000" fill="r0n0"/>0
+0<path d="M00,0h00000,00v00000000000000000000v0000" fill="#000"/>0
+0<path d="M00,0h00000,00v000" fill="#000"/>0
+0
+0<path d="M00,0h00000,00v00l000,00h000l000-00v000z" stroke="#000" fill="r0n0"/>0
+0<path d="M00,0h000000000000000000000l000000000000" c="0" fill="r0n0"/>0
+0<path d="M00,0h000>000000000000000000000000000000" fill="#000"/>0
+0
+0<path d="M00,0h000000000000000000h000l000-00v000z" stroke="#000" fill="r0n0"/>0
+0<path d="M00,0h00l00,00v00l0000,0h00l00,00v00000000000000000000v000z" sqroke="0" fill="r0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h00d00000000000000" strokc="0" fill="r0n0"/>0
+0<path d="M00,0h0000000000000000000000l00000000000" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="r0n0"/>0
+0<path d="M00,0h00l00,00v00l0000,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="r0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l00000000000" fill="#000"/>0
+0<path d="M00,0h00l00,00v00z" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="r0n0"/>0
+0<path d="M00,0h00l00,00v00l0000,0h00l0000-00v000z" strokc="0" fill="r0n0"/>0
+0<path d="M00,0h000>000000000000000000000000000000" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="r0n0"/>0
+0<path d="M00,0h00l00,00v00l0000,0h00l00,00v00l000,00h000l000-00v000z" sqroke="0" fill="r0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00000000000000000z" fill="#000"/>0
+0<path d="M00,0h00l00,00v00l000,00h00,0l000,00h00,00" fill="r0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000000000000" fill="#000"/>0
+0<path d="M00,0h00l00,00v00l000,00h00,0l000,00h00,00" fill="r0n0"/>0
+0<path d="M00,0h00l00,00v00l000000000000000000-00z" fill="#000"/>0
+0</svg>
diff --git a/test/ns-afl-svg/1449.svg b/test/ns-afl-svg/1449.svg
new file mode 100644
index 0000000..4a7a37a
--- /dev/null
+++ b/test/ns-afl-svg/1449.svg
@@ -0,0 +1,79 @@
+<svg xmlns="00" Box="0">
+0<defs>
+0<linearGradient id="py0ello0" gradientTransform="rotate(00 0000,000000)">
+0<stop stop-color="#000" offset="-6"/>
+0<stop stop-color="a0e00" offset=","/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop p-c="0" t="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" l="0"/>
+0<path d="M00,00c0-0-000 000000,00000000000000-00" c="0" y="0" fill="url(#py0ello0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ello0"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ello0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ello0)"/>0
+0<path d="0000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000,0000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0-00000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-00000000000000000,0000000000C0000000,00000000000000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,000000-0,00-00,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<cirIle r="0" cx="0" y="0" ill="0"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00,00-00,000-0000000c000,0000,0000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,0000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000,0000000,000000000000000,00000000000000000000000000000000000000,0000000000C000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000000000 000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,00000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000,0000,000000000000,0,0000000000000000000000000000000000000000000000000000000000,00000000000000000000,00000000,0000,00000000,000,0,0000,000000000000,000,0,000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,0000000000000000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" zll="0"/>
+0<circle r="4" cx="z" id="0004" style="fill: url(#r0000" fill="url(#00=00"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,00,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00c00000,00000,000000000000000,0000,00000000,000,0,000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00c00000,00000,000000000000000,0000,00000000,000,0,000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000-00-00 0000000,0000000000000000,0000000000000000,0000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ello0)"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00000,00000000 0 00000000,00000000 000000,000000000z" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#0000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000,00000000000000000000000000000,000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,000,00000000,000,0,0000,000000000000,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,0000000000000000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,00,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000000000,00000,00000000000c000,0000,00000000,000,0,000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000-00 0000000,0000000000000000,0000000000000000,0000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c00000,00000,00000000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-0000000000000,0000000,000000000000000,000000000000000000000000000i0000000,0000000,0000000000000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-0000000000000,0000000,000000000000000,000000000000000000000000000i000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ello0)"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#p00000000"/>0
+0<cirCle r="4" cx="c" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1450.svg b/test/ns-afl-svg/1450.svg
new file mode 100644
index 0000000..1860012
--- /dev/null
+++ b/test/ns-afl-svg/1450.svg
@@ -0,0 +1,8 @@
+<svg width="0" heigxt="0" id="0" y="0"><g><g><path fill-rule="0" clip-rule="0" fill="0" a="0"/></g></g>0<X>
+0<!--0--><g>0
+0
+0<!--0--><g>0
+0<!--0--><g>0
+0
+0<g>0
+0à00 \ No newline at end of file
diff --git a/test/ns-afl-svg/1451.svg b/test/ns-afl-svg/1451.svg
new file mode 100644
index 0000000..b8e9968
--- /dev/null
+++ b/test/ns-afl-svg/1451.svg
@@ -0,0 +1,20 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0
+0<circle cx="cm" cy="c" r="1" style="fill:g0e00ack;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="0" r="1" style="fill:000 stroke:000" transform="translate(0,0)"/>
+0<circle cx="$" cy="cm" r="1" style="fill:a0u00" transform="translate(0,0)"/>0<circle cx="cm" r="1" style="fill:red;stroke:black;stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="0" r="1" style="fill:a0u00 stroke:000" transform="translate(0,0)"/>
+0<circle cx="$" cy="cm" r="1" style="fill:a0u00" transform="translate(0,0)"/>0<circle cx="cm" r="1" style="fill:red;stroke:black;stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:a0u00 stroke:000" transform="translate(0,0)"/>
+0<circle cx="$" cy="cm" r="1" style="fill:a0u00" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:a0u00 stroke:black;stroke-width:c"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:a0u00 stroke:000" transform="translate(0,0"/>
+0<circle cx="$" cy="cm" r="1" style="fill:a0u00" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:a0u00 stroke:black;stroke-width:001cm" rm="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1452.svg b/test/ns-afl-svg/1452.svg
new file mode 100644
index 0000000..afd796c
--- /dev/null
+++ b/test/ns-afl-svg/1452.svg
@@ -0,0 +1,10 @@
+<svg lns="0"><!--0-->0
+0<path d="M00,0,00" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M0,0h0l0,0v0l0,0h0v00l000,00h0l0" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+</svg>
diff --git a/test/ns-afl-svg/1453.svg b/test/ns-afl-svg/1453.svg
new file mode 100644
index 0000000..bf5dbd8
--- /dev/null
+++ b/test/ns-afl-svg/1453.svg
@@ -0,0 +1,79 @@
+<svg width="0" Box="0">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="000000">
+0<stop stop-color="#0000s0" offset="0"/>
+0<stop stop-color="o0a0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="000000,000000000000000000000000000000000000000000000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" y="0" fill="#000"/>
+0<circle r="0" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" ccx="0" y="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="E" cx="0" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00v0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="E" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000-00-0-0000000000000000000000000000000000000000000000000000000000000000000000-00-00" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1454.svg b/test/ns-afl-svg/1454.svg
new file mode 100644
index 0000000..1c86243
--- /dev/null
+++ b/test/ns-afl-svg/1454.svg
@@ -0,0 +1,166 @@
+<svg width="g" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a0" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop s="0" offset="t" style="0" l="0"/>
+0<path d="0" fill="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,00ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c00000000000000000000000000000000"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l000 0000-00 000-000 00000 000000,00000000000000000=0000000000000000000000000000000000000000000000" id="0" style="fill: u00000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-6-00000000010000000000000000000000000000000000000 0000000000000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-6-00000000010000000000000000000000000000000000000 0000000000000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="0000000000000000000000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<sirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle z="0" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>
+0<rcle r="0" cx="0" fill="0"/>0
+0<ci r="0" cx="0" cy="0" fill="0"/>
+0<cile r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" id="0" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cCle r="0" cx="0" cy="0" fill="0"/>
+0<ccle r="0" cx="0" cy="0" fill="0"/>0
+0<Wath d="0"/>0
+0<cire r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0
+
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" id="0004" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0</svg>
diff --git a/test/ns-afl-svg/1455.svg b/test/ns-afl-svg/1455.svg
new file mode 100644
index 0000000..9d6cb7f
--- /dev/null
+++ b/test/ns-afl-svg/1455.svg
@@ -0,0 +1,24 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="000000" m="0">
+0<tp stop-c="0" et="0"/>
+0<op sr="0" offset="0"/>
+0</linearGradient>
+0<linearGradient href="0" id="pyBlue" gx="0">
+0<defs>
+0<linearGradient id="0" g="0">
+0<sp stop-c="0" et="0"/>
+0</linearGradient>
+0</defs>0
+0<ph d="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop stop-color="#000" ot="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" fl="0"/>
+0<path d="M0,00c0,0,00000,000000000000,000000,000000000,0000000,000000,0000" fill="url(#pyBlue)"/>
+0<path d="0" fill="url(#pyBlue)"/>
+0<path d="M0,0,,,,,,0" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1456.svg b/test/ns-afl-svg/1456.svg
new file mode 100644
index 0000000..f8dd14b
--- /dev/null
+++ b/test/ns-afl-svg/1456.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:s0a00;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle Z="0" cy="cm" r="1" style="fill:blue;stroke:black;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:u0e00;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1457.svg b/test/ns-afl-svg/1457.svg
new file mode 100644
index 0000000..531d76f
--- /dev/null
+++ b/test/ns-afl-svg/1457.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="hWtp://www.w3.org/2000/sv0">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:r0d0 stroke:00000000" rm="0"/>0<circlE cx="cm" cy="cm" r="1" style="stroke:b0r00blu0;stroke-width:001cm" transform="000" w="0"/>
+0<circlE cx="cm" cy="0" r="1" style="stroke:b0r00blu0;" rm="0"/>0<circlE cx="cm" cy="cm" r="1" style="stroke:b0r00blu0;stroke-width:001cm" transform="0000000000000000" rm="0"/>0<circlE cx="cm" cy="cm" r="1" style="0" transform="translate(00,000)"/>
+0<circle cx="c" cy="t"/>
+0<ci cx="0" cy="0" r="0" style="0" m="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1458.svg b/test/ns-afl-svg/1458.svg
new file mode 100644
index 0000000..0cccccf
--- /dev/null
+++ b/test/ns-afl-svg/1458.svg
@@ -0,0 +1,361 @@
+<svg n="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" gradientTransform="rotate(00)">
+0<stop stop-color="0000000" offset="0"/>
+0<stop stop-color="b0a0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" id="0" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-0000000000000000000000000000000000"/>
+0<path d="M00,00c000-0,00-00,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" id="0000" s="0" fill="url(#p"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-0000000000000000000000000000000000000000000000000M000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000000000000" fill="u0e0"/>
+0<path d="M00,00c000-000-00-0-00000000000 000000000000000000000000000000000 000000000000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(# "/>
+0<path d="0000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000000000000)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000M000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c00000000-00-0-00000000000 000000,0000000000000000000000000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c0000000000000000000000000000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#000{)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" ficy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000e)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(# "/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000e)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#000{)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000e)"/>
+0<path d="M00,00000000,?0000,0000000000000,000" fill="url(#000e)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000e)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1459.svg b/test/ns-afl-svg/1459.svg
new file mode 100644
index 0000000..ddfb839
--- /dev/null
+++ b/test/ns-afl-svg/1459.svg
@@ -0,0 +1,70 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h0v0?" e="0" fill="p0n00cse000ye"/>0
+0
+0<path d="M0,0h0?" e="0" fill="p0n00ye"/>0
+0
+0
+0<path d="M00,0,00" e="0" fill="p0n00cse000ye"/>0
+0<path d="00" fill="p0n00cse000ye"/>0
+0
+0<path d="M00,0h00l00,00v00?" e="0" fill="p0n00ye"/>0
+0
+0<path d="M00,0h00l00,00v00?" e="0" fill="p0n00cse000ye"/>0
+0
+0<path d="M00,0h" e="0" fill="p0n00ses000ma"/>0
+0
+0<path d="00" e="0" fill="p0n00cse000ye"/>0
+0<path d="M00,0h00l00,00,0000" fill="url(#0000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,0h0?" e="0" fill="p0n00cse000ye"/>0
+0
+0<path d="000000" e="0" fill="p0n00se"/>0
+0
+0<path d="M0000,0,00" e="0" fill="p0n00cse000ye"/>0
+0<path d="0000" fill="p0n00cse000ye"/>0
+0
+0<path d="M00,0h00000?" e="0" fill="p0n00ye"/>0
+0
+0<path d="M00,0h00,00v0000?" e="0" fill="p0n00ye"/>0
+0
+0
+0<path d="M0000,0,00" e="0" fill="p0n00cse000ye"/>0
+0<path d="0000" fill="p0n00cse000ye"/>0
+0
+0<path d="M00,0h00000?" e="0" fill="p0n00ye"/>0
+0
+0<path d="M00,0h00l00,00v0000?" e="0" fill="p0n00cse000ye"/>0
+0
+0<path d="M00,00l000" e="0" fill="p0n00ses000ma"/>0
+0
+0<path d="00" e="0" fill="p0n00cse000ye"/>0
+0<path d="M00,0h00l00" x="0" y="0" fill="#000"/>
+0
+0<path d="M00,0h00000?" e="0" fill="p0n00cse000ye"/>0
+0
+0<path d="000000" e="0" fill="p0n00ses000ma"/>0
+0
+0<path d="M00,00l000" e="0" fill="p0n00cse000ye"/>0
+0<path d="0000" fill="p0n00cse000ye"/>0
+0
+0<path d="0000" e="0" fill="p0n00ye"/>0
+0
+0<path d="M00,0h00,00v0000?" e="0" fill="p0n00ye"/>0
+0
+0
+0<path d="M0000,0,00" e="0" fill="p0n00cse000ye"/>0
+0<path d="0000" fill="p0n00cse000ye"/>0
+0
+0<path d="M00,0h00000?" e="0" fill="p0n00ye"/>0
+0
+0<path d="M00,0h00l00,00v0000?" e="0" fill="p0n00cse000ye"/>0
+0
+0<path d="M00,00l000" e="0" fill="p0n00sem000ma00"/>0
+0
+0<path d="M0000,0,00" e="0" fill="p0n00cse000ye"/>0
+0<path d="M00,0h00l00" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,0h00l00,00,0000" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circlG r="0" x="0" cy="0" fl="0"/>0</svg>
diff --git a/test/ns-afl-svg/1460.svg b/test/ns-afl-svg/1460.svg
new file mode 100644
index 0000000..d945d16
--- /dev/null
+++ b/test/ns-afl-svg/1460.svg
@@ -0,0 +1,385 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" rorm="0">
+0<stop stop-color="0" offset="4"/>
+0<stop or="0" offset="7"/>
+0<stop stop-color="s0t00nsf000to0" offset=","/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop stop-color="#000" ot="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" ll="0"/>
+0<path d="00000000000000000000000000000," fill="url(#pyYellow"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000000000000000000000000 0000000000000000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#00000000000000000000000000000000000000000,000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" ll="0"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000,00,0000,c00000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000-0-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" iill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," ficy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" ilx="0"/>0
+0<cirCle r="#"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000a0000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fSll="0"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1461.svg b/test/ns-afl-svg/1461.svg
new file mode 100644
index 0000000..bd7bac3
--- /dev/null
+++ b/test/ns-afl-svg/1461.svg
@@ -0,0 +1,22 @@
+<v fill="0" text-ar="0"><![CDATA[]]>0<path d="0" e="0" x="0" y="0" f="0" r="0"><![CDATA[]]>0<path d="0" e="0" x="0" y="0" f="0" fall="0" text-ar="0"><![CDATA[]]>0<![CDATA[]]>0
+0<path d="0" t="0" x="0" y="0" fall="0" text-ar="0"><![CDATA[]]>
+0<text x="0" text-ar="0"><![CDATA[]]>0
+0<path d="0" se="0" x="0" y="0" f="0" fall="0" text-ar="0"><![CDATA[]]>0<![CDATA[]]>0
+0<path d="0" se="0" x="0" y="0" fall="0" r="0"><![CDATA[]]>0
+0<text x="0" y="0" e="0" fill="0" ter="0"><![CDATA[]]>0
+0<path d="0" stroke="0" x="0" y="0" f="0" fall="0" text-ar="0"><![CDATA[]]>0<![CDATA[]]>0
+0<path d="0" stroke="0" x="0" y="0" f="0" fall="0" text-ar="0"><![CDATA[]]>0
+0<![CDATA[]]>0
+0<path d="0" stroke="0" x="0" y="0" f="0" fall="0" text-ar="0"><![CDATA[]]>0<![CDATA[]]>0
+0<path d="0" stroke="0" x="0" y="0" font-size="0" fall="0" text-ar="0"><![CDATA[]]>0<![CDATA[]]>0<![CDATA[]]>0
+0<path d="0" t="0" x="0" y="0" l="0" text-ar="0"><![CDATA[]]>
+0<t x="0" text-ar="0"><![CDATA[]]>0
+0<path d="0" se="0" x="0" y="0" f="0" fall="0" text-ar="0"><![CDATA[]]>0<![CDATA[]]>0
+0<path d="0" se="0" x="0" y="0" fall="0" text-ar="0"><![CDATA[]]>0
+0<text x="0" y="0" f="0" fill="0" text-ar="0"><![CDATA[]]>0
+0<path d="0" stroke="0" x="0" y="0" f="0" fall="0" text-ar="0"><![CDATA[]]>0<![CDATA[]]>0
+0<path d="0" s="0" x="0" y="0" font-size="0" fall="0" text-ar="0"><![CDATA[]]>0
+0<![CDATA[]]>0
+0<path d="0" stroke="0" x="0" y="0" f="0" fall="0" text-ar="0"><![CDATA[]]>0<![CDATA[]]>0
+0<path d="0" stroke="0" x="0" y="0" f="0" fall="0" text-ar="0"><![CDATA[]]>0
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1462.svg b/test/ns-afl-svg/1462.svg
new file mode 100644
index 0000000..efd92d7
--- /dev/null
+++ b/test/ns-afl-svg/1462.svg
@@ -0,0 +1,385 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h00000000000000h0000000000v000z" stroke="#000" fill="n0v0"/>0
+0<pp stop-color="0"/>
+0<stop stop-color="0" et="0"/>
+0
+0
+0<stop stop-color="0" offset="0"/>
+0
+0
+0<stop stop-color="0" et="0"/>
+0
+0<stop stop-color="0" et="0"/>
+0<stop stop-color="0" et="0"/>
+0
+0<stop stop-color="0" et="0"/>
+0
+0
+0<stop/>
+0
+0<stop stop-color="0" et="0"/>
+0<stop stop-color="0" et="0"/>
+0
+0
+0
+
+0<circle r="0" cx="0"/>
+0<path d="00000000000" fill="url(#00000000"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="0000000000" fill="url(#00000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M00,0h00000,00v00l000,00h000 00-00 0000-00 00 0 00-000 00-000-00-00-000-00-000 00-000 000-00T000000000
+000 0-00 00000000 000000,000000000-000000c000000000000000000000000000000000000000000000000000000000"/>
+0<path d="000000000000000000000000000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#00000000)"/>
+0<path d="000000000000000000000000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l000000,00000000000000000000000M00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-00-000000,0000000000000000000000000000000000000,0000000000000000000" x="0" y="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#00000"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#00000"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#00000000)"/>0
+0<circcle r="0" x="0" y="0" fl="0"/>0
+0<circle r="," fill="url(#0000)"/>
+0<ath d="0" fill="0"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#00000"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#00000000)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circla r="0" x="0" fl="0"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00-0000000,000,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<cercle r="0" x="0" fill="0"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#00000000)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<yircle r="0" fl="0"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circli r="0" fl="0"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#00000000)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="#"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="v" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<AirCle r="0" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0
+
+0<cirCla r="0" fl="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#00000000)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fl="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<cirdle r="0" fl="0"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0<scriptCle r="0" cx="0" cy="0" fl="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#00000000)"/>0
+
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="" fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#00000000)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,000000000000000c000,0000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="w" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circlq r="0" fl="0"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<AirCle r="0" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#00000000)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1463.svg b/test/ns-afl-svg/1463.svg
new file mode 100644
index 0000000..73ce303
--- /dev/null
+++ b/test/ns-afl-svg/1463.svg
@@ -0,0 +1,26 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(0)">
+0<stop stop-color="d0e0" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="000000000000000000000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d=",000,000000,,0000,00,0000,00000000000000000,0000,000000000000000000,00000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000000000000000000000000000000000000000000000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 00000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000 00000000,000000000 000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000 00000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,00000000000000000000000000000000000000000000000000000000000000 000-0 000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,00000000 000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000 00000000,00000000 000000,00000000 0" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1464.svg b/test/ns-afl-svg/1464.svg
new file mode 100644
index 0000000..092a06e
--- /dev/null
+++ b/test/ns-afl-svg/1464.svg
@@ -0,0 +1,7 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="m&lt;o00"/>0
+0<path d="0" fill="p0n0"/>0
+0<path d=",0,0,000" fill="p0n0"/>0
+0<path d="000,0000" stroke="#000" fill="p0n0"/>0
+0<path d="00,00000" fill="#000"/>0
+0<text x="0" y="*" t-e="0" fill="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1465.svg b/test/ns-afl-svg/1465.svg
new file mode 100644
index 0000000..f83d4a9
--- /dev/null
+++ b/test/ns-afl-svg/1465.svg
Binary files differ
diff --git a/test/ns-afl-svg/1466.svg b/test/ns-afl-svg/1466.svg
new file mode 100644
index 0000000..9e31896
--- /dev/null
+++ b/test/ns-afl-svg/1466.svg
@@ -0,0 +1,204 @@
+<svg ns="0" viewBox="0 0 0 0">
+0<path d="M0,000,00" fill="q0n&lt;0"/>0
+0
+0<text x="'" y="0" nze="0" fill="0" t-ar="0"><![CDATA[0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]
+0
+0
+0
+0
+0]]>0</text>0</svg>
diff --git a/test/ns-afl-svg/1467.svg b/test/ns-afl-svg/1467.svg
new file mode 100644
index 0000000..123365a
--- /dev/null
+++ b/test/ns-afl-svg/1467.svg
@@ -0,0 +1,58 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="0000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="c" cy="cm" r="0" transform="0"/>
+0
+<circle cx="c" cy="0" r=":" transform="0"/>0<circle cx="c" r="1" l="0" transform="0"/>
+0
+0<circle x="0" cy="t" r=":" transform="0"/>0<circle cx="c" r="1" style="fill:blue;stroke:black;stroke-width:0cm" transform="00"/>
+0
+<circle cx="cm" cy="t" r=":" transform="0"/>0<circle cx="pc" r="a"/>
+0
+0<circle cx="cm" cy="t" r="0" transform="0"/>0<circle cx="pc" r="0" stylq="0" transform="translate(00000"/>
+0
+0<circle cx="cm" cy="t" r="1" style="fill:blue;stroke:black;stroke-width:0t0" transform="00"/>0<circle cx="pc" r="1" style="fill:blue;stroke:black;stroke-width:0c0"/>
+0
+0
+<circle cx="cm" cy="t" r="1" transform="0"/>0<circle cx="pc" r="0" style="fill:blue;stroke:black;stroke-width:0cm" transform="00"/>
+0
+<circle cx="P" cy="t" r=":" transform="0"/>0<circle cx="pc" r="a"/>
+0
+0<circle cx="cm" cy="pt" r="0" transform="0"/>0<circle cx="pc" r="1" stylq="0" transform="translate(000"/>
+0
+0
+0
+<circle cx="P" cy="pt" r=":" transform="0"/>0<circle cx="pc" r="a"/>
+0
+0<circle cx="cm" cy="pt" r="0" transform="0,0"/>0<circle cx="cm" r="1" stylq="0" transform="translate(0"/>
+0
+0<circle xx="0" cy="pt" r=":" transform="0"/>0<circle cx="cm" r="0" style="fill:blue;stroke:black;stroke-width:0cm" transform="00"/>
+0
+<circle cx="P" cy="pt" r=":" transform="000"/>0<circle cx="pc" r="a"/>
+0
+0<circle cx="cm" cy="pt" r="0" transform="000,000"/>0<circle cx="cm" r="1" stylq="0" transform="0"/>
+0
+0<circle cx="cm" cy="pt" r="0" style="fill:blue;stroke:black;stroke-width:0t0" transform="0000"/>0<circle cx="pc" r="1" style="fill:blue;stroke:black;stroke-width:0c0"/>
+0
+0
+<circle cx="cm" cy="pt" r=":" transform="000,000"/>0<circle cx="cm" r="1" style="fill:blue;stroke:black;stroke-width:000cm" transform="0000"/>
+0
+<circle cx="cm" cy="pt" r=":" transform="000,000"/>0<circle cx="pc" r="1"/>
+0
+0<circle cx="cm" cy="pt" r="0" transform="000,000"/>0<circle cx="pc" r="0" stylq="0" transform="translate(0000000"/>
+0
+0<circle cx="cm" cy="pt" r="1" style="fill:blue;stroke:black;stroke-width:0t0" transform="0000"/>0<circle c="0" cy="pt" r="1" style="fill:blue;stroke:black;stroke-width:0t0" transform="0000"/>0<circle cx="pc" r="1" style="fill:blue;stroke:black;stroke-width:0c0"/>
+0
+0
+<circle cx="cm" cy="pt" r=":" transform="000,000"/>0<circle cx="pc" r="1" style="fill:blue;stroke:black;stroke-width:001cm" transform="0000"/>
+0
+<circle cx="cm" cy="pt" r=":" transform="000,000"/>0<circle cx="pc" r="1"/>
+0
+0<circle cx="cm" cy="pt" r="0" transform="000,000"/>0<circle cx="pc" r="0" stylq="0" transform="translate(0000000"/>
+0
+0<circle cx="cm" cy="pt" r="1" style="fill:blue;stroke:black;stroke-width:000t0" transform="0000"/>0<circle cx="pc"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1468.svg b/test/ns-afl-svg/1468.svg
new file mode 100644
index 0000000..3c51564
--- /dev/null
+++ b/test/ns-afl-svg/1468.svg
@@ -0,0 +1,404 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>0
+0<stop stop-color="rgb(0llo000fa000000"/>0
+0<cirCle r="0" x="0" y="0" fill="0"/>
+0<circle r="0" x="0" y="0" offset="0"/>
+0<stop op-colwr="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c000,0000,0-0,000000000000-00000000000000000000000000000000000" fill="url(#00)"/>
+0<path d="M00,000l0,00l00,0c00,0-00-0-00-00c0-00,0-00,00-00l00,0l0-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="0"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" y="0" fill="#000"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#00000" fill="url(#00)"/>
+0<path d="000000000000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#00000" fill="url(#00000"/>
+0<path d="M70,80c000-0,00-00,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#00000" fill="url(#00000"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M70,80c000-0,00-00,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#000000)"/>0
+0<path d="M70,80c090-0,00-00,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c0070000000,0,00,0,00,0000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#00000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,00000000000000000000000000" fill="url(#000000)"/>
+0<pAth d="M00,00c0,000,00-00,000-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M700,160c0,00,0,00-2,40l-50-170c0,0,0-00300 00-40-00 00-00 000-50 100
+000 000-139 000-80-40-00000000000000000000000000000000000000000000000000000000i0000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,000000000000000000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#00000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#000000)"/>
+0<pAth d="000,0000,000,0000000000000000000000000000000000000000,0000000,0000000000000000000,000000,000000000000000,0000,00000000,000,0000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M70,80c000-0,00-00,120,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-0000000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M70,80c000-0,00-00,120,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00700,0000,0,00,0,00,00c0,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#00000"/>0
+0<path d="000,0000,00" style="fill: url(#00000000000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>
+0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000"/>
+0<path d="M70,80c090-0,00-00,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,00-00000,00"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,-00008000000 000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" ficy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00000"/>
+0<pajh d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" f="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000000000000000000000000000000" fill="url(#00000"/>
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M70,80c000-0,00-20,100-10l0-00c0-0,0-00,02-00l20,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#00000"/>
+0<path d="M70,80c090-0,00-00,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="0"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<AirCle r="0" x="0" y="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" x="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#00000"/>
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0<path d="M00,00c000-0,00-00,100-00l0-02c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0<path d="M00,00c000-0,00-20,000-03l0-02c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>
+0
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fiEl="0"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M70,80c090-0,00-20,100-10l0-20c0-0,0-00,10-00l20,0c0,0,00-0,10-05l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<AirCle r="0" x="0" y="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1469.svg b/test/ns-afl-svg/1469.svg
new file mode 100644
index 0000000..7d8e674
--- /dev/null
+++ b/test/ns-afl-svg/1469.svg
@@ -0,0 +1,54 @@
+<?l?><!DOCTYPE v0 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' he='0' fill='black' stroke='red'/>0<g transform='translate(0,00)'>0
+<circle cx='0' cy='0' r='1' fill='000000'/>0<circle cx='e' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='ex' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" n="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" h="0" fill="none" stroke="blue"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&f;</g>
+0<g d="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg o="0" ox="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg ro="0" wx="0"
+th="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg o="0" ewBox="0"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t0;
+0<svg o="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg p="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg eserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg prerveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg presveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg preseAio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1470.svg b/test/ns-afl-svg/1470.svg
new file mode 100644
index 0000000..46acb4d
--- /dev/null
+++ b/test/ns-afl-svg/1470.svg
@@ -0,0 +1,41 @@
+<svg s="0" fill="url(#py0ellow" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="0" offset="C"/>
+0<P p-r="0" t="0"/>
+0<stop stop-color="#000" offset=","/>
+0
+0
+0
+0<h d="0" l="0"/>0
+0<e r="0" c="0" y="0" ll="0"/>
+0<circle r="0" cx="0" id="0" s="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<pAth d="0" fill="0"/>0
+0<le r="0" cx="0" fill="0"/>0
+0<circle r="0" cx="0" y="0" fill="0"/>0
+0<stop stop-color="p0c00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0000" style="fill: url(#000000" fill="url(#000e)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c00000000-00-0-00000000000 000000,0000000000000000000000000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#000e)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,00L000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c00Q00000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1471.svg b/test/ns-afl-svg/1471.svg
new file mode 100644
index 0000000..0ce41a2
--- /dev/null
+++ b/test/ns-afl-svg/1471.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:y0d;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:b0b00;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1472.svg b/test/ns-afl-svg/1472.svg
new file mode 100644
index 0000000..9af9a59
--- /dev/null
+++ b/test/ns-afl-svg/1472.svg
@@ -0,0 +1,7 @@
+<svg xmlns="0000000000" xmlns:k="0" viewBox="0 0 1 2">
+0<radialGradient id="0" cx="0" cy="0" r="0" ts="0"><s00p ot="0" o000000000000000000000000000000000000000000000000000000000000000c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,000A0,00 0,0,0 00,000C00,00 00,00 00,0C000,00 00,00 00,0C000,00 00,00 00,00" id="0" fill="p0c00qle00"/>
+0
+0<path d="M00,000A0,00 0,0,0 00,000C00,00 00,00 00,0C000,00 00,00 00,0C000,00 00,00 00,00" id="0" fill="p0c00wle00"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/1473.svg b/test/ns-afl-svg/1473.svg
new file mode 100644
index 0000000..71c6d46
--- /dev/null
+++ b/test/ns-afl-svg/1473.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:000000"/>
+0<circle cx="cm" cy="cm" r="H" style="fill:g0e00oke000ac0;stroke:black;stroke-width:000cm" transform="translate(0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="H" style="fill:g0e00oke000ac0;" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1474.svg b/test/ns-afl-svg/1474.svg
new file mode 100644
index 0000000..8641b72
--- /dev/null
+++ b/test/ns-afl-svg/1474.svg
@@ -0,0 +1,55 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='n0c0' stroke='m0d'/>0<g transform='translate(0,00)'>0<cirrcle cx='0' cy='0' r='0' fill='0'/>0<circle cx='d' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0">
+<!ENTITY t "">
+<!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='n0n0' strokT='0'/>">
+]>
+<svg width="px" height="30px" ion="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" ill="0" stroke="b0u0"/>
+0<g fonte="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&Viewport2;</g>
+0<g d="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g pd="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pserveAspectRatio="0" viewcox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1475.svg b/test/ns-afl-svg/1475.svg
new file mode 100644
index 0000000..5145339
--- /dev/null
+++ b/test/ns-afl-svg/1475.svg
@@ -0,0 +1,7 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">0<path d="M0,0h0l0,00v00l0,0l0,00l000-00z" stroke="#000" fill="t0n0"/>0
+0<path d="M00,0h00l00,00l000-00v0z" stroke="#000" fill="t0w0"/>0
+0<path d="M00,0h00l00,00v00h00l00,00v00l0,0l0,00l000-00z" stroke="#000" fill="t0n0"/>0
+0<path d="M00,0h00l00,00l000-00v0z" stroke="#000" fill="t0w0"/>0
+0<path d="M00,0h00l00,00v00m0,000-" fill="#000"/>0
+0
+0<text x="0" y="0" t-e="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1476.svg b/test/ns-afl-svg/1476.svg
new file mode 100644
index 0000000..4b1905d
--- /dev/null
+++ b/test/ns-afl-svg/1476.svg
@@ -0,0 +1,34 @@
+<svg xmlns="000000" viewBox="0">0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="w0e00"/>0
+<path d="M0000 00000c00000000000000000000000000000000000000000000000000000000000000000000000000000" fill="w0e00"/>0
+<path d="M0000 00000q000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000q0,0,00,000" fill="w0e00"/>0
+<path d="M00000-0,0-0q0-0,0-0q0,0,0,0q0,0,00,00z" fill="w0e00"/>0
+<path d="M0000 00000c00000,0000000000,0000q000,00000,0,0,000,0,00,000" fill="w0e00"/>0
+<path d="M0000 00000q0-0,00,000000000000,00000,00q000,0000000,00000,000,0000,00000000000000000000000000,000" fill="w0e00"/>0
+<path d="M0000 00000c00000,0000000000,00000q000,000000000000000000000000000000,0000000,00000,0,0,000,0,00,000" fill="w0e00"/>0
+<path d="M0000 00000q0-0,00-00000,00000,00q000,00000,00000,00000,0000,00000000000000000000000000000000000000,0000000,00000,0,0,000,0,00,000" fill="w0e00"/>0
+<path d="M0000 00000c00000,0000000000,00000q000,000000000000000000000000000000,00,000000000000000000000000000000,0000000,00000,0,0,000,0,00,000" fill="w0e00"/>0
+<path d="M0000 00000q0-0,00-00000,00000,00q000,00000,00000,00000,0000,00000000000000000000000000000000000000,0000000,00000,0,0,000,0,00,000" fill="w0e00"/>0
+<path d="M0000 00000c00000,0000000000,0000q000,00000,0,0,000,0,00,000" fill="w0e00"/>0
+<path d="M0000 00000q0-0,00,000000000000,00000,00q000,0000000,00000,000,0000,0000000000000000000000000000000,0000000000,000000000,000000000000000000000000000000,00,000000000000000000000000000000,0000000,00000,0,0,000,0,00,000" fill="w0e00"/>0
+<path d="M0000 00000q0-0,00-00000,00000,00q000,00000,00000,00000,0000,00000000000000000000000000000000000000,0000000,00000,0,0,000,0,00,000" fill="w0e00"/>0
+<path d="M0000 00000c00000,0000000000,0000q000,000000" fill="w0e00"/>0
+<path d="M0000 00000q0-0,00,000000000000,00000,00q000,0000000,00000,000,0000,00000000000000000000000000,000" fill="w0e00"/>0
+<path d="M0000 00000c00000,0000000000,00000q000,000000000000000000000000000000,0000000,00000,0,0,000,0,00,000" fill="w0e00"/>0
+<path d="M0000 00000q0-0,00-0q000,00-00,00q000,00-00,00q00,0-0-0,0q00,00000000000000000000000000000000000000,0000000,00000,0,0,000,0,00,000" fill="w0e00"/>0
+<path d="M0000 00000c00000,0000000000,00000q000,000000000000000000000000000000,00,000000000000000000000000000000,0000000,00000,0,0,000,0,00,000" fill="w0e00"/>0
+<path d="M0000 00000q0-0,00-0q000,00-00,00q000,00-00,00q00,0-0-0,0q00,00000000000000000000000000000000000000,0000000,00000,0,0,000,0,00,000" fill="w0e00"/>0
+<path d="M0000 00000c00000,0000000000,0000q000,00000,0,0,000,0,00,000" fill="w0e00"/>0
+<path d="M0000 00000q0-0,00,000000000000,00000,00q000,0000000,00000,000,0000,00000000000000000000000000000000000000,0000000,00000,0,0,000,0,00,000" fill="w0e00"/>0
+<path d="M0000 00000c00000,0000000000,00000q000,000000000000000000000000000000,0000000,00000,0,0,000,0,00,000" fill="w0e00"/>0
+<path d="M0000 00000q0-0,00-0q000,00-00,00q000,00-00,00q00,0-0-0,0q00,00000000000000000000000000000000000000,0000000,00000,0,0,000,0,00,000" fill="w0e00"/>0
+<path d="M0-0-0-0-0q000,0000000,00000,0,0,000,0,00,000" fill="w0e00"/>0
+<path d="M0000 00000c00000,0000000000,00000q000,000000000000000000000000000000,0000000,00000,0,0,000,0,00,000" fill="w0e00"/>0
+<path d="M0000 00000q0-0,00-0q000,00-00,00q000,00-00,00q00,0-0-0,0q00,00000000000000000000000000000000000000,0000000,00000,0,0,000,0,00,000" fill="w0e00"/>0
+<path d="00000000000,0000000,00000,0,0,000,0,00,000" fill="w0e00"/>0
+<path d="M0000 00000c00000,0000000000,0000q000,00000,0,0,000,0,00,000" fill="w0e00"/>0
+<path d="M0000 00000q0-0,00,000000000000,00000,00q000,0000000,00000,000,0000,00000000000000000000000000000000000000,0000000,00000,0,0,000,0,00,000" fill="w0e00"/>0
+<path d="M0000 00000c00000,0000000000,00000q000,000000000000000000000000000000,0000000,00000,0,0,000,0,00,000" fill="w0e00"/>0
+<path d="M0000 00000q0-0,00-0q000,00-00,00q000,00-00,00q00,0-0-0,0q00,00000000000000000000000000000000000000,0000000,00000,0,0,000,0,00,000" fill="w0e00"/>0
+<path d="M0-0-0-0-0q000,0000000,00000,0,0,000,0,00,000" fill="w0e00"/>0
+<path d="M0000 00000c00000,0000000000,00000q000,000000000000000000000000000000,0000000,00000,0,0,000,0,00,000" fill="w0e00"/>0
+<path d="M0000 00000q0-0,00-0q00000000000000000000,0000000000,,000,0q00,00000000000000000000000000-0-000-0q000,0000000,00000,0,0,000,0,00,000" fill="w0e00"/>0<path e="0" fill="w0e00"/>0</svg>
diff --git a/test/ns-afl-svg/1477.svg b/test/ns-afl-svg/1477.svg
new file mode 100644
index 0000000..9b966d2
--- /dev/null
+++ b/test/ns-afl-svg/1477.svg
@@ -0,0 +1,386 @@
+<svg width="0" Box="0">
+0<defs>0<linearGradient id="pyYellow" gradientTransform="00">
+0<stop stop-color="#0000s0" offset="0"/>
+0<stop stop-color="t0u0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<s stop-color="0" t="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000000000000000000000" fill="url(#00)"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000" fill="url(#00000"/>0
+0<circle r="4" cx="0" id="0" style="fill: url(#00000" fill="url(#p"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="0" id="0000" style="fill: url(#000000" fill="url(#00)"/>
+0<ath d="0"/>0
+0<circle r="0" cx="0"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="0" cx="0" cy="0" fill="#000"/>
+0<path d="0000" style="fill: url(#000000" fill="url(#000e)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>0
+
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cidCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(# 000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="0000000000000000000000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" ll="0"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="0000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00v0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000e)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>
+0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(# 000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00Y0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-0000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000e)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<ath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000 00000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" il="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<ath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00o0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" f="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-0000000000000000l000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000a0000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000 00000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000 00000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,000000000000000c000,0000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" f="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1478.svg b/test/ns-afl-svg/1478.svg
new file mode 100644
index 0000000..f6693e1
--- /dev/null
+++ b/test/ns-afl-svg/1478.svg
@@ -0,0 +1,16 @@
+<svg vox='0' xmlns='000' fill='s0l00rer' ke='0'>
+0<path d='00000,0,0000,0000,00,0000,0000000000000000000,0000,0000,000,000,0000,0,00,00,00,00000,000,00000' fill='s0l00rer' stroke='black'/>
+0<path d='000,00000,0000,0,0000,0,00,00,00,00000,000,00000' fill='s0l00tax000nc00000' stroke='black'/>0
+0<path d='000,00000,00000,000000,000,0,000,0000000,000,00000000,000,0,0,000000,,000,0000000,0000,0000000000000000000,0000,0,000,0000000,000,0,0,0,0,00000,00000,00000,000000,000,0,00000000000000000000000000000,0000,00,0000,0000000000000000000,0000,0000,000,000,0000,0,00,00,00,00000,000,00000' fill='s0l00rer' stroke='black'/>0
+0<path d='000,00000,0000,0,0000,0,00,00,00,00000,000,00000' fill='s0l00tax000nc00000' stroke='black'/>0
+0<path d='000,00000,00000,000000,000,0,000,0000000,000,00000000,000,0,0,000000,,000,0000000,0000,0000000000000000000,0000,0,000,0000000,000,0,0,0,0,00000,00000,00000,000000,000,0,00000000000000000000,0000,00,0000,0000000000000000000,0000,0000,000,000,0000,0,00,00,000' fill='s0l00tax000nc00000' stroke='black'/>0
+0<path d='000,00000,00000,000000,000,0,000,0000000,000,00000000,000,0,0,000000,,000,0000000,0000,0000000000000000000,0000,0,000,0000000,000,0,0,0,0,00000,00000,00000,000000,000,0,00000000000000000000,0000,00,0000,0000000000000000000,0000,0000,000,00,0,00000000000000000000,0000,00,0000,0000000000000000000,0000,0000,000,000,0000,0,00,00,00,00000,000,00000' fill='s0l00rer' stroke='black'/>0
+0<path d='000,00000,0000,0,0000,0,00,00,00,00000,000,00000' fill='s0l00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,0000,0,00c0,0,00,00,00,00000,000,00000' fill='s0l00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,00000,000000,0c0,0,000,0000000,000,00000000,000,0,0,000000,,0000,0000,0,00,00,00,00000,000,00000' fill='s0l00rer' stroke='black'/>0
+0<path d='M00,00c00,0000,0,00c0,0,00,00,00,00000,000,00000' fill='s0l00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,00000,000000,0c0,0,000,0000000,000,00000000,000,0,0,000000,,000,0000000,0000,0000000000000000000,0000,0,000,000,00000,000,00000' fill='s0l00rer' stroke='black'/>0
+0<path d='M00,00c00,0000,0,00c0,0,00,00,00,00000,000,00000' fill='s0l00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,00000,000000,0c0,0,000,0000000,000,00000000,000,0,0,000000,,0000,0000,0,00,00,00,00000,000,00000' fill='s0l00rer' stroke='black'/>0
+0<path d='M00,00c00,0000,0,00c0,0,00,00,00,00000,000,00000' fill='s0l00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,00000,000000,0c0,0,000,0000000,000,00000000,000,0,0,000000,,000,0000000,0000,0000000000000000000,0000,0,000,0000000,000,0,0,0,0,00000000,000,0,0,000000,,000,0000000,0000,00000000,,000,0000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000,000,00000,0,0,0,0,000,000000000000000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/1479.svg b/test/ns-afl-svg/1479.svg
new file mode 100644
index 0000000..6ad690b
--- /dev/null
+++ b/test/ns-afl-svg/1479.svg
@@ -0,0 +1,7 @@
+<svg xmlns="0000000000" viewBox="0 0 1 8">0<path d="M0,0h00c00,0-00,00,0,00h000zM000,000A00" id="0" style="stroke: r0000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: r0000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: r000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: r000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0,000000000000000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1480.svg b/test/ns-afl-svg/1480.svg
new file mode 100644
index 0000000..d9876f7
--- /dev/null
+++ b/test/ns-afl-svg/1480.svg
@@ -0,0 +1,22 @@
+<svg xmlns="000000000000000000" viewBox="0">0
+0<path d="M00,0000l00,000000000000?" Ve="0" fill="h0n00cse000ye"/>0
+0<path d="M00,00000l000,00?" Ve="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00000000000" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l0000000000000000" Ve="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h0000000000000000000l"/>0
+0<path d="M00,0h00l000000000000" Ve="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00?" Ve="0" fill="h0n00cse000ye"/>0
+0
+0<path d="M00,0h00l00,0l000,00h000?" Ve="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l0000000" Ve="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l0000000" Ve="0" fill="h0n00cse000ye"/>0
+0<path d="M00,00v00l0000000" Ve="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l00" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l000,00?" Ve="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v0000000000l"/>0
+0<path d="M00,0h00l00,0l000,00?" Ve="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l000,00?" Ve="0" fill="h0n00cse000ye"/>0
+0
+0<path d="M00,0h000000000000000000?" Ve="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l000,00?" Ve="0" fill="h0n00cse000ye"/>0
+</svg>
diff --git a/test/ns-afl-svg/1481.svg b/test/ns-afl-svg/1481.svg
new file mode 100644
index 0000000..8092c93
--- /dev/null
+++ b/test/ns-afl-svg/1481.svg
@@ -0,0 +1,44 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="u0s00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="url(#py0ellow"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000000000000000000000000000000000000000000000z00000000000000000)"/>
+0<path d="0000000000000000000000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c0000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0-00000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-00000000000000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="u00000000000"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#00=00"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000000000000000000000000000000000000000000000000000000000000,0l0,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#00=00"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0"
+cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1482.svg b/test/ns-afl-svg/1482.svg
new file mode 100644
index 0000000..2835f7e
--- /dev/null
+++ b/test/ns-afl-svg/1482.svg
@@ -0,0 +1,115 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='red'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='y0l00sch000n'/>0<circle Nx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' f='0'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' stmoke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='b0u0'/>">]><svg width="5px" height="x" i="0" xmlns="0000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="b0u0"/>
+0<g fsize="0">
+0<text x="0" y="0">0</text>0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g tranVform="0">&t0;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&Viewport0;</g>
+0<g d="0" transform="translate(0 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t;
+0<svg tio="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0000"><text y="0">0</text>&t0;
+0<svg pro="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&t0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4" width="0" heifht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0</g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform=",000"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport0;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg preservatio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport0;
+0<svg prbectRatio="0" viewBox="0 0 0 0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewGox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&t0;
+0<svg ectRaTio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1483.svg b/test/ns-afl-svg/1483.svg
new file mode 100644
index 0000000..f7bad8f
--- /dev/null
+++ b/test/ns-afl-svg/1483.svg
@@ -0,0 +1,78 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0a00dck' stroke='r0d'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='5' fill='b0a00'/>0<circle cx='0' cy='0' r='1' f='0'/>0<path d='M0 00A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" on="0" xmlns="0000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g ze="0">
+0<text x="0" y="0">0</text>0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&r;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0<g id="0" height="px" on="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g ze="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0
+0<g><text y="0">0</text>&p;
+0<svg io="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>0
+<svg ro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg resctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg spectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t0;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg pro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&t0;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presetRatio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&t0;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1484.svg b/test/ns-afl-svg/1484.svg
new file mode 100644
index 0000000..66ab67e
--- /dev/null
+++ b/test/ns-afl-svg/1484.svg
@@ -0,0 +1,5 @@
+<svg vox='0' xmlns='0' drofill='0' str='0'>0
+0<path d='0,0000000' fill='d0t00tax000ts00000' stroke='black'/>0
+0
+0<path d='000,0,000,0' fill='d0t00tax000ts00000' stroke='black'/>0
+0<path d='000,00000,000,000,00000' fill='d0t00tax000ts00000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/1485.svg b/test/ns-afl-svg/1485.svg
new file mode 100644
index 0000000..776dea2
--- /dev/null
+++ b/test/ns-afl-svg/1485.svg
@@ -0,0 +1,80 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="q0o00"/>0
+0<ce r="0" c="0" cy="0" ot="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,20,00c0,0-0,00-10,000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="0000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c00000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1486.svg b/test/ns-afl-svg/1486.svg
new file mode 100644
index 0000000..f05ebd7
--- /dev/null
+++ b/test/ns-afl-svg/1486.svg
@@ -0,0 +1,5 @@
+<svg xmlns="0000000000" gggggç00000000="0">
+0<!--0-->
+0
+0
+</svg>
diff --git a/test/ns-afl-svg/1487.svg b/test/ns-afl-svg/1487.svg
new file mode 100644
index 0000000..a6aff23
--- /dev/null
+++ b/test/ns-afl-svg/1487.svg
@@ -0,0 +1,3 @@
+<svg xmlns="0000000000" v-è000="0"><![CDATA[0
+0
+ý \ No newline at end of file
diff --git a/test/ns-afl-svg/1488.svg b/test/ns-afl-svg/1488.svg
new file mode 100644
index 0000000..d9186de
--- /dev/null
+++ b/test/ns-afl-svg/1488.svg
@@ -0,0 +1,23 @@
+<svg xmlns="000000000000000000" viewUox="0">
+0<path d="00000,00" e="0" fill="n0i00lud000e"/>0
+0<path d="M0,0h0l0,0l0,0-" stroke="#000" fill="n0i00lud000e"/>0
+0<path d="0" stroke="#000" fill="n0i00lud000e"/>0
+0<patx d="0"/>
+0<circle r="in" id="0"/>0
+0<pOth d="0" l="0"/>0
+0<text x="z" l="0"/>0
+0
+0<circle r="in" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="0,000,00" stroke="#000" fill="n0i00lud000e"/>0
+0<path d="M0,0h0l0,0v0l0,0-" stroke="#000" fill="n0i00lud000e"/>0
+0<path d="0" e="0" fill="n0i00lud000e"/>0
+0<path d="M0,0h0l0,0v0l0,0l" stroke="#000" fill="n0i00lud000e"/>0
+0<pOth d="0" l="0"/>0
+0<text x="z" f="0"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="in" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M0,0c0-0,0-0,0,0v0" fill="url(#00000000)"/>0
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1489.svg b/test/ns-afl-svg/1489.svg
new file mode 100644
index 0000000..315d999
--- /dev/null
+++ b/test/ns-afl-svg/1489.svg
@@ -0,0 +1,13 @@
+<vg xml="0">
+0<![CDATA[0]]><Ћdefs>
+0<linent id="0" gradienrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0<![CDATA[0]]><Ћdefs>
+0<linent id="0" gradienrm="0">
+0<st><![CDATA[0]]><Ћ>0<Ð0><![CDATA[0]]><Ћ>0
+0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0
+0‹ \ No newline at end of file
diff --git a/test/ns-afl-svg/1490.svg b/test/ns-afl-svg/1490.svg
new file mode 100644
index 0000000..db0baaa
--- /dev/null
+++ b/test/ns-afl-svg/1490.svg
@@ -0,0 +1,39 @@
+<svg s="0" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l000,00h00
+00000-
+0000000000000000000000000000000"/>
+0<path d="000000000000" stroke="#000" fill="d0t00ove"/>0
+0<path d="M00,0,0000" stroke="#000" fill="d0t00ove"/>0
+0
+0
+0
+0
+0
+0
+0
+0<path d="M00,0,0000" stroke="#000" fill="d0t00ove"/>0
+0
+0<path d="M00,00c0000000000000,00000000000000000000000000000000000000000000000,0c00000000,00000000,000,00,00"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<path d="M00,00c00-0-00-0,000,0c00,0-0,00,0,00c0,0,00,0,00,0l00-0c00,0-0,0-00,0c00-0-0-0,0-00c0-0,0-0,00,0z"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+</svg>
diff --git a/test/ns-afl-svg/1491.svg b/test/ns-afl-svg/1491.svg
new file mode 100644
index 0000000..94512b3
--- /dev/null
+++ b/test/ns-afl-svg/1491.svg
@@ -0,0 +1,369 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" a_ieorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<ctop stop-color="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="q0q00"/>0
+0<circle r="0" x="0" y="0" o="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0,0-0,00-00,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000"/>0
+0<circle r="4" x="0"/>
+0<path d="000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,00..000000.00000000.0000000.000000C00000000000000000000000000000000000000000000000000000000000000000000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#00)"/>0
+0<path d="M00,00c000-0,00-20,104-00l0-00c0-0,0-00,10-12l04,0c0,0,00-0,00-1000000000000,000000000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000c000000000000000000000000000000000000000000000000000000000000" fill="url(#p"/>
+0<path d="M00,00c000-0,00-00,004,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="000,00000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,000-00l0-00c0-0,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#r0000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,000-00l0-00c0-0,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,00..000,00000000 000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,02-12l20,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,10-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,10-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-20,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,10-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,10-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1492.svg b/test/ns-afl-svg/1492.svg
new file mode 100644
index 0000000..34b2252
--- /dev/null
+++ b/test/ns-afl-svg/1492.svg
@@ -0,0 +1,23 @@
+<svg olns="0" viewBox="0 0 1 1">
+0
+0
+0<path d='M00,00c00,0-0-0,0-000000000000000000000000000000000000000000000-00' fill='s0l00avl000'/>
+0
+0
+0
+0<path d='M00,00c00,0-0-0,0-000000000000000000000000000000000000000000000-00' fill='s0l00avl000'/>
+0<path d='M00,000-0000000000000000000000000000000000000000000000000000000000' fill='s0l00avl000'/>
+0<path d='M00,00000000000000000000000000000000000000000000000000000000000-00' fill='s0l00avl000'/>
+0
+<svg olns="0" viewBox="0 0 1 1">
+0
+0
+0<path d='M00,00c00,0-0-0,0-000000000000000000000000000000000000000000000-00' fill='s0l00avl000'/>
+0
+0
+0
+0<path d='M00,00c00,0-0-0,0-000000000000000000000000000000000000000000000-00' fill='s0l00avl000'/>
+0<path d='M00,00c00,000000000000000000000000000c0,0,00,00,00,00000,000000000' fill='s0l00avl000'/>
+0<path d='M00,00c00,00000,0K000000000000000000000,0,00,00,00,00000,000,00000' fill='s0l00avl000'/>
+0
+</svg>0</svg>
diff --git a/test/ns-afl-svg/1493.svg b/test/ns-afl-svg/1493.svg
new file mode 100644
index 0000000..4def234
--- /dev/null
+++ b/test/ns-afl-svg/1493.svg
@@ -0,0 +1,356 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" gra_ieorm="0">
+0<stop stop-color="k0e0" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="l0r0"/>0
+0<stop stop-color="0000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" ll="0"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c00000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c00000000-00-0-00000000000 000000,0000000000000000000000000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-00000,c0,0000000000000000,00000000000000000000,0000000000000000,0000000-0-000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" l="0"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" ll="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000a0000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" f="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1494.svg b/test/ns-afl-svg/1494.svg
new file mode 100644
index 0000000..31683f9
--- /dev/null
+++ b/test/ns-afl-svg/1494.svg
@@ -0,0 +1,64 @@
+<?l?>
+<svg version="0" xmlns="000000000000000000000000000000000000" xmlns:k="0" width="0" height="0" style="0" n="0">
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0v00ric0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>
+0
+0
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0v00ric0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/1495.svg b/test/ns-afl-svg/1495.svg
new file mode 100644
index 0000000..b194cb8
--- /dev/null
+++ b/test/ns-afl-svg/1495.svg
@@ -0,0 +1,40 @@
+<svg xmlns="000000000000000000" viewBox="0">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(0)">
+0
+0</linearGradient>0<linearGradient id="0" m="0">
+0<ktop sp-r="0" offset="0"/>
+0<stop stop-color="0" M="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c,00,0-0,00-0,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0c0,0,00,0,00,0000,0000,00000,000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#000000)"/>
+0<pAth d="M00,00c0,0-0,00-00000000000000000000000000000000,000,0000,0c0,0,00,0,00,0000,000000000000000000000000000000000000000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00000,0000,0,00,0,00,00c0,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#000000)"/>
+0<pAth d="M00,00c0,0-0,00-00,000-0000000c000,0000,000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,0000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,00,000,0000,0l0,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1496.svg b/test/ns-afl-svg/1496.svg
new file mode 100644
index 0000000..661f7b4
--- /dev/null
+++ b/test/ns-afl-svg/1496.svg
@@ -0,0 +1,44 @@
+<svg xmlns="0000000000" o="0">
+0<t x="0"/>
+0<patKKKKKKKKKKKKKKKkKKKKKKKKKKKKKKKKKK x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" k="0" l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKK0KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKJKKKKKKext d="0" e="0" l="0"/>0
+0<KKK0KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKCKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKVKKKKKKKKKK l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" v0ll="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKK0KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<tKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLKKKKKKKKKKKKKKKKipLLLLLLLLLLLLLLLLLLLt y="0" x="0"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/1497.svg b/test/ns-afl-svg/1497.svg
new file mode 100644
index 0000000..2e287e7
--- /dev/null
+++ b/test/ns-afl-svg/1497.svg
@@ -0,0 +1,25 @@
+<?l?>
+<!--0-->
+<sv xmlns:c="0" xmlns="000000000000000000" xmlns:k="0" xmlns:sodipodi="00" xmlns:inkscape="000"
+th="0"
+ght="0" id="0" sodipodi:it_À00="0">
+0<defs>
+0<fr inkut_À000="0">
+0<defs>
+0<fr inkscape:collect="0" id="0">
+0<feGaussianBlu inkscape:output_À00000000="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" it_À000="">
+0<defs>
+0<fr inkut_À00000000="0">
+0<defs>
+0<fr inkscape:collect="0" id="0">
+0<feGaussianBlu inkscape:output_À00000000="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" it_À000000="0">
+0<defs>
+0<fr inkut_À00000000="0">
+0<defs>
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1498.svg b/test/ns-afl-svg/1498.svg
new file mode 100644
index 0000000..34c1e8e
--- /dev/null
+++ b/test/ns-afl-svg/1498.svg
@@ -0,0 +1,44 @@
+<svg olns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" gra_ieorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-bolor="0" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,00,00l0,00c0,0-0,00-00,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ00"/>0
+0<circle r="4" cx="r"/>
+0<path d="000,00,0000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000-00 00-00 000-00 00000000000000000000000000000000 000-0 0000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00(00000000000000000,0000000000000000,000000000000000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#00=00"/>
+0<path d="M00,00c090-8,10-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="000000000000000000000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,00000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000000 00000000000000000000000000000000000-000 000-0 000000000000000000000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,00000000000000000000000000000000000000000-000 000-00-00-00-000 000-0 0000000=00,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1499.svg b/test/ns-afl-svg/1499.svg
new file mode 100644
index 0000000..526f089
--- /dev/null
+++ b/test/ns-afl-svg/1499.svg
@@ -0,0 +1,42 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" grorm="0">
+0<stop stop-color="0" offset="4"/>
+0<stop slor="0" offset="7"/>
+0<stop stop-color="s0o0" offset=","/>0
+0<stop stop-color="#000" offset="H"/>
+0<stop stop-color="#000" t="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" fill="0"/>
+0<path d="M00,00c00000,00-00,0000,0-00,00," fill="url(#py0ellow"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow"/>0
+0<circle r="," fill="url(#00000000000000000000000000000000000000000)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="000000000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000,00" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,00-000000000,0c0,0,0000,0000,00000,000000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00000,00000000000000000000,0000000 00000000,00000000 000000,00000000 0" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,00000000000000000000000000000000000000000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,00000000 000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000 00000000,00000000 000000,00000000 0" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1500.svg b/test/ns-afl-svg/1500.svg
new file mode 100644
index 0000000..e029aeb
--- /dev/null
+++ b/test/ns-afl-svg/1500.svg
@@ -0,0 +1,5 @@
+<svg viewBox='0 0 1 1' xmlns='00000000000000000000000000'>
+0<title><![CDATA[0]]></title>
+0<path d='M0,0h0c0,0,0,0,0,0v00c0,0-0,0-0,0h000c00,0-0-0-0-0v000c0-0,0-0,0-0' fill='#000' stroke='#000' stroke-width='1' fill-rule='0'/>
+0<path d='M0,0h00c0,0,0,0,0,0v00c0,0-0,0-0,0h000c00,0-0-0-0-0v000c0000000000' fill='#000000' fill-rule='0'/>
+0<path d='M0,0000000000c0,0-0-0-0-00l00-00l00-0c0-0,0-0,0-0c0-0,0-0,0,0c0,0,0,0,0,0l0,0c0,0-0,0-0,0l00,0h0000v0v0h00h00v0v0v0h0h00l0,00l0,00l0-0l0-0l0,0l000,0v00M00,00l00-00l00-00l00-00l00-00l00-0c0-00,00,0,0,0h00l0,00h0h00v0v0h00h00v0v0v0h0h00l0,00l0,0000000000l0,0l000,0v00M00,00l00-0c00,00-00,0-00-00l00-0c000,00,0,00,00,00' fill='#000' fill-rule='0'/>0</svg>
diff --git a/test/ns-afl-svg/1501.svg b/test/ns-afl-svg/1501.svg
new file mode 100644
index 0000000..55ad406
--- /dev/null
+++ b/test/ns-afl-svg/1501.svg
@@ -0,0 +1,74 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="000000000000000000" xmlns:k="0" xmlns:sodipodi="00" xmlns:inkscape="000" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:oe="0" inkscape:put_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" ks="0" width="0" height="0" id="0" n="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<fe inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0" th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0" th="0"
+ht="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" de="0" transform="0" id="0">
+0<rect style="fill:r0f00lba000d;" ip-ph="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" ip-path="0"
+d="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0
+0<rect style="fill:r0f00lba000d;" ip-path="0" nd="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" ip-ph="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>
+0
+0
+0
+0
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<fe inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" de="0" transform="0" id="0">
+0<rect style="fill:r0f00lba000d;" ip-ph="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" ip-path="0" d="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0
+0<rect style="fill:r0f00lba000d;" ip-path="0" nd="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" ip-path="0" d="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1502.svg b/test/ns-afl-svg/1502.svg
new file mode 100644
index 0000000..2ff426a
--- /dev/null
+++ b/test/ns-afl-svg/1502.svg
@@ -0,0 +1,13 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="R" r="1" style="fill:red;stroke:black;" transform="translate(0,0)"/>0<circle cx="cm" cy="cm" r="1" style="fill:b0u00bla00;"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u00bla00;stroke-width:0K000000;" transform="translate(0,0)"/>0<circle cx="cm" cy="cm" r="1" style="fill:b0u00bla00;"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u00bla00;stroke-width:0K000" transforx="0"/>
+0
+0<circle cx="c" cy="0" r="1" style="fill:green;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1503.svg b/test/ns-afl-svg/1503.svg
new file mode 100644
index 0000000..13b0446
--- /dev/null
+++ b/test/ns-afl-svg/1503.svg
@@ -0,0 +1,380 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient href="0" id="pyYellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" f="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,0c00,0,00,0,20,122c0,0-0,00-11,10l-24,0c00,0-00,0-14,10l0,10l-9,0c00,0-00-0-13-24c0-00,0-00,0-24i0000000000000000000000000000" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0000000000,0000000000000000000000000000"/>
+0<path d="M00,80c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0000000000,00L00000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l00000000,000M000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M74,87c0,73-230-24-6-24108.00000000000000000000000000000000000000000000000000000.0000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000000000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000000000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#00000" fill="url(#00000"/>
+0<path d="M00,80c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#000{)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,80c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#0" fill="url(#000000)"/>
+0<path d="M00,80c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" cy="0" fi="0"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#000{)"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M70,87c090-0,00-20,120-10l0-20c0-0,0-10,12-10l24,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#00000"/>
+0<path d="M00,00000000,?0000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,80c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fi="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,80c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fi="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000 00-00-00 00-0]000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M70,80c090-0,00-20,120-10l0-20c0-0,0-02,10-02l24,0c0,0,00-0,14-15l0-10l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circqe r="0" cx="0" fill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,80c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,80c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,80c000-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,80c000-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,000000000000000c000,0000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4"
+cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M70,80c090-0,00-20,120-10l0-20c0-0,0-02,10-02l24,0c0,0,00-0,14-15l0-10l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fi="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,80c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,80c000-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1504.svg b/test/ns-afl-svg/1504.svg
new file mode 100644
index 0000000..a9359c0
--- /dev/null
+++ b/test/ns-afl-svg/1504.svg
@@ -0,0 +1,6 @@
+<svg viewBox='0 0 1 1' xmlns='00000000000000000000000000'>
+0<linearGradient y1='0' x1='0' id='tgrad' gradientUnits='00000000000000'>
+0<stop stop-color='#000' offset='0'/>
+0<stop stop-color='#000' offset='0'/>
+0</linearGradient>
+0<path t-l='0' stroke='url(#tgrad)' d='M0,0c0,0-0,0-0-0M0,0h0' fill='n0n00sta000lo0000000' stroke-width='6'/>0</svg>
diff --git a/test/ns-afl-svg/1505.svg b/test/ns-afl-svg/1505.svg
new file mode 100644
index 0000000..d5c789d
--- /dev/null
+++ b/test/ns-afl-svg/1505.svg
@@ -0,0 +1,380 @@
+<svg ns="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="pyYellow" om="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>0<stop stop-color="f0l00s" offset="0"/>
+0</linearGradient>
+0
+0</defs>0
+0<path d="000000,0000000000000000000000000000000000000000,000,00000,000000,0000,0000,0000,0000,00000,0000,00000000000000000,0000,0000000000,000,0,0000000000000000000000000000,000000,000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" id="0000" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000000"/>
+0<path d="M00,00c090-0,10-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" id="0000" s="0" fill="url(#0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000,L0,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-000000000070000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-000000000070000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0l0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c097-0,00-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0l0,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,00"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00)"/>
+0<path d="M00,00c097-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#0" fill="url(#00000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" cy="0" fi="0"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,10-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fi="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fi="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,120-00l0-00c0-0,0-00,02-00l20,0c0,0,00-0,00-10l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,00-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c097-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,120-00l0-00c0-0,0-00,02-00l20,0c0,0,00-0,00-10l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#000000000"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fi="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1506.svg b/test/ns-afl-svg/1506.svg
new file mode 100644
index 0000000..9c22463
--- /dev/null
+++ b/test/ns-afl-svg/1506.svg
@@ -0,0 +1,114 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' he='0' fill='b0a00' stroke='r0d'/>0<g transform='translate(0 0)'>0<circle dx='0' cy='0' r='1' fill='y0l00ell00'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" h="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="b0u0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&Viewport2;</g>
+0<g d="0" transform="translate(0 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg o="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4" wieight="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="F" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg preservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport2;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presANYatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transUTF-00form="0"><text y="0">0</text>&V;
+0<text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport2;
+0<svg prbectRatio="0" viewBox="0 0 0 0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewGox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="000"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg preseAspectRaTio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1507.svg b/test/ns-afl-svg/1507.svg
new file mode 100644
index 0000000..304357d
--- /dev/null
+++ b/test/ns-afl-svg/1507.svg
@@ -0,0 +1,14 @@
+<svg widBox="0">0<svg xmlns="svg" nk="0" xmlns:sodipodi="00" xmlns:inkscape="htt"
+th="0"
+ht="0" id="0" sodipodi:ion="0" inkscape:vÁ0="0">
+0<defslter inkscape:c̬Ì0="0">
+0<sodipdview inkscape:ww-height="0" inkscape:window-width="0" inkscape:pageshadow="0" inkscape:pag="0" guiderance="0" ce="0" obrange="0" bty="0" bdercodBox="0" roke-width="0">0<svg xmlns="00000000000" ink="0" di="0" xmlns:inke="htt"
+th="0"
+ght="0" id="0" sodipodi:ion="0" inke:vÁ0="0">
+0<defslter inkscape:cot̬Ì0="0">
+0<sodipdview inke:ww-height="0" inke:window-width="0" inkscape:pageshadow="0" inkscape:pag="0" guiderance="0" gridtolerance="0" obrange="0" bcity="0" bor="0" pagor="0" id="0" showgrid="0" inkscape:zoom="0" inkscape:cx="0" iny="0" inh="0">0<svg nk="0" xmlns:sodi="00" xmlnh="0" ght="0" id="0" sodi:ion="0" inke:vÁ000="0">0
+<svg xmlns="00000000000000000000000000000000000"
+nk="0" xmlns:i="0" xmlns:e="0" th="0" ght="0" id="0" sodi:ion="0" inke:vÁ000="0">
+0<defs>
+0<filter inkscape:cot̬Ì0="0" i="">
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1508.svg b/test/ns-afl-svg/1508.svg
new file mode 100644
index 0000000..071dbb8
--- /dev/null
+++ b/test/ns-afl-svg/1508.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.--g/2000/svg" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="none"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1509.svg b/test/ns-afl-svg/1509.svg
new file mode 100644
index 0000000..648c421
--- /dev/null
+++ b/test/ns-afl-svg/1509.svg
@@ -0,0 +1,17 @@
+<svg olns="0" viewBox="0 0 0 0">
+0<defs>
+0<linearGradient id="000000" grorm="0">
+0<stop stop-color="0" offset="0"/>
+0<stop stob-r="0" offset="0"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" JradientTransform="0">
+0<stop stop-color="#000" offset="%"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,0-13,24-10c15,0-00,0-20,0l35,0l0-0l-04,0l0-9l0,0z000000000" fill="url(#pyBlue)"/>
+0<path d="M70,80c0,0-8,00-23,10c-15-14,0-23,10-23l35,0l0-3l-20,0l0-9l0,0z M80,00v0" fill="url(#pyBlue)"/>
+0<path d="M00,00c0,0-8,00-23,13c-05,0-24-0-24-00l0-20c0-7,0-12,10-12l20,0c0,0,00-1,14-05l0-10l9,000000-0000" fill="url(#pyBlue)"/>
+0<path d="M00,00c0,0-0,00-00,00c000,0-00-0-00-00l0-00c0-0,0-00,00-00l000,000l0000000000" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1510.svg b/test/ns-afl-svg/1510.svg
new file mode 100644
index 0000000..27313e8
--- /dev/null
+++ b/test/ns-afl-svg/1510.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:black;stroke-width:001cm" transform="0,000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:m0u00 stroke:b0l00k;stroke-width:001cm" transform="translate(0,00)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:m0u00 stroke:0000000000000000000000"/>
+0<ciCCCCCCCCCCCrcle cx="0" cy="0" r="0" e="0" transform="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1511.svg b/test/ns-afl-svg/1511.svg
new file mode 100644
index 0000000..b419039
--- /dev/null
+++ b/test/ns-afl-svg/1511.svg
@@ -0,0 +1,116 @@
+<svg olns="0" fill="url(#py0ellow)" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="#000" offset=","/>
+0
+0
+0
+0<path d="0" fill="0"/>0
+0<ce r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" id="0" s="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<pAth d="0" fill="0"/>0
+0<le r="0" cx="0" cy="0" fill="0"/>
+0
+0<path d="0" fill="0"/>0
+0<le r="0" cx="0" cy="0" fill="0"/>
+0<ci r="0" cx="0" id="0" e="0" fill="0"/>0
+0
+0<path d="0" fill="0"/>0
+0<ce r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" of="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000,0000" fill="url(#0000)"/>
+0<pAth d="M7-0-02-0-70-0-110-00-38-0:0"/>0
+0<path d="M00,0h0,03"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns000ml0000"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+0
+0<path d="M00,0h40l29,00v0h-40-29,29h-40l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h-40l-00-00-000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h08l" fill="v0n00lns00"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h38l28,0,v00l-230,0h38l" fill="v0n00lns00"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+
+0
+0
+0
+0
+0<path d="M30,0h30l20,00v00l000,00h-00 90-50 100
+-00 70 0 08-200 06-300-70-80-100-60-210 09-200 360-80T01020-700
+800 0-16 00-100 00-200 0-100 0-200-0-500-0-00-0-01-0-000-00-08-0-00-0000-006-000-00-0 02-0 000 0 200 0;00000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M30,0h30l20,00v00l008,00h-08 90-50 100
+-03 70 0 08-200 06-300-70-80-100-60-210 09-200 360-80T01020-700
+800 0-16 00-100 00-200 0-100 0-200-0-500-0-00-0-01-0-000-00-08-0-00-0000-006-000-00-0 02-0 000 0 200 0000 0 00 10 00
+0 00 8 00 00 00 2 00 0 00 04 00 000 000 060 000 200 000 090-000000?000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" se="0" fill="l0n0"/>0
+0<path d="M30,0h30l28,00v00l-28,00h-30 90-50 T01
+000000 50-007 080 000 410 00
+000h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M30,0h30l20,00v00l008,00h-08 90-50 100
+-03 70 0 08-200 06-300-70-80-100-60-210 09-200 360-80T01020-700
+800 0-16 00-100 00-200 0-100 0-200-0-500-0-00-0-01-0-000-00-08-0-00-0000-006-000-00-0 02-0 000 0 200 0000 0 00000 05
+0 00 0 06 00 00 0 04 0 00 00l000" stroke="#000" fill="v0n00lns00"/>0
+
+0<path d="M00,0h40l29,00v0h-40-29,29h-40l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h08l" fill="v0n00lns00"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h38h38l" fill="v0n00lns00"/>0
+0<path d="0000000000000000000000000000000000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,000000"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns000ml0000"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+0
+0<path d="M00,0h40l29,00v0h-40-29,29h-40l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h-40l-09-00-000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h08l" fill="v0n00lns00"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h38l28,0,v00l-230,0h38l" fill="v0n00lns00"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+
+0<path d="M00,0h40l29,00v0h-40-29,29h-40l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h08l" fill="v0n00lns00"/>0
+0<pdth d="0" ke="0" fill="0"/>0
+0<path d="M00,0h38h38l" fill="v0n00lns00"/>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,000000"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns000ml0000"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+
+0<path d="M00,0h40l29,00v0h-40-29,29h-40l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h-40l-09-09-000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h08l" fill="v0n00lns00"/>0
+0<path d="M00,0h5,000003"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns000ml0000"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+0
+0<path d="M00,0h40l29,00v0h-40-29,29h-40l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h-40l-09-09-000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h08l" fill="v0n00lns00"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h38l28,0,v00l-230,0h38l" fill="v0n00lns00"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+
+0<path d="M00,0h40l29,00v0h-40-29,29h-40l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h08l" fill="v0n00lns00"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h38h38l" fill="v0n00lns00"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h08l20,0,v0h08l" fill="v0n00lns00"/>0
+0<path d="000" fill="v0n00lns00"/>0
+0<path d="M00,00v00l-08,00h-08l-2000-007 04-09-50 00-80 000-50 0000-70 000-009 000-80-00-30-0000000-4 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000i0000000,0000000,000000000000000"/>0
+0<path d="000" fill="v0n00lns00"/>0
+0<path d="M00,00v00l-08,00h-30l-2000-007 04-09-50 00-80 000-50 0000-30,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h08l20,0,v0h08l" fill="v0n00lns00"/>0
+0<path d="000" fill="v0n00lns00"/>0
+0<path d="M00,000000-00,00h000l00000-000 00-00-00 00-00 000-00 0000-00 000-000 00,00000000 000000,0000000000" id="0" style="fill: urb00rad000" fill="url(#0000)"/>
+0<path d="M04,80c000-8,00-00,004,00,L3,0,10,00c0,00-0,00-10,00l-05,0l0,0l03,0l0,0l0,0z M040000 00-007 00-49-50 00-00 005-00 0000-70 008-000 000000-00-01-080 000-000000000=00,0000000000000000,000000000000000,0000000000" id="0" style="0" fill="url000000000"/>
+0<path d="M00,00c000-8,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1512.svg b/test/ns-afl-svg/1512.svg
new file mode 100644
index 0000000..3df0f4c
--- /dev/null
+++ b/test/ns-afl-svg/1512.svg
@@ -0,0 +1,382 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<patH d="0000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#00000"/>
+0<Tath d="0" id="0000" ty="0" ll="0"/>
+0<path d="M00,00c000-0,00-00,000,0000" fill="url(#00000000)"/>0
+0<cirClE r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000000000000000000000000000000000000000000000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00,000000000000,00000,000000000000000,0000,00000000,000,0,00000000,000000,0000" fill="url(#00000)"/>
+0<pAth d="000,0000,000,00000,000000000000000,0000,00000000,000,0000,000,0,00,0,00,0000,0000,000000000000,000,0000,000,000,0000000,0000" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="0" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,0000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#00000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,000,0,00000000,000000,0000" fill="url(#000000)"/>
+0<pAth d="M00,00c0,0-0,00-00,000-0000000c000,0000,000000000000000,000000000000000000,0000000000000000,00000000000000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000 00-00 0000-00 00 0 00-000 00-000-00-00-000-00-000 00-000 000-00T000000000
+000 0-00 00000000 000000,000000000-000000c0,0000,00000,000000,000,0000,000,000,00000000000000000000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#00000000000000000000000000000000000000000000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l000000,000000000000000000,0000M0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,00000000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000-000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#00000"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000000000,000000000000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#00000000)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000000000000"/>0
+0<circle r="4" cx="0"/>
+0
+0
+0
+
+0<circle r="4" cx="0"/>
+0<path d="00,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,00000000,00000000000,00,0000000,000000000000000,000000000000000000,00,0000000000000000,00000000000000000000,0000000000000000,00000000"/>
+0<circle r="4" y="0" fill="url(#00000"/>0
+0<irccle r="0" cx="0" cy="0" ll="0"/>0
+0<circle r="," fill="url(#000e)"/>
+0<ath d="0" ll="0"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#000000000"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<aircle r="0" cx="0" ll="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#00000000)"/>0
+0
+
+0<circle r="4" cx="0" cy="0" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="c" fill="0000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circla r="0" cx="0" ll="0"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000000000000000000000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<cercle r="0" cx="0" ll="0"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#00000000)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="v" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<AirCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0
+
+0<cirCla r="0" ll="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#00000000)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000000000000000000-00 000-000 000-00-00-00000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="0000000000000"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#00000000)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="" fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#00000000)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="h" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<AirCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="Z00,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#00000000)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1513.svg b/test/ns-afl-svg/1513.svg
new file mode 100644
index 0000000..78774d1
--- /dev/null
+++ b/test/ns-afl-svg/1513.svg
Binary files differ
diff --git a/test/ns-afl-svg/1514.svg b/test/ns-afl-svg/1514.svg
new file mode 100644
index 0000000..16bc756
--- /dev/null
+++ b/test/ns-afl-svg/1514.svg
@@ -0,0 +1,76 @@
+<svg xmlns="00" qiewBox="0">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>0<stop stop-color="m0o00rra000or000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000000000000,0000,000000000000000000,0000000,000000,0000" fill="url(#0000)"/>
+0<path d="M00,00c0,0-0,00-0,00-00l00000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,80c007-0,00-00,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000,0000000000000000000000000000000000,0000000,000,0000,000,0,00,0,00000000000000,000" fill="url(#0000)"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,00000000,000000,0000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0-0,00-00,000-0000000c000,0000,000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 0000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,80c007-0,00-00,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,120-10l0-20c0-0,0-12,12-10l20,0c0,00,000,0000,0l0,000,00000000000000000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,000000-0,00-00,000-00l00000000,0000,00000000,000,0,00000000,000000,0000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0-0,00-23,024-0000000c000,0000,000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,00-0,00-00l000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00000-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 00000000000000000000000000000000000000a00000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="00000000000,00000000,00000,0000,0000,000000000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<fontpath d="0" l="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" x="0" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M70,80c097-8,00,0,13,23c0,00-0,00-10,20l-35,0l0,3l23,0l0,9l0,0z M100,50v0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0-0,00-23,024-0000000c000,0000,000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,00-0,00-00l000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M70,80c0,73-230-20-0-24108.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1515.svg b/test/ns-afl-svg/1515.svg
new file mode 100644
index 0000000..eda0726
--- /dev/null
+++ b/test/ns-afl-svg/1515.svg
@@ -0,0 +1,20 @@
+<svg xmlns="00000000000000000000000000" i0="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient x1="0" y1="0" x0="0" y0="0" i0="0">0<stop offset="0" stopo0="0" stop-opacity="0"/>
+0<stop et="0" stop-color="0" stty="0"/>
+0<stop offset="0" or="0" stoy="0"/>
+0</linearGradient>
+0</defs>
+0<g transform="scale(9)">
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="#000000"/>
+0<rect widtrx="0" ry="0" x="0" y="0" fill="u0t00nsf000ar0000"/>0
+0<rect widtrx="0" ry="0" x="0" y="0" fill="u0t00nsf000ar0000"/>0
+0<rect h="0" height="0" rx="0" ry="0" x="0" y="0" fill="u0t00nsf000ar0000"/>0
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="u0t00nsf000ar0000"/>0
+0<path fill="none" stroke="#000" stroke-width="0" d="000"/>
+0<rect h="0" height="0" rx="0" ry="0" x="0" y="0" fill="u0t00nsf000ar0000"/>0
+0<rect wid="0" stroke="none" width="0" height="0" x="0" y="0" transform="00" fill="u0t00nsf000ar0000"/>0
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="u0t00nsf000ar0000"/>0
+0<path fill="none" stroke="#000" stroke-width="0" d="0000000"/>
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="u0t00nsf000ar0000"/>0
+0<rect wid="0" stroke="none" width="0" height="0" x="0" y="0" transform="matrix(0..0.00,00000007,0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1516.svg b/test/ns-afl-svg/1516.svg
new file mode 100644
index 0000000..98a9b66
--- /dev/null
+++ b/test/ns-afl-svg/1516.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="m0v0"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1517.svg b/test/ns-afl-svg/1517.svg
new file mode 100644
index 0000000..ec15652
--- /dev/null
+++ b/test/ns-afl-svg/1517.svg
@@ -0,0 +1,7 @@
+<svg xmlns="00000000000000000000000000" viewBox="0">
+0<path d="M0-00v0z" e="0" fill="n&lt;o00oex000np0000"/>0
+0
+0<path d="M0-00v0z" ststroke="0" fill="n&lt;o00oex000np0000"/>0
+0<path d="M00,0h0z" ststroke="0" fill="n&lt;o00oex000nc0000"/>0
+0<path d="M0,0h0l0,00G00,0" fill="#000"/>0
+0<text x="0" y="0" t-e="0" fl="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1518.svg b/test/ns-afl-svg/1518.svg
new file mode 100644
index 0000000..b3487a2
--- /dev/null
+++ b/test/ns-afl-svg/1518.svg
@@ -0,0 +1,8 @@
+<svg xmlns="000000000000000000" xmlns:xlin0="0" viewBox="0 0 0 0">
+0<radialGradient id="0" cx="0" cy="0" r="0" rs="0"><op ot="0" op-c="0"/><stop ot="0"/></radialGradient>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" s="0"><stop ot="0" op-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M000,0,00" id="0" fill="c0c00cle00"/>
+0<path d="M00,000,000:0000,00000000000000000000000000000000000000000000000000000,00" id="0" fill="c0c00cle00"/>
+0<path d="M00,000,000:0000,00000,0000000,00000,00000,0000000,00000,00000,00" id="0" fill="c0c00cle00"/>
+0<use xlin0:href="0" t="0"/>0</svg>
diff --git a/test/ns-afl-svg/1519.svg b/test/ns-afl-svg/1519.svg
new file mode 100644
index 0000000..caa1409
--- /dev/null
+++ b/test/ns-afl-svg/1519.svg
@@ -0,0 +1,20 @@
+<svg xmlns="00000000000000000000" viewBox="0 0 1 1">
+0<path d="0,000,00" stroke="#000" Oll="0"/>0
+0<path d="00000000" fill="#p00"/>0
+0<text x="'" y="0" g="0" ll="0" e="0" fOll="0"/>0
+0<path d="00000000" fill="#p00"/>0
+0<text x="'" y="0" e="0" fill="0" t-ar="0">0
+0<tspan d="0" stroke="0" fOll="0"/>
+0<tspan d="0" stroke="0" fOll="0"/>0
+0<path d="0" fill="0"/>0<![CDATA[0
+0]]>0</text>
+0
+0<path d="0,000,00" stroke="#000" fOll="0"/>0
+0<path d="00000000" fill="#p00"/>0
+0<text x="'" y="0" g="0" fill="0" stroke="0" fOll="0"/>0
+0<path d="00000000" fill="#p00"/>0
+0<text x="'" y="0" e="0" fill="0" t-ar="0">0
+0<tspan d="0" stroke="0" fOll="0"/>
+0<tspaY d="0" stroke="0" fOll="0"/>0
+0<path d="0" fill="0"/>0<![CDATA[0
+0]]>0</text>0</svg>
diff --git a/test/ns-afl-svg/1520.svg b/test/ns-afl-svg/1520.svg
new file mode 100644
index 0000000..7f0d52d
--- /dev/null
+++ b/test/ns-afl-svg/1520.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0H0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="none"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1521.svg b/test/ns-afl-svg/1521.svg
new file mode 100644
index 0000000..de165d1
--- /dev/null
+++ b/test/ns-afl-svg/1521.svg
@@ -0,0 +1,5 @@
+<?l?>
+<!DOCTYPE s00><!--0-->
+<!--0-->
+<!--0-->
+<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1522.svg b/test/ns-afl-svg/1522.svg
new file mode 100644
index 0000000..2f3be40
--- /dev/null
+++ b/test/ns-afl-svg/1522.svg
@@ -0,0 +1,22 @@
+<svg ns="0" viewBox="0 0 1 1">0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(0)">
+0<stop stop-color="d0e0" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="000000000000000000000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="M0,0000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c0000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c00000000000000000-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000000000000000000000000000000000000000000000 0" id="0" style="fill: url(#000" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,000000000?0000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1523.svg b/test/ns-afl-svg/1523.svg
new file mode 100644
index 0000000..bccbe97
--- /dev/null
+++ b/test/ns-afl-svg/1523.svg
Binary files differ
diff --git a/test/ns-afl-svg/1524.svg b/test/ns-afl-svg/1524.svg
new file mode 100644
index 0000000..c3ee98a
--- /dev/null
+++ b/test/ns-afl-svg/1524.svg
@@ -0,0 +1,7 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l0,00h000l000-00v0z" stroke="#000" fill="w0n0"/>0
+0
+0<path d="M00,0h00l00,00v00l0,00h000l000-00v0z" stroke="#000" fill="w0n0"/>0
+0<path d="M00,0h00l00,00v00l0,00h000l000-00v0z" fill="#000"/>0
+0<path d="M00,0h00l00,00v00l0,00h000l000-00v0z" fill="000000000000000000000"/>0
+0<text x="0" y="0" t-e="0" l="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1525.svg b/test/ns-afl-svg/1525.svg
new file mode 100644
index 0000000..05e187d
--- /dev/null
+++ b/test/ns-afl-svg/1525.svg
@@ -0,0 +1,15 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="0000000000" width="0" height="0" id="0" sodipodi:on="0" inkscape:von="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs id="0">
+0<linearGradient id="linearGradient0100" gradientUnits="00000000000000" x1="0" y1="0" x2="0" y2="0">
+0
+0
+0
+0
+0<stop style="stop-color:000" offset="0" id="0"/>
+0</linearGradient>
+0</defs>
+0<g inkscape:lalel="0" inkscape:g="0" id="0">
+0<rect style="fill:url(#linearGradient0100);" id="0" width="0" height="0" x="0" y="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1526.svg b/test/ns-afl-svg/1526.svg
new file mode 100644
index 0000000..36f9b33
--- /dev/null
+++ b/test/ns-afl-svg/1526.svg
@@ -0,0 +1 @@
+<vg width="0" Box="0" st-Å000000="0">0<svG xmlns="000000000000000" cliÀ00000="0" l=""/><a/><!--0-->0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1527.svg b/test/ns-afl-svg/1527.svg
new file mode 100644
index 0000000..dc336ee
--- /dev/null
+++ b/test/ns-afl-svg/1527.svg
@@ -0,0 +1,358 @@
+<svg xx="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" rorm="0">
+0<stop stop-color="#000" offset=".6"/>0<stop stop-color="#000" offset="1"/>
+0
+0
+0<stop stop-color="a0m0" offset="0"/>
+0<stop stop-color="000000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#00000"/>0
+0<circle r="4" x="0" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c097-0,03-00,100,0000" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="z" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" e="0" fill="#000"/>
+0<circle r="" cx="0" i="0" style="fill: 0000000000000"/>
+0<path d="M00,00c097-0,03-00,100,00v0" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,00L000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-00000000007000000000000000000000000000000000000 0000000000000000000000000000" x="0" y="0" fill="url(#pyYellow"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-0000-0M00000000000000000000000000000000000000000000000000000,00000,000000,000,0000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<paZh d="0" id="0004" style="0"/>
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#00000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,00000000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,004-00l0-00c0-0,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," filQ="0"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<Hircle r="0" x="0" y="0" fill="0"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" x="0" y="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" x="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,104,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,00..000,00000000 000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="z" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" y="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0
+
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c00000,00000000-000 000-00-000000000000000000000,000000000000000,0000000000" id="0004" stylel="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-20,024-00l0-00c0-0,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,104,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,10-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,100-00l0-00c0-0,0-00,02-00l24,0c0,0,00000000000000000,0c0,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1528.svg b/test/ns-afl-svg/1528.svg
new file mode 100644
index 0000000..0a28392
--- /dev/null
+++ b/test/ns-afl-svg/1528.svg
@@ -0,0 +1,244 @@
+<svg width="g" viewBox="0 0 1 1">
+0<path d="M00,0h00l000" stroke="#000" fill="o0n0"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<path d="00000000" stroke="#.00" fill="c0y0"/>0
+0
+0
+0<path d="M00,00v0J00000" fill="c0y0"/>0
+0
+0
+0<path d="M00,0000l00,00000000" stroke="0000" fill="o0n0"/>0
+0
+
+0
+0
+0
+0<path d="M00,0000M00,00000l00000000000000" stroke="#000" fill="o0n0"/>0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<path d="00000000" stroke="#000" fill="c0y0"/>0
+0
+0
+0<path d="M00,0000l00,00000000" stroke="#000" fill="o0n0"/>0
+0
+0
+0
+0
+0
+0<path d="M00,0000l00,00000l0000000000" stroke="#000" fill="o0n0"/>0
+0
+0
+0
+0
+0
+0
+0<path d="M00,0000l00,00000l0000000000000000000000000000000000000" stroke="#000" fill="o0n0"/>0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<eltipse x="0" y="0" m="0" stroke="0" fill="0"/>0
+
+0
+0
+0<path d="M00,0h00l00,00v00l000,00h00v000z" stroke="#000" fill="o0n0"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<path d="00000000" stroke="#000" fill="c0y0"/>0
+0
+0
+0<path d="M00,0h00l00,00v0J000" stroke="#000" fill="o0n0"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<path d="00000000" stroke="#.00" fill="c0y0"/>0
+0
+0
+0<path d="M00,00v0J00000" fill="c0y0"/>0
+0
+0
+0<path d="M00,0h00l00,00v0J000" stroke="0000" fill="o0n0"/>0
+0
+
+0
+0
+0
+0<path d="M00,00v0M00,00v00l000,00h000l000" stroke="#000" fill="o0n0"/>0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<ellipse rx="'" ry="1" transform="rotate(,00" stroke="#000" fill="c0y0"/>0
+
+0
+0
+0<path d="M00,0h00l00,00v00l000,00h00v000z" stroke="#000" fill="o0n0"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<path d="00000000" stroke="#000" fill="c0y0"/>0
+0
+0
+0<path d="M00,0h00l00,00v0J000" stroke="#000" fill="o0n0"/>0
+0
+0
+0
+0
+0
+0<path d="M00,0h00l00,00v00l0000000000" stroke="#000" fill="o0n0"/>0
+0
+0
+0
+0
+0
+0
+0<path d="M00,0h00l0000000000000000000000000000000000000000000000" stroke="#000" fill="o0n0"/>0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<eltipse x="0" y="0" transform="0" stroke="0" fill="0"/>0
+
+0
+0
+0<path d="M00,0h00l00,00v00l000,00h00v000z" stroke="#000" fill="o0n0"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<path d="00000000" stroke="#000" fill="c0y0"/>0
+0
+0
+0<path d="M00,0h00l00,00v0J000" stroke="#000" fill="o0n0"/>0
+0
+0
+0
+0
+0
+0<path d="M00,0h00l00,00v00l0000000000" stroke="#000" fill="o0n0"/>0
+0
+0
+0
+0
+0
+0
+0<path d="M00,0h0z" stroke="#000" fill="o0n0"/>0
+0
+0
+0<ellipse rx="0" ry=")" fill="#000"
+opy="0"/>0</svg>
diff --git a/test/ns-afl-svg/1529.svg b/test/ns-afl-svg/1529.svg
new file mode 100644
index 0000000..26d6e8d
--- /dev/null
+++ b/test/ns-afl-svg/1529.svg
@@ -0,0 +1,49 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="0" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="000" width="0" id="0" sodipodi:ion="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<faur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" iewBox="0">
+0<rect style="fill: h0i00tst000e" ath="0"
+yle="0" ip-path="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+<!--0-->0<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:i="0" xmlns:iape="h" width="0" height="0" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" iape:output_extension="0">
+0<defs>
+0<filter iape:collect="0" id="0">
+0<feGaussianBlur iape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+eight="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(300,000)" id="0">
+0<rect style="fill:red;" ip-path="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill: h0i00tst000e"
+p-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(00,05)"/>
+0</svg>0
+0</g>0</svg>0
+
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill: h0i00tst000e" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(00,05)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1530.svg b/test/ns-afl-svg/1530.svg
new file mode 100644
index 0000000..112f3fc
--- /dev/null
+++ b/test/ns-afl-svg/1530.svg
@@ -0,0 +1,7 @@
+<svg xmlns="00000000000" vie="0">
+0<!--0--><g>0
+0<!--0--><g>0
+0
+0<!--0--><g>0
+0<!--0--><g>0
+0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1531.svg b/test/ns-afl-svg/1531.svg
new file mode 100644
index 0000000..6386cbf
--- /dev/null
+++ b/test/ns-afl-svg/1531.svg
@@ -0,0 +1,6 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="n0i0"/>0
+0
+0<path d="0000000000000000" stroke="#000" fill="n0i0"/><path d="000,000000000000000000000000000" stroke="#000" fill="n0i0"/>0
+0
+<path d="000,0000000,000000000000" stroke="#000" fill="n0i0"/><path d="000,0000000,000000000,0000000000000,00000,000000,00000,00000,000,00000,000,000000000000000000000,000000000,0000000000000,00000,000000,00000,00000,000,00000,000,000000000000000000000000000,00000,000,0,00,000" fill="t0e00"/>0</svg>
diff --git a/test/ns-afl-svg/1532.svg b/test/ns-afl-svg/1532.svg
new file mode 100644
index 0000000..4ce81ee
--- /dev/null
+++ b/test/ns-afl-svg/1532.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE Ú0 PUBLIC "0" "0">
+<svg xmlns="0000000000000000000000">
+0<style te="0">
+0
+0</style>
+0<g style="0">0<circle cx="c" cy="cm" r="1" style="fill:r0d0 stroke:" wransform="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0a00ulu000e stroke-width:0K0" transform="translate(0,00,"/>
+0<circle cx="cm" cy="c" r="1" style="stroke:b0a00ulu000e stroke-width:0K000" transform="translate(00,00,"/>
+0<circle cx="cm" cy="c" r="1" style="stroke:b0a00ulu000e stroke-width:000000000r000;" transform="000000" wransform="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0a00ulu000e stroke-width:000t0000000000"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1533.svg b/test/ns-afl-svg/1533.svg
new file mode 100644
index 0000000..698b6b2
--- /dev/null
+++ b/test/ns-afl-svg/1533.svg
@@ -0,0 +1,60 @@
+<svg xmlns="000000000000000000" viewBox="0">
+0
+0<g foke="0">
+0
+0
+0
+0<g foke="0">
+0
+0</g>
+0<g fill="000" stroke="000">
+0
+0<ellipse stroke="000" rx="6" ry="4" transform="rotate(60)"/>
+0<circle r="4"/>
+0</g>
+0<g fill="000" stroke="o0i00">0
+0</g>
+0<g fill="000" stroke="o0i00">
+0
+0
+0<g foke="0">
+0
+0</g>
+0<g fill="000" stroke="o0i00">
+0
+0<ellipse stroke="0000000" rx="6" ry="4" transform="rotate(60)"/>
+0<circle r="4"/>
+0</g>
+0</g>
+0<g fill="0000000" stroke="o0i00">
+0
+0<ellipse stroke="0000000" rx="6" ry="4" transform="rotate(60)"/>
+0<circle r="4"/>
+0</g>
+0<g fill="0000000" stroke="o0i00">0
+0</g>
+0<g fill="0000000" stroke="o0i00">
+0
+0
+0
+0</g>
+0<g fill="0000000" stroke="o0i00">
+0
+0<ellipse stroke="0000000" rx="6" ry="4" transform="rotate(60)"/>
+0<circle r="4"/>
+0</g>
+0<g fill="0000000" stroke="o0i00">0
+0</g>
+0<g fill="0000000" stroke="o0i00">
+0<circle fill="#000000" r="3"/>
+0<circle cy="0" r="9"/>
+0<circle cx="0" cy="0" r="9"/>
+0
+<circle cx="0" cy="0" r="9"/>
+0</g>
+0<circle fill="#000000" r="3"/>
+0<circle cy="0" r="9"/>
+0<circle cx="0" cy="0" r="9"/>
+0
+<circle cx="0" cy="0" r="9"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1534.svg b/test/ns-afl-svg/1534.svg
new file mode 100644
index 0000000..57e5bf3
--- /dev/null
+++ b/test/ns-afl-svg/1534.svg
@@ -0,0 +1,146 @@
+<vg Ãts="0" ox="0">
+0
+0<path d="0"><![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћ>
+0
+0<![CDATA[0]]><Ћds>
+0
+0<![CDATA[0]]><fs>
+0<lt rm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<Ћ>0<Ћds>
+0<li rm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><ЋdeЋ>0
+0<![CDATA[0]]><Ћds>
+0
+0<![CDATA[0]]><Ћdefs>
+0<li id="0" rm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0
+0<![CDATA[0]]>0
+0<li id="0" gradienrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><fs>
+0<![CDATA[0]]>0
+0<ds>
+0<li id="0" tT="0"><![CDATA[0]]><Ћ>0<Ћ>0
+0
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћ>0<И>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0
+0<![CDATA[0]]><Ћdefs>
+0<li id="0" gen="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0<![CDATA[0]]>0
+0<fs>
+0<iRradient id="0" sform="0"><![CDATA[0]]><Ћ>0<Ћ>0<li id="0" genrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]
+0]]><Ћdefs>
+0
+0<![CDATA[0]]><Ћdefs>
+0<li id="0" genrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><fs>
+0<![CDATA[0]]>0
+0<ds>
+0<liRradient id="0" sform="0"><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0
+0<![CDATA[0]]><fs>
+0<li id="0" genrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0
+0<![CDATA[0]]><Ћdefs>
+0<li id="0" grarm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0<![CDATA[0]]><Ћdefs>
+0<nt nrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<Ћ>0<Ћdefs>
+0<linent nrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><ЋdeЋ>0
+0<![CDATA[0]]><Ћdefs>
+0
+0<![CDATA[0]]><Ћdefs>
+0<li id="0" genrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0
+0<![CDATA[0]]>0
+0<li id="0" gradienrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0<![CDATA[0]]>0
+0<defs>
+0<li id="0" gentT="0"><![CDATA[0]]><Ћ>0<Ћ>0
+0
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћ>0<И>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0
+0<![CDATA[0]]><Ћdefs>
+0<li id="0" genrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0<![CDATA[0]]>0
+0<defs>
+0<liRradient id="0" sform="0"><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0
+0<![CDATA[0]]><Ћdefs>
+0<li id="0" genrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0
+0<![CDATA[0]]><Ћdefs>
+0<li id="0" grarm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0<![CDATA[0]]><Ћdefs>
+0<li nrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<Ћ>0<Ћdefs>
+0<lt nrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+]]> \ No newline at end of file
diff --git a/test/ns-afl-svg/1535.svg b/test/ns-afl-svg/1535.svg
new file mode 100644
index 0000000..7c51cbc
--- /dev/null
+++ b/test/ns-afl-svg/1535.svg
@@ -0,0 +1,22 @@
+<svg v='0' xmlns='000' fill='s0q00rer' e='0'>
+0<path d='00,00000' fill='s0b00tax000nc00000' stroke='b0a00'/>0
+0<path d='00,000,,00000000000,0000,0000,0000,0,0000,00000,000,00000' fill='s0b00tax000nc00000' stroke='b0a00'/>0
+0<path d='000,00000,0000,0,0000,0,00,00,00,00000000000000000000000000000000000,0,00,00,00,00000,000,00000' fill='s0b00tax000nc00000' stroke='b0a00'/>0
+0<path d='M00,0,00,00,00,0c0-0,0-0,00-0z' fill='s0b00tax000nc00000' stroke='black'/>0
+0<path d='000,00000,0000,0,0000,0,00,000000' fill='s0l00tax000nc00000' stroke='b0a00'/>0
+0<path d='000,00000,00000,000000,000,0,000,0000000000000000,0000,0000,0000,0,00,00,00,00000,000,00000' fill='s0b00tax000nc00000' stroke='b0a00'/>0
+0<path d='M00,00c00,0000,0,00c000,00,00,00,00000,000,0000000000,0000,0000,0000,00000000000,0000,0000,0000,0,00,00,00,00000,000,00000' fill='s0b00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,0000,0,00c0,0,00,00,00,00000,000,0000000000,0000,0000,0000,0,00,00,00,00000,000,00000' fill='s0b00tax000nc00000' stroke='black'/>0
+0<path d='M00,0,00,00,00,0c0-0,0-0,00-0z' fill='s0b00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,0000,0,00c0,0,00,000000' fill='s0l00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,000000000' fill='s0b00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,0000,0,00c000,00,00,00,00000,000,0000000000,0000,0000,0000,00000000000,0000,0000,0000,0,00,00,00,00000,000,00000' fill='s0b00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,0000,0,00c0,0,00,00,00,00000,000,0000000000,0000,0000,0000,0,00,00,00,00000,000,00000' fill='s0b00tax000nc00000' stroke='black'/>0
+0<path d='M00,0,00,00,00,0c0-0,0-0,00-0z' fill='s0b00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,0000,0,00c0,0,00,000000' fill='s0l00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00, 0000,000000,0c0,0,000,0000000000000000,0000,0000,0000,0,00,00,00,00000,000,00000' fill='s0b00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,0000,0,00c000,00,00,00,00000,000,0000000000,0000,0000,0000,00000000000,0000,0000,0000,0,00,00,00,00000,000,00000' fill='s0b00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,0000,0,00c0,0,00,00,00,00000,000,0000000000,0000,0000,0000,0,00,00,00,00000,000,00000' fill='s0b00tax000nc00000' stroke='black'/>0
+0<path d='M00,0,00,00,00,0c0-0,0-0,00-0z' fill='s0b00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,0000,0,00c0,0,00,000000' fill='s0l00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00, 0000,00000000l0,000,0000000,0000,00000000,,000,0,0000000000,000,0000000,0000,00000000,,000,0000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000,000,000000000000000000' fql='0' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/1536.svg b/test/ns-afl-svg/1536.svg
new file mode 100644
index 0000000..8522b82
--- /dev/null
+++ b/test/ns-afl-svg/1536.svg
@@ -0,0 +1,91 @@
+<svg lns="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(0">
+0<stop stop-color="0000000" offset="0"/>
+0<stop stop-color="g0a0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="s0f00l" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="0000000000" fill="#000000"/>
+0<path d="M000,00l000-000c00000000000000000000000000000 000-000 00000 000000,00000000000000000=0000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,0-00-0@00000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow"/>0
+0<cirCle r="4" c="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000 00-00 000-00 0000-00 000-000 000000000000000000000000000000000000000000000000000000000000000000000000 000000,0000000000000000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00000:000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c00000000000000000-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000000000000000000000000000000000000000000000 0" id="0" style="fill: s0o00rad000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c00000000-00-0-00000000000 000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000@00000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="0000000000000000000000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-00-0-00000000000 0000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="u000000000000"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1537.svg b/test/ns-afl-svg/1537.svg
new file mode 100644
index 0000000..a6b15b2
--- /dev/null
+++ b/test/ns-afl-svg/1537.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:f0d;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1538.svg b/test/ns-afl-svg/1538.svg
new file mode 100644
index 0000000..e7d765a
--- /dev/null
+++ b/test/ns-afl-svg/1538.svg
@@ -0,0 +1,31 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:xlin0="00" xmlns:sodipodi="00" xmlns:in0scape="0t" width="0" height="0" id="0" sodipodi:version="0" in0scape:version="0" sodipodi:docname="0" in0scape:output_extension="0">
+0<defs id="0">
+0<linearGradient id="000000000000000000" x1="0" x0="0">
+0<stop
+l0="0"
+et="0" id="0"/>
+0<stop
+le="0"
+et="0" id="0"/>
+0</linearGradient>
+0<linradient in0scape:collect="0" xlin0:href="0" id="000000000000000000" x0="0" y0="0" x2="0" y2="0" gi="0"/>
+0<linearGradient in0scape:collect="0" xlin0:href="0" id="000000000000000000" x0="0" y0="0" x2="0" y2="0" ientUnits="0"/>
+0<linearGradient id="000000000000000000">
+0<stop
+le="0"
+set="0" id="0"/>
+0<stop
+le="0"
+set="0" id="0"/>
+0<st style="0" et="0" id="0"/>
+0</linearGradient>
+0<linearGradient in0scape:collect="0" xlin0:href="0" id="linearGradient2000" x1="0" y1="0" x2="0" y2="0" ts="0"/>
+0</defs>
+0<g in0scape:label="0" in0scape:groupmode="0" id="0">
+0<rect style="fill:url(#000000000000000100);" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="fill:url(#00000" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="fill:url(#linearGradient2000);" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="fill:url(#linearGradient2000);" id="0" width="0" height="0" x="0" y="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1539.svg b/test/ns-afl-svg/1539.svg
new file mode 100644
index 0000000..ea75431
--- /dev/null
+++ b/test/ns-afl-svg/1539.svg
Binary files differ
diff --git a/test/ns-afl-svg/1540.svg b/test/ns-afl-svg/1540.svg
new file mode 100644
index 0000000..ddb4283
--- /dev/null
+++ b/test/ns-afl-svg/1540.svg
@@ -0,0 +1,72 @@
+<?l?>
+<svg version="0" xmlns="0000000000000000" style="0">
+0<circle d="0" cx="0" cy="0" r="5" stroke="s0g00uic0"
+stroke-width="3"/>
+0
+0
+0
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0
+0
+<circle id="0" cx="0" cy="0" r="5" stroke="s0g00uic0"
+stroke-width="3"/>
+0
+0
+0
+0
+0
+0
+0<script pe="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="s0g00uic0"
+stroke-width="3"/>0
+0<circle id="0" cx="0" cy="0" r="5" stroke="s0g00uic0"
+stroke-width="3"/>
+0<text x=" ">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/1541.svg b/test/ns-afl-svg/1541.svg
new file mode 100644
index 0000000..c27d3db
--- /dev/null
+++ b/test/ns-afl-svg/1541.svg
@@ -0,0 +1,28 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[ <!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c00ext000co000'/>0<g transform='0'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M000 0 00' stroke='black' stroke-width='0'/>0</g>0">
+<!ENTITY t "">
+<!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" n="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" fill="none" s="0"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g m="0">&w;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport0;</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg o="0" viewBox="0 0 3 4"
+h="0" t="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg r="0" viewBox="0 0 3 4"
+d="0" g="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<text y="Q">0</text>&i;
+0<svg e_tRatio="0" viewBox="0 0 0 0" width="0" height="0">0</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg preRatio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1542.svg b/test/ns-afl-svg/1542.svg
new file mode 100644
index 0000000..98e04a9
--- /dev/null
+++ b/test/ns-afl-svg/1542.svg
@@ -0,0 +1,92 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="c0a0" offset="0"/>
+0
+0<stop stop-color="#000" f="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M20,0c0,0,00,0,20,120c0,0-0,00-10,12l-24,0c00,0-00,0-14,10l0,00l-9,0c00,0-00-0-13-20c0-00,0-00,0-20i0000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" x="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: 000" fill="url000000000"/>0
+0<path d="M000000000000000000000000000000000000000000000000000000000000000000-00l0,000,00L0000000000000000000000000"/>
+0<path d="M70,00c090-0,00-00,104,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" x="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#00000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00000000,00L000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M70,87c0,73-230-20-0-24108.00000000000000000000000000000000000000000000000000000.0000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" x="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="0000000000000000000000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,000000000000000000000000000000000000000000000000000000000000000000l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M04,80c090-0,00-00,120,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-20,120-00l0-02c0-0,0-00,200-20-00000000000000000000,00000000000000000000,0000000000000000,000000l000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-000000000000000000000000000000000000000000000000000000000000000000,00l000,000,0000,000,000,00000000000,000,0,0000,000000000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" u="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M74,80c0,73-230-20-0-24100.0000000000000000000000000000000000000000000000000000000000000000000-00" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1543.svg b/test/ns-afl-svg/1543.svg
new file mode 100644
index 0000000..31694a2
--- /dev/null
+++ b/test/ns-afl-svg/1543.svg
@@ -0,0 +1,3 @@
+<svg xmlns="0000000" fill="url(#0)000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l000,00h000l0000000" oe="0" fill="none"/><polyline d="0" fill="#000"/>0
+0<text x="0" y="0" t-e="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1544.svg b/test/ns-afl-svg/1544.svg
new file mode 100644
index 0000000..625758a
--- /dev/null
+++ b/test/ns-afl-svg/1544.svg
@@ -0,0 +1,20 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:black;stroke-width:0)"/>
+0<circle cx="cm" cy="0" r="1" style="fill:g0f00lba000ke000000;" transform="translate(0,0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0f00lba000ke000000;"/>
+0<circle cx="cm" cy="0" r="1" style="fill:g0f00d;stroke:black;stroke-width:0000000)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0f00lba000ke000000;" transform="translate(0,0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0f00lba000ke000000;"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0f00lba000ke000000;"/>
+0
+0<circle cx="G" w="0" r="1" style="fill:g0f00lba000ke000000;stroke-width:001cm" transform="translate(,0"/>
+0<circle cx="cm" cy="cm" r="H" style="fill:blue;"/>
+0<circle cx="G" cy="cm" r="1" style="fill:g0f00lba000ke000000;stroke-width:001cm" transform="translate(,0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0f00lba000ke000000;"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1545.svg b/test/ns-afl-svg/1545.svg
new file mode 100644
index 0000000..d4159f8
--- /dev/null
+++ b/test/ns-afl-svg/1545.svg
@@ -0,0 +1,368 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" a_rm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="q0`00"/>0
+0<e r="0" x="0" y="0" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0-0,00,0,000,00c0,0-0,00-00,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000"/>0
+0<circle r="4" x="0"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow"/>0
+0<cirCle r="4" x="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#r0000" fill="url(#0"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="u0y00llo00"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-0,124,00v0" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#00)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,00L0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#00000" fill="url(#000000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,00L000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,13-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c00000000000000000000000000000000000000000000000000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,10-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="0000000000000"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,000-00l0-00c0-0,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,03-00,104,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,03-00,104,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="0000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,03-00,104,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" mill="0"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,100-00l0-00c0-0,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-000v0" fill="0000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000w)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,03-00,104,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,10-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>0
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,03-00,104,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,03-00,104,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-20,004-00l0-00c0-0,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,03-00,104,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,03-00,104,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,10-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,03-00,104,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1546.svg b/test/ns-afl-svg/1546.svg
new file mode 100644
index 0000000..caaeb13
--- /dev/null
+++ b/test/ns-afl-svg/1546.svg
@@ -0,0 +1,19 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" orm="0">
+0<stop stop-color="0" offset="0"/>
+0<stop soet="0"/>
+0<stop sr="0" offset="7"/>
+0<stop stop-color="#000" offset=","/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop op-c="0" ot="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" fill="0"/>
+0<path d="M0,0c0,0-0-00-0-00-" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1547.svg b/test/ns-afl-svg/1547.svg
new file mode 100644
index 0000000..690752d
--- /dev/null
+++ b/test/ns-afl-svg/1547.svg
Binary files differ
diff --git a/test/ns-afl-svg/1548.svg b/test/ns-afl-svg/1548.svg
new file mode 100644
index 0000000..50a4240
--- /dev/null
+++ b/test/ns-afl-svg/1548.svg
@@ -0,0 +1,794 @@
+<svg xmlns="0" viewBox="0 0 1 8">
+0<path d="M0,0h00c00,00,00,"/>0
+0
+0<text x="'" y="0" ze="0" fl="0" t-ar="0"><![CDATA[0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]]]]
+0
+0
+0
+0
+0]]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]]]]
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]
+0
+0
+0
+0
+0]]>0</text>0</svg>
diff --git a/test/ns-afl-svg/1549.svg b/test/ns-afl-svg/1549.svg
new file mode 100644
index 0000000..979514f
--- /dev/null
+++ b/test/ns-afl-svg/1549.svg
@@ -0,0 +1,67 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" grorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="u0r00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#000000000)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000000000)"/>
+0<path d="000,0000000000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,0000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0-00000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-00000000000>00000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<cirIle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,0000,0000,000000000000,000,00000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fPll="0"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0004" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,10-00,020,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1550.svg b/test/ns-afl-svg/1550.svg
new file mode 100644
index 0000000..b014081
--- /dev/null
+++ b/test/ns-afl-svg/1550.svg
@@ -0,0 +1,102 @@
+<svg xmlns="0000000000" ox="0">
+0<svg xmlns="hg" viewBox="0 0 0 0">
+0<path d="00000000000000" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+</svg>0<path d="00000000" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+0<svg xmlns="hg" viewBox="0 0 1 1">
+0<path d="M00,0000l00,000z" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+</svg>0<path d="00000000" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+0<svg xmlns="hg" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+0&lt;0
+0<svg xmlns="ht" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l00-00z" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+</svg>0<path d="00000000" st="0" fill="m&lt;o00"/>
+0
+</svg>0<path d="00000000" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+0<svg s="0" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,000z" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+</svg>0<path d="00000000" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+0<svg xmlns="hg" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+0&lt;0
+0<svg xmlns="ht" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+</svg>0<path d="00000000" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+0<svg xmlns="vg" viewBox="0 0 1 1">
+0<path d="M00,0h0000000000l000000-00-000" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+</svg>0<path d="00000000" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+0<svg xmlns="hg" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+0&lt;0
+0
+0
+</svg>0<path d="000000000000000000"/>
+0
+0<svg xmlns="00" viewBox="0" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+0<svg xmlns="vg" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,000z" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+</svg>0<path d="00000000" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+0<svg xmlns="vg" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+0&lt;0
+0<svg xmlns="ht" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l00-00z" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+</svg>0<path d="00000000" st="0" fill="m&lt;o00"/>
+0
+</svg>0<path d="00000000" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+0<svg s="0" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,000z" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+</svg>0<path d="00000000" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+0<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+0&lt;0
+0<svg xmlns="00" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+</svg>0<path d="00000000" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+0<svg xmlns="hg" viewBox="0 0 1 1">
+0<path d="M00,0h0000000000l000000-00-000" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+</svg>0<path d="00000000" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+0
+0<path d="M00,0h00l00,00v00l000000-00-000" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+</svg>0<path d="00000000" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+0<svg xmlns="ht" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+0&lt;0
+0
+0
+</svg>0<path d="00000000" stroke="#000" fill="m&lt;o00inc00"/>
+0
+</svg>0<path d="00000000" stroke="00000000" fill="m&lt;o00inc000ee000"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/1551.svg b/test/ns-afl-svg/1551.svg
new file mode 100644
index 0000000..cc58ed8
--- /dev/null
+++ b/test/ns-afl-svg/1551.svg
@@ -0,0 +1,117 @@
+<svg ÃtÉ="0">0
+
+0<path d="0"/>
+0<pa ÃtÉ="0">
+0<defs>0
+0<pa ÃtÉ="0"/>
+0
+0<stop stop-color="0" offset="0"/>
+0
+0</defs>0
+0<path d="0"/>
+0<pa ÃtÉ="0">0
+
+0<path d="0"/>
+0<pa ÃtÉ="0">
+0<defs>0
+0<pa ÃtÉ="0"/>
+0
+0<stop stop-color="0" offset="0"/>
+0
+0</defs>0
+0<path d="0"/>
+0<pa ÃtÉ="0">
+0
+0<path d="0" vvvvvvvvvvvvv="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circlvg ÃtÉ="0">0
+
+0<path d="0"/>
+0<pa ÃtÉ="0">
+0<defs>0
+0<pa ÃtÉ="0"/>
+0
+0<stop stop-color="0" offset="0"/>
+0
+0</defs>0
+0<path d="0"/>
+0<pa ÃtÉ="0">0
+
+0<path d="0"/>
+0<pa ÃtÉ="0">
+0<defs>0
+0<pa ÃtÉ="0"/>
+0
+0<stop st="0" offset="0"/>
+0
+0</defs>0
+0<path d="0"/>
+0<pa ÃtÉ="0">
+0
+0<path d="0" vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circlvg ÃtÉ="0">0
+
+0<path d="0"/>
+0<pa ÃtÉ="0">
+0<defs>0
+0<pa ÃtÉ="0"/>
+0
+0<stop r="0" offset="0"/>
+0
+0</defs>0
+0<path d="0"/>
+0<pa ÃtÉ="0">0
+
+0<path d="0">0
+0<pa ÃtÉ="0">
+0<defs>0
+0
+0<pa ÃtÉ="0">
+0<defs>0
+0<pa ÃtÉ="0"/>
+0
+0<stop stop-color="0" offset="0"/>
+0
+0</defs>0
+0<path d="0"/>
+0<pa ÃtÉ="0">0
+
+0<path d="0"/>
+0<pa ÃtÉ="0">
+0<defs>0
+0<pa ÃtÉ="0"/>
+0
+0<stop st="0" offset="0"/>
+0
+0</defs>0
+0<path d="0"/>
+0<pa ÃtÉ="0">
+0
+0<path d="0" vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circlvg ÃtÉ="0">0
+
+0<path d="0"/>
+0<pa ÃtÉ="0">
+0<defs>0
+0<pa ÃtÉ="0"/>
+0
+0<stop r="0" offset="0"/>
+0
+0</defs>0
+0<path d="0"/>
+0<a ÃtÉ="0">0
+
+0<path d="0">0
+0<a ÃtÉ="0">
+0<defs>0
+0<a ÃtÉ="0"/>
+0
+0<stop stop-color="0" offset="0"/>
+0
+0</defs>0
+0<path d="0"/>
+0<a ÃtÉ="0">
+0
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1552.svg b/test/ns-afl-svg/1552.svg
new file mode 100644
index 0000000..4506124
--- /dev/null
+++ b/test/ns-afl-svg/1552.svg
@@ -0,0 +1,106 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stollp r="0" f="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="000" t="0"/>
+0
+0<stop stop-color="#000" offset=".4"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,00,000c0,0-0,00-00,00ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ00"/>0
+0<circle r="0" cx=")"/>
+0<path d="00,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="00000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000 00-00-00 0000000,000000000 000000,000000000 000000,000000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-2,40l,10-00,100,00v0" fill="url(#py0ellow)"/>0
+0
+0<path d="M00,00c00000,000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,0000 000000,000000000000000000,0000M0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000000000000000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-2,00l-50-000c0,0,0-00040 14-00-00 00-80 000-50 0060-70 000-130 000-80-00000-0000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000000000i0000000,0000000,000000000000000,0000000000000000000000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" c="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-03,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000,0000000,00000000 000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-03,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0
+
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-04-6-000080000000000000,00000000000000000000,00,0000000000000,000000l000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1553.svg b/test/ns-afl-svg/1553.svg
new file mode 100644
index 0000000..674d72c
--- /dev/null
+++ b/test/ns-afl-svg/1553.svg
@@ -0,0 +1,52 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='red'/>0<g transform='translate(0,0)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='b0c0' stroke-width='2'/>0</g>0">
+<!ENTITY t "">
+<!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" ion="0" xmlns="00000000000000000000000000">0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" ill="0" stroke="b0u0"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&r;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport2;</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&p;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transforR="0">
+0 0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1554.svg b/test/ns-afl-svg/1554.svg
new file mode 100644
index 0000000..53fbb3a
--- /dev/null
+++ b/test/ns-afl-svg/1554.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="c" cy="cm" r="1" style="fill:r0d0 stroke:" m="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0t00blu000e stroke-width:00m" transform="translate(0,0)"/>
+0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1555.svg b/test/ns-afl-svg/1555.svg
new file mode 100644
index 0000000..325cdfb
--- /dev/null
+++ b/test/ns-afl-svg/1555.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:t0a00lns000;stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black;stroke-width:1cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1556.svg b/test/ns-afl-svg/1556.svg
new file mode 100644
index 0000000..f237dd4
--- /dev/null
+++ b/test/ns-afl-svg/1556.svg
@@ -0,0 +1,12 @@
+<svg viewBox='0 0-6-1' fe='0' fill='s0n00r' ke='0' xmlns='00'>
+0<path d='M0,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,0,0c00,0-0,0,0,0000c0,0,0,0,0,000000000000000000000000000000000c00,0-0,0,0,0000c0,0,0,0,0,0l000,0c00,0-0-0-00-0zM000,00c0,0,0-0,0-0l000,0c00,0-0-0-00-00000000000000000000000000000000000000000000000000000000000000000000000000000,0,0,0,0c00,000,0,0,000000,0,0,0,0,00000000,000,0,0,000000,0,0,0,0,00000000,000,0,0,000000,0,0,0,00,0,0,000000,0,0,0,0,00000000,000,0,0,000000,0,0,0,0,00000,0000,000000000000000,0000,0,000,0000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,0,000000,000,0,000,0000000,000,0,0,0,0,0000,000,0,0,000000,0,0,0,0,00000000,000,0,0,000000,0,0,0,0,00000000,000,0,0,000000,0,0,0,0,00000,0000,000000000000000,0000,0,000,0000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000,000,00000' fill='s0n00r' stroke='black'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,0,0c00,0-0,0,0,0000c0,0,0,0,0,0h000c00,000,0,0,0000c0,0,0,0,0,00000000,000,0,0,000000,0,0,0,0,00000,0000,0000,00000,0000,000000000000000,0000,0,000,0000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000,000,00000' fill='s0n00r' stroke='black'/>
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,0,0c00,0-0,0,0,0000c0,0,0,0,0,0h000c000000,0,0,0000c0,0,0,0,0,00000000,000,0,0,000000,0,0,0,0,00000,0000,000000000000000,0000,0,000,0000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,000000000,000,00000' fill='s0n00r' stroke='black'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,0,0c00,0-0,0,0,0h00c0,0,00c00,000,0,0,000000,0,0,0,0,00000000,000,0,0,000000,0,0,0,00,0,0,000000,0,0,0,0,00000000,000,0,0,000000,0,0,0,0,00000,0000,000000000000000,0000,0,000,0000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,0,000000,000,0,000,0000000,000,0,0,0,0,0000,000,0,0,000000,0,0,0,0,00000000,000,0,0,000000,0,0,0,0,00000000,000,0,0,000000,0,0,0,0,00000,0000,000000000000000,0000,0,000,0000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000,000,00000' fill='s0n00r' stroke='black'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,0,0c00,0-0,0,0,0000c0,0,0,0,0,0h000c00,0-0,0,0,0000c0,0,0,0,0,0h000c00,0-0,0,0,0h00c0,0,0,0,0,0l000,0c00,0000,00000,0c00,000000000000000,0000,0,000,0000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000,000,00000' fill='s0n00r' stroke='black'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,0,0c00,0-0,0,0,0h00c0,0,0,0,0,0h000c00,0-0,0,0,0h00c0,0,0,0,0,0h000c00,0-0,0,0,0h00c0,0,/,0,0,00000,0000,000000000000000,0000,0,000,0000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,000000000,000,00000' fill='s0n00r' stroke='black'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,0,0c00,0-0,0,0,0h00c0,0,0,0,0,0h000c00,0-0,0,0,0h00c0,0,0,0,0,0h000c00,0-0,0,0,0h00c0,0,/,0,0,00000,0000,000000000000000,0000,0,000,0000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,0,00000000,000,0,0,000000,0,0,0,0,00000000,000,0,0,000000,0,0,0,0,00000,0000,000000000000000,0000,0,000,0000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000,000,00000' fill='s0n00r' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/1557.svg b/test/ns-afl-svg/1557.svg
new file mode 100644
index 0000000..c85b673
--- /dev/null
+++ b/test/ns-afl-svg/1557.svg
@@ -0,0 +1,121 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" ra_ieorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0" gra_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="url(#0000000" fill="0"/>
+0<path d="0" f="0"/>
+0
+0<stop r="0" f="0"/>
+0<stop stolor="0" f="0"/>
+0
+0<stop stopor="0" f="0"/>
+0
+0
+0<stop r="0" offset="0"/>
+0
+0<stop r="0" offset="0"/>
+0<stop r="0" t="0"/>
+0
+0
+0<stop r="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="0"/>0
+0<circle r="0" x="0"/><stop t="0" e="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop sr="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow"/>0
+0<cirCle r="4" x="0" cy="0" fill="#000"/>
+0<ci fill="0"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,00-20,124-00l0-22c0-0,0-10,10-10l24,0c0,0,00-0,14-10l0-10l9,00000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00000000,0000000000000000000000000000"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l000000000000,00c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,00-20,100-00l0-22c0-0,0-10,00-10l24,0c0,0,00-0,10-1000000l000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0000000000000000000000000000"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000000000000000000,000,000,000M0000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-04-6-000080000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(# 14e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="z" id="0" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1558.svg b/test/ns-afl-svg/1558.svg
new file mode 100644
index 0000000..20079d0
--- /dev/null
+++ b/test/ns-afl-svg/1558.svg
@@ -0,0 +1,35 @@
+<svg xmlns="00000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="o0n0"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<path d="M0,0h0l0,0v0l0,0h0l0-0v00z" stroke="#000" fill="o0n0"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+fill="#000" py="0"/>0<ellipse rx="0" ry="z"
+transform=",0"/>0<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+fill="#000" opacity="0"/>0<ellipse rx="3" ry="2" transform="rotate(0)translate(0,0)" fill="#000"
+opacity="0"/>0</svg>
diff --git a/test/ns-afl-svg/1559.svg b/test/ns-afl-svg/1559.svg
new file mode 100644
index 0000000..d8e64ff
--- /dev/null
+++ b/test/ns-afl-svg/1559.svg
@@ -0,0 +1,13 @@
+<?l?>
+<svg in="0" ns="0" width="D" height="0" style="0" on="0">0
+0
+<ellipse rx="mm" ry="0"
+fill="#000" pa="0"/>0<ellipse rx="3mm" ry="2" transform="rotate(0-0 0"
+fill="#000" opa="0"/>0<ellipse rx="3mm" ry="2" tl="0" opa="0"/>0<?y?>0
+<svg ion="0" xns="0" width="D" height="0" style="0" on="0">0
+0
+<ellipse rx="mm" ry=")"
+fill="#000" opa="0"/>0<ellipse rx="3mm" ry="2" transform="rotate(0-0 0"
+fill="#000" opa="0"/>0<ellipse rx="3mm" ry="2" ll="0" opa="0"/>0<ellipse rx="3mm" ry="2" transform="rotate(,0" fill="#000"
+oty="0"/>0</svg><ellipse rx="3mm" ry="2" transform="rotate(,0" fill="#000"
+oty="0"/>0</svg>
diff --git a/test/ns-afl-svg/1560.svg b/test/ns-afl-svg/1560.svg
new file mode 100644
index 0000000..78a664c
--- /dev/null
+++ b/test/ns-afl-svg/1560.svg
@@ -0,0 +1,27 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,00000l00,00000l000,0z" stroke="#000" fill="n0d0"/>0
+0
+0<path d="M00,0000l00,00v00l000,00l000-00z" stroke="#000" fill="n0d0"/>0
+0
+0<path d="M00,0000l00,00v00l000,00l000-00z" stroke="#000" fill="n0d0"/>0
+0<path d="00000000000000000000000000" stroke="#000" fill="n0d0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00l00,00v00l000,0z" stroke="#000" fill="n0d0"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="n0d0"/>0
+0<path d="M00,0h0000000000l00000000000" fill="n0d0"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="n0d0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00l00,00v00l000,0z" stroke="#000" fill="n0d0"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="n0d0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00l00,00v00l000,0z" stroke="#000" fill="n0d0"/>0
+0
+0<path d="M00,0h0000000000l000000000--00" stroke="#000" fill="n0d0"/>0
+0<path d="M00,0h0000000000l00000000000" fill="n0d0"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="n0d0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00l00,00v00l000,0z" stroke="#000" fill="n0d0"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="n0d0"/>0
+0<path d="M000-00v000z" fill="#000"/>0
+0</svg>
diff --git a/test/ns-afl-svg/1561.svg b/test/ns-afl-svg/1561.svg
new file mode 100644
index 0000000..f42ac3e
--- /dev/null
+++ b/test/ns-afl-svg/1561.svg
@@ -0,0 +1,15 @@
+<svg xmlns="0000000000000000000" xmlns:xlin0="0000" viewBox="0 0 1 1">0<radialGradient d="0" cx="0" cy="0" t="0" grntUnits="0"><stop ot="0" stop-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000C000,00 00,00 00,000,00" id="0" fill="d0l00gss00"/>
+0<use xlin0:hrea="0" transform="0"/>
+0
+0
+0<radialGradient id="0" cx="0" cy="0" t="0" grntUnits="0"><stop ot="0" stop-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000C000,00 00,00 00,000,00" id="0" fill="d0l00gss00"/>
+0<use xlin0:hrea="0" transform="0"/>
+0
+0<radialGradient id="0" cx="0" cy="0" t="0" grntUnits="0"><stop ot="0" stop-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000C000,00 00,00 00,000,00" id="0" fill="d0l00gss00"/>
+0<use xlin0:hrea="0" transform="0"/>
+0<radialGradient id="0" cx="0" cy="0" t="0" grntDnits="0"><stop ot="0" stop-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000C000,00 00,00 00,000,00" id="0" fill="d0l00gss00"/>
+0<use xlin0:hrea="0" transform="0"/>0</svg>
diff --git a/test/ns-afl-svg/1562.svg b/test/ns-afl-svg/1562.svg
new file mode 100644
index 0000000..58a2cfa
--- /dev/null
+++ b/test/ns-afl-svg/1562.svg
Binary files differ
diff --git a/test/ns-afl-svg/1563.svg b/test/ns-afl-svg/1563.svg
new file mode 100644
index 0000000..6040474
--- /dev/null
+++ b/test/ns-afl-svg/1563.svg
@@ -0,0 +1,50 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gra_ieorm="0">
+0<stop stop-color="k0g0" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>0
+0<stop stop-color="#000" offset=".4" cy="0" ll="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="C"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="r000000000" ll="0"/>
+0<ph d="0" ot="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0-0,00,0,0,00000000,00000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000000000000,00000,000,0000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,000000000000000000000000000000000000000000000000000000000000000000000000000000000000r00000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,000000000000,0,000000000000000000000000000000000000000000000000000000000000000,0000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c00000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c00000,0000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l000000,0c0,0,00"/>
+0<path d="M00,0000J000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,000,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="u00000000000"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1564.svg b/test/ns-afl-svg/1564.svg
new file mode 100644
index 0000000..f3845cc
--- /dev/null
+++ b/test/ns-afl-svg/1564.svg
Binary files differ
diff --git a/test/ns-afl-svg/1565.svg b/test/ns-afl-svg/1565.svg
new file mode 100644
index 0000000..491d72c
--- /dev/null
+++ b/test/ns-afl-svg/1565.svg
@@ -0,0 +1,17 @@
+<svg widBox="0">0<svg xmlns="svg" nk="0" xmlns:sodipodi="00" xmlns:inkscape="htt"
+th="0"
+ht="0" id="0" sodipodi:ion="0" inkscape:vÁ0="0">0<defslter inkscape:c̬Ì0="0">
+0<sodipdview inkscape:ww-ight="0" inkscape:idth="0" inkscape:pageshadow="0" inkscape:pag="0" guiderance="0" dtolerance="0" be="0" ty="0" bx="0" stro="0">0<svg xmlns="0000000000" nk="0" di="0" xmlns:inke="htt"
+th="0"
+ht="0" id="0" sodipodi:ion="0" inkscape:vÁ0="0">
+0<defslter inkscape:c̬Ì0="0">0<svg xe="0"
+th="0"
+ht="0" id="0" sodipodi:ion="0" inkscape:vÁ000="0">
+0<defslter inke:c̬Ì0="0">
+0<sodipdview inkscape:ww-height="0" inke:window-width="0" inke:pageshadow="0" inke:pag="0" guiderance="0" dtolerance="0" range="0" borty="0" bBox="0" t-width="0">0<svg xmlns="svg" nk="0" di="0"
+th="0"
+ht="0" id="0" sodipodi:ion="0" inke:vÁ000="0">
+0<defslter inkscape:cot̬Ì0="0">
+0<sodipdview inke:ww-height="0" inke:window-width="0" inkscape:pageshadow="0" inkscape:pag="0" guiderance="0" grice="0" obrange="0" bcity="0" or="0" pagor="0" id="0" shod="0" inke:zoom="0" inke:cx="0" iy="0" nh="0">0<svg xmlnk="0" xmlns:sodi="00" nh="0" ht="0" id="0" sodi:ion="0" inke:vÁ000="0">0
+<sv>
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1566.svg b/test/ns-afl-svg/1566.svg
new file mode 100644
index 0000000..0daa1af
--- /dev/null
+++ b/test/ns-afl-svg/1566.svg
@@ -0,0 +1,369 @@
+<svg ns="0" fill="url(#pyYellow)" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" m="0">
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="#000" offset=","/>
+0
+0
+0
+0<th d="0" ll="0"/>0
+0<ce r="0" cx="0"/>
+0
+0<stop stop-color="#000" offset=".4"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0,0-0,00-01,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: 0" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l04,0c0,0,00-0,04-00l0-000000000000000000)"/>
+0<path d="M00,00c000-0,10-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0000000000000l000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-2,00l-02-000c00000000" fill="u0e0"/>
+0<path d="M00,0000000000000000,000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" Ly="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000000000)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000000000000000000000000000000000000M000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-00c0-0,0-00,02-00l04,00000000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-60.870,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="M00,00c0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#00000"/>0
+0<circle r="$" fill="url(#000e)"/>
+0
+
+0<cirCle r="4" cx="0" cv="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00000000,0000000000"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,020-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-00l0-00l9,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,-00008000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00000,00000,00000000000c000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,6-00,-00103.600000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000e)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-00c0-0,0-00,02-00l00,0c0,0,00-0,04-10l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" ll="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000ac000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,124-00l0-00c0-0,0-00,10-00l04,0c0,0,00-0,00-10l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,124-00l0-00c0-7,0-00,10-00l24,0c0,0,00-0,14-10l0-10l9,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-00,100-00l0-20c000,0000,00000000,0c0,0,0000,000000000000,000,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AimCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1567.svg b/test/ns-afl-svg/1567.svg
new file mode 100644
index 0000000..0db3183
--- /dev/null
+++ b/test/ns-afl-svg/1567.svg
@@ -0,0 +1,81 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a0" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,00,,00c0,0-0,00-00,000000000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" c="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-03,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000000000000000000=00,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000%000000000000000000000000000000000000000000000000000,00000000000000,0000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00000"/>
+0<path d="M00,00c090-0,00-03,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" t="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,0000000-0000,000,0,L0,00,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,0000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-03,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,00,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000000000,00000,000000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<path d="M00,00c000-8,10-20,020,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,00,0,00,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="u0e0"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,00,0,00,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000,00000000000000000000000000000,000" fill="url(#00000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,000,00000000,0c0,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,0000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#00000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,00,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000-000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="u0e0"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,00,0,00,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,10-20,020,00v0" fill="url(#py0ellow)"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="c" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1568.svg b/test/ns-afl-svg/1568.svg
new file mode 100644
index 0000000..f62cb75
--- /dev/null
+++ b/test/ns-afl-svg/1568.svg
@@ -0,0 +1,13 @@
+<svg viewBox='0 0 1 1' xmlns='000p00000000000000'>
+0
+0<path d='M00,00l000-0l00-0l000-00l00,00l0-00l0,00l00-00l000,00l00,0l000,0l00,00l000-00l00,00z' fill='#000' stroke='c0b0'/>
+0<path d='M0,00l00' x='0' fill='#000'/>0
+0<path d='M00,00l000-0l00-0l000-00l00,00l0-00l0,00l00-00l000,00l00,0l000,0l00,00l000-00l00,00z' fill='#000' stroke='c0b0'/>
+0<path d='M0,00l00' b='0' fill='#000'/>
+0<path d='M00,00l000-0l00-0l000-00l00,00l0-00l0,00l00-00l000,00l00,0l000,0l00,00l000-00l00,00z' fill='#000' stroke='c0b0'/>
+0<path d='M0,00l00' xmlnb='0' fill='#000'/>0
+0<path d='M00,00l000-0l00-0l000-00l00,00l0-00l0,00l00-00l000,00l00,0l000,0l00,00l000-00l00,00z' fill='#000' stroke='c0b0'/>
+0<path d='M0,00l00' b='0' ll='0'/>
+0
+0
+</svg>
diff --git a/test/ns-afl-svg/1569.svg b/test/ns-afl-svg/1569.svg
new file mode 100644
index 0000000..aa58b1b
--- /dev/null
+++ b/test/ns-afl-svg/1569.svg
@@ -0,0 +1,12 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h0l0,0l000000-00z" stroke="#000" fill="t0n0"/>0
+0<path d="M00,0h00l00,00l000-00v000z" stroke="#000" fill="t0w0"/>0
+0<path d="M00,0000000000000000000000000l000,0l0000000000-00z" stroke="#000" fill="t0n0"/>0
+0<path d="M00,0h00l00,00l000-00v000z" stroke="#000" fill="t0w0"/>0
+0<path d="M00,000000000l00,00v00l000,0l000,00l000-00z" stroke="#000" fill="t0n0"/>0
+0<path d="M00,0h00l00,00l000-00v000z" stroke="#000" fill="t0w0"/>0
+0<path d="M00,0h00l00,00v00h00l00,00v00l000,0l000,00l000-00z" stroke="#000" fill="t0n0"/>0
+0<path d="M00,0h00l00,00l000-00v000z" stroke="#000" fill="t0w0"/>0
+0<path d="M00,0h00l00,00v00m000,000-00" fill="#000"/>0
+0
+0<text x="0" y="0" t-e="0" l="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1570.svg b/test/ns-afl-svg/1570.svg
new file mode 100644
index 0000000..c509955
--- /dev/null
+++ b/test/ns-afl-svg/1570.svg
@@ -0,0 +1,19 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0a00' stroke='f0d'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='!' r='1' fill='y0`00w'/>0<circle cx='0' cy='F' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M0 0A0 0 0 0 0 0 0' stroke='b0l00' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" n="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" h="0" fill="none" stroke="blue"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g m="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0<g d="0" transform="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg o="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg r="0" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1571.svg b/test/ns-afl-svg/1571.svg
new file mode 100644
index 0000000..c3cddc1
--- /dev/null
+++ b/test/ns-afl-svg/1571.svg
@@ -0,0 +1,47 @@
+<vg xmlns="00000000000000000000000000" viewBox="0">
+0<path d="0">0<xmlns e="">0<r>0<vg xmlns="vg">0
+0<xmlns>0
+0<xmlns e="">0
+0<xmlns>0
+0<vg ns="0">
+0<xmlns>0
+0<xmlns p="">
+0
+0<xmlns>0
+0<xmlns>
+0
+0<xmlns>0
+0<vg ns="0">
+0<xmlns>0
+0<xmlns>
+0
+0<xmlns>0
+0
+0<r>0<svg xmlns="vg">0
+0<xmlns>0
+0<xmlns>0<xmlns>0
+0<r>0<svg xmlns="vg">0
+0<xmlns k="">0
+0<xmlns>0<xmlns>0
+0<xmlns>0
+0<vg xmonlns="0" viewBox="0">
+0<path d="0">0<xmlns>0
+0<r>0<svg xmlns="vg">0
+0<xmlns>0
+0<xmlns>0<xmlns e="">0
+0<xmlns>0
+0<vg ons="0">
+0<xmlns>0
+0<xmlns>
+0
+0<xmlns>0
+0<xmlns>
+0
+0<xmlns>0
+0<vg ons="0">
+0<xmlns>0
+0<xmlns>
+0
+0<xmlns>0
+0
+0<r>0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1572.svg b/test/ns-afl-svg/1572.svg
new file mode 100644
index 0000000..70edf74
--- /dev/null
+++ b/test/ns-afl-svg/1572.svg
@@ -0,0 +1,9 @@
+<svg xmlns="0000000" fill="url(#0)000" viewBox="0">0<line d="0" stroke="0000000000000"/>0
+0
+0<line d="0" t="0" fill="0000"/>0
+0<path d="00" fill="#000"/>0<lini d="0" ke="0" ll="0"/>0
+0
+0<line d="0" st="0" fI="0"/>0
+0<path d="0000" fill="#K00"/>0
+0<![CDATA[0]]>0
+</svg>
diff --git a/test/ns-afl-svg/1573.svg b/test/ns-afl-svg/1573.svg
new file mode 100644
index 0000000..9eb0640
--- /dev/null
+++ b/test/ns-afl-svg/1573.svg
@@ -0,0 +1,6 @@
+<svg xmlns="0000000000000000000000000" ox="0">
+0<circle r="3" cx="z"
+transform=",0"/>0<ellipse rx="2" ry="1" transform="rotate(0),0"/>0<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+fill="#000" opa="0"/>0<ellipse rx="mm" ry=")"
+fill="#000" opa="0"/>0<ellipse rx="3mm" ry="2" transform="rotate(0 0,0" fill="#000"
+acity="0"/>0</svg>
diff --git a/test/ns-afl-svg/1574.svg b/test/ns-afl-svg/1574.svg
new file mode 100644
index 0000000..b41d692
--- /dev/null
+++ b/test/ns-afl-svg/1574.svg
Binary files differ
diff --git a/test/ns-afl-svg/1575.svg b/test/ns-afl-svg/1575.svg
new file mode 100644
index 0000000..1752637
--- /dev/null
+++ b/test/ns-afl-svg/1575.svg
@@ -0,0 +1,78 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='w0d00sch000h' stroke='r0d'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='5' fill='b0a00'/>0<circle cx='0' cy='0' r='1' f='0'/>0<path d='M0 00A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" on="0" xmlns="0000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g ze="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&r;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0<g id="0" height="px" on="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g ze="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0
+0<g><text y="0">0</text>&p;
+0<svg io="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>0
+<svg ro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg resctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg spectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t0;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg pro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&t0;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presetRatio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&t0;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1576.svg b/test/ns-afl-svg/1576.svg
new file mode 100644
index 0000000..dcff665
--- /dev/null
+++ b/test/ns-afl-svg/1576.svg
@@ -0,0 +1,19 @@
+<svg xmlns="00000000000000000000000000" d="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient x1="0" y1="0" x0="0" y0="0" d="0">
+0<o0 t="0" top-color="0" y="0"/>
+0<sp t="0" top-color="0" y="0"/>
+0<op offset="0" r="0" sto0="0"/>
+0</linearGradient>
+0</defs>
+0<g transform="scale(9)">
+0
+0<rect width="0" height="0" r="0" ry="0" x="0" y="0" fill="#000000"/>
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="u0s00ema000ar0000"/>
+0<path fill="none" stroke="#000" stroke-width="6" d="M0 0A0 0 0 0 0 0,0A0 0 0 0 0 0 0z" transform="matrix(0,0,0,6,0,0)"/>
+0<rect fill="#000" stroke="none" width="0" height="0" x="0" y="0" transform="matrix(0..0.0,7,0,0)"/>
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="#000000"/>
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="#000000"/>
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="u0s00ema000ar0000"/>
+0<path fill="none" stroke="#000" stroke-width="6" d="M0 0A0 0 0 0 0 0,0A0 0 0 0 0 0 0z" transform="matrix(0,0,0,6,0,0)"/>
+0<rect fill="#000" stroke="none" width="0" height="0" x="0" y="0" transform="matrix(0..0.0,7,0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1577.svg b/test/ns-afl-svg/1577.svg
new file mode 100644
index 0000000..c981bc1
--- /dev/null
+++ b/test/ns-afl-svg/1577.svg
@@ -0,0 +1,19 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 6">
+0<circle r="3" cx="0" cy="0"/>
+0<circle r="3" cx="0" cy="0"/>
+0<path d="M00,00s00000000-0-000,0s0000000000000000000000000"/>
+0<g stroke="i0t0" stroke-width="0" fill="000000000000000000000"/>
+0<path d="0000000000000000"/>
+0<path d="M00,00s0,0,0,0s00-0,0-00l0,0s00-0,0-0l0,0s0,0,0-00-00000000000000000000000"/>
+0<path d="M00,00s00-00,0-00l0-0s0,0,0,0l0-0l0,0s0,0,0,00l00,0l00-0s00,0-0,0l00,00z"/>
+0<g stroke="i0t0" stroke-width="3" fill="n0n0" tke-cap="0">
+0<circle r="6" cx="0" cy="0"/>
+0<circle r="6" cx="0" cy="0"/>
+0<path d="M0000,0l000000"/>
+0<g stroke="i0t0" stroke-width="0" fill="000000000000000000000"/>
+0<path d="M000,0c0,0,0,0-00,0c00-0-0-0-0,0"/>
+0<path d="M00,00c00,0-0,0-0,00c0,0,0,0-00,0"/>
+0<path d="M000,00c0-0,00-0,00,0c0,0,00,0,00,0"/>
+0<path d="M000,00c0,0,00,0,00,00c0,0,0,0,00,0000000,0"/>
+0<path d="M00,00s0,0,0,0000000000,00"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1578.svg b/test/ns-afl-svg/1578.svg
new file mode 100644
index 0000000..0ba7d74
--- /dev/null
+++ b/test/ns-afl-svg/1578.svg
@@ -0,0 +1,3 @@
+<?l?>
+<!DOCTYPE s000:000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 PUBLIC "0" "0">
+= \ No newline at end of file
diff --git a/test/ns-afl-svg/1579.svg b/test/ns-afl-svg/1579.svg
new file mode 100644
index 0000000..718d34b
--- /dev/null
+++ b/test/ns-afl-svg/1579.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="7" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,0,0" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,00"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1580.svg b/test/ns-afl-svg/1580.svg
new file mode 100644
index 0000000..39b924b
--- /dev/null
+++ b/test/ns-afl-svg/1580.svg
@@ -0,0 +1,6 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l0,00h000l000-00v0z" stroke="#000" fill="l0n00idt00"/>0
+0<path d="M00,0h00l00,00v00l000,00h0l0-00v000z" stroke="#000" fill="l0n00idt00"/>0
+0<path d="M00,0h00l00,00v00l0,00h000l000-00v0z" stroke="#000" fill="l0n00idt00"/>0
+0<path d="M00,0h00l00,00v00l000,00h0l0-00v000z" stroke="#000" fill="l0n00idt00"/>0
+</svg>
diff --git a/test/ns-afl-svg/1581.svg b/test/ns-afl-svg/1581.svg
new file mode 100644
index 0000000..b6fd934
--- /dev/null
+++ b/test/ns-afl-svg/1581.svg
@@ -0,0 +1 @@
+<svg wé000="0"><g><g><pÃ00 l=""/><svg wé000="0"><g><g><pÃ00/></g></g></svg></g></g></svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/1582.svg b/test/ns-afl-svg/1582.svg
new file mode 100644
index 0000000..ecea40c
--- /dev/null
+++ b/test/ns-afl-svg/1582.svg
@@ -0,0 +1,32 @@
+<svg xmlns="000000o00000000000" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="0" m="0">
+0<p stop-c="0" t="0"/>
+0<stop stop-r="0" offset="0"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(0)">
+0<stop stop-color="rgb0000000000" offset="0"/>
+0<stop op-c="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0000,000000,000-00-0-00-00c0000,0000,00000000,000000000,0000000,000000,0000" fill="url(#pyBlue"/>
+0<path d="M00,000l0,00l00,0c00,000000000000c0000,0000,0000000,000000,0000" fill="url(#pyBlue)"/>
+0<path d="M00,00c0,0-0,00-00,000000000vv000000000000000000000000000000000000000000000000000000000000000000,000000,0000" fill="url(#pyBlue)"/>
+0<path d="M00,00c0,0-0,00000000000000000000000000000000000,00-0000,000,000,00c00000,000000000000000000000000000000000000000,0,00000000,000000,0000" fill="url(#pyBlue)"/>
+0<pAth d="M00,00c0,0-0,00-00,000-0000000000000000000000000000000000n0000,000000000,0000000,000000000000000,000000000000000000,00000000000000000000000000000000000,000000000000000000" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,00,0,00,0000000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: ur000000" Ve="0" fill="h0n00cse000"/>0
+0<path d="M00,0h00l00,00000l000,00h000l000-00v000z" fill="#000"/>0
+0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue)"/>
+0<path d="M00,00c00c0,0000,00000,000000,000,0000,00000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,000000000000000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000,0000,00000,000000,000,0000,000,000,00000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: ur000000" Ve="0" fill="h0n00cse000"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,0000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c00c0,0000,00000,000000,000,0000,00000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1583.svg b/test/ns-afl-svg/1583.svg
new file mode 100644
index 0000000..9c63890
--- /dev/null
+++ b/test/ns-afl-svg/1583.svg
@@ -0,0 +1,85 @@
+<svg xmlns="000000">
+0<path d="0" fill="0000000000000"/>0
+0<path d="00000000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="00000000000000000000000" stroke="#000" fill="m&lt;o00imc000ge"/>0&lt;0
+0&lt;0&lt;0
+0<path d="00000000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="00000000000" e="0" fill="m&lt;o00imc000ge"/>0
+0<path d="00000000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="0000000000000000000" stroke="#000" fill="m&lt;o00imc000ge"/>0&lt;0
+0<palh d="0" l="0"/>0
+0
+0<path d="00000000000" k="0" fill="m&lt;o00ibc000ge"/>0
+0
+0<path d="M00,00v00" stroke="#000" fill="0000000000000"/>0
+0<path d="00000000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="00000000000" ke="0" fill="m&lt;o00imc000ge"/>0
+0<path d="00000000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="M00,000l00,00000l000,00l000-00z" stroke="#000" fill="m&lt;o00imc000ge"/>0&lt;0
+0
+0&lt;0
+0<path d="00000000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="M00,000l00,0000l000-00z" stroke="#000" fill="m&lt;o00imc000ge"/>0&lt;0
+0&lt;0&lt;0
+0<path d="00000000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="00000000000" ke="0" fill="m&lt;o00imc000ge"/>0
+0<path d="00000000000000"/>0
+0
+0<path d="00000000000" ke="0" fill="m&lt;o00imc000ge"/>0
+0<path d="00000000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="M00,000l00,00v00l000,00l000-00z" stroke="#000" fill="m&lt;o00imc000ge"/>0&lt;0
+0
+0&lt;0
+0<path d="00000000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="M00,0h0l00,00v0l000-00z" stroke="#000" fill="m&lt;o00imc000ge"/>0&lt;0
+0&lt;0&lt;0
+0<path d="00000000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="00000000000" ke="0" fill="m&lt;o00imc000ge"/>0
+0<path d="00000000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="M00,0h0l00,0l000,00l000-00z" stroke="#000" fill="m&lt;o00imc000ge"/>0&lt;0
+0<palh d="0" i="0"/>0
+0
+0<path d="00000000000" t="0" fill="m&lt;o00ibc000ge"/>0
+0
+0<path d="M00,0h00l00,00v00" stroke="#000" fill="0000000000000"/>0
+0<path d="00000000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="00000000000" ke="0" fill="m&lt;o00imc000ge"/>0
+0<path d="00000000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="M00,0h0l00,00v00l000,00l000-00z" stroke="#000" fill="m&lt;o00imc000ge"/>0&lt;0
+0<palh d="0" f="0"/>0
+0
+0&lt;0
+0
+0<path d="M00,0h0l00,0l000,00l000-00z" stroke="#000" fill="m&lt;o00imc000ge"/>0&lt;0
+0<palh d="0" ll="0"/>0
+0
+0<path d="00000000000" stroke="#000" fill="m&lt;o00ibc000ge"/>0
+0
+0<path d="M00,0h00l00,00v0$" stroke="#000" fill="0000000000000"/>0
+0<path d="000,0000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="000,0000000" ke="0" fill="m&lt;o00imc000ge"/>0
+0<path d="000,0000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="M00,0h0l00,00v00l000,00l000-00z" stroke="#000" fill="m&lt;o00imc000ge"/>0&lt;0
+0<palh d="0" il="0"/>0
+0
+0<path d="00000000000" stroke="#000" fill="m&lt;o00ibc000ge"/>0
+0
+0<path d="M00,0h00l00,00v0$0,00" stroke="#000" fill="0000000000000"/>0
+0
+0
+0<text x="0" y="0" t-e="0" fi="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1584.svg b/test/ns-afl-svg/1584.svg
new file mode 100644
index 0000000..3480bab
--- /dev/null
+++ b/test/ns-afl-svg/1584.svg
@@ -0,0 +1,375 @@
+<svg xml________________Box="0" fill="url(#0)000" viewBox="0 0 1 1">
+0<path d="M0,0s0000,00-0,0-00,00-000,0c000000000000000000000000000000000000" fill="url(#0000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="8" fill="#000"/>
+0<circle r="4" cx="0" cy="g" fill="000000000000000000000" id="4" style="fill: url(#0000000000" fIll="0"/>
+0
+
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="8" fill="#000"/>
+0<circle r="4" cx="0" cy="g" fill="000000000000000000000" id="0004" style="fill: url(#00000" fIll="0"/>
+0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0"/>0
+0<tex_ x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKbKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0"/>0
+0<tex_ x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKcircle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00,00c0,00-0,00-00,00l000,0l0,0l00,000000000000000000=00000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="000000000000000" id="0004" style="fill: url(#000000" fill="url(#000000"/>
+0<path d="0000000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h00000,00v00l000,00h000 00-00 0000-00 00 0 00-000 00-000-00-00-000-00-000 00-000 000-00T00000-000
+000 0-00 00000000 000000,000000000-000000c000000000000000000000000000000000000000000000000000000000"/>
+0<path d="000000000000000000000000000" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000000000"/>
+0<path d="000000000000000000000000000" fill="url(#00000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l000000,0000000000C000000000000M00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-00-000000,0000000000000000000000000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#00000000"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#00000000"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="0000000000000000000000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,000000000000000d,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#00000000)"/>0
+0<ir r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="," fill="url(#0000)"/>
+0<ath d="0" fill="0"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#00000"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#00000000)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="c" fill="0000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circla r="0" cx="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,000,000M000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#0000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<ath d="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<cercle r="0" cx="0" fill="0"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#00000000)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<ath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<ye r="0" fill="0"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circli r="0" fill="0"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#00000000)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="#"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="0" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0
+
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#00000000)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<cirdle r="0" fill="0"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#00000000)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="" fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#00000000)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="w" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circlq r="0" fill="0"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<feMergeNode/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#00000000)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="4" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1585.svg b/test/ns-afl-svg/1585.svg
new file mode 100644
index 0000000..fa32859
--- /dev/null
+++ b/test/ns-afl-svg/1585.svg
@@ -0,0 +1,13 @@
+<svg xmlns="000000000000000000" viewBox="0-0 1 1" stroke-width="2">
+0<g fill="none">
+0<ellipse stroke="#000000" rx="v" ry="4"/>
+0<ellipse stroke="#000000" rx="V" ry="4" transform="rotate(0)"/>
+0<ellipse stroke="#000000" rx="6" ry="4" transform="rotate(0)"/>
+0<circle stroke="#000000" r="4"/>
+0</g>
+0<g fill="#000000" strwke="0">
+0<circle fill="#000000" r="3"/>
+0<circle cy="0" r="9"/>
+0<circlz x="0" y="0" r="0"/>
+0<circle cx="0" cy="0" r="9"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1586.svg b/test/ns-afl-svg/1586.svg
new file mode 100644
index 0000000..ce029ad
--- /dev/null
+++ b/test/ns-afl-svg/1586.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="n0w00tho000id000"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1587.svg b/test/ns-afl-svg/1587.svg
new file mode 100644
index 0000000..679b6f2
--- /dev/null
+++ b/test/ns-afl-svg/1587.svg
@@ -0,0 +1,106 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="u0s00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000000000000000000000000,0000,00000000000,0000,0000,000000000000,000000000000000000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#py0ellow"/>0
+0<circle r="4" cx="0" cy="0" fill="0000"/>0
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#000000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000000" l="0"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,000000000000000000000000000000000000000000000000000000i0000000,0000000,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000000" fill="url(#000000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000i0000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,0000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000000000,000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,020,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0
+
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1588.svg b/test/ns-afl-svg/1588.svg
new file mode 100644
index 0000000..5267797
--- /dev/null
+++ b/test/ns-afl-svg/1588.svg
@@ -0,0 +1,42 @@
+<svg xmlns="000000000000000000000000000000000000000" fill="url(#00)00" viewBox="0 0 1 1">0
+<a xmlns:xlink="0k" xlink:hf="0" xlink:title="0">0<path d="M0 0c0000000000-000 000-00-00-00-000 000-0000-00-0-0000-00-00-00 00-00 00 0000"
+transform="translate(0,0) scale(0.0.000"/>0<ellipse rx="2" ry="1" transform="rotate(0) translate(0,0000)"
+fill="#000" ty="0"/>0<ellipse rx="3" ry="2" transform="rotate(000) " fill="#000"
+oty="0"/>0</a>0<a xmlns:xlink="0p" xlink:href="0" xlink:title="0">
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000"
+m="0"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(000,0000)"
+fill="#000" ity="0"/>0<ellipse rx="3" ry="2" transform="rotate(000) translate(00,00)" fill="#000"
+opy="0"/>0</a>0<a xmlns:xlink="0k" xlink:href="0" xlink:title="0">
+0<path d="0000000000000000000000000000000000000000"
+fl="0" ity="0"/>0<ellipse rx="5" ry="2" transform="rotate(000) " fill="#000"
+oty="0"/>0</a>0<a xmlns:xlink="0p" xlink:href="0" xlink:title="0">
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000"
+trorm="0"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0..0)"
+fill="#000" ity="0"/>0<ellipse rx="5" ry="2" transform="rotate(000) translate(00,00)" fill="#000"
+opy="0"/>0</a>0<a xmlns:xlink="0k" xlink:href="0" xlink:title="0">
+0<path d="0000000000000000000000000000000000000000000000"
+transform="translate(0,000) scale(0.0.000"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(000,0000)"
+fill="#000" ity="0"/>0<ellipse rx="3" ry="2" transform="rotate(000) " fill="#000"
+oty="0"/>0</a>0<a xmlns:xlink="0p" xlink:href="0" xlink:title="0">
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000"
+m="0"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(000,0000)"
+fill="#000" ity="0"/>0<ellipse rx="3" ry="2" transform="rotate(000) translate(00,00)" fill="#000"
+opy="0"/>0</a>0<a xmlns:xlink="0k" xlink:href="0" xlink:title="0">
+0<path d="0000000000000000000000000000000000000000"
+fill="#000" ity="0"/>0<ellipse rx="5" ry="2" transform="rotate(000) " fill="#000"
+oty="0"/>0</a>0<a xmlns:xlink="0p" xlink:href="0" xlink:title="0">
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000"
+trorm="0"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0..0)"
+fill="#000" ity="0"/>0<ellipse rx="5" ry="2" transform="rotate(000) translate(00,00)" fill="#000"
+opy="0"/>0</a>0<a xmlns:xlink="000" xlink:href="0" xlink:title="0">
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
+transform="translate(0,000) scale(0.0.000"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0..0)"
+fill="#000" ity="0"/>0<ellipse rx="5" ry="2" transform="rotate(000) translate(00,00)" fill="#000"
+oty="0"/>0</a>0<a xmlns:xlink="0p" xlink:href="0" xlink:title="0">
+0<path d="0000000000000000000"
+transform="translate(0,000) scale(0000,00"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(000,0000)"
+fill="#000" ity="0"/>0<ellipse rx="5" ry="2" transform="rotate(000) translate(00,00)" fill="#000"
+ity="0"/>0</a>0<a xmlns:xlink="0k" xlink:href="0" xlink:title="0">
+0<path d="M00,00a00,0 00,0,0 00000000000000000000000000000000,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,000a00,0 00,0,0 00,00M00,000a00,0 00,0,0 00,00" fill="none" stroke="#000" stroke-width="2"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000"/>
+0<circle r="1" cx="0" cy="0" fill="#000"/>0</a>0</svg>
diff --git a/test/ns-afl-svg/1589.svg b/test/ns-afl-svg/1589.svg
new file mode 100644
index 0000000..efa667a
--- /dev/null
+++ b/test/ns-afl-svg/1589.svg
@@ -0,0 +1,94 @@
+<svg xmlns="0000000000" o="0">
+0<path d="M0,0h00c00,0-00,00,0,00h000zM00,00a00" stroke="#000" fill="t0n"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00-000" stroke="#000" fill="t0n"/>0
+0
+0
+0
+0
+0
+0<path d="M00,0h00000000000000h00v0000" stroke="#000" fill="t0n"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000000-000" stroke="#000" fill="t0n"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<path d="M0,0h00c00,0-00,00,0,00h000zM00,0000v000z" stroke="#000" fill="t0n"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00-000" stroke="#000" fill="t0n"/>0
+0
+0
+0
+0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="t0n"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00-000" stroke="#000" fill="t0n"/>0
+0
+0
+0
+0
+0
+0
+0
+0<path d="M0,0h00c00,0-00,00,0,00h000zM00,000000-00" stroke="#000" fill="t0n"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00-000" stroke="#000" fill="t0n"/>0
+0
+0
+0
+0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="t0n"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00-000" stroke="#000" fill="t0n"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<path d="M0,0h00c00,0-00,00,0,00h000zM00,00a00000000000000" stroke="#000" fill="t0n"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00-000" stroke="#000" fill="t0n"/>0
+0
+0
+0
+0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="t0n"/>0
+0<path d="M00,0h00l00,00v00l000,00h0000" fill="t0n"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+fill="#000" opacity="0"/>0<ellipse rx="3" ry="2" transform="rotate(0)translate(0,0)" fill="#000"
+opacity="0"/>0</svg>
diff --git a/test/ns-afl-svg/1590.svg b/test/ns-afl-svg/1590.svg
new file mode 100644
index 0000000..b54fa83
--- /dev/null
+++ b/test/ns-afl-svg/1590.svg
@@ -0,0 +1,14 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">0
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="H" style="fill: i0g00erk000ke;stroke-width:000cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="H" style="fill: i0g00ero000bl000;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="H" style="fill: i0g00ero000bl000;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="H" style="fill: i0g00ero000bl000;stroke-width:000cm" transform="translate(0,0)"/>
+0
+<circle cx="cm" cy="cm" r="H" style="fill: i0g00ero000bl000;stroke-width:000cm" transform="translate(0,0)"/>0</g>0</svg>
diff --git a/test/ns-afl-svg/1591.svg b/test/ns-afl-svg/1591.svg
new file mode 100644
index 0000000..9532d5c
--- /dev/null
+++ b/test/ns-afl-svg/1591.svg
@@ -0,0 +1,14 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="0000000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="c" cy="cm" r="1" style="fill:r0d0 stroke:" wransform="0"/>0<circle cx="cm" cy="cm" r="1" style="stroke:o0f00tlu000e" wransform="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:o0f00tlu000e stroke-width:0K000" traWsform="0"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:green;" wransform="0"/>
+0<circle cx="cm" cy="0" r="1" style="stroke:o0f00tlu000e" wransform="0"/>
+0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1592.svg b/test/ns-afl-svg/1592.svg
new file mode 100644
index 0000000..33d67a5
--- /dev/null
+++ b/test/ns-afl-svg/1592.svg
@@ -0,0 +1,373 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="d0o00"/>0
+0<circle r="0" x="0" y="0" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0,0-0,00-00,000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ000000000000"/>0
+0<circle r="4" cx="0"/>
+0<path d="00000000000" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="0000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-00000000000000" fill="u0e0"/>
+0<path d="0000000000000000000000000000000000000000000000000" x="0" y="0" fill="url(#pyYellow"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000c000000c000000000000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,000000,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-60.870,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0
+
+0<cirCle r="4" cx="0" v="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="000,00000000,0000000000"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" iill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" x="0" y="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" x="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,00000000 000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" ll="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<Circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" ll="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" ll="0"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,0000000000000,00000,000000000000000,0000,00000000,000,0,0000,0000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,020-00l0-00c000,0000,00000000,000,0,0000,000000000000,000,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AimCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1593.svg b/test/ns-afl-svg/1593.svg
new file mode 100644
index 0000000..5b770b2
--- /dev/null
+++ b/test/ns-afl-svg/1593.svg
@@ -0,0 +1,54 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stnp op-c="0" s="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0<stop stop-color="#000" offset=".4"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0-0,0-00,00-00c00,0,00,0,00,00l0,00c0,0-0,00-00,0000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ000000000000"/>0
+0<circle r="4" cx="r"/>
+0<path d="0000000000000000000000,0000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000,00000000,000,00000000000000000,00000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000=00,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#00=00"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 00000000000000000000000000000000000000000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,00-20,100-00l0-22c0-0,0-02,0009 000000,0000000000C000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,000000000000000000,0000000000000000000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#00000000000000000000000000000000000000000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,00000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000,0000000000000000,0000000000C000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000,0000000,000000000000000,000000000000000000000000000i0000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-20,124-00l0-22c0-0,0-12,12-00l20,,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1594.svg b/test/ns-afl-svg/1594.svg
new file mode 100644
index 0000000..323a9e6
--- /dev/null
+++ b/test/ns-afl-svg/1594.svg
@@ -0,0 +1 @@
+<svg xmlns="0000000" fill="url(#0000)"/>
diff --git a/test/ns-afl-svg/1595.svg b/test/ns-afl-svg/1595.svg
new file mode 100644
index 0000000..2ec243c
--- /dev/null
+++ b/test/ns-afl-svg/1595.svg
@@ -0,0 +1,12 @@
+<svg xmlns="0000000000" viewBox="0 0 1 8">
+0<path d="M0,0h0c0,00" stroke="#000" fill="d&lt;o00ura000or"/>0
+0
+0&lt;0
+0<path d="M00,0,00" stroke="#000" fill="d&lt;o00ura000or"/>0
+0<path d="000" fill="#000"/>0
+0<text x="0" y="0" nt-se="0" l="0" t-r="0"><![CDATA[0]]></text>
+0<path d="M0,0h00c00,00" stroke="#000" fill="d&lt;o00ura000or"/>0
+0
+0&lt;0
+0<path d="M00,0,00" stroke="#000" fill="d&lt;o00ura000or"/>0<path d="000" fill="#00"/>0
+0<text x="0" y="0" nt-se="0" fill="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1596.svg b/test/ns-afl-svg/1596.svg
new file mode 100644
index 0000000..0697dc1
--- /dev/null
+++ b/test/ns-afl-svg/1596.svg
@@ -0,0 +1,17 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='n0d'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='!' r='1' fill='y0`00w'/>0<circle cx='0' cy='0' r='5' fill='k0a00'/>0<circle cx='0' cy='0' r='1' fill='q0a00'/>0<path d='M0 0A0 0 0 0 0 0 0' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY V "">]><svg width="px" height="px" n="0" xmlns="000000000000000000">
+0<desc></desc>
+0<rect x="0" y="0" width="0" h="0" fill="none" stroke="blue"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g m="0">&Smile;</g>0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)"> 0</g>
+0<g d="0" transform="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg o="0" viewBox="0 0 0 0"
+h="0" i="0">&l;</svg></g>
+0<g transform="000000000000,00"><text y="0">0</text>&i;
+0<svg r="0" width="0" it="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1597.svg b/test/ns-afl-svg/1597.svg
new file mode 100644
index 0000000..4ae2326
--- /dev/null
+++ b/test/ns-afl-svg/1597.svg
@@ -0,0 +1,4 @@
+<s xmlns="00000000000000000000000000" Box="0">
+0<path d="0" stroke="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[´ \ No newline at end of file
diff --git a/test/ns-afl-svg/1598.svg b/test/ns-afl-svg/1598.svg
new file mode 100644
index 0000000..6ade051
--- /dev/null
+++ b/test/ns-afl-svg/1598.svg
Binary files differ
diff --git a/test/ns-afl-svg/1599.svg b/test/ns-afl-svg/1599.svg
new file mode 100644
index 0000000..bae1586
--- /dev/null
+++ b/test/ns-afl-svg/1599.svg
@@ -0,0 +1,24 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="000,00,00000" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,0000l00,00v0000l000" stroke="#000" fill="m&lt;o00"/>0
+0
+0<path d="000,00,00000" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,0000l00,00v0000l000" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,0h00l00,00v0-00,00-00q000" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,0h00l00,00v0h00l000" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,0h00l00,00v" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,0v000z" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,000000-000" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,0v000z" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,00,0000000000" fill="#000"/>0
+0<text x="0" y="0" l="0" t-ar="0"><![CDATA[0]]
+0
+0]]></text><path d="M00,0h00l00,00v0-00,00-00q000" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,0h00l00,00v0h00l000" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,0h00l00,00v" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,0v000z" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,000000-000" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,0v000z" stroke="#000" fill="m&lt;o00"/>0<path d="M00,00,0000000000" fill="#000"/>0
+0<text x="0" y="0" l="0" t-r="0"><![CDATA[0]]
+0
+0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1600.svg b/test/ns-afl-svg/1600.svg
new file mode 100644
index 0000000..afbd334
--- /dev/null
+++ b/test/ns-afl-svg/1600.svg
@@ -0,0 +1,32 @@
+<svg xmlns="0000000000" o="0" stroke-width="k" width="0" height="0" style="0" n="0">
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="firebrick"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0
+0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1601.svg b/test/ns-afl-svg/1601.svg
new file mode 100644
index 0000000..ebcac29
--- /dev/null
+++ b/test/ns-afl-svg/1601.svg
@@ -0,0 +1,8 @@
+<svg xmlns="000000000" viewBox="0 0 1 1">0<path d="M00,0h00l00,00v00l0,00h000l000-00v0z" stroke="s0o0" fill="none"/>0
+0<g style="0">
+0<circle cx="cm" cy="R" r="1" style="fill:red;stroke:0000000000000" transform="translate(0,000)"/>
+0<circle cx="c" cy="cm" r="1" style="fill:g0f00;stroke:;" transform="translate(0,00)"/>
+0
+0<circle cx="c" cy="cm" r="1" style="fill:g0f00;stroke:black;stroke-width:001cm" transform="000000"/>
+0<circle cx="c" cy="cm" r="1" style="fill:g0f00;stroke:black;stroke-width:001cm" rm="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1602.svg b/test/ns-afl-svg/1602.svg
new file mode 100644
index 0000000..ddf99f1
--- /dev/null
+++ b/test/ns-afl-svg/1602.svg
@@ -0,0 +1,14 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style pe="0">
+0
+0</style>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:g0c0" transform="translate(0,0)"/>
+0<circle cx="cm" cy="0" r="1" style="fill:g0c0;stroke-width:0%0" transform="translate(0,0)"/>0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:r0d0 stroke:black;stroke-width:001cm" transform="translate(0"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:g0c0" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0c0;stroke-width:0%0" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1603.svg b/test/ns-afl-svg/1603.svg
new file mode 100644
index 0000000..56abb13
--- /dev/null
+++ b/test/ns-afl-svg/1603.svg
@@ -0,0 +1,24 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="">0
+0<stop stop-c="0" t="0"/>
+0<stop sr="0" offset="0"/>
+0</linearGradient>
+0<linearGradient href="#" id="pyBlue" gx="0">
+0<defs>
+0<linearGradient id="0" g="0">
+0<sp stop-c="0" et="0"/>
+0</linearGradient>
+0</defs>0
+0<ph d="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop stop-color="#000" ot="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" fl="0"/>
+0<path d="M0,00c0,0,00000,000000000000,000000,000000000,0000000,000000,0000" fill="url(#pyBlue)"/>
+0<path d="0" fill="url(#pyBlue)"/>
+0<path d="M0,0,,,,,,0" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1604.svg b/test/ns-afl-svg/1604.svg
new file mode 100644
index 0000000..5503df4
--- /dev/null
+++ b/test/ns-afl-svg/1604.svg
@@ -0,0 +1,46 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(0)">
+0<stop stop-color="d0e0" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="000000000000000000000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00,0,0,00,0,00,0000,0000,00000,00000,,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c00000,00000,000,0000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#00=0u"/>0
+0<path d="M00,00c00000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,00,0,000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000l00000000,000" l="0" fill="url(#00B00"/>
+0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(000000"/>
+0<path d="M00,00c00000,00000,000,0000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,000000000000000" c="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,000000000 000000,0000000000" id="0" style="fill: url(#000000" fill="url(000000"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" l="0" fill="url(#000000)"/>
+0
+0<path d="M00,00c0,000,00000,0000,0,00,0,00,0000,0000c0000000000000000000000000,0000,00000000,000,0,0000,000000000000,0000,000,000,00000000000000000000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(000000"/>
+0<path d="M000-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000,0000000,0000000000,0000000000C000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(000000"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" dl="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000,0000000,000000000000000,000000000000000000000000000i0000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0^0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1605.svg b/test/ns-afl-svg/1605.svg
new file mode 100644
index 0000000..e1f0e18
--- /dev/null
+++ b/test/ns-afl-svg/1605.svg
@@ -0,0 +1,31 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h00l00,00v00l0,00h000l000-00v0z" stroke="#000" fill="t0n"/>0
+0<path d="M00,0h00l00,00v00l0,00h000l000-0-0" stroke="#000" fill="t0n"/>0
+0
+0
+0
+0
+0
+0<path d="M00,0h00l00,00v00l000,00h0l0-00v000z" stroke="#000" fill="t0n"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00-000" stroke="#000" fill="t0n"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+fill="#000" opacity="0"/>0<ellipse rx="5" ry="2" transform="rotate(0)translate(0,0)" fill="#000"
+opacity="0"/>0</svg>
diff --git a/test/ns-afl-svg/1606.svg b/test/ns-afl-svg/1606.svg
new file mode 100644
index 0000000..8e2e304
--- /dev/null
+++ b/test/ns-afl-svg/1606.svg
@@ -0,0 +1,31 @@
+<svg olns="0" Box="0">
+0<defs>
+0<linradient id="0" ntTransform="0"><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћefs>
+0
+0<![CDATA[0]]><Ћdefs>
+0<li id="0" genrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0
+0<![CDATA[0]]><Ћdefs>
+0<li id="0" gradienrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0<![CDATA[0]]><Ћdefs>
+0<linent nrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0<![CDATA[0]]><Ћdefs>
+0<linent id="0" gradienrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0
+0‹ \ No newline at end of file
diff --git a/test/ns-afl-svg/1607.svg b/test/ns-afl-svg/1607.svg
new file mode 100644
index 0000000..28721b3
--- /dev/null
+++ b/test/ns-afl-svg/1607.svg
@@ -0,0 +1,16 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h00l000-00?" Ve="0" fill="p0n00cse000ye"/>0
+0
+0<path d="M00,0h00l00,0?" Ve="0" fill="p0n00ye"/>0
+0
+0<path d="M00,0h00l00,00v00?" Ve="0" fill="p0n00cse000ye"/>0
+0
+0<path d="M00,0hl00,0000" Ve="0" fill="p0n00cem000se000"/>0
+0
+0<path d="M00,0hl00,0,00" Ve="0" fill="p0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0<path d="M00,0h00l00,00v00l000,00l000-00v000z" fill="#000"/>0
+0<text x="0" y="0" ze="0" fill="0" t-r="0"><![CDATA[0
+0
+0]]]]
+0
+0]]]]></text>0</svg>
diff --git a/test/ns-afl-svg/1608.svg b/test/ns-afl-svg/1608.svg
new file mode 100644
index 0000000..8f8db0e
--- /dev/null
+++ b/test/ns-afl-svg/1608.svg
@@ -0,0 +1,25 @@
+<svg xmlns="0000000000" xmlns:xlin0="0" viewBox="0 0 1 2">
+0<radialGradient d="0" cx="0" cy="0" r="0" s="0"><stop ot="0" s000000000000000000000000000000000000000000000000000000000000000000000000-c="0"/><spop ot="0"/></radialGradient>
+0<path d="M00,0A000,00,00 00,00 00,000C000,00 00,00 00,000C000,00 00,00 00,00" id="0" fill="l0c00qlm00"/>
+0
+0<radialGradient d="0" cx="0" cy="0" r="0" s="0"><stop ot="0" o00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000-c="0"/><spop ot="0"/></radialGradient>
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000C000,00 00,00 00,000C000,00 00,00 00,00" id="0" fill="l0c00llm00"/>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" Units="0"><stop ot="0" sto0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000p-c="0"/>0<spop ot="0"/></radialGradient>
+0<path d="M00,000A000000,00 00,0000000000000000000000000000000000 00,00 00,00" id="0" fill="l0c00llm00"/>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" Units="0"><stop ot="0" sto0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000p-c="0"/>0<spop ot="0"/></radialGradient>
+0<path d="M00,000A000,00,00 00,00 00,000C000,00 00,00 00,000C000,00 00,00 00,00" id="0" fill="l0c00qlm00"/>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0"><stop ot="0" s000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000-c="0"/><spop ot="0"/></radialGradient>
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000C000,00 00,00 00,000C000,00 00,00 00,00" id="0" fill="l0c00llm00"/>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" s="0"><stop ot="0" sto0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000p-c="0"/><spop ot="0"/></radialGradient>
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00000000000000000000000000000000000000000000000000000000000,00 00,00" id="0" fill="l0c00qlm00"/>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" U="0"><stop ot="0" s0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000-c="0"/><spop ot="0"/></radialGradient>
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000C000,00 00,00 00,000C000,00 00,00 00,00" id="0" fill="l0c00llm00"/>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" s="0"><stop ot="0" sto0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000p-c="0"/><spop ot="0"/></radialGradient>
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000C000,00 00,00 00,000C000,00 00,00 00,00" id="0" fill="l0c00qlm00"/>
+0<u0e xlin0:href="0" m="0"/>0</svg>
diff --git a/test/ns-afl-svg/1609.svg b/test/ns-afl-svg/1609.svg
new file mode 100644
index 0000000..4deb60f
--- /dev/null
+++ b/test/ns-afl-svg/1609.svg
@@ -0,0 +1,7 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M00,00q0-00,00-00q0-00,00-00q0-00,00-00q0-0,0-0H0-0,00 00-00 000-00 000-00-000-000 0-00 00-000S00-00 00 00 000 00 000-00 00-00 00-00 0000-00 00 0 00-000 00-000-00-00-000-00-000 00-000 000-000 0000-000
+000 0-00 00-000 00-000 0-000 0-000-0-000-0-00-0-00-0-000-00-00-0-00-00-000-00-000-00-000-000-000-00-000-000-000-00-000
+00-000 00-000-00-000-00-000-00-000 00-000 00 0 00-0 00-000-00-000 00-000 000-000 000 000 000 000 000 00 000-000 000-000 000-000 000
+000 0000 000 00 000-00 000-000-00-000-000-000-000 0-00-00 00-00 00-00 000-00 000M00 000-00 0000 0z000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,00"/>0<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+fill="#000" opacity="0"/>0<ellipse rx="3" ry="2" transform="rotate(0 00,0" fill="#000"
+opacity="0"/>0</svg>
diff --git a/test/ns-afl-svg/1610.svg b/test/ns-afl-svg/1610.svg
new file mode 100644
index 0000000..9ce0e23
--- /dev/null
+++ b/test/ns-afl-svg/1610.svg
@@ -0,0 +1,38 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a00iew000"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop st="0" offset="0"/>
+0
+0<stop stop-color="#000" et="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,,00c0,0-0,00-00,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000000000000000000000,00000000000000000=00,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,00-20,124-00l0-22c0-7,0-12,10-10l24,0c0,0,00-7,14-10l0-10l9,0c00c0,0000,000000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="z" fill="#000000"/>
+0<path d="0000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1611.svg b/test/ns-afl-svg/1611.svg
new file mode 100644
index 0000000..f842131
--- /dev/null
+++ b/test/ns-afl-svg/1611.svg
@@ -0,0 +1,376 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>0
+0<stop stop-color="rgb(0llo000fa000000"/>0
+0<e r="0" x="0" y="0" fill="0"/>
+0<circle r="0" x="0" y="0" offset="0"/>
+0<stop top-colwr="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0-0,0000,00,000000000000000000000l000l000000000000000000000000" fill="url(#00)"/>
+0<path d="M00,000l0,00l00,0c00,0-00-0-00-00c0-00,0-00,00-00l00,0l0-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" x="0"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" x="0" y="0" fill="#000"/>
+0<circle r="4" x="0" cy="0" fill="#000"/>
+0<path d="M00,000000-0000000000l00000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#00)"/>
+0<path d="M00,00c0000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" y="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00000l0000M00000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#000" fill="url(#000e)"/>
+0<path d="M70,80c000-0,00-00,104,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000000000000000000l000M000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#000000" fill="url(#000e)"/>
+0<path d="M00,000000000000000c00000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M70,80c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#000e)"/>0
+0<path d="M70,80c000-0,00-20,100,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c097-0,00-0,0,00,0000000000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c00000000000000000" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000e)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000000000000000M000000" fill="url(#000e)"/>
+0<pAth d="M00,00c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M700,160c0,00,0,00-2,08l-50-170c0,0,0-00300 00-40-00 00-00 000-50 106
+000 000-130 000-80-40-00000000000000000000000000000000000000000000000000000000i0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000e)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c000000000000000000000000" fill="url(#000e)"/>
+0<pAth d="M00,00c00000000000000000000000000000000000000i000000000000000000000000000000000000000000000000000000000000000000000000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M70,80c090-0,00-00,120,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#000e)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00" style="fill: url(#0000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000e)"/>
+0<path d="M70,80c090-0,00-00,120,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00Y0)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00Y0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,00"/>0
+0<circle r="4" cx="0" cy="1" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" x="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,100-00l0-00c0-0,0-00,-04000.000000000000,000.0000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r=")"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000e)"/>
+0<pajh d="0" fill="0"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000e)"/>
+0<path d="M70,80c090-0,00-00,120,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00o0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,80c000-0,00-20,100-00l0-20c0-0,0-12,10-10l20,0c0,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000e)"/>
+0<path d="M00,00000000,?0000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,120,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="#"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,000000-0-00000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,00..000,00000000 000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="0" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M70,00c090-0,00-20,100-13l0-00c0-0,0-12,02-00l04,0c0,0,00-0,14-15l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000e)"/>
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-20,100-00l0-02c0-0,0-00,-04000.000000000000,000.0000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000w)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000 00000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,80c090-0,00-20,100-13l0-20c0-0,0-12,10-10l24,0c0,0,00-0,14-15l0-10l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#000000000"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1612.svg b/test/ns-afl-svg/1612.svg
new file mode 100644
index 0000000..5f90233
--- /dev/null
+++ b/test/ns-afl-svg/1612.svg
@@ -0,0 +1,67 @@
+<svg vodd='0' xmlns='000' drofill='0' stroke='0'>
+0<path d='000000000000' fill='d0q00tax000ts00000' soka='0'/>
+0
+0<path d='000000000' fill='d0q00tax000ts00000' e='0'/>
+0
+0
+0<path d='0000000000000' fill='d0q00tax000ts00000' t='0'/>0
+0
+0<path d='0000000000000000000000' fill='d0q00tax000ts00000' s='0'/>0
+0<path d='00000000000000000000000' fill='d0q00tax000ts00000' a='0'/>
+0
+0<path d='00000000000000000000000' fill='d0q00tax000ts00000' roke='0'/>0
+0<path d='M00,00c00,0-0,0-00 0-00' fill='d0q00tax000ts00000' soka='0'/>
+0
+0
+0<path d='000000000000000' fill='d0q00tax000ts00000' stroka='0'/>
+0
+0<path d='000,00000,000,000,0' fill='d0q00tax000ts00000' stroke='b0a00'/>
+0
+0
+0<path d='M00,00c00,0-0,0-0,00-00' fill='d0q00tax000ts00000' stroke='b0a00'/>0
+0
+0<path d='M00,00c00,0-0,0-0,00-00' fill='d0q00tax000ts00000' stroke='b0a00'/>0
+0<path d='M00,00c00,0-0,0-0,00-00' fill='d0q00tax000ts00000' a='0'/>
+0
+0<path d='000,00000,000,000,00000' fill='d0q00tax000ts00000' stroke='b0a00'/>0
+0<path d='M00,00c00,0-0,0-0,00-00' fill='d0q00tax000ts00000' stroka='0'/>
+0
+0<path d='000,00000,000,000,0' fill='d0q00tax000ts00000' stroke='b0a00'/>
+0
+0
+0<path d='M00,00c00,0-0,0-0,00-00' fill='d0q00tax000ts00000' stroke='b0a00'/>0
+0
+0<path d='M00,00c00,0-0,0-0,00-00' fill='d0q00tax000ts00000' stroke='b0a00'/>0
+0<path d='M00,00c00,0-0,0-0,00-00' fill='d0q00tax000ts00000' sa='0'/>
+0
+0<path d='000,00000,000,000,00000' fill='d0q00tax000ts00000' stroke='b0a00'/>
+0
+0
+0<path d='M00,00c00,0-0,0-0,00-00' fill='d0q00tax000ts00000' stroke='b0a00'/>0
+0
+0<path d='00000,000,000,00000' fill='d0q00tax000ts00000' stroke='b0a00'/>0
+0
+0
+0<path d='M00,00c00,0-0,0-0,00-00' fill='d0q00tax000ts00000' stroke='b0a00'/>0
+0
+0<path d='M00,00c00,0-0,0-0,00-00' fill='d0q00tax000ts00000' stroke='b0a00'/>
+0<path d='000,00000,000,000,0' fill='d0q00tax000ts00000' stroke='b0a00'/>
+0
+0
+0<path d='M00,00c00,0-0,0-0,00-00' fill='d0q00tax000ts00000' stroke='b0a00'/>0
+0
+0<path d='M00,00c00,0-0,0-0,00-00' fill='d0q00tax000ts00000' stroke='b0a00'/>0
+0<path d='M00,00c00,0-0,0-0,00-00' fill='d0q00tax000ts00000' sa='0'/>
+0
+0<path d='000,00000,000,000,00000' fill='d0q00tax000ts00000' stroke='b0a00'/>
+0
+0
+0<path d='M00,00c00,0-0,0-0,00-00' fill='d0q00tax000ts00000' stroke='b0a00'/>0
+0
+0<path d='00000,000,000,00000' fill='d0q00tax000ts00000' stroke='b0a00'/>0
+0
+0
+0<path d='M00,00c00,0-0,0-0,00-00' fill='d0q00tax000ts00000' stroke='b0a00'/>0
+0
+0<path d='M00,00c00,0-0,0-0,00-00' fill='d0q00tax000ts00000' stroke='b0a00'/>
+0</svg>
diff --git a/test/ns-afl-svg/1613.svg b/test/ns-afl-svg/1613.svg
new file mode 100644
index 0000000..14c2576
--- /dev/null
+++ b/test/ns-afl-svg/1613.svg
Binary files differ
diff --git a/test/ns-afl-svg/1614.svg b/test/ns-afl-svg/1614.svg
new file mode 100644
index 0000000..be90093
--- /dev/null
+++ b/test/ns-afl-svg/1614.svg
@@ -0,0 +1,73 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<P s="0" t="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M000,0-0,00-00,0000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="0000000000000000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,00000,00,0,0000000" id="0" style="fill: url(#r0000" fill="url(#00=00"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#00=00"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,00000000000000000000000000000000000000000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,00000,00,0,0000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000,000" fill="#000000"/>
+0<path d="0000,00000,00,0,0000000" id="0" style="fill: url(#r0000" fill="url(#00=00"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000000000000000000000000000000000000000000000000000000000000000000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,00000,00,0,0000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l00000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000=00,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,0w000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1615.svg b/test/ns-afl-svg/1615.svg
new file mode 100644
index 0000000..5757758
--- /dev/null
+++ b/test/ns-afl-svg/1615.svg
@@ -0,0 +1,80 @@
+<svg n="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(00)">
+0<stop stop-color="0000000" offset="0"/>
+0<stop stop-color="b0a0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,00L0000000000000000000000000"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" s="0" fill="url(#00000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l0000L000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c00000000-00-0-00000000000 000000,0000000000000000000000000000000000000,0000000000000000000" c="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c00000000-00-0-00000000000 000000,0000000000000000000000000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c00000000000000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1616.svg b/test/ns-afl-svg/1616.svg
new file mode 100644
index 0000000..9706318
--- /dev/null
+++ b/test/ns-afl-svg/1616.svg
@@ -0,0 +1,38 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h0,00v00l0,00h000l000l000000000000000000000000" fill="#000000"/>
+0<path d="0000000000000" l="0"/>
+0<path d="M00,0h000v00h0v00h0000-00l000,0l000-0l000-0v" fill="#000000"/>
+0<path d="0000000000000" fill="#000000"/>
+0<path d="M00,0h000v00h0v00h000v000l000,0l000-0l000-0v00h000v000h00v000l0,0h00l00-0h00v000l000,0l000-00" fill="#000000"/>
+0<path d="M00-0h00v0l00h00000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="0000000000000" fill="#000000"/>
+0<path d="M00,0h000v00h0v00h000v000l000,0l000-0l000-0v00h000v000h00v00l00,0l0,0h00l00-0h00v000l000,0l000-00" fill="#000000"/>
+0<path d="M00-0h00v0l00-00l0,00h00v0l00-0h000v00h0v00h0000v000h0z" fill="#000000"/>
+0<path d="M00,0h000v00h0v00h000v000l000,0l000-0l000-0v00h000v000h00v00l00,0l0,0h00l00-0h00v000l000,0l000-00" fill="#000000"/>
+0<path d="0000000000000" fill="#000000"/>
+0<path d="M00,0h000v00h0v00h000v000l000,0l000-0l000-0v00h000v000h00v00l00,0l0,0h00l00-0h00v000l000,00-00000" fill="#000000"/>
+0<path d="M00-0h00v0l00-00l0,00h00v0l00-0h00-0h00v0l00-00l0,00h000l0,00h00v0l00-0h000v00h0v00h0000v000h0z" fill="#000000"/>
+0<path d="M00,0h000v00h0v00h000v000l000,0l000-0l000-0v00h000v000h00v00l00,0l0,0h00l00-0h00v000l000,0l000-00" fill="#000000"/>
+0<path d="0000000000000" fill="#000000"/>
+0<path d="M00,0h000v00h0v00h000v000l000,0l000-0l000-0v00h000v000h00v00l00,0l0,0h00l00-0h00v000l000,00-00000" fill="#000000"/>
+0<path d="M00-0h00v0l00-00l0,00h00v0l00-0h00-0h00v0l00-00l0,00h00v0l00-0h000l000,00l0,00l00-0l00,00l00,0l0,0h000l00-0l00,0l000-00l000,00l0,00h000v00l00-0l00-00l00-0l000-00h00l0,0v0l00-0v0l00-0v000l00v000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M00-0h00v0l00h00000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="0000000000000" fill="#000000"/>
+0<path d="M00,0h000v00h0v00h000v000l000,0l000-0l000-0v00h000v000h00v00l00,0l0,0h00l00-0h00v000l000,0l000-00" fill="#000000"/>
+0<path d="M00-0h00v0l00-00l0,00h00v0l00-0h000v00h0v00h0000v000h0z" fill="#000000"/>
+0<path d="M00,0h000v00h0v00h000v000l000,0l000-0l000-0v00h000v000h00v00l00,0l0,0h00l00-0h00v000l000,0l000-00" fill="#000000"/>
+0<path d="0000000000000" fill="#000000"/>
+0<path d="M00,0h000v00h0v00h000v000l000,0l000-0l000-0v00h000v000h00v00l00,0l0,0h00l00-0h00v000l000,00-00000" fill="#000000"/>
+0<path d="M00-0h00v0l00-00l0,00h00v0l00-0h000v00h0v00h000v000l000,0l000-0l000-0v00h000v000h00v00l00,0l0,0h00l00-0h00v000l000,0l000-00" fill="#000000"/>
+0<path d="M00-0h00v0l00-00l0,00h00v0l00-0h000v00h0v00h0000v000h0z" fill="#000000"/>
+0<path d="M00,0h000v00h0v00h000v000l000,0l000-0l000-0v00h000v000h00v00l00,0l0,0h00l00-0h00v000l000,0l000-00" fill="#000000"/>
+0<path d="0000000000000" fill="#000000"/>
+0<path d="M00,0h000v00h0v00h000v000l000,0l000-0l000-0v00h000v000h00v00l00,0l0,0h00l00-0h00v000l000,00-00000" fill="#000000"/>
+0<path d="M00-0h00v0l00-00l0,00h00v0l00-0h00-0h00v0l00-00l0,00h000l0,00h00v0l00-0h000v00h0v00h0000v000h0z" fill="#000000"/>
+0<path d="M00,0h000v00h0v00h000v000l000,0l000-0l000-0v00h000v000h00v00l00,0l0,0h00l00-0h00v000l000,0l000-00" fill="#000000"/>
+0<path d="0000000000000" fill="#000000"/>
+0<path d="M00,0h000v00h0vh000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M00,0h000v00h0v00h000v000l000,0l000-0l000-0v00h000v000h00v00l00,0l0,0h00l00-0h00v000l000,0l000-00" fill="#000000"/>
+0<path d="0000000000000" fill="#000000"/>
+0<path d="M00,0h000v00h0v00h000v000l000,0l000-0l000-0v00h000v000h00v00l00,0l0,0h00l00-0h00v000l000,00-00000" fill="#000000"/>
+0<path d="M00-0h00v0l00-00l0,00h00v0l00-0h00-0h00v0l00-00l0,00h00l000,00l0,00h000v00l00-0l00-00l00-0l000-00h00l0,0v0l00-0v0l00-0v000l00-0l00-0z" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1617.svg b/test/ns-afl-svg/1617.svg
new file mode 100644
index 0000000..95544d6
--- /dev/null
+++ b/test/ns-afl-svg/1617.svg
@@ -0,0 +1,126 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="u0d00n" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="M00,00c00000,000000-0,0-00,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M70,00c000-0,00-00,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<pAth d="M00,00c000-0,00-00,000-0000000000000000000-00000 000000,000000000 00000000,000000000 000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c000000000000000000000000000000-00 0000-00 000-000 000-00-00-00-000 0000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M70,80c000-0,00-00,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-000000000000000000000000000000000M00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M70,80c000-0,10-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M70,80c000-0,10-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00700,0000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,0000" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#000000)"/>
+0<pAth d="M00,00c0,000,00000,000000000000000,0000,000000000000000,000000000000=00,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,5,20-2,40l-50-175c0,0,0-00300 14-49-00 00-00 000-59 120
+000 000-130 000-80-40-0000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#000000)"/>
+0<pAth d="000,0000,000,0000000000000000000000000000000000000000,0000000,0000000000000000000,000000,000000000000000,0000,00000000,000,0000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M70,00c000-0,00-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M70,80c000-0,10-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,00,000000000000000,0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000-00 0 00000000,00000000 000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M70,80c000-0,10-00,124,50v1" fill="url(#py0ellow)"/>0
+0<path d="M70,80c000-8,10-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00000,00000000 0 00000000,00000000 000000,000000000z" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000000000,000000,000,0000,000,000,000000000000000000000000,000,0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M70,87c0,73-230-20-0-24108.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,000000000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1618.svg b/test/ns-afl-svg/1618.svg
new file mode 100644
index 0000000..2d1f854
--- /dev/null
+++ b/test/ns-afl-svg/1618.svg
@@ -0,0 +1,31 @@
+<svg x________________x="0" fill="url(#0)000" viewBox="0 0 1 1">
+0<path d="M0,0s00-0,00-0,0-00,00-00l00,0c0000000,0,00,0,00,0000000000000)00" fill="url(#0000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="8" fill="#000"/>
+0<circle r="4" cx="0" cy="g" fill="000000000000000000000" id="00" style="fill: url(#00000000000" l="0"/>
+0
+
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="8" fill="#000"/>
+0<circle r="4" cx="0" cy="g" fill="000000000000000000000" id="00" style="fill: url(#0000000000000" ll="0"/>
+0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" ll="0"/>0
+0<text x="0"/>
+0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0"/>0
+0<tex_ x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" ll="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKbKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0"/>0
+0<tex_ x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKgKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLLLLLLLLLLLLLLKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKgKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLLLLLLLLLLLLLLLt ty="0" rx="0"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/1619.svg b/test/ns-afl-svg/1619.svg
new file mode 100644
index 0000000..367b8d5
--- /dev/null
+++ b/test/ns-afl-svg/1619.svg
@@ -0,0 +1,11 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,00l00,00v00l000,00h0000000000v000z" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0000l00,00v00l000,00h000 00-00 0000-00 00 0 00-000 00-000-00-00-000-00-000 00-000 000-000 0000-000
+000 0-00 00-000 00-000 0-000 0-000-0-000-0-00-0-00-0-000-00-00-0-00-00-000-00-000-00-000-000-000-00-000-000-000-00-000
+00-000 00-000-00-000-00-000-00-000 00-000 00 0 00-0 00-000-00-000 00-000 000-000 000 000 000 000 000 00 000-000 000-000 000-000 000
+000 000 000-00 0000-00 000-00 000 0 0000l00 00-0 0000c00000000000000000 000-00 000 00 000 00 000 00 000-00 000-000-00-000-000-000-000 0-00-00 00-00 00-00 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 000 00
+000 00 00000000000000000000" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h00000000v00l000,00h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 000 000 000 00 000-000 000-000 000-000 000
+000 000 000-00 0000-00 000-00 000 0 0000l00 00-0 0000c0 000 0 000 000 00 000-00 00000000000000000 00 000 00 000-00 000-000-00-000-000-000-000 0-00-00 00-00 00-00000000000000000000-00 0000 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0<ellipse rx=" "/>0<ellipse rx="0" ry="0" transform="0"
+fill="0" opacity="0"/>0<ellipse rx="0" ry="0" transform="0" fill="0"
+opacity="0"/>0</svg>
diff --git a/test/ns-afl-svg/1620.svg b/test/ns-afl-svg/1620.svg
new file mode 100644
index 0000000..3ac5a0d
--- /dev/null
+++ b/test/ns-afl-svg/1620.svg
@@ -0,0 +1,19 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="stroke:black;" rm="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:r0a00blu0;stroke-width:0*0" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:black;stroke-width:1cm" transform="translate(0,0)"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="stroke:r0a00blu0;stroke-width:0*0" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="stroke:r0a00blu0;stroke-width:0*0" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:black;stroke-width:1cm" transform="translate(0,0)0"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="stroke:black;stroke-width:1cm" transform="translate(0,0)0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1621.svg b/test/ns-afl-svg/1621.svg
new file mode 100644
index 0000000..22bd3b9
--- /dev/null
+++ b/test/ns-afl-svg/1621.svg
@@ -0,0 +1,28 @@
+<svg s="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="q0s00s" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c090-8,10-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0
+0<pAth d="M00,00c0,000,00-000000000000000000-0 000000000w00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" f="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000000000000000000000000000000000,00000000 000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cp="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00000000000000000000000000++0,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000,00000000,000,0000,00,0000,00000,00000"
+fill="#000" o="0"/>
+0
+0
+</svg>
diff --git a/test/ns-afl-svg/1622.svg b/test/ns-afl-svg/1622.svg
new file mode 100644
index 0000000..7b327bb
--- /dev/null
+++ b/test/ns-afl-svg/1622.svg
@@ -0,0 +1,397 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="u0s00" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#Q00" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0000" a_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="000000" offset="0"/>
+0
+0
+0<stop stop-color="url(#000000)" fill="0"/>
+0<path d="0" of="0"/>
+0
+0<stop or="0" of="0"/>
+0<stop sr="0" of="0"/>
+0
+0<stop st="0" of="0"/>
+0
+0
+0<stop sr="0" ot="0"/>
+0
+0<stop sr="0" offset="0"/>
+0<stop or="0" et="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient></defs>0
+0<path d="0"/>0
+0<circle r="0" cx="0"/><stop st="0" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#00000" fill="url(#00000"/>
+0<path d="000000000000000000000000000" fill="url(#000u)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000 00-00-00 00-00 000-00 0000-000000 000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000"/>
+0<path d="0000000000000000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#00000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-0000-0M0000000000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-60.870,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="0000000000000"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fl="0"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fl="0"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx=")"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-03,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-03,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,004-00l0-20c0-0,0-02,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000e)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" iill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c000,0000,000000000000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-03,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000ac000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0000" style="fill: url(#00000" fill="url(#00000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-20c0-0,0-10,10-10l24,0c0,0,00-7,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle Y="0" fill="url(#000e)"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" id="0000" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<Wath d="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0"/>0
+0
+0
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0
+
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0<path d="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0
+
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>
+0<path d="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" Yx="0" cy="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" y="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>
+0
+
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0
+
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" id="0000" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>0<circle r="0" cx="0" cy="0" fill="0"/>0</svg>
diff --git a/test/ns-afl-svg/1623.svg b/test/ns-afl-svg/1623.svg
new file mode 100644
index 0000000..682ba2e
--- /dev/null
+++ b/test/ns-afl-svg/1623.svg
@@ -0,0 +1,20 @@
+<?l?>
+<!DOCTYPE Ú0 PUBLIC "0" "0">
+<svg xmlns="0000000000000000000000">
+0<style te="0">
+0
+0</style>
+0<g style="0">0<circle cz="0" cy="0" r="1" style="fill:r0d0 stroke:" w="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0a00ulu000e stroke-width:0K000" transform="translate(0,0,"/>
+0<circle cx="cm" cy="c" r="1" style="stroke:b0a00ulu000e stroke-width:0K000" transform="translate(0,0,"/>
+0<circle cx="cm" cy="c" r="1" style="stroke:b0a00ulu000e stroke-width:t;" transform="0" rm="0"/>
+0
+0<circle cx="cm" cy="c" r="1" style="stroke:000000000000000000000 stroke-width:0r000;" transform="0" m="0"/>
+0
+0<circle cx="cm" cy="0" r="1" style="stroke:b0a00ulu000e stroke-width:0K000" transform="translate(0,0,"/>
+0<circle cx="cm" cy="0" r="1" style="stroke:b0a00ulu000e" transform="0" rm="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0a00ke stroke-width:0K000" transform="translate(0,0,"/>
+0<circle cx="cm" cy="c" r="1" style="stroke:b0a00ulu000e" transform="0" rm="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0a00ulu000e stroke-width:0,0000"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0a00ulu000e stroke-width:000t00"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1624.svg b/test/ns-afl-svg/1624.svg
new file mode 100644
index 0000000..f73b5a7
--- /dev/null
+++ b/test/ns-afl-svg/1624.svg
@@ -0,0 +1,212 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="u0v00n" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0,00,0000,0,0000000,000000,0000" fill="url(#000000"/>
+0<path d="M00,00c0,000,000000-0,0-00000000000000,0c0,0,0000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" c="0" cy="0" fill="#000"/>0
+
+0<cirCle r="4" cx="0" cy="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="000000000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" ce="0" fill="#000"/>
+0<circle r="" cx="z" ix="0" style="fill: 0000000000000"/>
+0<path d="M70,80c090-0,10-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M74,87c0,73-230-20-0-24108.000000000000,00000000000000000000,000000000000" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-0000-0M0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,70-000-00-60.800,103.0000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,100-00l0-02c0-0,0-00,-04000.00000000.000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx=")"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="$" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-03,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-03,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00r00000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-03,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,80c000-0,00-20,120-00l0-20c0-0,0-12,12-10l24,0c0,0,0000,000000000000,0c0,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" Lill="0"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-03,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circlY r="0" cx="0" cy="0" fill="0"/>0</svg>
diff --git a/test/ns-afl-svg/1625.svg b/test/ns-afl-svg/1625.svg
new file mode 100644
index 0000000..5a7ccaa
--- /dev/null
+++ b/test/ns-afl-svg/1625.svg
@@ -0,0 +1,120 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0c00idh000d'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='y0l00w'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fht='0' fill='0000000000000'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" ion="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" wth="0" hT="0" ill="0" se="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g t="0"
+ranm="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g s="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g s="0">&Viewport0;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&Viewport0;</g>
+0<g id="0" transform="translate(0 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t0;
+0<svg tio="0" Box="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&t0;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg ctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pro="0" vieht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg Aso="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg psp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport0;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport0;
+0<svg prbectRatio="0" viewBox="0 0 0 0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewGox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg t="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&t0;
+0<svg ectRaTio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1626.svg b/test/ns-afl-svg/1626.svg
new file mode 100644
index 0000000..f30d8ff
--- /dev/null
+++ b/test/ns-afl-svg/1626.svg
@@ -0,0 +1,11 @@
+<svg viewBox='0 0 1 1' xmlns='000p00000000000000'>
+0<linearGradient y1='0' x1='0' id='tgrad' gradientUnits='00000000000000'>
+0<stop stop-color='#000' offset='0'/>
+0<stop stop-color='#000' offset='0'/>
+0</linearGradient>0<path i0='0' stroke='url(#tgrad)' d='M0,0c0,0-0,0-0,0h0' fill='n0n00sta000lo0000000' stroke-width='6'/>0
+0
+0<linearGradient y1='0' x1='0' id='0' t0='0'>
+0<stop s0='0' offset='0'/>
+0<stop stop-color='0' offset='0'/>
+0</linearGradient>0<path t-n='0' stroke='url(#tgrad)' d='M0,0c0,0-0,0-0-0M0,0h0' fill='n0n00sta000lo0000000' stroke-width='6'/>0
+0<path st-n='0' stroke='url(#tgrad)' d='M0,0c0,0-0,0-0-0M0,0h0' fill='n0n00sta000lo0000000' stroke-width='6'/>0</svg>
diff --git a/test/ns-afl-svg/1627.svg b/test/ns-afl-svg/1627.svg
new file mode 100644
index 0000000..c39b210
--- /dev/null
+++ b/test/ns-afl-svg/1627.svg
@@ -0,0 +1,14 @@
+<svg h="0">
+0<path d="00000000" fill="q0n&lt;0"/>0
+0<path d="M00,0h00l00,00v00l0,00h00v" fill="#000"/>0<![CDATA[0]]>0
+0<path d="M00,0,00" fill="q0n&lt;0"/>0
+0<path d="0"/>0<![CDATA[0]]>0
+0<path d="M00,0,00" fill="q0n&lt;0"/>0
+0<path d="M00,0h00l00,00v00l0,00h00v" fill="#000"/>0<![CDATA[0]]>0
+0<path d="M00,0,00" fill="q0n&lt;0"/>0
+0<path d="M00,0h00l00,00v00l000,00h00v" fill="#000"/>0<![CDATA[0]]>0
+0<path d="00000000" fill="q0n&lt;0"/>0
+0<path d="0"/>0<![CDATA[0]]>0
+0<path d="M00,000,00" fill="q0n&lt;0"/>0
+0<path d="M00,0h00l00,00v00l000,00h00H" fill="#000"/>0<![CDATA[0]]>0<![CDATA[0]]]]>0
+</svg>
diff --git a/test/ns-afl-svg/1628.svg b/test/ns-afl-svg/1628.svg
new file mode 100644
index 0000000..8060b08
--- /dev/null
+++ b/test/ns-afl-svg/1628.svg
@@ -0,0 +1,7 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00" fill="n0w00tho000id000"/>0
+0<path d="M00,0h00l00,00v000-,00000000" stroka="0" fill="n0w00tho000id000"/>0
+0<path d="M00,0h00l000,00v00l00-00z" stroke="#000" fill="n0w00tho000id000"/>0
+0<path d="M00,0h00l00,00v00l000,0000-000" stroka="0" fill="n0w00tho000id000"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l00-00v000z" fill="#000"/>0
+0<text x="0" y="0" t-se="0" fl="0" t-r="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1629.svg b/test/ns-afl-svg/1629.svg
new file mode 100644
index 0000000..db68b1d
--- /dev/null
+++ b/test/ns-afl-svg/1629.svg
@@ -0,0 +1,110 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0<linearGradient id="0" nm="0">
+0<stop p-c="0" offset="0"/>
+0<stop stop-color="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" x="0" y="0" fill="#000"/>
+0<circle r="0" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,0000-00c0-0,0-00,00-00l00,0c0,0,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,0000000000000000,0000000000000000,0000000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+0<path d="000,00000000,0000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l000 0000-00 000-000 00000 000000,00000000000000000=00,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,00000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-6-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000000000,000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="0" cx="," id="0" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1630.svg b/test/ns-afl-svg/1630.svg
new file mode 100644
index 0000000..4b4e651
--- /dev/null
+++ b/test/ns-afl-svg/1630.svg
@@ -0,0 +1,94 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0" ra_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="url000000000" ll="0"/>
+0<path d="0" of="0"/>
+0
+0<stop or="0" of="0"/>
+0<stop slor="0" of="0"/>
+0
+0<stop stopor="0" of="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0<stoi or="0" et="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="0"/>0
+0<circle r="0" cx="0"/><stop st="0" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop sr="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="r"/>
+0<path d="000,00000000,00000,000,0000" fill="url0000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,00000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l000-0,*00000000000,000,0,0000,0000,00000,000000,000,0000,000000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,00000,00,0,0000000" id="0"/>0
+0<circle r="4" cx="r"/>
+0<path d="M00,00c00000,00000,000,0000" fill="url0000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,00000000,0000000000C0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l000-0,*00000000000,000,0,0000,0000,00000,000000,000,0000,000000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,0000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<pLth d="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l000000,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000" style="fill: url(#000000" fill="url(#0000)"/>
+0<pLth d="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l000000,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,0000000X,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1631.svg b/test/ns-afl-svg/1631.svg
new file mode 100644
index 0000000..4dd5acc
--- /dev/null
+++ b/test/ns-afl-svg/1631.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="b0n0"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="%" y="0" t-ze="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1632.svg b/test/ns-afl-svg/1632.svg
new file mode 100644
index 0000000..ea05a4b
--- /dev/null
+++ b/test/ns-afl-svg/1632.svg
@@ -0,0 +1,15 @@
+<svg ns="0" viewBox="0 0 0 0">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(0)">
+0<stop p-c="0" offset="0"/>
+0<stop sb-r="0" offset="0"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(0)">
+0<stop op-r="0" offset="%"/>
+0<stop op-c="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,0-00,00-00c00,0,00,0,00,00l0,00c0,0-0,00-00,00l0,0c00,0-00,0-00,00l00,0c00,000000000-000,0-00,00-00000000000000000000000000000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c0,0-0,00-00,000-00l000000000000000000000000000000000000000000000000000000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<cé00 l=""/>0</svg>
diff --git a/test/ns-afl-svg/1633.svg b/test/ns-afl-svg/1633.svg
new file mode 100644
index 0000000..ae4d92e
--- /dev/null
+++ b/test/ns-afl-svg/1633.svg
@@ -0,0 +1,5 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">0
+0<path d="M0,0h0l0,0v0l0,0h0l0-0v00z" stroke="#000" fill="l0r0"/>0
+0<path d="M00,0h00" fill="l0r0"/>0
+0<path d="M0,0h0l0,0v0l0,0,0" fill="#000"/>0
+0<text x="0" y="0" t-e="0" l="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1634.svg b/test/ns-afl-svg/1634.svg
new file mode 100644
index 0000000..22fadae
--- /dev/null
+++ b/test/ns-afl-svg/1634.svg
@@ -0,0 +1,63 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<vg xmlns="000000000000000000">
+0<style type="0">
+0
+0</style>
+0<g le="0">
+0<Ћ>0
+0<![CDATA[0]]><Ћ>
+0
+0<![CDATA[0]]><Ћdefs>
+0<li id="0" rm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0
+0<![CDATA[0]]><Ћdefs>
+0<li id="0" genrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0<![CDATA[0]]>0
+0<defs>
+0<lt id="0" sform="0"><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0
+0<![CDATA[0]]><Ћdefs>
+0<li id="0" genrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0
+0<![CDATA[0]]><Ћdefs>
+0<li id="0" gradienrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0<![CDATA[0]]><Ћdefs>
+0<lt rm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<Ћ>0<Ћdefs>
+0<nt nrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><ЋdeЋ>0
+0<![CDATA[0]]><Ћdefs>
+0
+0<![CDATA[0]]><Ћdefs>
+0<li id="0" genrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0
+0<![CDATA[0]]><Ћdefs>
+0<li id="0" gradienrm="0">
+0<st><0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1635.svg b/test/ns-afl-svg/1635.svg
new file mode 100644
index 0000000..ceda6b3
--- /dev/null
+++ b/test/ns-afl-svg/1635.svg
Binary files differ
diff --git a/test/ns-afl-svg/1636.svg b/test/ns-afl-svg/1636.svg
new file mode 100644
index 0000000..183e164
--- /dev/null
+++ b/test/ns-afl-svg/1636.svg
@@ -0,0 +1,35 @@
+<?l?>
+<svg ll="0" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0f00lba000re00000"
+stroke-width="3"/>
+0
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0f00lba000re00000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/1637.svg b/test/ns-afl-svg/1637.svg
new file mode 100644
index 0000000..13304b4
--- /dev/null
+++ b/test/ns-afl-svg/1637.svg
@@ -0,0 +1,71 @@
+<vg xmlns="0000000000" xmlns:k="0" vox="0">
+0<radialGradient id="0" cx="0" cy="0" r="0" grntUnits="0">0
+<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!---->0<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0<!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->
+0
+<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0--><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1638.svg b/test/ns-afl-svg/1638.svg
new file mode 100644
index 0000000..d18cfc3
--- /dev/null
+++ b/test/ns-afl-svg/1638.svg
@@ -0,0 +1,140 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='red'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='y0d00'/>0<circle Nx='0' cy='0' r='b'/>0<circle cx='0' cy='0' r='1' fill='b0i00'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' otroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='mm' width='0' height='d'
+fill='n0`0' stroke='blue'/>">]><svg width="px" hei="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" fill="none" s="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g m="0">&Smile;</g>0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport0;</g>
+0<g d="0" transform="00">0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&i;
+0<svg pro="0" vix="0"
+dth="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+idth="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&Viewport0;
+0<svg pio="0" vox="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>0</g>
+0<g id="0" transforK="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g m="0"><text y="0">0</text>&Viewport0;
+0<svg preservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRat="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pspectRatiotio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport0;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preseAsp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1639.svg b/test/ns-afl-svg/1639.svg
new file mode 100644
index 0000000..7bfd9f8
--- /dev/null
+++ b/test/ns-afl-svg/1639.svg
@@ -0,0 +1,55 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0a00bac000th' stroke='red'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='1' fill='black'/>0<circle cx='0' cy='0' r='5' f='0'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' hght='0'
+fill='none' stroke='b0u0'/>">
+]>
+<svg width="px" height="30px" n="0" xmlns="00">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" he="0" fill="none" soke="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g transform="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="000000000">&Viewport2;</g>
+0<g id="0" height="px" n="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" ight="0" fill="none" stroke="b0u0"/>
+0<g nte="0">
+0<text x="0" y="0">0</text>
+0<g transform="0000000000000000">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="00000000000000000">&Viewport2;</g>
+0
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="000000000000000"><text y="0">0</text>&i;
+0<svg xro="0" viewBox="0 0 3 4"
+idth="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg Aso="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>0
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg eservatio="0" viewBox="0 0 3 4" iUth="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg esetRatio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1640.svg b/test/ns-afl-svg/1640.svg
new file mode 100644
index 0000000..43b1ba1
--- /dev/null
+++ b/test/ns-afl-svg/1640.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" r="1" style="fill:red;stroke:black;stroke-width:001cm" transform="translate(0,00)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:a0u00 stroke:000" transform="translate(0,00)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:a0u00 stroke:black;stroke-width:001cm" transform="000,0000"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1641.svg b/test/ns-afl-svg/1641.svg
new file mode 100644
index 0000000..f82ea2c
--- /dev/null
+++ b/test/ns-afl-svg/1641.svg
@@ -0,0 +1,37 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="0" m="0">
+0<sp p-c="0" t="0"/>
+0<op s-r="0" o="0"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(0)">
+0<stop stop-color="rgb(00000000000000000" cy="0" fl="0"/>
+0<circle r="0" cx="0" cy="0" fs="0"/>
+0<stop p-r="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c000,000,0000,00,0000,00000000,0,0000000,000000,0000" fill="url(#pyBlue"/>
+0<path d="M00,000l0,00l00,0000,000000000000c0000,0000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<puth d="0" id="0" s="0" ll="0"/>
+0<path d="000,000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fsll="0"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000,000,00000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#pyBlue"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,00000000000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1642.svg b/test/ns-afl-svg/1642.svg
new file mode 100644
index 0000000..59c4043
--- /dev/null
+++ b/test/ns-afl-svg/1642.svg
@@ -0,0 +1,54 @@
+<svg viewBox='0 0 1 1' xmlns='000000000000000000'>
+0<linearGradient y1='0' x2='0' id='tgrad' gradientUnits='00000000000000'>
+0<stop stop-color='#000' offset='0'/>
+0<stop stop-color='#000' offset='0'/>
+0</linearGradient>0<path i0='0' stroke='url(#tgrad)' d='M00,00c000,0-00,0-0000,00h00' fill='n0n00sta000lo0000000' stroke-width='6'/>0
+0
+0<linearGradient y0='0' x0='0' id='0' g='0'>
+0<sto0 s0='0' offse0='0'/>
+0<sto0 s0='0' e0='0'/>
+0</linearGradient>0<path sli0='0' stroke='url(#tgrad)' d='M00,0,0-00,0-0000,0' fill='n0n00sta000lo0000000' stroke-width='6'/>0
+0
+0<linearGradient y0='0' x0='0' id='0' g='0'>
+0<stop s0='0' offset='0'/>
+0<stop st='0' et='0'/>
+0</linearGradient>0<path stlin='0' stroke='url(#tgrad)' d='M00,00c000,0-00,0-00-00M00,00000' fill='n0n00sta000lo0000000' stroke-width='6'/>0
+0
+
+0<path st='0' stroke='url(#tgraE' d='M00,00c000000000000000000000' fill='n0n00sta000lo0000000' stroke-width='0'/>0
+0<linearGradient y0='0' x0='0' id='0' grads='0'>
+0<stop stopor='0' of='0'/>
+0<stop sr='0' offset='0'/>
+0</linearGradient>0<path in='0' stroke='url(#tgrad)' d='M00,00c000,0-00,0-0000,00h00' fill='0000000000000' stroke-width='6'/>0
+0
+0<linearGradient y0='0' x0='0' id='0' gnits='0'>
+0<stop sr='0' ot='0'/>
+0<stop stopor='0' of='0'/>
+0</linearGradient>0<path sn='0' stroke='url(#tgrad)' d='M00,0,0-00,0-0000,0' fill='n0n00sta000lo0000000' stroke-width='6'/>0
+0
+0<linearGradient y0='0' x0='0' id='0' gnits='0'>
+0<stop sr='0' ot='0'/>
+0<stop stopor='0' of='0'/>
+0</linearGradient>0<path sn='0' stroke='url(#tgrad)' d='M00,00c000,0-00,0-00-00M00,00h00' fieth='0'/>0
+0
+0<linearGradient y0='0' x0='0' id='0' g='0'>
+0<stop sr='0' offset='0'/>
+0<stop st='0' et='0'/>
+0</linearGradient>0<path st-lin='0' stroke='url(#tgrad)' d='M00,0,0-00,0-0000,0' fill='n0n00sta000lo0000000' stroke-width='6'/>0
+0
+0<linearGradient y0='0' x0='0' id='0' gnits='0'>
+0<stop sr='0' offset='0'/>
+0<stop st='0' et='0'/>
+0</linearGradient>0<path st-lin='0' stroke='url(#tgrad)' d='M00,00c000,0-00,0-00-00M00,00h00' fill='n0n00sta000lo0000000' stroke-width='6'/>0
+0
+
+0<path st='0' stroke='url(#tgraE' d='M00,00c0000000000000000000000' fill='n0n00sta000lo0000000' stroke-width='0'/>0
+0<linearGradient y0='0' x0='0' id='0' grads='0'>
+0<stop or='0' of='0'/>
+0<stop sr='0' offset='0'/>
+0</linearGradient>0<path in='0' stroke='url(#tgrad)' d='M00,00c000,0-00,0-0000,00h00' fill='0000000000000' stroke-width='6'/>0
+0
+0<linearGradient y0='0' x0='0' ill='0' strh='0'/>0
+0
+
+0<path st-lin='0' stroke='url(#tgraE' d='M00,00c000,0-00,0-00-00M00,00h00' fill='n0n00sta000lo0000000' stroke-width='6'/>0</svg>
diff --git a/test/ns-afl-svg/1643.svg b/test/ns-afl-svg/1643.svg
new file mode 100644
index 0000000..7957a24
--- /dev/null
+++ b/test/ns-afl-svg/1643.svg
@@ -0,0 +1,7 @@
+<svg xmlns="0" viewBox="0 0 1 1">
+0<circle fill="#000" r="5" cx="0" cy="0"/>
+0<path d="M0,00H00-00 000-000 000-00-00-00-000 000-000 00-00 00-00 0-00A000000000 00-00 000-00 00 00 000 00 000-00 00-00 00-00 0000-00 00 0 00-000 00-00-000 000
+000 000 000-00 0000-00 000-00 000 0 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
+transform="translate(0,0)scale(0,0"/>0<elli..DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................pse rx="0" ry="0" rm="0"
+fl="0" opa="0"/>0<ellipse rx="5" ry="2" transform="rotate(000 0,0" fill="#000"
+opy="0"/>0</svg>
diff --git a/test/ns-afl-svg/1644.svg b/test/ns-afl-svg/1644.svg
new file mode 100644
index 0000000..77d8964
--- /dev/null
+++ b/test/ns-afl-svg/1644.svg
@@ -0,0 +1,25 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:a0r00all000ke0;"
+p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1645.svg b/test/ns-afl-svg/1645.svg
new file mode 100644
index 0000000..f67c08e
--- /dev/null
+++ b/test/ns-afl-svg/1645.svg
@@ -0,0 +1,13 @@
+<svg t='0'>
+0<svg ns='0' d='0' fill='d0l00tax000ns00000' strl='0' e='0'>
+0<path d='M00,00c00,0-0,0-0,00-00' fill='d0l00tax000ns00000' stroke='black'/>0</svg>0
+0<svg lns='0' d='0' fill='d0l00tax000ns00000' strl='0' e='0'>
+0<path d='M00,00c00,0-0,0-0,00-00' fill='d0l00tax000ns00000' stroke='black'/>0</svg>
+0<path d='M00,00c00,000,000,00' stroke='black'/>0
+0<svg vivhxlns='0' d='0' fill='d0l00tax000ns00000' strokell='0' stSoke='0'>
+0<path d='M00,00c00,0-0,0-0,00-00' fill='d0l00tax000ns00000' stroke='black'/>0</svg>
+0<path d='M00,00c00,000,000,00' stroke='black'/>
+0<path d='M00,00c00,000,000,00' stroke='black'/>0
+0<svg vivhxlns='0' d='0' fill='d0l00tax000ns00000' strokell='0' stSoke='0'>
+0<path d='M00,00c00,0-0,0-0,00-00' fill='d0l00tax000ns00000' stroke='black'/>0</svg>
+0<path d='M00,0,00/,000,00' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/1646.svg b/test/ns-afl-svg/1646.svg
new file mode 100644
index 0000000..42c198e
--- /dev/null
+++ b/test/ns-afl-svg/1646.svg
@@ -0,0 +1,123 @@
+<?l?><!DOCTYPE v0 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='w0f00lba000dt0' stroke='red'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' f='0'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" on="0" xmlns="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="b0u0"/>
+0<g ze="0">
+0<text x="0" y="0">0</text>
+0<g transform="0000">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0<g id="0" height="px" on="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g ze="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&r;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0
+0<g><text y="0">0</text>&p;
+0<svg io="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg ro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg re="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg Asp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t;
+0<svg pro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&t;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg Aso="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>0&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" ew="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0000000000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prt="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4"
+id_h="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport2;
+0<svg tiv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pspecBox="0" width="0" height="0">0
+0&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prt="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" t="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" vix="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&t0;
+0<svg preRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1647.svg b/test/ns-afl-svg/1647.svg
new file mode 100644
index 0000000..f4caf82
--- /dev/null
+++ b/test/ns-afl-svg/1647.svg
@@ -0,0 +1,30 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="00" xmlns:inkscape="0t" width="0" height="7" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0
+0
+0
+0
+</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+eight="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0" style="fill:v0d;">
+0<rect style="fill:v0d;" ip-path="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill: x0e" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill: x0e" id="0" wOdth="0"
+orm="0"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1648.svg b/test/ns-afl-svg/1648.svg
new file mode 100644
index 0000000..03a29c7
--- /dev/null
+++ b/test/ns-afl-svg/1648.svg
@@ -0,0 +1,12 @@
+<svg ox='0' xmlns='0000000000000000000' fill='s0l00tex000nc00000' stroke='0'>
+0<path d='M0,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,0,0h000c00,0-0,0,0,0h00c0,0,0,0,0,0h00;000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' fill='s0l00tex000nc00000' stroke='black'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,0,0h000c00,0-0,0,0,0h00c0,0,0,0,0,0h00;0,0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0,0,0000000,0,000,0,0,00,0000,0,00,00,00,00000,000,00000' fill='s0l00tex000nc00000' stroke='black'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,000,0,=00,0000000,000,0,0,0,0,00000000,000,0,0,000000,0,0,0,0,00000000,0,0,000000,0,0,0,0,00000000,000,0,0,000000,0,0,00000000000000000000000000000000000,0,000,0000000,0000,0000000000000000000,0000,0000,000,0,0,00000000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000,000,00000' fill='s0l00tex000nc00000' stroke='black'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,000,0,=00,0000000,000,0,0,0,0,00000000,000,0,0,000000,0,0,0,0,00000000,0,0,000000,0,0,0,0,00000000,000,0,0,000000,0,0,0,0,00000,0000,000000000000000,0000,0,000,0000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000,000,00000' fill='s0l00tex000nc00000' stroke='black'/>
+0<path d='M00,00c00,0-0-0,0-0l00,000,0,=00,0000000,000,0,0,0,0,00000000,000,0,0,0,0,000000,0,000000,0,0,0,0,00000000,000,0,0,000000,0,0,0,0,00000,0000,000000000000000,0000,0,000,0000000,0,000,0,0,0000000,0,000,0,0,00,0000,0,00,00,00,00000,000,00000' fill='s0l00tex000nc00000' stroke='black'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,000,0,=00,0000000,000,0,0,0,0,00000000,000,0,0,000000,0,0,0,0,00000000,0,0,000000,0,0,0,0,00000000,000,000000,0,0,0,0,00000000,0,0,000000,0,0,0,0,00000000,000,0,0,000000,0,0,0,0,00000,0000,000000000000000,0000,0,000,0000000,0000,0000000000000000000,0000,0000,000,0,0,00000000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000,000,00000' fill='s0l00tex000nc00000' stroke='black'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,000,0,=00,0000000,000,0,0,0,0,00000000,000,0,0,000000,0,0,0,0,00000000,0,0,000000,0,0,0,0,00000000,000,0,0,000000,0,0,0,0,00000,0000,000000000000000,0000,0,000,0000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000,000,00000' fill='s0l00tex000nc00000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/1649.svg b/test/ns-afl-svg/1649.svg
new file mode 100644
index 0000000..ac80bc9
--- /dev/null
+++ b/test/ns-afl-svg/1649.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" xmlns:xlin0="0000" viewBox="0 0 1 2">
+0<radialGradient id="0" cx="0" cy="0" t="0" grntUnits="0"><stop ot="0" op-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,000A0,00 0,0,0 00,000C00,00 00,00 00,0C000,00 00,00 00,000,00" id="0" fill="d0l00gss00"/>
+0<use xlin0:hf="0" transform="0"/>0</svg>
diff --git a/test/ns-afl-svg/1650.svg b/test/ns-afl-svg/1650.svg
new file mode 100644
index 0000000..aec51a4
--- /dev/null
+++ b/test/ns-afl-svg/1650.svg
@@ -0,0 +1,50 @@
+<svg xmlns="000000000000000000" xmlns:xlin0="0000" viewBox="0 0 0 0">
+0<radialGradient d="0" x="0" y="0" r="0" g="0"><p o-c="0"/><o t="0"/></radialGradient>
+0
+0<radialGradient d="0" x="0" y="0" r="0" s="0"><p t="0" op-c="0"/><p t="0"/></radialGradient>
+0<path d="000000"/>
+0<patH d="000000000000000000"/>
+0<patH d="00000000000000000000000000000000,000" l="0"/>
+0<patH d="M00,0000" fill="c0c00cme00"/>
+0<patH d="000,000,00000000,00000,000000,00000,00000,0000000,00000,0000,00000,00000,0000000,00000,00000,00" i="0" fill="c0c00cme00"/>
+0<patH d="000,000,00000000,000,0,000,000000,00000,00000,0000000,00000,00000,00" i="0" fill="c0c00cme00"/>
+0<patH d="000,000,00000000,00000,000000,000000,00000,00000,0000000,00000,00000,00" i="0" fill="c0c00cme00"/>
+0<patH d="000,000,00000000,00000,000000,00000000,00000,000" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,00000,000000,00000,000000000000"/>
+0<patH d="M00,000,000:0000,00000,000000,00000000,00000,000" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,00000,00000,00" i="0" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,000,0,000,00000000,000,0,000,000000,00000,00000,0000000,00000,00000,00" i="0" fill="c0c00cme00"/>
+0<patH d="00000000,00000,000000,00000000,00000,000" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,00000,000000,00000,00000,0000000,00000,0000,00000,00000,0000000,00000,00000,00" i="0" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,000,0,000,000000,00000,00000,0000000,00000,00000,00" i="0" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,00000,000000,000000,00000,00000,0000000,00000,00000,00" i="0" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,00000,000000,00000000,00000,000" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,000000000000000000000000000000000000000000000000000000000000000000000,00000,00" i="0" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,000,0,000,000000,00000,00000,0000000,00000,00000,00" i="0" fill="c0c00cme00"/>
+0<patH d="M00,000,0" fill="c0c00cme00"/>
+0<patH d="M00,0000" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,000000000000000000000000000000000000000000000000000000000000000000000,00000,00" i="0" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,000,0,000,000000,00000,00000,0000000,00000,00000,00" i="0" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,00000,000000,000000000000000000000000000000000000000000000000000000000000000000,00000,00000,00" i="0" fill="c0c00cme00"/>
+0<patH d="M00,000,000000000000000000000000000000000000000000000000000000000000000000;000,00000,00" i="0" fill="c0c00cme00"/>
+0<patH d="00000000,00000,000000,00000000,00000,000" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,00000,000000,00000,00000,0000000,00000,0000,00000,00000,0000000,00000,00000,00" i="0" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,000,0,000,000000,00000,00000,0000000,00000,00000,00" i="0" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,00000,000000,000000,00000,00000,0000000,00000,00000,00" i="0" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,00000,000000,00000000,00000,000" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,000000000000000000000000000000000000000000000000000000000000000000000,00000,00" i="0" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,000,0,000,000000,00000,00000,0000000,00000,00000,00" i="0" fill="c0c00cme00"/>
+0<patH d="M00,000,0" fill="c0c00cme00"/>
+0<patH d="M00,0000" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,00000,000000,00000,00000,0000000,00000,0000,00000,00000,0000000,00000,00000,00" i="0" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,000,0,000,000000,00000,00000,0000000,00000,00000,00" i="0" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,00000,000000,000000,00000,00000,0000000,00000,00000,00" i="0" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,00000,000000,00000000,00000,000" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,00000,000000,00000,00000,0000000,00000,0000,00000,00000,0000000,00000,00000,00" i="0" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,000,0,000,00000000,000,0,000,000000,00000,00000,0000000,00000,00000,00" i="0" fill="c0c00cme00"/>
+0<patH d="00000000,00000,000000,00000000,00000,000" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,00000,000000,00000,00000,0000000,00000,0000,00000,00000,0000000,00000,00000,00" i="0" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,000,0,000,000000,00000,00000,0000000,00000,00000,00" i="0" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,00000,000000,000000,00000,00000000,00000,0000,00000,00000,0000000,00000,00000,00" i="0" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,00000,0000000,000000,00000,00000,0000000,00000,00000,00" i="0" fill="c0c00cle00"/>
+0<use xlin0:href="0" t="0"/>0<use f="0" m="0"/>0</svg>
diff --git a/test/ns-afl-svg/1651.svg b/test/ns-afl-svg/1651.svg
new file mode 100644
index 0000000..b50c8af
--- /dev/null
+++ b/test/ns-afl-svg/1651.svg
@@ -0,0 +1,115 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c00ext000ch0000'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='y0l'/>0<circle cx='p' cy='0' r='5' fill='b0a00'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='n0n0' strokT='0'/>">]><svg width="px" height="30px" ion="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" ill="0" stroke="b0u0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport2;</g>
+0<g d="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+h="0" t="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>0
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&p;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg ctRatio="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg preservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg p="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg prbectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg ectRaTio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1652.svg b/test/ns-afl-svg/1652.svg
new file mode 100644
index 0000000..21f757d
--- /dev/null
+++ b/test/ns-afl-svg/1652.svg
@@ -0,0 +1,5 @@
+<svg xmlns="00000000000000000000000000000000" fill="url(#0)000" viewBox="0 0 1 1">
+0<path d="M0,00s00-0,00-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00,0,00,00,000000,0000" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="8" fill="#000"/>
+0<circle r="4" cx="0" cy="g" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1653.svg b/test/ns-afl-svg/1653.svg
new file mode 100644
index 0000000..fb012bb
--- /dev/null
+++ b/test/ns-afl-svg/1653.svg
@@ -0,0 +1,78 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0a00sch000k' stroke='r0d'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='5' fill='b0a00'/>0<circle cx='0' cy='0' r='1' f='0'/>0<path d='M0 00A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" on="0" xmlns="0000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g ze="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&r;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0<g id="0" height="px" on="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g ze="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0
+0<g><text y="0">0</text>&p;
+0<svg io="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>0
+<svg ro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg resctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg spectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t0;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg pro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&t0;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presetRatio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&t0;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1654.svg b/test/ns-afl-svg/1654.svg
new file mode 100644
index 0000000..cca2da9
--- /dev/null
+++ b/test/ns-afl-svg/1654.svg
@@ -0,0 +1,38 @@
+<svg xmlns="000000o00000000000" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="0" m="0">
+0<top op-c="0" t="0"/>
+0<stop sp-r="0" o="0"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(0)">
+0<stop stop-color="rgb(00000000000000000" cy="0" fl="0"/>
+0<circle r="0" cx="0" cy="0" fs="0"/>
+0<stop sp-lwr="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,0-0,0000,0000000000000000000000000000000000,00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,0l0,00l00,0c00,0-00-0-00-00c0-00,0-00,00-000l0-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" cx=")"/>
+0<path d="000000000000000000000000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="000000000000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy=")"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c000,0-00000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00000000000000000000000000000000000-000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" ig="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#pyBlue)"/>
+0<path d="M00,000l0,00l00,0c00,0-00-0-00-00c0-00,0-00,00-00l00,0l0-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" cx=")"/>
+0<path d="000000000000000000000000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c000000000000000000000000000000000000000000000=0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0004" style="fill: url(#00d000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1655.svg b/test/ns-afl-svg/1655.svg
new file mode 100644
index 0000000..aa7eedc
--- /dev/null
+++ b/test/ns-afl-svg/1655.svg
@@ -0,0 +1,129 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_rm="0">
+0<stop stop-color="#000" t="0"/>
+0<stop stop-color="000"/>
+0<stop st="0"/>
+0
+0<stop stop-color="#000" offset=".4"/>
+0
+0
+0<stop stop-color="#000" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="000000" offset="0"/>
+0
+0
+0<stop stop-color="url(#000000)" ll="0"/>
+0<ph d="0" of="0"/>
+0
+0<stop or="0" of="0"/>
+0<stop sr="0" of="0"/>
+0
+0<stop st="0" of="0"/>
+0
+0
+0<stop sr="0" ot="0"/>
+0
+0<stop sr="0" offset="0"/>
+0<stop or="0" et="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient></defs>0
+0<path d="0"/>0
+0<circle r="0" cx="0"/><stop st="0" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="000000000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000 00-00-00 00-00 000-00 0000-000000 000000,00000000 0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="000,00000000,000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="H" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000000,000000000000000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-20,100-00l0-00c00000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00v0-00l0,0c0,0,0000,000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>
+0
+0
+0<path d="M00,00c090-0,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="u000000000000"/>0
+0<circle r="$" fill="url(#000.)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00o0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-04-6-001000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1656.svg b/test/ns-afl-svg/1656.svg
new file mode 100644
index 0000000..ebfcfac
--- /dev/null
+++ b/test/ns-afl-svg/1656.svg
@@ -0,0 +1,13 @@
+<svg width="0" height="0" y="0"><g><g><pÃh xmlns="http://svg" xmlns:k="0" xmlns:sodipodi="00" xmlns:inkscape="htt" width="0"
+ght="0" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:ut_e="0">
+0<desvg width="0" height="0" y="0"><g><g><pÃh xmlns:c="0" xmlns="http://rg/0000/svg" xmlns:s="0" widthdth="0" height="0" y="0"><g><g><pÃh xmlns="http://svg" xmlns:k="0" xmlns:podi="00" xmlns:iape="htt" width="0" height="0" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" iape:ut_e="0">
+0<desvg width="0" height="0" y="0"><g><g><pÃh xmlns:c="0" xmlns="http://rg/0000/svg" xmlns:x="0" xmlns:s="0" width="0" height="0" id="0" podi:version="0" iape:version="0" sodipodi:docname="0" inkscape:ut_e="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>
+0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0" th="0"
+t="0"/>
+0</clipPath>0
+<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1657.svg b/test/ns-afl-svg/1657.svg
new file mode 100644
index 0000000..98be5f1
--- /dev/null
+++ b/test/ns-afl-svg/1657.svg
@@ -0,0 +1,2 @@
+<svg viewBox='0 0 6 2' xmlns='00t0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' fill='s0t00r' stroke='000000'>
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,0,0h000c00,0-0,0,0,0h00c0,0,0,0,0,0h000c00,0-0,0,0,0h00c0,0,0,0,0,0h000c00,0-0,0,0,0h00c0,0,0,0,0,0l000,0c00,0-0-0-00-0zM00000000-00000l000000000000000000000000000000000000000000000000000000000000000000000000000000' fill='s0t00r' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/1658.svg b/test/ns-afl-svg/1658.svg
new file mode 100644
index 0000000..6382398
--- /dev/null
+++ b/test/ns-afl-svg/1658.svg
@@ -0,0 +1,380 @@
+<svg ms="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" gradientTransform="rotate(00)">
+0<stop op-c="0" offset="0"/>
+0<stop sb-r="0" offset="0"/>0
+0<stop stop-colsr="0" offset="%"/>
+0<stop otop-color="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c000,0000,00000000,0,00,0,00,00l0,0000000,00000,000000,000000,00000,0000,0000000000000,0000,000000000000000000,0000000,000000,0000" fill="url(#00)"/>
+0<path d="M00,00c0,000,00000,000000000000000,0000,00000000,0c0,0,0000,0000000000,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" ll="0"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" id="0000" fy="0" fill="url(#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000,L0,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00000000000-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" fill="0000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,000,,0c0,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,0000,000000000000,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00000000000-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00o0)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00o0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,00"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000 00000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000000000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00o0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#00000)"/>
+0<path d="M00,00c00000,00000,0000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" _x="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" ll="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000 00000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#000000000"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#000000)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1659.svg b/test/ns-afl-svg/1659.svg
new file mode 100644
index 0000000..c96de68
--- /dev/null
+++ b/test/ns-afl-svg/1659.svg
@@ -0,0 +1,19 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<ellipse cx="0" cy="0" rx="6" ry="9" fill="#000"/>
+0<path d="M,0 0-00-000000000000000000000000000000000000000000000000000,00000"
+fill="0"/>0<ellipse rx="5" ry="2" transform="rotate(,0-0,0)" fill="#000"
+ty="0"/>0
+0
+0
+0<ellipse cx="0" cy="0" rx="6" ry="9" fill="#000"/>
+0<path d="M00,000-00-0P0000000000000000000000000000000000000000000000000,00000"
+fill="0"/>0<ellipse rx="5" ry="2" transform="rotate(,0-0,0)" fill="#000"
+ty="0"/>0
+0
+0
+0
+<ellipse rx="5" ry="2" transform="rotate(,0-0,0)" fill="#000"
+ity="0"/>
+0
+<ellipse rx="5" ry="2" transform="rotate(,0-0,0)" fill="#000"
+ity="0"/>0</svg>
diff --git a/test/ns-afl-svg/1660.svg b/test/ns-afl-svg/1660.svg
new file mode 100644
index 0000000..ea7e078
--- /dev/null
+++ b/test/ns-afl-svg/1660.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="R" r="1" style="fill:red;stroke:black;" transform="translate(0,00)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u00lla00;stroke-width:001cm" transform=",0000"/>
+0<circle cx="c" cy="cm" r="1" style="fill:green;stroke:black;stroke-width:001cm" transform="translate(000,000)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1661.svg b/test/ns-afl-svg/1661.svg
new file mode 100644
index 0000000..bbd5731
--- /dev/null
+++ b/test/ns-afl-svg/1661.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="hWtp://www.w3.org/2000/sv0">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:r0d0 stroke:00000000" wrorm="0"/>0<circlE cx="cm" cy="cm" r="1" style="stroke:b0r00blu0;stroke-width:001cm" transform="000000000000000000" wrorm="0"/>
+0<circlE cx="cm" cy="cm" r="1" style="stroke:b0r00blu0;stroke-width:001cm" transform="translate(00,000)"/>
+0<circle cx="cm" cy="t"/>
+0<ci cx="0" cy="0" r="0" style="0" m="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1662.svg b/test/ns-afl-svg/1662.svg
new file mode 100644
index 0000000..a80ecfc
--- /dev/null
+++ b/test/ns-afl-svg/1662.svg
@@ -0,0 +1,5 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h00l00,00v0" fill="m0v0"/>0
+0<path d="M00,0h00l000l000,000000" stroke="#000" fill="m0v0"/>0
+0<pZth d="0" l="0"/>0
+0<text x="0" y="0" t-e="0" ll="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1663.svg b/test/ns-afl-svg/1663.svg
new file mode 100644
index 0000000..f3b5140
--- /dev/null
+++ b/test/ns-afl-svg/1663.svg
@@ -0,0 +1,8 @@
+<svg width="0" ht="0"><g><g><pÃh xmlns="http:00svg" xmlns:k="0" xmlns:sodipodi="ht" xmlns:inkscape="htt" width="0"
+ght="0" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:ut_e="0">
+0<desvg width="0" height="0" y="0"><g><g><pÃh xmlns:c="0" xmlns:s="0" widthdth="0" ht="0" y="0"><g><g><pÃh xmlns="http:00svg" xmlns:k="0" xmlns:podi="ht" xmlns:iape="htt" width="0" height="0" id="0" sodipodi:version="0" iape:version="0" podi:docname="0" iape:ut_e="0">
+0<desvg width="0" height="0" y="0"><g><g><pÃh xmlns:c="0" xmlns="ht"><g><g><pÃh x="0" xmlnsi="0" xmlns:cape="htt" width="0" ght="0" id="0" podi:version="0" iape:version="0" sodipodi:docname="0" cape:ut_e="0">
+0<desvg width="0" height="0"><g><g><pÃh xmlns:c="0" xmlns="000000000000000000" xmlns:x="0" widthdth="0" height="0" y="0"><g><g><pÃh x="0" xmlns:pi="ht" xmlns:e="0" width="0" id="0" podi:version="0" iape:version="0" podi:docname="0" iape:ut_e="0">
+0<desvg width="0" height="0" y="0"><g><g><pÃh xmlns:c="0" x="0" xmlns:x="0" xmlns:o="0" height="0" id="0" pi:version="0" iape:version="0" pi:docname="0" cape:ut_e="0">
+0<fs>
+0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1664.svg b/test/ns-afl-svg/1664.svg
new file mode 100644
index 0000000..9031c9b
--- /dev/null
+++ b/test/ns-afl-svg/1664.svg
@@ -0,0 +1,8 @@
+<svg xmlns="000000000000000000" viewBox="0">0<path d="M0 000c00-00 00-0000 000000,0000 0" i="0" style="stroke: rgb(00000000000000000"/>0
+<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rg00000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rg000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rg00000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="0000000000000" id="0" style="stroke: rg00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1665.svg b/test/ns-afl-svg/1665.svg
new file mode 100644
index 0000000..efa57f2
--- /dev/null
+++ b/test/ns-afl-svg/1665.svg
@@ -0,0 +1,385 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" rm="0">
+0<stop stop-color="0" offset="4"/>
+0<stop or="0" offset="7"/>
+0<stop stop-color="s0o0" offset=","/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop stop-color="#000" ot="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" ll="0"/>
+0<path d="00000000000000000000000000000," fill="url(#pyYellow"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow"/>0
+0<circle r="0" fill="url(#00000000000000000000000000000000000000000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" ll="0"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000,00,0000,c00000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00000000000000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" iill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,00-00000,00"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" ficy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" filx="0"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fSll="0"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1666.svg b/test/ns-afl-svg/1666.svg
new file mode 100644
index 0000000..635b04a
--- /dev/null
+++ b/test/ns-afl-svg/1666.svg
@@ -0,0 +1,352 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>0<stop stop-color="m0s00n" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000" fill="url(#00000)"/>
+0<path d="M00,00c00-0000000-0,0-00,00000000-0000000000000000000C000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#r0000" fill="url(#00000)"/>
+0<path d="M70,80c007-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" l="0"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#00000)"/>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000" fill="url(#000000)"/>
+0<pAth d="M00,00c0,0-0,00-00,000-0000000000000000000000C0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 0000000000000=00,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c007-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,00,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+
+0<circle r="$" fill="url(#000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-0000-0M0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,70-000-00-60.000,100.0000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="0000000000000"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c007-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" ll="0"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,020-00l0-00c0-0,0-00,-04000.000000000000,000.0000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M70,80c007-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M70,80c007-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M04,00c007-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,020-00l0-00c0-0,0-00,-04000.000000000000,000.0000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000e)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" y="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,80c090-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,00..000,00000000 000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" y="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M70,80c000-0,00-20,124-10l0-20c0-0,0-12,10-00l24,0c0,0,00-0,14-15l0-10l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" f="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-20,100-00l0-02c0-0,0-00,-04000.000000000000,000.0000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M70,80c007-0,00-20,124-10l0-20c0-0,0-12,10-00l24,0c0,0,00-0,14-15l0-10l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1667.svg b/test/ns-afl-svg/1667.svg
new file mode 100644
index 0000000..bba60cd
--- /dev/null
+++ b/test/ns-afl-svg/1667.svg
@@ -0,0 +1,353 @@
+<svg s="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="pyYellow" m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="q0s00c" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000000" fill="url(#pyYellow"/>0
+0
+
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#r0000" fill="url(#00=00"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-0000000000000000-000000000000000" fill="url(#000000)"/>
+0<pAth d="M00,00c0,0-00 000-0 0000000000000000000000000000000000,0000000000C0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" filf="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000=0000000000000000000000000000000000000000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" p="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00000000000,0c0000000000000000000000000M0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-20,104-00l0-00c0-0,0-00,10-12l04,0c0,0,00-0,04-10l0-00l9,000,00L000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000000000000000000000000000000000000000000000000000000000" fill="url(#00=00"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00-00-00 00-00 0000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,000000000000000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-60.8700000.000000000000000000000000000000000000.0000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000000000000000000000000000000000000000000000000000000000" fill="url(#00=00"/>
+0<path d="00000000000000000000000"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,000-00l0-00c0-0,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00000,00000,00000000000c000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,000-00l0-00c0-0,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000e)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" x="0" y="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" x="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,00..000,00000000 000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" y="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,100-00l0-00c0-0,0-00,00-12l04,0c0,0,00-0,00-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,03-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c097-0,13-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-20,000-00l0-00c0-0,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="#" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,10-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000 00000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,02-12l20,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,03-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,13-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1668.svg b/test/ns-afl-svg/1668.svg
new file mode 100644
index 0000000..f533a09
--- /dev/null
+++ b/test/ns-afl-svg/1668.svg
@@ -0,0 +1,34 @@
+<svg height="m"><![CDATA[0]]>0
+0<g fill="n0o00">
+0<ellipye stroke="0" x="0"/>
+0<ellipse stroke="#0?0000" rx="6" ry="4" transform="rotate(60)"/>
+0<ellipse stroke="#00~000" rx="6" ry="4" transform="00"/>
+0<circle stroke="#0000P0" r="4"/>
+0</g>
+0<g fill="#00'000" stroke="000000000000000000000"
+transform="0">
+0<![CDATA[0]]>0
+0<g fill="n0o00">
+0<ellipye stroke="0" x="0" ry="0"/>
+0<ellipse stroke="#0?0000" rx="6" ry="4" transform="rotate(060)"/>
+0<ellipse stroke="#00~000" rx="6" ry="4" transform="00"/>
+0<circle stroke="#0000P0" r="4"/>
+0</g>
+0<g fill="#00'000" stroke="000000000000000000000"
+transform="0">
+0<ellipye se="0" rx="0" ry="0"/>
+0<ellipse stroke="#0?0000" rx="6" ry="4" transform="rotate(060)"/>
+0<ellipse stroke="#00~000" rx="6" ry="4" transform="00"/>
+0<circle stroke="#0000P0" r="4"/>
+0</g>
+0<g fill="#00'000" stroke="000000000000000000000"
+transform="translate(0,0)00"/>0<ellipse rx="2" ry="1" transform="0"
+fill="#000" y="0"/>
+0<ellipye se="0" rx="0" ry="0"/>
+0<ellipse stroke="#0?0000" rx="6" ry="4" transform="rotate(060)"/>0<ellipse stroke="#00~000" rx="6" ry="4" transform="00"/>
+0<circle stroke="#0000P0" r="4"/>
+0</g>
+0<g fill="#00'000" stroke="000000000000000000000"
+transform="translate(0,000)00"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(000,0000)"
+fill="#000" y="0"/>0<ellipse rx="3" ry="2" transform="rotate(000) translate(00,00)" fill="#000"
+y="0"/>0</svg>
diff --git a/test/ns-afl-svg/1669.svg b/test/ns-afl-svg/1669.svg
new file mode 100644
index 0000000..eca3446
--- /dev/null
+++ b/test/ns-afl-svg/1669.svg
@@ -0,0 +1,16 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="d0t00nsf000ov0"/>0
+0<path d="M00,0h00l00,00v00lv0000" stroke="#000" fill="d0t00nsf000ov0"/>0
+0<path d="M00,0h00l00,00v0h000l000-000-00"/>
+0<path d="M00,00s0,0,0,0h0,0s00-0,0-00s00-0,0-0l0,0s0,0,0-0l00-0s00000-0,00-0,00"/>
+0<path d="M00,00s00-00,0-00l0-0s0,0,0,0l0-0l0,0s0,0,0,00l00,0l00-0s00,0-0,0l00,00z"/>
+0<g stroke="#000" stroke-width="3" fill="none" e-c="0">
+0<circle r="6" cx="0" cy="0"/>
+0<circle r="6" cx="0" cy="0"/>
+0<path d="M00,00S00,00,0000,0S00,00,00,00"/>
+0<path d="M00,00l0,0M00,00l00,0"/>0
+0<path d="M00,00c000-00-00-0-00-0s0,0-0,0000,0"/>
+0<path d="M000,00c0-0,00-0,00,0c0,0,00,00000000-0,0,0"/>
+0<path d="M00,00c0,0,0,0,00,0000000,0"/>
+0<path r="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1670.svg b/test/ns-afl-svg/1670.svg
new file mode 100644
index 0000000..7aa69cc
--- /dev/null
+++ b/test/ns-afl-svg/1670.svg
@@ -0,0 +1,133 @@
+<svg xmlns="000000000000000000" k="0" r="0" stroke="f0i00ric0"
+e="0" n="0">
+0
+0
+0
+0<script e="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g d="0" style="0">
+0<circle d="0" cx="0" cy="0" r="5" stroke="f0i00ric0"
+stroke-width="3"/>
+0<text x="0" y="@">0</text>
+0<text x="0" y="0">0</text>
+0
+0
+0<circle d="0" cx="0" cy="0" r="5" stroke="f0i00ric0"
+stroke-width="3"/>
+0<text x="0" y="@">0</text>
+0<text x="0" y="0">0</text>
+0</g>0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0]]></script>
+0<g d="0" style="0">
+0<circle d="0" cx="0" cy="0" r="5" stroke="f0i00ric0"
+stroke-width="3"/>
+0<text x="0" y="@">0</text>
+0<text x="0" y="0">0</text>
+0
+0
+0
+0
+0
+0
+0
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g d="0" style="0">
+0<circle d="0" cx="0" cy="0" r="5" stroke="f0i00ric0"
+stroke-width="3"/>
+0<text x="0" y="@">0</text>
+0<text x="0" y="0">0</text>
+0
+0
+0<circle d="0" cx="0" cy="0" r="5" stroke="f0i00ric0"
+stroke-width="3"/>
+0<text x="0" y="@">0</text>
+0<text x="0" y="0">0</text>
+0</g>0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0]]></script>
+0<g d="0" style="0">
+0<circle d="0" cx="0" cy="0" r="5" stroke="f0i00ric0"
+stroke-width="3"/>
+0<text x="0" y="@">0</text>
+0<text x="0" y="0">0</text>
+0
+0
+0<circle d="0" cx="0" cy="0" r="5" stroke="f0i00ric0"
+stroke-width="3"/>
+0<text x="0" y="@">0</text>
+0<text x="0" y="0">0</text>
+0</g>0
+0
+0<circle d="0" cx="0" cy="0" r="5" stroke="f0i00ric0"
+stroke-width="3"/>
+0<text x="0" y="@">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/1671.svg b/test/ns-afl-svg/1671.svg
new file mode 100644
index 0000000..6b570cf
--- /dev/null
+++ b/test/ns-afl-svg/1671.svg
@@ -0,0 +1,165 @@
+<svg olns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" grorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="u0s00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000,0000,0000000000,0000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow"/>0
+0<circle r="4" cx="0" cy="," fill="url(#py0ellow"/>0
+0<circle r="," fill="url(#000000"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000,0000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0-00000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-00000000000000000,0000000000C0000000,00000000000000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,0000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000C0000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,10-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,004-00l0-22c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx=")"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="B" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0F0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-26c0-0,0-12,10-10l24,0c0,0,00-0,14-10l0-10l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1672.svg b/test/ns-afl-svg/1672.svg
new file mode 100644
index 0000000..5c66078
--- /dev/null
+++ b/test/ns-afl-svg/1672.svg
@@ -0,0 +1,389 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="q0`00"/>0
+0<e r="0" cx="0" y="0" o="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,03,00c0,0-0,00-00,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="0000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000000000-00-00-000 000-0 0000000000000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-00000000007000000000000000000000000000000000000 0000000000000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000000000000000000000000000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<path d="M00,00c0,00-200-00-0-000000001-00" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="4" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,024-00l0-00c0-0,0-00,02-00l04,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,0000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#000000000000000000000000000000000000000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#0000)"/>
+0<jath d="0" fill="0"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000ac000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="4" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,03-00,004,00s0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="" fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,10-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1673.svg b/test/ns-afl-svg/1673.svg
new file mode 100644
index 0000000..cfb543f
--- /dev/null
+++ b/test/ns-afl-svg/1673.svg
@@ -0,0 +1,50 @@
+<?l?>
+<!--0-->
+<svg xmlns:d="0" xmlns="000000000000000000" xmlns:c="0" xmlns:sodipodi="0" xmlns:inkscape="000" width="0" height="5" id="0" sodipodi:veXon="0">
+0<defs>
+0<filter inkscape:collect="0"
+d="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0" th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0" th="0"
+ht="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;"
+p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:s0g00ue;" p-h="0" id="0" width="0"
+ht="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0
+0
+0
+0
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:s0g00ue;"
+p-h="0" id="0" width="0" ht="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1674.svg b/test/ns-afl-svg/1674.svg
new file mode 100644
index 0000000..afefc4f
--- /dev/null
+++ b/test/ns-afl-svg/1674.svg
@@ -0,0 +1,2 @@
+<?l?>
+<!DOCTYPE s00 PUBLIC "0" "0"> \ No newline at end of file
diff --git a/test/ns-afl-svg/1675.svg b/test/ns-afl-svg/1675.svg
new file mode 100644
index 0000000..7d2361d
--- /dev/null
+++ b/test/ns-afl-svg/1675.svg
@@ -0,0 +1,26 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="t" xmlns:inkscape="00" width="0" height="5" d="0" sodipodi:n="0" inkscape:ersion="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" d="0">
+0<feGaussianBlur inkscape:collect="0" on="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:f0l00dfill:none" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:f0l00dfill:now0" id="0" width="0" height="0" x="0" y="0"/>0<rect style="stroke:f0l00dfill:none" id="0" x="0" y="0"/>0
+0<svg x="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1676.svg b/test/ns-afl-svg/1676.svg
new file mode 100644
index 0000000..0fa389d
--- /dev/null
+++ b/test/ns-afl-svg/1676.svg
@@ -0,0 +1,14 @@
+<svg xmlns="00" w="0">0<circle fill="#000" r="5" cx="0" cy="0"/>
+0<pathKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKnKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKbKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKMKKKext d="0" ke="0" ll="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKbKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKMCKKKKKKKKKKKKKKTKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" ll="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLLLLLLLLLLLLLLLt ty="0" rx="0"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/1677.svg b/test/ns-afl-svg/1677.svg
new file mode 100644
index 0000000..e1fcdbf
--- /dev/null
+++ b/test/ns-afl-svg/1677.svg
@@ -0,0 +1,4 @@
+<s xmlns="00000000000000000000000000" Box="0">
+0<path d="0" stroke="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[]]>]]> \ No newline at end of file
diff --git a/test/ns-afl-svg/1678.svg b/test/ns-afl-svg/1678.svg
new file mode 100644
index 0000000..365a846
--- /dev/null
+++ b/test/ns-afl-svg/1678.svg
@@ -0,0 +1,377 @@
+<svg ns="0" fill="url(#pyYellow)" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" m="0">
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="#000" offset=","/>
+0
+0
+0
+0<path d="0" ll="0"/>0
+0<ce r="0" cx="0"/>
+0
+0<stop stop-color="#000" offset=".4"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0,0-0,00-01,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: 0" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l04,0c0,0,00-0,04-00l0-000000000000000000)"/>
+0<path d="M00,00c000-0,10-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#00000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0000000000000l000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-2,00l-02-000c00000000" fill="u0e0"/>
+0<path d="M00,0000000000000000,000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#00000)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000000000000000000000000000000000000M000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-00c0-0,0-00,02-00l04,00000000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-60.870,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="M00,00c0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#00000"/>0
+0<circle r="$" fill="url(#000e)"/>
+0
+
+0<cirCle r="4" cx="0" cv="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00000000,0000000000"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,020-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-00l0-00l9,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,-00008000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00000,00000,00000000000c000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,6-00,-00103.600000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000e)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-00c0-0,0-00,02-00l00,0c0,0,00-0,04-10l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" ll="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000ac000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,124-00l0-00c0-0,0-00,10-00l04,0c0,0,00-0,00-10l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" f="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,124-00l0-00c0-7,0-00,10-00l24,0c0,0,00-0,14-10l0-10l9,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-00,100-00l0-20c000,0000,00000000,0c0,0,0000,000000000000,000,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AimCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1679.svg b/test/ns-afl-svg/1679.svg
new file mode 100644
index 0000000..88c7204
--- /dev/null
+++ b/test/ns-afl-svg/1679.svg
@@ -0,0 +1,87 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_rm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0" a_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="url(00"/>
+0<path d="0" of="0"/>
+0
+0<stop r="0" of="0"/>
+0<stop slor="0" of="0"/>
+0
+0<stop p="0" of="0"/>
+0
+0
+0<stop r="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0<stop or="0" et="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="0"/>0
+0<circle r="0" cx="0"/><stop st="0" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop sr="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c000,00,0,00-0,00000000000000000000000000000000000000"/>0
+0<circle r="4" cx="r"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#00=00"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url0000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<ci r="0" cx="0" cy="0" fill="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-000000000000000000000000000000000000,0c0,0,0000,0000,00000,0,0,00,0,0000000000000000000000000000000000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,10-20,100,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#pb=lue"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#pb=lue)"/>0
+0<path d="M00,00c000-0,00-00,00,000-0000000c000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,104,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1680.svg b/test/ns-afl-svg/1680.svg
new file mode 100644
index 0000000..52ea477
--- /dev/null
+++ b/test/ns-afl-svg/1680.svg
@@ -0,0 +1,33 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="50" id="0" sodipodi:n="0" inkscape:ersion="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill: w0d00red;" p-h="0" id="0" w="0" height="0" x="0" y="0"/>
+0<rect style="stroke:d0f00ck;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">0<rect style="fill:blue;" height="0" x="0" y="0"/>
+0<rect style="stroke:d0f00ck;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>
+0
+0
+0
+0
+0
+0
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1681.svg b/test/ns-afl-svg/1681.svg
new file mode 100644
index 0000000..d461a05
--- /dev/null
+++ b/test/ns-afl-svg/1681.svg
@@ -0,0 +1,80 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gra_ieorm="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0" gra_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="url(#00000" fill="0"/>
+0<path d="0" of="0"/>
+0
+0<stop or="0" of="0"/>
+0<stop stolor="0" of="0"/>
+0
+0<stop stopor="0" of="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0<stop or="0" et="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="0"/>0
+0<circle r="0" cx="0"/><stop st="0" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stopcolor="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" cx="r"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url0000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c000-0,00-00,000-00l0000000000000000000000000000000000000000000000000000000000000000000,0l0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="00000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<pLth d="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c0,0000,00000,000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,0000000X,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1682.svg b/test/ns-afl-svg/1682.svg
new file mode 100644
index 0000000..70a6aeb
--- /dev/null
+++ b/test/ns-afl-svg/1682.svg
@@ -0,0 +1,69 @@
+<svg ns="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="py0ellow" rm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>0<stop stop-color="s0g00p" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-0000000000000000-000000000000000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0-0,00-00,000-000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" lf="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c00000000000000000-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cp="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,00,000,0000,0l0,000,0000000000000000000000000" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0l0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,00"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0
+0<path d="M00,00c0,000000000-0-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,0,0,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1683.svg b/test/ns-afl-svg/1683.svg
new file mode 100644
index 0000000..4de30ea
--- /dev/null
+++ b/test/ns-afl-svg/1683.svg
@@ -0,0 +1,3 @@
+<svg xmlns="000000000000000000000000000000000000000000000000000000000000000000000000000" fill="t0e00" viewBox="0 0 0 0">
+0<path d="00000000000000000000000000000000000000000,0000000,00000000,00000,000000,00000,00000,000,00000,000,000000000000000000000000000,00000,000,0,00,000" fill="t0e00"/>0
+0<path d="000000000,000000000000,0000000000,000000000,0000000,00000000,00000,000000,00000,00000,000,00000,000,000000000000000000000000000,00000,000,0,00,000" fill="t0e00"/>0</svg>
diff --git a/test/ns-afl-svg/1684.svg b/test/ns-afl-svg/1684.svg
new file mode 100644
index 0000000..66ebd3d
--- /dev/null
+++ b/test/ns-afl-svg/1684.svg
@@ -0,0 +1,52 @@
+<svg ns="" viewBox="0 0 1 1">
+0<path d="M0,0h00000000000l" ke="0" fill="m&lt;o"/>0
+0
+0
+<svg s="0" viewBox="" fill="m&lt;o"/>0
+0&lt;0
+0
+0
+<svg s="0" viewBox="" fill="m&lt;o"/>0
+0
+0
+<svg ls="0" viewBox="" fill="m&lt;o"/>0
+0
+0
+<svg ol="" viewBox="0">
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="000000000000000000000" ke="0" fill="m&lt;o"/>0
+0
+0
+<svg ln="" viewBox="" fill="m&lt;o"/>0
+0<path d="M00,0h00l00,0,0000" ke="0" fill="m&lt;o"/>0
+0
+0
+<svg os="0" viewBox="" fill="m&lt;o"/>0
+0
+0
+<svg lns="0" viewBox="" fill="m&lt;o"/>0
+0
+0&lt;0
+0
+0
+</svg>
+0
+<svg on="" viewBox="" fill="m&lt;o"/>0
+0
+0
+<svg ons="0" viewBox="0">
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="000000000000000000000" ke="0" fill="m&lt;o"/>0
+0
+0
+<svg ols="0" viewBox="" fill="m&lt;o"/>0
+0<path d="M00,0h00l00,0,0000" ke="0" fill="m&lt;o"/>0
+0
+0
+<svg olns="" viewBox="" fill="m&lt;o"/>0
+0
+0
+<svg olns="0" viewBox="" fill="m&lt;o"/>0
+0
+0&lt;0
+0
+0
+</svg>0</svg>
diff --git a/test/ns-afl-svg/1685.svg b/test/ns-afl-svg/1685.svg
new file mode 100644
index 0000000..794325a
--- /dev/null
+++ b/test/ns-afl-svg/1685.svg
@@ -0,0 +1,46 @@
+<svg xmlns="g" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="s0o00yol000"/>0
+0<stop stop-color="p0a00sty00" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c00000000000000 000-00 0000-00 000-000 00000 00000000000000000000000000000000000 00000000,00000000 000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,0-00-0@000000000000,000000,000000000000000000000,00000,000,0000" fill="url(#py0ellow"/>0
+0<cirCle r="4" x="0" y="0" fill="#000"/>
+0<circle r="4" x="0" cy="z" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000 00-00 000-00 0000-00 000-000 00000 000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,0-00-0@000000000000,000000,000000000000000000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00000000000l000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000a00" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00000000000l000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000w00000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="z" id="0004" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,000000000000-0,0-00,00-00000,000,0,00-0,00-000000000,000,0,0000,0000,00000,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1686.svg b/test/ns-afl-svg/1686.svg
new file mode 100644
index 0000000..145201d
--- /dev/null
+++ b/test/ns-afl-svg/1686.svg
@@ -0,0 +1,7 @@
+<svg xmlns="0000000000" viewBox="0 0 1 8">0<path d="M0,0h00c00,0-00,00,0,00h000zM000,000A00" id="0" style="stroke: r0000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: r0000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: r000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0,000000000000000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1687.svg b/test/ns-afl-svg/1687.svg
new file mode 100644
index 0000000..4164bb0
--- /dev/null
+++ b/test/ns-afl-svg/1687.svg
@@ -0,0 +1,56 @@
+<?l?><!DOCTYPE v00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0u00' stroke='000'/>0<g transform='translate(0,0)'>0<circle cx='0' cy='0' r='1' fill='y0l00w'/>0<circle cx='0' cy='0' r='S' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0">
+<!ENTITY t "">
+<!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='n0n0' stroke='b0w0'/>">
+]>
+<svg width="px" height="30px" ion="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" fill="none" stroke="b0u0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g transform="translate(0,0)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport2;</g>
+0<g d="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&o;
+0<svg tdo="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" sfoÅ0="0">
+0<text x="0" y="0">0</text>
+0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBgx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" heighj="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&i;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1688.svg b/test/ns-afl-svg/1688.svg
new file mode 100644
index 0000000..190ed48
--- /dev/null
+++ b/test/ns-afl-svg/1688.svg
@@ -0,0 +1,54 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="M0,0,0" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="0" fill="#000"/>0
+0
+0
+0
+0&lt;0
+0<path d="M00,0,00" stroke="#000" fill="d&lt;o00tsf00"/>0
+0<path d="0" fill="#000"/>0
+0
+0&lt;
+0<path d="0" fill="#000"/>0
+0
+0
+0
+0&lt;0
+0<path d="M00,0,00" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="0" fill="#000"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0&lt;0
+0<path d="M00,0,00" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="0" fill="#000"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<ellipse rx="5" ry="2" transform="rotate(0)00000,000" fill="#000"
+o="0"/>0</svg>
diff --git a/test/ns-afl-svg/1689.svg b/test/ns-afl-svg/1689.svg
new file mode 100644
index 0000000..f09adb5
--- /dev/null
+++ b/test/ns-afl-svg/1689.svg
Binary files differ
diff --git a/test/ns-afl-svg/1690.svg b/test/ns-afl-svg/1690.svg
new file mode 100644
index 0000000..f922e2c
--- /dev/null
+++ b/test/ns-afl-svg/1690.svg
@@ -0,0 +1,21 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="R" r="1" style="fill:r000000000000"/>0<circle cx="cm" cy="0" r="1" style="fill:b0u0;stroke:t0a00lns000;"/>0
+<circle cx="cm" cy="C" r="1" style="fill:b0u0;stroke:t0a00lns000;"/>
+0<circle cx="cm" cy="0" r="1" style="fill:blue;stroke:t0a00lns000;stroke-width:1cm" transform="0" trtrm="0"/>0<circle cx="u" cy="cm" r="1" style="fill:blue;stroke:t0a00lns000;stroke-width:1cm" transform="translate(0,0"/>
+0<circle cx="cm" cy="0" r="1" style="fill:blue;stroke:t0a00lns000;stroke-width:1cm" transform=""/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:t0a00lns000;stroke-width:1cm" transform="0" m="0"/>0<circle x="0" cy="cm" r="1" style="fill:blue;stroke:t0a00lns000;"/>0<circle cx="cm" cy="C" r="1" style="fill:blue;stroke:t0a00lns000;"/>0
+<circle cx="cm" cy="C" r="1" style="fill:blue;stroke:t0a00lns000;"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:t0a00lns000;stroke-width:1cm" transform="0" trtrm="0"/>0<circle cx="u" cy="cm" r="1" style="fill:blue;stroke:t0a00lns000;stroke-width:001cm" transform="translate(0,0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:t0a00lns000;stroke-width:1cm" transform=""/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:t0a00lns000;stroke-width:1cm" transform="0" m="0"/>0<circle x="0" cy="cm" r="1" style="fill:blue;stroke:t0a00lns000;stroke-width:001cm" transform="translate(0,0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:t0a00lns000;stroke-width:1cm" transform=""/>
+0<circle cx="cm" cy="cm" r="1" style="fill:000000 stroke:black;stroke-width:001cm" transform="translate(0,0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:t0a00lns000;stroke-width:1cm" transform=""/>
+0<circle cx="cm" cy="cm" r="1" style="fill:000000 stroke:black;stroke-width:0c0" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1691.svg b/test/ns-afl-svg/1691.svg
new file mode 100644
index 0000000..b900c74
--- /dev/null
+++ b/test/ns-afl-svg/1691.svg
@@ -0,0 +1,2 @@
+<?l?>
+<!DOCTYPE s00000000:0>ÿ \ No newline at end of file
diff --git a/test/ns-afl-svg/1692.svg b/test/ns-afl-svg/1692.svg
new file mode 100644
index 0000000..2ca146b
--- /dev/null
+++ b/test/ns-afl-svg/1692.svg
@@ -0,0 +1,369 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" ra_ieorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="m0a00iew000"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0,0-0,00-00,00000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" x="0"/>
+0<path d="0000000000000000000" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-00000000007000000000000000000000000000000000000 0000000000000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,5,00-2,00l-50-000c0,c0,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fWll="0"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,000-00l0-00c0-0,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c097-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,100-00l0-00c0-0,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" x="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000ac000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,004-00l0-00c0-0,0-00,10-10l24,0c0,0,00-0,04-15l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,10-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-20,004-00l0-00c0-0,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-10l24,0c0,0,00-0,14-15l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCqe r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1693.svg b/test/ns-afl-svg/1693.svg
new file mode 100644
index 0000000..dd493b1
--- /dev/null
+++ b/test/ns-afl-svg/1693.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:r0r;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill: d0e" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill: d0e;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1694.svg b/test/ns-afl-svg/1694.svg
new file mode 100644
index 0000000..4fdcbd6
--- /dev/null
+++ b/test/ns-afl-svg/1694.svg
@@ -0,0 +1,380 @@
+<svg s="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="pyYellow" rm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>0<stop stop-color="u0d00ies" offset="0"/>
+0</linearGradient>
+0
+0</defs>0
+0<path d="000000,0000000000000000000000000000000000000000,000,00000,000000,0000,0000,0000,0000,00000,0000,00000000000000000,0000,0000000000,000,0,0000000000000000000000000000,000000,000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" id="0000" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000000"/>
+0<path d="M00,00c097-0,13-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" id="0000" ye="0" fill="url(#0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l000,L0,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-000000000070000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-000000000070000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#00)"/>
+0<path d="M00,00c097-0,03-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,00"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00)"/>
+0<path d="M00,00c097-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000000" fill="url(#00000)"/>
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" cy="0" fi="0"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,13-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fi="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fi="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,00..000,00000000 000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-00c0-0,0-00,02-00l20,0c0,0,00-0,00-10l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,03-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c097-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000 00000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-00c0-0,0-00,02-00l20,0c0,0,00-0,00-10l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#000000000"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1695.svg b/test/ns-afl-svg/1695.svg
new file mode 100644
index 0000000..1902e6c
--- /dev/null
+++ b/test/ns-afl-svg/1695.svg
@@ -0,0 +1,5 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0-z" stroke="#000" fill="l0n&lt;0"/>0
+0<path d="M0,0h0l0,0v0l0,0v0l0,0h0v" stroke="#000" fill="l0n&lt;0"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-e="0" fill="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1696.svg b/test/ns-afl-svg/1696.svg
new file mode 100644
index 0000000..c3cc3dd
--- /dev/null
+++ b/test/ns-afl-svg/1696.svg
@@ -0,0 +1,126 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="u0q00n" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="M00,00c00000,000000-0,0-00,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M70,00c000-0,00-00,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<pAth d="M00,00c000-0,00-00,000-0000000000000000000-00000 000000,000000000 00000000,000000000 000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c000000000000000000000000000000-00 0000-00 000-000 000-00-00-00-000 0000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M70,80c000-0,00-00,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-000000000000000000000000000000000M00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M70,80c000-0,10-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M70,80c000-0,10-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00700,0000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,0000" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#000000)"/>
+0<pAth d="M00,00c0,000,00000,000000000000000,0000,000000000000000,000000000000=00,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,5,20-2,40l-50-175c0,0,0-00300 14-49-00 00-00 000-59 120
+000 000-130 000-80-40-0000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#000000)"/>
+0<pAth d="000,0000,000,0000000000000000000000000000000000000000,0000000,0000000000000000000,000000,000000000000000,0000,00000000,000,0000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M70,00c000-0,00-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M70,80c000-0,10-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,00,000000000000000,0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000-00 0 00000000,00000000 000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M70,80c000-0,10-00,124,50v1" fill="url(#py0ellow)"/>0
+0<path d="M70,80c000-8,10-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00000,00000000 0 00000000,00000000 000000,000000000z" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000000000,000000,000,0000,000,000,000000000000000000000000,000,0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M70,87c0,73-230-20-0-24108.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,000000000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1697.svg b/test/ns-afl-svg/1697.svg
new file mode 100644
index 0000000..80b4ed0
--- /dev/null
+++ b/test/ns-afl-svg/1697.svg
@@ -0,0 +1,36 @@
+<svg s="0" viewBox="0 0 0 0">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(0)">
+0<stop stop-color="#000" offset="-6"/>
+0<stop stop-color="#000000" offset=","/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop p-c="0" t="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" l="0"/>
+0<path d="M0,00c00-00-0-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" c="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000000000000000000000000000000000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0-00000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-00000000000000000,00000000000 000000,000000000 00000000,000000000 000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000000000000000000000000000000000000000-00-000 000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,00000000 000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000 00000000,00000000 000000,00000000 0" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1698.svg b/test/ns-afl-svg/1698.svg
new file mode 100644
index 0000000..09275cc
--- /dev/null
+++ b/test/ns-afl-svg/1698.svg
@@ -0,0 +1,42 @@
+<svg ootì="0">0
+0<path d="M0000,0v000?" stroke="#000" fill="n0n00goe000"/>0
+0<path d="M00,00v00l000,00h000l000" fill="#000"/>0
+0
+0<path d="M00,0h000000000000000000000000000000000?" stroke="#000" fill="n0n00goe000"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000" fill="#000"/>0
+0
+0
+0<path d="M00000000000000000000000000000000000000000000000000000000000000000000000000-000 0-000 0-000-0-000-0-00-0-000-0000h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="n0n00goe000"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000?" stroke="#000" fill="n0n00goe000"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000" fill="#000"/>0
+0
+0
+0
+0<path d="M00-000-00-000-000-000-000000000 00-000 000-000 0000-000
+000 0-00 00-000 00-000 0-000 0-000-0-000-0-00-0-0000000000000-00-0000000000000000000000000000000000000000000000000000000000000000-000 0-000 0-000-0-000" stroke="#000" fill="n0n00goe000"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000?" stroke="#000" fill="n0n00goe000"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000" fill="#000"/>0
+0
+0
+0<path d="M00-000-00-000-000-000-00000-000 00-000 000-000 0000-000
+000 0-00 00-000 00-000 0-000 0-000-0-000000000000000000000000000000000000-000-0000 00-00 000-00 00 00 000 00 000-00 00-00 00-00 0000-000000000000000000000000000000000000000-00-00-0-00-00-000-00-000-00000000000000000000000000000000000-000 0000-00" fill="n0n00goe000"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000?" stroke="#000" fill="n0n00goe000"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000" fill="#000"/>0
+0
+0
+0
+0<path d="M000000-00-000-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000-00-0000-00-000-0000 00-00 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000-000-000-00h000000000000000" stroke="s0g0" fill="none"/>0
+0<path d="M00-000-00-000-000-000-00000-000 00-000 000-000 0000-000
+000 0-00 00-000 00-000 0-00-000-00-00-0-00-00-000-00-000-00-000-000-000-00h000000000000000" stroke="s0g0" fill="none"/>0
+0<path d="M00,0h00l00,00v000000000--000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
+fill="#000" y="0"/>
+0<ellipsw rx="0" ry="0" ansform="0"
+fill="0" opacity="0"/>0
+0
+</svg>
diff --git a/test/ns-afl-svg/1699.svg b/test/ns-afl-svg/1699.svg
new file mode 100644
index 0000000..fb79e8a
--- /dev/null
+++ b/test/ns-afl-svg/1699.svg
@@ -0,0 +1,26 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0
+0<rect style="fill:y0u0;" clip-path="0"
+d="0" width="0" height="0"/>
+0<rect style="stroke:b0b00;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:y0u0;" p-h="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1700.svg b/test/ns-afl-svg/1700.svg
new file mode 100644
index 0000000..b7557cc
--- /dev/null
+++ b/test/ns-afl-svg/1700.svg
@@ -0,0 +1,15 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(0)">
+0<stop stop-color="rg00000000000" offset="0"/>
+0<stop t-c="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,0-00,00-00c00,0,00,0,00,000c0,0-0,00-0,0c00,0-00,0-00,00l0,00l00,0c00,0-00-0-00-00c0-00,0-00,00-00l00,0l0-0l000,0l0-0l0,0z M00,00v0" fill="url(#pyBlue)"/>
+0<path d="M00,00c0,0-8,13-23,13c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000,0000,000,0l0,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1701.svg b/test/ns-afl-svg/1701.svg
new file mode 100644
index 0000000..6fd3fd7
--- /dev/null
+++ b/test/ns-afl-svg/1701.svg
Binary files differ
diff --git a/test/ns-afl-svg/1702.svg b/test/ns-afl-svg/1702.svg
new file mode 100644
index 0000000..34666f9
--- /dev/null
+++ b/test/ns-afl-svg/1702.svg
@@ -0,0 +1,11 @@
+<svg xmlns="0000000000" x000k="0" viewBox="0 0 1 2">0<radialGradient d="0" cx="0" cy="0" r="0" U000s="0"><op ot="0" M0c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,000A00000 000 00,000000000000,00 00,000000000000,000000000,00" id="0" fill="p0c00wle00"/>
+0
+0<path d="M00,000A00000000000000000000000000000000000000000000000000000000000000,00" id="0" fill="m0c00wve00"/>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" U000s="0"><stop ot="0" s00000000000000000000000000000000000000000000000000000000000000000c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,000A000,00 0,0,0 00,000000000000,00000,000C000,00000,000000000,00" id="0" fill="p0c00wle00"/>
+0
+0<path d="M00,000A0T0,0000,0,0000,000000,00000,00000,0000000,00000,00000,0000000,00000,00000,00" id="0" fill="m0c00wve00"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/1703.svg b/test/ns-afl-svg/1703.svg
new file mode 100644
index 0000000..4a9ffe6
--- /dev/null
+++ b/test/ns-afl-svg/1703.svg
@@ -0,0 +1,59 @@
+<svg xmlns="0000000000" xmlns:k="0" viewBox="0 0 1 2">
+0<radialGradient d="0" x="0" cy="0" r="0" s="0"><op ot="0" o000000000000000000000000000000000000000000000000000000000000000c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,000A0,00 0,0,0 00,000C00,00 00,00 00,0000 00,00 00,00 00,0000 00,00 00,00 00,00" id="0" ll="0"/>
+0
+0<path d="M00,000A000,00 0,0,0 00,000C000000000-0000,00 00,00 00,0000 00,00 00,00 00,00" id="0" fill="p0c00wle00"/>
+0
+0<path d="M00,000A000,00 0,0,0 00,000C00000000000000000 000 000 000 000 000 0-00-000-000-000-00-000-000-000-00-000
+00-000 00-000 000-000 000 0" fill="p0c00wle00"/>
+0
+0<path d="M00,000A00000000000000000-00-000-000-000-00-000
+00-000 00-000 000-000 000 0" fill="p0c00wle00"/>
+0
+0<path d="M00,000A000,00 0,0,0 00,000C00000 00,00 00,000 0-000-00-000-000-000-000 000-000
+0000000 00-000-000-000-0 00 0 00 00 0 00 00 000 000 000 000 000 000 000-000 000 0" fill="p0c00wle00"/>
+0
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,0000000,0000-0-00-00 00-00 000-0 00 00 000 00 0000"
+transform="translate(0,000) scale(0-0"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0.000.0)"
+fl="0" o="0"/>0<ellipse rx="5" ry="2" transform="rotate(000 0,00" id="0" fill="p0c00wle00"/>
+0
+0<path d="M00,000A000,00 0,0,0 00,000C00000 00 0 00-0 00-000-00-000 00-000 000-000 000 000 000 000 000 0-00-000-000-000-00-000-000-000-00-000
+00-000 00-000 000-000 000 0" fill="p0c00wle00"/>
+0
+0<path d="M00,000A000,00 0,0,0 00,000C00000 00,00 00,000 0-000-00-000-000-000-000 000-000
+0000000 00-000-000-000-0 00 0 00 00 0 00 00 000 000 000 000 000 000 000-000 000 0" fill="p0c00wle00"/>
+0
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,0000000,0000-0-00-00 00-00 000-0 00 00 000 00 0000"
+transform="translate(0,000) scale(0000-0"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0.000.0)"
+fill="#000" opa="0"/>0<ellipse rx="3" ry="2" transform="rotate(0,00,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="p0c00wle00"/>
+0
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,0000000,0000-0-00-00 00-00 000-0 00 00 000 00 0000"
+transform="translate(0,000) scale(0000-0"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0.000.0)"
+fill="#000" opa="0"/>0<ellipse rx="5" ry="2" transform="rotate(00000000000000000000000000,00000,0000000,00000,00000,0000000,00000,00000,00" id="0" fill="p0c00wle00"/>
+0
+0<path d="M00,000A000,00 0,0,0 00,000C00000 00 0 00-0 00-000-00-000 00-000 000-000 000 000 000 000 000 0-00-000-000-000-00-000-000-000-00-000
+00-000 00-000 000-000 000 0" fill="p0c00wle00"/>
+0
+0<path d="M00,000A000,00 0,0,0 00,000C00000 00,00 00,000 0-000-00-000-000-000-000 000-000
+0000000 00-000-000-000-0 00 0 00 00 0 00 00 000 000 000 000 000 000 000-000 000 0" fill="p0c00wle00"/>
+0
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,0000000,0000-0-00-00 00-00 000-0 00 00 000 00 0000"
+transform="translate(0,000) scale(0000,00"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(000,0000)"
+fill="#000" opa="0"/>0<ellipse rx="3" ry="2" transform="rotate(0,00,000,0000,0,0000,000000,00000,00000,0000000,00000,00000,0000000,00000,00000,00" id="0" fill="p0c00wle00"/>
+0
+0<path d="M00,000A000,00 0,0,0 00,000C0000000-00 00-000 0,00000000000000,000000000000000000000000000000000000000000000000000000000000000000" id="0" fill="p0c00wle00"/>
+0
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,0000000,000 00 0 00-0 00-000-00-000 00-000 000-000 000 000 000 000 000 0-00-000-000-000-00-000-000-000-00-000
+00-000 00-000 000-000 000 0" fill="p0c00wle00"/>
+0
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000000000000-0-00-00 00-000-000 000 000 000 000 000 0-00-000-000-000-00-000-000-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 000-000 000
+000 000 000 00 0000 000-000 000-0000 0-000-00-000-00000000000000000000000000000000000000000000000000000000000000000 00,00 00,00 00,0000 00,00 00,00 00,00" id="0" fill="p0c00wle00"/>
+0
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,0000000,000 00 0 00-0 00-000-00-000 00-000 000-000 000 000 000 000 000 0-00-000-000-000-00-000-000-000-00-000
+00-000 00-000 000-000 000 0" fill="p0c00wle00"/>
+0
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,0000000,0000-0-00-00 00-0000 000-000
+0000000 00-000-000-000-0 00 0 00 00 0 00 00 000 000 000 000 000 000 000-000 000 0" fill="p0c00wle00"/>
+0
+0<path d="00" fill="#000"
+o="0"/>0</svg>
diff --git a/test/ns-afl-svg/1704.svg b/test/ns-afl-svg/1704.svg
new file mode 100644
index 0000000..be54cee
--- /dev/null
+++ b/test/ns-afl-svg/1704.svg
@@ -0,0 +1,2 @@
+<svg>0
+0<path d='0,00000,000,000,00000' fill='d0l00gax000ns00000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/1705.svg b/test/ns-afl-svg/1705.svg
new file mode 100644
index 0000000..50262fd
--- /dev/null
+++ b/test/ns-afl-svg/1705.svg
@@ -0,0 +1,6 @@
+<svg xmlns="00000000000000000000000000" viewBox="0">
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000?" stroke="#000" fill="n0n00coe000"/>0
+0<path d="M00,0h00l00-00,0000000000000000000000000" stroke="#000" fill="n0n00coe000"/>0
+0<path d="M00,0h00l00,00v0v000?" stroke="#000" fill="n0n00coe000"/>0
+0<path d="M00,0h00l00,00v00l0000000000000000000000" fill="#000"/>0
+0<text x="0" y="0" t-se="0" l="0" t-r="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1706.svg b/test/ns-afl-svg/1706.svg
new file mode 100644
index 0000000..d5fd8de
--- /dev/null
+++ b/test/ns-afl-svg/1706.svg
@@ -0,0 +1,31 @@
+<svg oNns='0'>
+0<path d='0,00000,0' fill='d0t00tax000ts00000' stroke='black'/>
+0<path d='0000000,0' fill='d0t00tax000ts00000' stroke='black'/>0
+0
+0<svg s='0'>
+0<path d='0000000,0' fill='d0t00tax000ts00000' stroke='black'/>0
+0
+0
+0<path d='0,00000,0' fill='d0t00tax000ts00000' stroke='black'/>0
+0
+0<path d='0,0,000,0' fill='d0t00tax000ts00000' stroke='black'/>0
+0<path d='0,0,00000' fill='d0t00tax000ts00000' stroke='black'/>0</svg>
+0
+0<path d='0,00000,0' fill='d0t00tax000ts00000' stroke='black'/>0
+0
+0<path d='0,0,000,0' fill='d0t00tax000ts00000' stroke='black'/>0
+0<path d='000,00000' fill='d0t00tax000ts00000' stroke='black'/>0
+0
+0<svg oNns='0'>
+0<path d='0,00000,0' fill='d0t00tax000ts00000' stroke='black'/>0
+0
+0
+0<path d='000,000,0' fill='d0t00tax000ts00000' stroke='black'/>0
+0
+0<path d='000,0,0,0' fill='d0t00tax000ts00000' stroke='black'/>0
+0<path d='000,0,000' fill='d0t00tax000ts00000' stroke='black'/>0</svg>
+0
+0<path d='000,000,0' fill='d0t00tax000ts00000' stroke='black'/>0
+0
+0<path d='000,0,0,0' fill='d0t00tax000ts00000' stroke='black'/>0
+0<path d='000,00000' fill='d0t00tax000ts00000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/1707.svg b/test/ns-afl-svg/1707.svg
new file mode 100644
index 0000000..3b1db66
--- /dev/null
+++ b/test/ns-afl-svg/1707.svg
@@ -0,0 +1,316 @@
+<svg xmlns="0000" fill="url(#pyYellow" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" m="0">
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="#000" offset=","/>
+0
+0
+0
+0<th d="0" l="0"/>0
+0<ce r="0" x="0" y="0" ll="0"/>
+0<circle r="0" x="0" id="0" s="0" ll="0"/>0
+0<path d="0" l="0"/>
+0<pAth d="0" l="0"/>0
+0<circle r="0" x="0" y="0" l="0"/>
+0
+0<path d="0" fill="0"/>0
+0<cirCle r="0" x="0" y="0" fill="0"/>
+0<ci r="0" x="0" id="0000" e="0" fill="0"/>0
+0
+0<path d="0" fill="0"/>0
+0<cirCle r="0" x="0" y="0" fill="0"/>
+0<circle r="0" x="0" y="0" fill="0"/>0
+0<path d="0" o="0"/>
+0<stOp top-color="0" t="0"/>
+0
+0<stop stop-color="#000" offset=".4"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000000" fill="url(#00)"/>
+0<pAth d="M00,00c0,0-0,00-20,000-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#pyYellow"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#r" fill="url(#000e)"/>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000" fill="url(#00)"/>
+0<pAth d="M00,00c0,0-0,00-20,000-00000000000000000000000000000000000000000000000000000000000000000,000,000,0000000,0000" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#00000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#N00"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0/0000,00000000000000000,0000000000000000,0000000000000000,00000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="00000000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-20,104-00l0-00c0-0,0-00,10-00l04,0c0,0,00-0,04-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,5,00-2,00l-50-00000,000000000"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000.)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00o0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="0000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,104-00l0-00c0-0,0-00,10-00l04,0c0,0,00-0,04-00l0-00l9,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,6-02,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" ficy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000e)"/>
+0<path d="M00,00c090-0,00-20,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#000e)"/>
+0<path d="M00,00c090-0,00-20,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx=")"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000e)"/>
+0<path d="M00,00c090-0,00-20,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-20,100-00l0-22c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000ac000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#000e)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-20,104-00l0-22c0-0,0-02,10-00l04,0c0,0,00-0,04-00l0-10l9,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-20,124-00l0-22c0-0,0-02,10-00l24,0c0,0,00-0,14-05l0-10l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#000e)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-8,00-20,000-00l0-22c0-0,6-02,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-20,100-00l0-22c0-0,0-02,00-050v0" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000w)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000e)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000e)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-20,104-00l0-22c0-0,0-02,10-00l04,0c0,0,00-0,04-05l0-10l9,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-20,104-00l0-22c0-0,0-02,10-00l04,0c0,0,00-0,04-05l0-10l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" f="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000e)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000e)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1708.svg b/test/ns-afl-svg/1708.svg
new file mode 100644
index 0000000..0c43d75
--- /dev/null
+++ b/test/ns-afl-svg/1708.svg
@@ -0,0 +1,16 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l000-00y0"/>0
+0
+0<path d="M00,0h00l00,0?" Ve="0" fill="p0n00ye"/>0
+0
+0<path d="M00,0h00l00,00v0000?" Ve="0" fill="p0n00cse000ye"/>0
+0
+0<path d="M00,0,0000" Ve="0" fill="p0n00ses000ma"/>0
+0
+0<path d="M00,0hl00,0,00" Ve="0" fill="p0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0<path d="M00,0h00l00,00v00l000,00l000-00v000z" fill="#000"/>0
+0<text x="0" y="0" ze="0" ll="0" t-r="0"><![CDATA[0
+0
+0]]]]
+0
+0]]]]></text>0</svg>
diff --git a/test/ns-afl-svg/1709.svg b/test/ns-afl-svg/1709.svg
new file mode 100644
index 0000000..e7414cc
--- /dev/null
+++ b/test/ns-afl-svg/1709.svg
@@ -0,0 +1,234 @@
+<?l?>
+<svg version="0" n="0" width="0" height="0" style="0" on="0">
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0m00vic000or00000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>0
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="b0u0" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0m00vic000or00000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0<text x="0" y="0">0</text>
+0
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0m00vic000or00000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="b0u0" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0m00vic000or00000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>0
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0m00vic000or00000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>0
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" ll="0" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0m00vic000or00000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0<text x="0" y="0">0</text>
+0
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0m00vic000or00000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" ll="0" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0m00vic000or00000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0<text x="0" y="0">0</text>
+0</g>0
+0</g>0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/1710.svg b/test/ns-afl-svg/1710.svg
new file mode 100644
index 0000000..a0d022c
--- /dev/null
+++ b/test/ns-afl-svg/1710.svg
@@ -0,0 +1,50 @@
+<?l?><!DOCTYPE v0 PUBLIC "0" "0"[<!ENTITY Smile "0
+<rect x='0' y='0' width='0' height='0' fill='a0a' stroke='red'/>0<g transform='translate(0,0)'>0<circle cx='0' cy='0' r='1' fill='y0l00w'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<circle cx='0' cy='0' r='5' fill='b0k'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='s0b00' stroke-width='2'/>0</g>0"><!ENTITY t "">
+<!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" i="0" xmlns="000000000000000000">
+0<desc></desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="b0u0"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport2;</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg pro="0" vox="0" width="0" t="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&p;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg>0<text y="0">0</text>&V;
+0<svg t="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preservetio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserRatio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&r;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&r;
+0<svg preRatio="0" viewBox="0 0 3 4" vidth="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1711.svg b/test/ns-afl-svg/1711.svg
new file mode 100644
index 0000000..c8afd1d
--- /dev/null
+++ b/test/ns-afl-svg/1711.svg
@@ -0,0 +1,46 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='red'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='p' fill='yellow'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY Viewport1 "<rect x='0' y='0' width='n' height='0'
+fill='none' stroke='blue'/>"><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" n="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="blue"/>
+0<g e="0">0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&Viewport1;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&Viewport2;</g>
+0<g d="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport1;0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport1;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport1;0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" t="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport1;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport1;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport1;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1712.svg b/test/ns-afl-svg/1712.svg
new file mode 100644
index 0000000..767f922
--- /dev/null
+++ b/test/ns-afl-svg/1712.svg
@@ -0,0 +1,8 @@
+<svg Ãs="0" viewBox="0 0 1 1">
+0<path d="M0,0h00l00,00v00l0,00h000l000-00v00000-00 000-00 0000-00 000-000 000-00-00-00-000 000-000 00-00 00-00 0-00A00-0-0000-00-000-000 0-00 00-00 000-00 00 0Q00000000000000 00-0000000000000000000 0 00-000 00-000-00-00-000-00-000 00-000 000-000 0000-000
+000 0-00 00-000 00-000 0-000 0-000-0-000-0-00-0-00-0-000-00-00-0-00-00-000-00-000-00-00000-0-000-00-00-0-00-00-000-00-000-00-000-000-000-00-000-000-000-00-0000000000,0,00,0,00,0000,0000,000l0,000,0,00,0,00000,0000" fill="url00llo00"/>0
+0<circle r="v" fill="url00llo00"/>0
+0<circle r="v" fill="url(#00000)"/>
+0<path d="M00,00c0,0-0,00-00,00c000,0000-0-00-00-0,0000,0c0,0,00,0,0000,00000,000000,000,0000000,0000" fill="url00llo00"/>0
+0<circle r="=" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1713.svg b/test/ns-afl-svg/1713.svg
new file mode 100644
index 0000000..b9cf7de
--- /dev/null
+++ b/test/ns-afl-svg/1713.svg
@@ -0,0 +1,67 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M00,0000l00,00000l000,0z" strokm="0" fill="d0n"/>0
+0<path d="M00,0000l00,00000l000,00l000-00z" stroke="#000" fill="d0n"/>0
+0<path d="M00,0000l00,00v00l000,00h000l0000000000,00l000-00z" stroke="#000" fill="d0n"/>0
+0<path d="M00,0000l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="d0n"/>0
+0<path d="M00,0h00l00,00v00l000,0z" strokm="0" fill="d0n"/>0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="d0n"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l0000000000,00l000-00z" stroke="#000" fill="d0n"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="d0n"/>0
+0<text x="'" y="0" e="0" l="0" t-r="0"><![CDATA[0]]]
+0
+0
+0
+0]]
+0
+0
+0
+0
+0
+0
+0
+0]]]
+0
+0]]]
+0
+0
+0
+0]]]
+0
+0
+0
+0
+0
+0
+0
+0]]]
+0
+0
+0
+0]]]
+0
+0
+0
+0
+0]]
+0]]]
+0
+0
+0
+0]]]
+0
+0
+0
+0
+0
+0
+0
+0]]]
+0
+0
+0
+0]]]
+0
+0
+0
+0
+0]]>0</text>0</svg>
diff --git a/test/ns-afl-svg/1714.svg b/test/ns-afl-svg/1714.svg
new file mode 100644
index 0000000..aeb0b1e
--- /dev/null
+++ b/test/ns-afl-svg/1714.svg
@@ -0,0 +1,33 @@
+<svg l="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="py0ellow" rm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop p-c="0" offset="0"/>
+0<stop stop-color="a0s00s" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0
+0<pAth d="M00,00c0,0-8,00-20,000-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0
+0<pAth d="M00,00c0,000000000000000000-00 000-0 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000,00000000000000,000" f="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0-0000 00-000000000000000000 0000-00 000-000 000-00-00-00-000 000-0 00000000000000000000000000000,0000,00000000,000,0000,0c,0000,00000,00000"
+fill="#000" o="0"/>
+0
+0
+</svg>
diff --git a/test/ns-afl-svg/1715.svg b/test/ns-afl-svg/1715.svg
new file mode 100644
index 0000000..59755d8
--- /dev/null
+++ b/test/ns-afl-svg/1715.svg
@@ -0,0 +1,123 @@
+<svg Ã0="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<![CDATA[0]
+0]]>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<![CDATA[0]
+0]]>0
+0
+0
+0ë00 \ No newline at end of file
diff --git a/test/ns-afl-svg/1716.svg b/test/ns-afl-svg/1716.svg
new file mode 100644
index 0000000..81bffd0
--- /dev/null
+++ b/test/ns-afl-svg/1716.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE s00 PUBLIC "0" "0">
+<svg r="0" style="fill:p0o00rsv0">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:black;stroke-width:001cm" transform="000,000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:p0u0;stroke:b0a00m" transform="00000000,0000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e0 stroke:black;" transform="0000000000000,0000"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1717.svg b/test/ns-afl-svg/1717.svg
new file mode 100644
index 0000000..fa3165e
--- /dev/null
+++ b/test/ns-afl-svg/1717.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:r0d0 stroke:black;stroke-width:001cm" transform="translate(0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="H" style="fill: i0g00ero000bl000;stroke-width:0cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1718.svg b/test/ns-afl-svg/1718.svg
new file mode 100644
index 0000000..75882c8
--- /dev/null
+++ b/test/ns-afl-svg/1718.svg
@@ -0,0 +1,3 @@
+<svg Ks="0" viewBox="0">
+0<path d='M0,0a0,0 0,0,0-0,0l0,0a,' fill-rule='0'/>0
+0<path d='M0,0a0,0 0,0,0-0,0l0,0a,' fill-rule='0'/>0</svg>
diff --git a/test/ns-afl-svg/1719.svg b/test/ns-afl-svg/1719.svg
new file mode 100644
index 0000000..a33a6ef
--- /dev/null
+++ b/test/ns-afl-svg/1719.svg
@@ -0,0 +1,31 @@
+<svg xmlns="000000000000000000" id="py0ello0" rorm="0">
+0<stop stop-c="0" t="0"/>
+0
+0<circle r="4" cx="0" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M0,00c0-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,00,00,0000,0000,00000,000000,000,0000,000,000,0000000000,000000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000,0000,00000,000000,000,0000,000,000,0000000000000000000,0000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000000000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" x="0" style="fill: u0l" fill="url(#00=00"/>
+0<path d="000000000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" x="0" style="fill: url(#000000" fill="url(#00000"/>
+0<path d="M00,00c00000,00 000000000000000000000000000000000-00 000-000 000-00-00-00-000 00000000000000000000000000000000000000,000000,0000000000,00-0,00-00,000000,000,0000,000,0l0,0000000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000000000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" ix="0" style="fill: u0l" fill="url(#000000)"/>
+0<path d="000000000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" ix="0" style="fill: url(#r0000" fill="url(#00000"/>
+0<path d="M00,00c00000,000000000000000000 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 00000000000000000000000000000000,00000,000000,000,0000,0l0,000,0000000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000000000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<path d="000000000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" ix="0" style="fill: url(#000000" fill="url(#00000"/>
+0<path d="M00,00c000-0,00-00,0,00l000,0l0,0l00,0l0,0l0,0z M000000 00-00000,000000000 000000,00000000000000000=00,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="000000000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<path d="000000000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" ix="0" style="fill: url(#000000" fill="url(#0000000"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1720.svg b/test/ns-afl-svg/1720.svg
new file mode 100644
index 0000000..ff2a675
--- /dev/null
+++ b/test/ns-afl-svg/1720.svg
@@ -0,0 +1,68 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="q0`00"/>0
+0<e r="0" c="0" y="0" ot="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,20,0,23,,00c0,0-0,00-10,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-00000-00-00-000 000-0 00000000w000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000 00-00 000-00 0000-00 000-000 000-00-0000 0" id="0" style="fill: url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,00000000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-04-6-000080000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1721.svg b/test/ns-afl-svg/1721.svg
new file mode 100644
index 0000000..b8e180d
--- /dev/null
+++ b/test/ns-afl-svg/1721.svg
@@ -0,0 +1,6 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0z" stroke="#000" fill="n0d0"/>
+0
+0<path d="M0,0h0l0,0v0l0,0l0-0z" stroke="#000" fill="n0d0"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0</svg>
diff --git a/test/ns-afl-svg/1722.svg b/test/ns-afl-svg/1722.svg
new file mode 100644
index 0000000..edc3ea4
--- /dev/null
+++ b/test/ns-afl-svg/1722.svg
@@ -0,0 +1,387 @@
+<svg ns="0" fill="url(#pyYellow" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" m="0">
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="0" oolor="0" t="0"/>0
+0<stop stop-color="#000" offset=".4" y="0" ll="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="C"/>
+0
+0<stop stou-color="0" offset="0"/>
+0
+0
+0<stop stop-color="r000000000" ll="0"/>
+0<path d="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,00,000000000000000000000000000" id="0000" style="fill: url(#000000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,020,00v0" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" ll="0"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#000000" fill="url(#000e)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" ll="0"/>0
+0<path d="0000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#000e)"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#000w)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#000e)"/>0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#000e)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000000000c0000000000000000,000,0000,000,000000000000,000,0,00,0,00,0000,c00000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,5,00-0,00l-50-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-00-600000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" ll="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000e)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" ll="0"/>0
+0<path d="M00,00c090-0,00-00,020-00l0-00c0-0,0-00,10-00l20,0c0,0,00-0,14-00l0-00l9,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-8,00-00,000-00l0-20c0-0,0-00,-00100000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-00,100-00l0-20c000,0-00,00-00000,00"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-00,100-00l0-20c0-0,0-00,02-00l00,0c0,0,0000,000000000000,000,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-02c0-0,0-00,-00100.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" ll="0"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000e)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00o0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-00,100-00l0-20c000,0000,00-00000,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0" style="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#000e)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" _x="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-00,100-00l0-20c0-0,0-00,02-00l00,0c0,0,00-0,00-00l0-10l9,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000e)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" ll="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-00,100-00l0-20c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-00,124-00l0-20c0-0,0-00,10-00l24,0c0,0,00-0,04-05l0-10l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-00,124-00l0-20c0-0,0-00,10-00l24,0c0,0,00-0,04-05l0-10l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#0000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" ll="0"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-8,00-00,004-00l0-20c0-0,6-00,-00100.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-00,100-00l0-20c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" ll="0"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-00,100-00l0-20c0-0,0-00,02-00l00,0c0,0,00-0,00-05l0-10l9,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-00,104-00l0-20c0-0,0-00,02-00l20,0c0,0,00-0,00-05l0-10l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1723.svg b/test/ns-afl-svg/1723.svg
new file mode 100644
index 0000000..6ea4022
--- /dev/null
+++ b/test/ns-afl-svg/1723.svg
@@ -0,0 +1,4 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00,00l000-00v000z" stroke="#000" fill="n0n00ncl000e"/>0
+0<path d="M00,0000l00,00v00l000,00h000l000-000l000,00h000l000-00v000z" stroke="#000" fill="n0n00ncl000e"/>0
+0<path d="M00,0h00l00,00|0000000000000000000000000" fill="#000"/>0<![CDATA[0]]></svg>
diff --git a/test/ns-afl-svg/1724.svg b/test/ns-afl-svg/1724.svg
new file mode 100644
index 0000000..240aa42
--- /dev/null
+++ b/test/ns-afl-svg/1724.svg
@@ -0,0 +1,18 @@
+<svg xmlns="0000000000" xmlns:k="0" viewBox="0 0 1 2">
+0<radialGradient d="0" cx="0" cy="0" r="0" U000s="0"><op ot="0" s00000000000000000000000000000000000000000000000000000000000000000c="0"/><op ot="0"/></radialGradient>
+0<path d="M0,000A0,000000000000000000,00 00,00 00,000C000,00 00,00 00,0000 00,00 00,00 00,00" id="0" fill="p0c00wle00"/>
+0
+0<path d="M00,000A000,00 0,0,0 00,000C0000000000000-000 0000000000000000000000000000000000,00 00,000000000000000000000000000000000000000,00" id="0" fill="p0c00wle00"/>
+0
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,0000000,000 00 0 00-0 00-000-00-000 00-000 000-000 000 000 000 000 000 0-00-000-000-000-00-000-000-000-00-000
+00-000 00-000 000-000 000 0" fill="p0c00wle00"/>
+0
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000C000,0000-0-00-00 00-000-000 000 000 000 000 000 0-00-000-000-000-00-000-000-000-00-000
+00-000 00-000-00-000-00-000-00-000 00-000 00 0 00-0 00-000-00-000 00-000 000-000 000 000 000 000 000 00 000-000 000-000 000-000 000
+000 000 000-00 0000-00 000-00 000 0 0000l00 00-0 0000c00000000000 00
+000 00 00 00 000 00 000-00 000-00 000 00 000 00 000 00 000-00 000-000-00-000-000-000-000 0-00-00 00-00 00-00 000-00 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="p0c00wle00"/>
+0
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000C00000000-0-00-00 00-00 000-0 00 00 000 00 0000"
+transform="translate(0,0)scale(0,0"/>0<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+fill="#000" o0a="0"/>0<ellipse rx="3" ry="2" transform="rotate(0 0,0" fill="#000"
+a000y="0"/>0</svg>
diff --git a/test/ns-afl-svg/1725.svg b/test/ns-afl-svg/1725.svg
new file mode 100644
index 0000000..174e629
--- /dev/null
+++ b/test/ns-afl-svg/1725.svg
@@ -0,0 +1,8 @@
+<svg xmlns="0000000000" viewBox="0 0 0 0">0<path d="0" stroke="#000" fill="p0r0"/>0
+0<path d="00000,00" stroke="#000" fill="p0n0"/>0<svg xmlns="00000000000000000000000000" viewBox="0 0 0 0">
+0<path d="00" stroke="#000" fill="p0r0"/>0
+0<path d="00" stroke="#000" fill="p0r0"/>0
+0
+0<text x="0" y="0" t-ze="0" ll="0" t-ar="0"><![CDATA[0]]></text>0</svg>0
+0
+0<text x="0" y="0" font-size="0" fl="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1726.svg b/test/ns-afl-svg/1726.svg
new file mode 100644
index 0000000..9ef73ac
--- /dev/null
+++ b/test/ns-afl-svg/1726.svg
@@ -0,0 +1,41 @@
+<?l?>
+<!--0-->
+<svg xmlns:s="0" xmlns="00000000000000000000000000"
+d="0" width="0" height="0">
+0<defs>
+0<filter id="0" x="0" y="0" th="0" ht="0">
+0<feGaussianBlur on="0" id="0"/>
+0</filter>0
+0<clipPath id="0">
+0<le cx="0" cy="0" r="0" th="0" ht="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rt x="0" y="0" th="0" ht="0"/>
+0</clipPath>0
+0</defs>0
+0<g id="0">0
+0<!--0-->
+0<rect id="0" style="stroke:black;fill:"
+x="0" y="0" width="0" height="0"/>
+0<!--0-->
+0<rect id="0" style="fill:red;"
+x="0" y="0" width="0" height="0"/>0
+0<!--0-->
+0<rect id="0" style="stroke:black;fill:none"
+x="0" y="0" width="0" height="0"/>
+0<!--0-->
+0<rect id="0" style="fill:red" x="0" y="0" width="0" height="0"/>
+0<!--0-->
+0<rect id="0" style="fill:" x="0" y="0" width="0" height="0"/>
+0<!--0-->
+0<rect id="0" style="fill:red;" l-h="0"
+x="0" y="0" width="0" height="0"/>0
+0<!--0-->
+0<rect id="0" style="stroke:black;fill:none"
+x="0" y="0" width="0" height="0"/>
+0<!--0-->
+0<rect id="0" p-th="0" x="0" y="0" width="0" height="0"/>
+0<!--0-->
+0<rect id="0" style="fill:red;" p-th="0"
+x="0" y="0" width="0" height="0"/>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1727.svg b/test/ns-afl-svg/1727.svg
new file mode 100644
index 0000000..1ea89cc
--- /dev/null
+++ b/test/ns-afl-svg/1727.svg
@@ -0,0 +1,40 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0v0?" e="0" fill="p0n00cse000ye"/>0
+0
+0<path d="M0,0h0l0,0v0?" e="0" fill="p0n00ye"/>0
+0
+0
+0<path d="M00,0,00" Ve="0" fill="p0n00cse000ye"/>0
+0<path d="0" fill="p0n00cse000ye"/>0
+0
+0<path d="M0,0v00?" Ve="0" fill="p0n00ye"/>0
+0
+0<path d="M0,0h0l0,0v0?" Ve="0" fill="p0n00cse000ye"/>0
+0
+0<path d="M00,0hv0" Ve="0" fill="p0n00ses000ma"/>0
+0
+0<path d="M00,0,00" Ve="0" fill="p0n00cse000ye"/>0
+0<path d="M0,0h0l0,0,0" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M0,0h0l0,0v0?" Ve="0" fill="p0n00cse000ye"/>0
+0
+0<path d="M00,00l0" Ve="0" fill="p0n00sem000ma00"/>0
+0
+0<rath d="0" Ve="0" fl="0"/>0
+0<path d="0" fill="p0n00cse000ye"/>0
+0
+0<path d="M0,0h0l0,0v0?" Ve="0" fill="p0n00ye"/>0
+0
+0<path d="M0,0h0l0,0v0?" Ve="0" fill="p0n00cse000ye"/>0
+0
+0<path d="M00,0hv0" Ve="0" fill="p0n00cse000ce"/>0
+0<path d="0" fill="p0n00cse000ye"/>0
+0
+0<path d="M0,0h0l0,00v00?" Ve="0" fill="p0n00ye"/>0
+0
+0
+0<path d="M00,0,00" Ve="0" fill="p0n00cse000ye"/>0
+0<path d="M00,0h00l00,00,00" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000000000000000000"/>0</svg>
diff --git a/test/ns-afl-svg/1728.svg b/test/ns-afl-svg/1728.svg
new file mode 100644
index 0000000..a4e4f49
--- /dev/null
+++ b/test/ns-afl-svg/1728.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="l0n&lt;0"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1729.svg b/test/ns-afl-svg/1729.svg
new file mode 100644
index 0000000..d6084af
--- /dev/null
+++ b/test/ns-afl-svg/1729.svg
@@ -0,0 +1,115 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='w0d00' stroke='red'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='1' fill='black'/>0<circle cx='0' cy='0' r='5' f='0'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" ion="0" xmlns="0000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="blue"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g m="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g trm="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&Viewport2;</g>
+0<g id="0" height="px" ion="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="blue"/>
+0<g foize="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&i;</g>
+0<text x="0" y="0">0</text>0<svg tio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4" width="0" ht="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg><g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg ptRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transfurm="0"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBod="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg prbectRatio="0" viewBox="0 0 0 0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewGox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<text y="0">0</text>&t;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg ectRaTio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1730.svg b/test/ns-afl-svg/1730.svg
new file mode 100644
index 0000000..26869bc
--- /dev/null
+++ b/test/ns-afl-svg/1730.svg
@@ -0,0 +1,5 @@
+<svg xmlns="000000000000000000" xmlns:xlin0="0000" vieaBox="0">
+0
+0<path d="M00,0A000,00 0,0,0 00,0C00,00 00,00 00,000C0,00 00,00 00,000C0,00 00,00 00,00" id="0" fill="d0l00gra00"/><radialGradient id="0" cx="0" cy="0" r="0" nits="0"><op ot="0" op-c="0"/><op ot="0"/></radialGradient>
+0<path d="M00,000A0,00 0,0,0 00,000C00,00 00,00 00,0C000,00 00,00 00,000C000,00 00,00 00,00" id="0" fill="d0l00gra00"/>
+0<use xlin0:hf="0" transform="0"/>0</svg>
diff --git a/test/ns-afl-svg/1731.svg b/test/ns-afl-svg/1731.svg
new file mode 100644
index 0000000..a4a6079
--- /dev/null
+++ b/test/ns-afl-svg/1731.svg
@@ -0,0 +1,49 @@
+<?l?><!DOCTYPE v0 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c00ext000ch0000'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<circle cx='0' cy='i' r='5' fht='0' fill='l0c00ext000ch0000'/>0
+</g>0">
+<!ENTITY t "">
+<!ENTITY Viewport0 "<rect x='0' y='0' widtK='0' height='0'
+fill='none' stroke='a0u0'/>">
+]>
+<svg width="px" height="30px" i="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g t-e="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&X;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport0;</g>
+0<g d="0" transform="translate(00 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg t="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg p="0" viewBox="0 0 3 4" width="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>0<svg resctRatio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg o="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" a="0">
+0
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preservatio="0" v="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1732.svg b/test/ns-afl-svg/1732.svg
new file mode 100644
index 0000000..5f6fdbb
--- /dev/null
+++ b/test/ns-afl-svg/1732.svg
@@ -0,0 +1,45 @@
+<svg ns="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(55)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(0)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#00)" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0,0,00,0,00,00l0,00c0,0-0,00-00,00l000,0c00,0-00,0-00,00l00000000,000,0l00000000000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c0,7-8,10-23,13c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="in" cy="0" fill="#000"/>
+0
+
+0
+0<path d="M70,87c090-0,00-03,120,50v1" fill="url(#py0ellow)"/>0
+0
+0
+0
+<svg width="px" height="px" i="0" xmlns="0" fill="url(#pyBlue)"/>
+0<path d="M00,00c0,7-8,10-23,13c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="in" cy="0" fill="#000"/>
+0
+
+0
+0<path d="M70,80c090-8,00-20,120,50v1" fill="url(#py0ellow)"/>0
+0
+0
+0
+<svg width="px" height="px" on="0" xmlns="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#pyBlue)"/>
+0<path d="M70,00c090-8,00-20,104-10l0-20c0-7,0-12,10-00l20,0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="in" cy="0" fill="#000"/>
+0
+
+0
+0<path d="M70,87c090-8,00-20,120,50v1" fill="url(#py0ellow)"/>0
+0
+0
+0
+<svg width="px" height="px" on="0" xmlns="000000000000000000000000000000000000000000000000000000000000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="M70,87c090-8,00-20,120,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1733.svg b/test/ns-afl-svg/1733.svg
new file mode 100644
index 0000000..019f074
--- /dev/null
+++ b/test/ns-afl-svg/1733.svg
@@ -0,0 +1,14 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h0-00z" stroke="#000" fill="n0v0"/>0
+0<path d="M0,0h0l0,0v0l0,0v0l0-0v00" font-size="0" stroke="#000" fill="n0v0"/>0
+0<path d="00000000" e="0" stroke="#000" fill="n0v0"/>0
+0
+0<path d="M0,0h0l0,0v00l0,00v0g" vox="0" stroke="#000" fill="n0v0"/>0
+0<path d="M00,0,00" fitroke="0" fill="n0v0"/>0
+0<path d="M00,0h00l00,00v00l000,00v00l000,00l0-00v000" font-size="0" stroke="#000" fill="n0v0"/>0
+0<path d="M00,0,00" e="0" stroke="#000" fill="n0v0"/>0
+0
+0<path d="M00,0h00l00,00v00l0,00v0g" viewBox="0" stroke="#000" fill="n0v0"/>0
+0<path d="M00,0,00" fill="#000"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[0
+0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1734.svg b/test/ns-afl-svg/1734.svg
new file mode 100644
index 0000000..2a76e8f
--- /dev/null
+++ b/test/ns-afl-svg/1734.svg
@@ -0,0 +1,16 @@
+<svg xmlns="00000000000000000000000000" viewBox="0">
+0<path d="M00,0h00l00,00v00l0,00l000-00z" stroke="#000" fill="n0`0"/>0
+0
+0<path d="M00,0h00l00,00v00l0,00l000-00z" stroke="#000" fill="n0`0"/>0
+0<path d="l00,00v00l0,00z" stroke="#000" fill="n0`0"/>0
+0<path d="M00,0h00l00,00v00l000,00h00h00l0" r="0" style="fill:blue;stroke:black;stroke-width:001cm" transform="translate(0,0"/>
+0<circle cx="c" cy="cm" r="1" style="fill:green;stroke:black;stroke-width:001cm" transform="" fill="rgb0000000000" l-y="0" py="0" er="0"/>
+0<g id="0" x="0" y="0" nr="0">
+0<rect id='0' width="0" height="0" fill="rgb0000000000" l-o="0" py="0"/>
+0<path d="l00,00v00l000,00z" stroke="#000" fill="n0`0"/>0
+0<path d="M00,0h00l00,00v00l0,000-00" r="0" style="fill:blue;stroke:black;stroke-width:001cm" transform="translate(0,0"/>
+0<circle cx="c" cy="cm" r="1" style="fill:green;stroke:black;stroke-width:001cm" transform="" fill="rgb0000000000" l-o="0" py="0" er="0"/>
+0<g id="0" x="0" y="0" nr="0">
+0<rect id='0' width="0" height="0" fill="rgb0000000000" l-o="0" pa="0"/>
+0</g>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1735.svg b/test/ns-afl-svg/1735.svg
new file mode 100644
index 0000000..da6af6a
--- /dev/null
+++ b/test/ns-afl-svg/1735.svg
@@ -0,0 +1,7 @@
+<svg xmlns="000000000000000000" xmlns:xlin0="0" viewBox="0 0 1 2">
+0<radialGradient d="0" x="0" y="0" r="0" grntUnits="0"><op ot="0" top-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,000A0,00 0,0,0 00,000C00,00 00,00 00,0C000,00 00,00 00,000C000,00 00,00 00,00" id="0" fill="l0c00cle00"/>0
+0<radialGradient id="0" cx="0" cy="0" r="0" grntUnits="0"><stop ot="0" stop-c="0"/><stop ot="0"/></radialGradient>
+0<path d="00000000000000000000000000000000000000000000000000000000,00000,00" id="0" fill="l0c00cle00"/>
+0<use xlin0:href="0" transform="0"/>0
+0<use xlin0:href="0" transform="0"/>0</svg>
diff --git a/test/ns-afl-svg/1736.svg b/test/ns-afl-svg/1736.svg
new file mode 100644
index 0000000..6f358dc
--- /dev/null
+++ b/test/ns-afl-svg/1736.svg
@@ -0,0 +1 @@
+<s>0] \ No newline at end of file
diff --git a/test/ns-afl-svg/1737.svg b/test/ns-afl-svg/1737.svg
new file mode 100644
index 0000000..f1eb918
--- /dev/null
+++ b/test/ns-afl-svg/1737.svg
@@ -0,0 +1,303 @@
+<svg xmlns="0000000000000000000000000000000000000000000000000000000" fill="0" n="0">
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="0" e="0">
+0<le id="0" cx="0" cy="0" r="0" soke="0"
+se-h="0"/>
+0<text x="0" y="0">0</text>
+0<efè00>0
+0
+0<linent id="0" rorm="0">
+0
+0<efè00>
+0<efè00 m="">
+0<efè00>
+0
+0<efè00>
+0<efè00 g="">0 0<efè00 s="" B="">
+0<efè00>
+0<efè00 m="">
+0<efè00>
+0<efè00 m="">
+0<efè00>
+0<efè00>0
+0
+0<efè00>
+0<efè00>0 0<efè00>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>0
+0<defs>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>0
+0<lefè00 m="">
+0<lefè00>0 0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00 x="">0
+0
+0<defs>
+0<linent id="0" rorm="0">
+0<efè00>
+0<lefè00>0
+0
+0<lefè00>
+0<Pefè00 x="">0 0<lefè00 x="">
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0<defs>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè00>
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" rorm="0">
+0
+0<efè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lt id="0" rorm="0">
+0
+0<efè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" rorm="0">
+0<efè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè00>
+0<lefè00>
+0<le>
+0
+0<lefè00>
+0<lefè00>0 0<lefè00>
+0<lVfè00>0
+0
+0<defs>
+0<linent id="0" rorm="0">
+0
+0<efè00>
+0<lefè00 m="">
+0<lefè00>0
+0
+0<lefè00 m="">
+0<lefè00>0 0<lefè00>
+0<lefè00 m="">
+0
+0
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>0 0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>0
+0
+0<lefè00 m="">
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" rorm="0">
+0
+0<efè00>
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<linent id="0" rorm="0">
+0
+0<efè00 m="">
+0<lefè00>
+0
+0
+0<lefè00>
+0<leWè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>0<lefè00>
+0<lefè00>
+0<lefè00 x="">
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0<defs>0
+0
+0<lefè00 d="">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<leWè00>0 0<lefè0000 x="">
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0<lefè00>
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0<defs>0
+0
+0<lefè00>
+0<lefè00 x="">0 0<lefè0000>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" rorm="0">
+0<efè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<le>
+0
+0<lefè00>
+0<lefè00 g="">0 0<lefè0000>
+0<lefè00>0
+0
+0<defs>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<le>
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<linent id="0" grorm="0">
+0
+0<lefè000 x="">
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00 x="">0 0<lefè0000>
+0<lefè00 m="">
+0<le>
+0
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1738.svg b/test/ns-afl-svg/1738.svg
new file mode 100644
index 0000000..043cd73
--- /dev/null
+++ b/test/ns-afl-svg/1738.svg
@@ -0,0 +1,18 @@
+<svg xmlns="0000000000" viewBox="0" stroke-width=" ">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="000000000"><stop stop-color="#000" offset="0"/>
+0
+0</linearGradient>
+0<linearGradient id="000000" s="0">
+0<Zp stopor="0" of="0"/>
+0<stop stop-c="0" ot="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0" id="0" fill="url(#00000e)"/>
+0<path d="M0,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000z" fill="url(#00000e)"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1739.svg b/test/ns-afl-svg/1739.svg
new file mode 100644
index 0000000..898cad1
--- /dev/null
+++ b/test/ns-afl-svg/1739.svg
@@ -0,0 +1,22 @@
+<svg xmlns="000000000000000000" viewBox="0">
+0<g fill="none">
+0<ellipse stroke="#000000" rx="6" ry="4"/>
+0<ellipse e="0" rx="0" ry=")"/>
+0<ellipse stroke="d0f00cf" rx="6" ry="4" transform="0"/>
+0<ellipse stroke="#000000" rx="0" ry=")"/>
+0<ellipse stroke="d0f00cf" rx="6" ry="4" transform="rotate(60)"/>
+0<circle stroke="#000000" r="4"/>
+0</g>
+0<g fill="#000000" stroke="white">
+0<cw ll="0"/>
+0<circle cy="0" stroke="d0f00cf" rx="0" ry="0" r="9"/>
+0<circle cx="0" cy="0" r="9"/>
+0<cirFle cx="0" cy="0"/>
+0<circle e="0" r="4"/>
+0</g>
+0<g fill="#000000" stroke="white">
+0<cw ll="0"/>
+0<circle cy="0" stroke="d0f00cf" rx="0" ry="0" r="9"/>
+0<circle cx="0" cy="0" r="9"/>
+0<circle cx="0" cy="0" r="9"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1740.svg b/test/ns-afl-svg/1740.svg
new file mode 100644
index 0000000..1a143ec
--- /dev/null
+++ b/test/ns-afl-svg/1740.svg
@@ -0,0 +1,128 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0&a;<rect x='0' y='0' width='0' height='0' fill='0' stroke='0'/>0<g transform='0'>0<_ircle cx='0' cy='0' r='0' fill='0'/>0<circle cx='0' cy='0' r='0' fill='0'/>0<circle cx='0' cy='0' r='0' fill='0'/>0<pat. d='0' stroke='0' stroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='0' stroke='0'/>">]><svg w="0" hght="0" ion="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" zidth="0" he="0" ill="0" se="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0
+0<g trarm="0">&Smile;</g>
+0<text x="0" y="0">0</text>0<g m="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&Viewport0;</g>
+0<g id="0" t="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>0<svg tio="0" vie="0"
+th="0" hght="0">&Smile;</svg>
+0<g m="0"><text y="0">0</text>&V;
+0<svg pro="0" vox="0" h="0" ht="0">&Smile;</svg></g>
+0<g trorm="0"><text y="0">0</text>&p;
+0<svg pre="0" vie="0" width="0" hght="0">&e;</svg></g>
+0</g>
+0<g id="0" trarm="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pre="0" vie="0" width="0" hght="0">&Smile;</svg></g>
+0<g m="0"><text y="0">0</text>&Viewport0;
+0<svg tio="0" Box="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0"
+th="0" ight="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0"
+idth="0" ight="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0" width="0" hght="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg pectRatio="0" viewBox="0" width="0" hght="0">&Smile;</svg></g>
+0</g>
+0<g id="0" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0" width="0" hght="0">&Smile;</svg></g>
+0<g m="0"><text y="0">0</text>&Viewport0;
+0<svg eservRtio="0" viewBox="0"
+idth="0" ight="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0"
+idth="0" ight="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg psetRatio="0" viewBox="0"
+idth="0" ight="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0" h="0" hght="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" hght="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0" width="0" hght="0">&Smile;</svg></g>
+0</g>
+0<g id="0" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0" width="0" heh="0" ight="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg pectRatio="0" viewBox="0"
+idth="0" ight="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pectRatio="0" viewBox="0"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transfurm="0"><text y="0">0</text>&Viewport0;
+0<svg pectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg esctRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg pservatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg pectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg esctRatio="0" viewBod="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg pservatio="0" viewBox="0" width="0" height="0">&e;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg pectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewGox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&t;
+0<svg pectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&t;
+0<svg preseAspectRaTio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1741.svg b/test/ns-afl-svg/1741.svg
new file mode 100644
index 0000000..247ba42
--- /dev/null
+++ b/test/ns-afl-svg/1741.svg
@@ -0,0 +1,4 @@
+<svg xmlns="0000000000" Box="0" stroke-width="0">
+0
+0<![CDATA[0]]><Ê‹defs>0<![CDATA[0]]><Ê‹defs>
+0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1742.svg b/test/ns-afl-svg/1742.svg
new file mode 100644
index 0000000..b421347
--- /dev/null
+++ b/test/ns-afl-svg/1742.svg
@@ -0,0 +1,8 @@
+<svg viewBox='0 0 6 2' xmlns='00'>
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,0,0h000c00,0-0,0,0,0h00c0,0,0,0,0,0h000c00,0-0,0,0,00c00-0,0-00-0,00-00' fill='silver' stroke='b0a00xml000ng00000'/>
+0
+0<path d='M00,00c00,0,0-00-0,00-00' fill='silver' stroke='b0a00xml000ng00000'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,0,0h000c00,0-0,0,0,0h00c0,0,0,0,0,0h000c00,0-0,0,0,00c00-0,0-00-0,00-00' fill='silver' stroke='b0a00xml000ng00000'/>
+0
+0<path d='M00,00c00,0,0-00-0,00-00' fill='silver' stroke='b0a00xml000ng00000'/>0</svg>
diff --git a/test/ns-afl-svg/1743.svg b/test/ns-afl-svg/1743.svg
new file mode 100644
index 0000000..8c5a042
--- /dev/null
+++ b/test/ns-afl-svg/1743.svg
@@ -0,0 +1,34 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="0"/>
+0<stop r="0" offset="0"/>
+0
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="000,000000,00000000" fill="url(#00=00"/>
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,00,0,00,0000,0000,00000,000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" l="0"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#00B00"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#00B00"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00=00"/>
+0<path d="M70,80c090-8,10-20,104,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-8,00-20,120,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1744.svg b/test/ns-afl-svg/1744.svg
new file mode 100644
index 0000000..fe4ecc5
--- /dev/null
+++ b/test/ns-afl-svg/1744.svg
@@ -0,0 +1,37 @@
+<?l?>
+<!DOCTYPE s PUBLIC "0" "0"[ <!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='000'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='S' fill='black'/>0<circle cx='0' cy='0' r='1' fill='t0a00'/>0<path d='M0 0A0 0 0 0 0 0 0' stroke='black' stroke-width='2'/>0</g>0">
+<!ENTITY t "">
+<!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='n0n0' stroke='blue'/>">
+]>
+<svg width="px" height="30px" n="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" fill="none" stroke="b0u0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport2;</g>
+0<g d="0" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg o="0" viewBox="0 0 0 0"
+th="0" e="0">&S;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4"
+h="0" ht="0">&Smile;</svg></g>
+0</g>
+0<g id="0" sfoÅ0="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4"
+Th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" dth="0" ht="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1745.svg b/test/ns-afl-svg/1745.svg
new file mode 100644
index 0000000..6ee7dfc
--- /dev/null
+++ b/test/ns-afl-svg/1745.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-0v0?" stroke="#000" fill="n0n00cse000"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-0v00z" fill="#000"/>0
+0<text x="0" y="0" t-se="0" fill="0" tt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1746.svg b/test/ns-afl-svg/1746.svg
new file mode 100644
index 0000000..1b4d2ae
--- /dev/null
+++ b/test/ns-afl-svg/1746.svg
@@ -0,0 +1,35 @@
+<svg s="0"><!--0-->0
+0<path d="M00,0,00" l="0"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="0"/>0
+0<text x="0" t="0" l="0"/>0
+0<path d="00000000" fill="#p00"/>0
+0<text x="'" y="0" e="0" l="0" ext-ar="0"><![CDATA[0]]>0</text>0
+0<path d="M00,0h00"/>0
+0<text x="'" y="0" g="0" l="0" ter="0"><![CDATA[0]]>0</text>0
+0<path d="M0,0h0l0,0v0l0 0-" stroke="#000" l="0"/>0
+0<path d="M00,0,00" l="0"/>0
+0<text x="0" stroke="0" l="0"/>0
+0<path d="M00,0,00" l="0"/>0
+0<text x="'" y="0" g="0" ll="0" ext-gr="0"><![CDATA[0]]]]>0</text>0
+0<path d="M0,0h0l0,0v0l0 0-" stroke="#000" fl="0"/>0
+0<path d="M00,0,00" fill="#000"/>0
+0<text x="0" stroke="0" ll="0"/>0
+0<path d="M00,0,00" fill="#000"/>0
+0<text x="'" y="0" g="0" ll="0" ext-ar="0"><![CDATA[0]]>0</text>0<path d="M00,0h00"/>0
+0<text x="0" st="0" ll="0"/>0
+0<path d="00000000" fill="#p00"/>0
+0<text x="'" y="0" g="0" ll="0" ext-ar="0"><![CDATA[0]]>0</text>0
+0<path d="M00,0h00"/>0
+0<text x="'" y="0" g="0" ll="0" ter="0"><![CDATA[0]]>0</text>0
+0<path d="M0,0h0l0,0v0l0 0-" stroke="#000" ll="0"/>0
+0<path d="M00,0,00" fill="#000"/>0
+0<text x="0" stroke="0" ll="0"/>0
+0<path d="M00,0,00" fill="#000"/>0
+0<text x="'" y="0" e="0" ll="0" ext-gr="0"><![CDATA[0]]]]>0</text>0
+0<path d="M0,0h0l0,0v0l0 0-" stroke="#000" ll="0"/>0
+0<path d="M00,0,00" fill="#000"/>0
+0<text x="0" stroke="0" ll="0"/>0
+0<path d="M00,0,00" fill="#000"/>0
+0<text x="'" y="0" e="0" ll="0" text-gr="0"><![CDATA[0]]>0</text>0</svg>
diff --git a/test/ns-afl-svg/1747.svg b/test/ns-afl-svg/1747.svg
new file mode 100644
index 0000000..c85feed
--- /dev/null
+++ b/test/ns-afl-svg/1747.svg
@@ -0,0 +1,30 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="0000000000">0<style e="0">
+0
+0</style>
+0<g style="0">
+0
+<svg xmlns="000000000000000000">
+0<style te="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="0" r="1" style="stroke-width:001cm" transform="translate(0"/>
+0<circle cx="cm" cy="0" r="1" style="0"/>
+0<circle cx="cm" cy="0" r="H" style="fill:g0e00o{e000ac0;" m="0"/>
+0
+0<circle cx="cm" cy="cm" r="H" style="fill:g0e00o{e000ac0;" transform="0"/>
+0<circle cx="cm" cy="cm" r="H" style="fill:g0e00o{e000ac0;" transform="translate(0,0)"/>
+0
+0<circle cx="cm" cy="cm" r="H" style="fill:g0e00o{e000ac0;" transform="translate(0,0)"/>
+0</g>0</svg>
+0<circle cx="cm" cy="cm" r="1" style="stroke-width:001cm" transform="translate(0"/>
+0<circle cx="cm" cy="cm" r="1" style="0"/>
+0<circle cx="cm" cy="cm" r="H" style="fill:g0e00o{e000ac0;" transform="translate(0,0)"/>
+0
+0<circle cx="cm" cy="cm" r="H" style="fill:g0e00o{e000ac0;" transform="0"/>
+0<circle cx="cm" cy="cm" r="H" style="fill:g0e00o{e000ac0;" transform="translate(0,0)"/>
+0
+0<circle cx="cm" cy="cm" r="H" style="fill:g0e00o{e000ac0;" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1748.svg b/test/ns-afl-svg/1748.svg
new file mode 100644
index 0000000..8cfcae0
--- /dev/null
+++ b/test/ns-afl-svg/1748.svg
@@ -0,0 +1,116 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0a00hor00'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='0000000'/>0<circle cx='e' cy='0' r='1' fill='b0a00'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='ex' height='0'
+fill='none' stroke='b0u0'/>">]><svg width="px" height="30px" ion="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0"
+stroke="000"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&r;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport2;</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" Box="0"
+h="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>0
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&t;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg presctRatio="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg preservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" EiewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg prbvctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg ectRaTio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1749.svg b/test/ns-afl-svg/1749.svg
new file mode 100644
index 0000000..67e73cf
--- /dev/null
+++ b/test/ns-afl-svg/1749.svg
@@ -0,0 +1,15 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:b0a00;stroke-width:001cm" m="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:000000000000"/>
+0<circle cx="cm" cy="0" r="1" style="fill:g0m00mmm000me000000;stroke-width:001cm" transform="0" d="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:000000000000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0m00mmm000me000000;stroke-width:001cm" transform="translate(000,000)"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:g0m00mmm000me000000;stroke-width:001cm" transform="translate(000,000)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1750.svg b/test/ns-afl-svg/1750.svg
new file mode 100644
index 0000000..3519150
--- /dev/null
+++ b/test/ns-afl-svg/1750.svg
@@ -0,0 +1,18 @@
+<?l?>
+<!--0-->
+<sv xmlns:c="0" xmlns="000000000000000000" xmlns:k="0" xmlns:sodipodi="00" xmlns:inkscape="00t"
+th="0"
+gt="0" id="0" sodipodi:it_À00000000="0">
+0<defs>
+0<fr
+t_À0="0">
+0<defs>
+0<fr inkscape:ollect="0" id="0">
+0<aanBlu inkscape:output_À00000000="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" it_À000000="0">
+0<defs>
+0<fr inkut_À00000000="0">
+0<defs>
+0<fr inkscape:collect="0" on="0" id="0"/>0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1751.svg b/test/ns-afl-svg/1751.svg
new file mode 100644
index 0000000..5adfe68
--- /dev/null
+++ b/test/ns-afl-svg/1751.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="R" r="1" style="fill:red;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cx="c" cy="cm" r="1" style="fill:green;stroke:b0i00;stroke-width:1cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1752.svg b/test/ns-afl-svg/1752.svg
new file mode 100644
index 0000000..0d51ac8
--- /dev/null
+++ b/test/ns-afl-svg/1752.svg
@@ -0,0 +1,46 @@
+<svg v='0' xmlns='000' d='0' fill='s0l00tax000ns00000' strofill='0' stroke='0'>
+0<path d='M0,0c0,0-0,0-0 0-' filwidth="0"/>
+0<path d="M0,00L00,00Z" stroke="#000" fill="#000" stroke-width="0"/>
+0<g transform="scale(0)0">
+0<pawh d="0" l="0"/>
+0</g>
+0<g transform="translate(0,0)scale(0" stroke-width="0">0
+0<g transform="scale(0)translate(0,0)">0<pawh d="0" l="0"/>
+0</g>
+0<g transform="translate(0,0)scale(0" stroke-width="2">
+0
+0<path d="M00,00c00,0,00-00,00-00c0,0,00,00,00,00h00c0,0,0,00,00,00l00,0l000-0v00h0v000z" stroke="#000" fill="#000"/>
+0</g>
+0
+0
+0<path d="M00,00c00,0,00-00,00-00c0,0,00,00,00,00h00c0,0,0,00,00,00l00,0l000-0v00h0v000z" e="0" fill="#000"/>
+0</g>
+0<g transform="translate(0,0)">
+0<pawh d="0" l="0"/>
+0</g>
+0<g transform="translate(0,0)scale(5" stroke-width="2">0
+0<g transform="scale(0)translate(0,0)">
+0<pawh d="0" l="0"/>
+0</g>
+0<g transform="translate(0,0)scale(0" stroke-width="2">
+0
+0<path d="M00,00c00,0,00-00,00-00c0,0,00,00,00,00h00c0,0,0,00,00,00l00,0l00-0v00h000v000z" stroke="#000" fill="#000"/>
+0</g>
+0
+0
+0<path d="M00,00c00,0,00-00,00-00c0,0,00,00,00,00h00c0,0,0,00,00,00l00,0l00-0v00h000v000z" e="0" fill="#000"/>
+0</g>
+0<g transform="translate(0,0)scale(.25" stroke-width="2">
+0<g fill="n0n0">
+0<ellipse stroke="#000" rx="6" ry="4"/>
+0<ellipse stroke="#000" rx="6" ry="4" transform="rotate(6)"/>
+0<ellipse stroke="#000" rx="6" ry="4" transform="rotate(6)"/>
+0<circle stroke="#000" r="4"/>
+0</g>
+0<g fill="#000" stroke="#000">
+0<circle fill="#000000" r="3"/>
+0<circle cy="0" r="9"/>
+0<circle cx="0" cy="0" r="9"/>
+0<circle cx="0" cy="0" r="9"/>
+0</g>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1753.svg b/test/ns-afl-svg/1753.svg
new file mode 100644
index 0000000..4182091
--- /dev/null
+++ b/test/ns-afl-svg/1753.svg
@@ -0,0 +1,3 @@
+<svg xmlns="00000000" ry="0" style="fill: url(#00)stroke: n0n00 stroke-width: " width="g" viewBox="0 0 0 0">
+0<paty d="0" sle="0"/>
+0<rect height="0" id="0" rx="0" ry="0" style="fill: url(#000000)stroke: n0n00 stroke-width: " width="0" x="0" y="0"/>0</svg>
diff --git a/test/ns-afl-svg/1754.svg b/test/ns-afl-svg/1754.svg
new file mode 100644
index 0000000..f76303f
--- /dev/null
+++ b/test/ns-afl-svg/1754.svg
@@ -0,0 +1,100 @@
+<?l?>
+<svg version="0" xmlns="000" height="0" style="0" n="0">
+0<script e="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g d="0" fill="blue" style="0">
+0<circle d="0" cx="0" cy="0" r="5" stroke="f0a00ebr000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0
+0
+0
+0<script e="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g d="0" fill="blue" style="0">
+0<circle d="0" cx="0" cy="0" r="5" stroke="f0a00ebr000"
+stroke-width="3"/>0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0
+0
+0
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0a00ebr000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/1755.svg b/test/ns-afl-svg/1755.svg
new file mode 100644
index 0000000..e1cd7ce
--- /dev/null
+++ b/test/ns-afl-svg/1755.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="R" r="1" style="fill:r000000000000"/>0<circle cx="cm" cy="C" r="1" style="fill:b0u0;stroke:t0a00lns000;"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:t0a00lns000;stroke-width:001cm" transform="0" m="0"/>0<circle cx="u" cy="cm" r="1" style="fill:blue;stroke:t0a00lns000;stroke-width:001cm" transform="translate(0,000000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:t0a00lns000;stroke-width:001cm" transform=""/>
+0<circle cx="cm" cy="cm" r="1" style="fill:000000 stroke:black;stroke-width:001cm" transform="translate(000,000)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1756.svg b/test/ns-afl-svg/1756.svg
new file mode 100644
index 0000000..c7da6f4
--- /dev/null
+++ b/test/ns-afl-svg/1756.svg
@@ -0,0 +1,8 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,00v0" fill="m0v0"/>0
+0
+0<path d="M0,0h0l0,00v0" fill="m0v0"/>0
+0<path d="M0,0h0l,0" stroke="#000" fill="m0v0"/>0
+<path d="M0,0h0-,0" stroke="#000" fill="m0v0"/>0
+0<pZth d="0" fl="0"/>0
+0<text x="0" y="0" t-e="0" ll="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1757.svg b/test/ns-afl-svg/1757.svg
new file mode 100644
index 0000000..8b96b96
--- /dev/null
+++ b/test/ns-afl-svg/1757.svg
@@ -0,0 +1,64 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M0,0h00l00,00v00,00l000" stroke="#000" fill="n0n00ncl000e"/>0
+0<path d="M00,0h0l000-00v000z" stroke="#000" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h0000000l000000000" stroke="#000" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00v0L00000000000" stroke="#000" fill="n0n00ncl000e"/>0
+0<path d="M00,0h00l00,00v00l000,00l000,00000" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-000l000,00l000-00v000z" stroke="#000" fill="n0n00ncl000e"/>0<path d="M00,0h0S00" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,0l000,00h000l000-000l000,00l000-00v000z" stroke="#000" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-000l000,00h000l000-00Z0000" stroke="#000" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00v0L00000000000" stroke="#000" fill="n0n00ncl000e"/>0
+0<path d="M00,0h00l00,00v00l000,00l000,00000" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-000l000,00l000-00v000z" stroke="#000" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-000l000,00h000l000-00Z0000000000000000000000000000" stroke="#000" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-000l000,00h000l000-00Z0000" stroke="#000" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00v0L,0000000000" stroke="#000" fill="n0n00ncl000e"/>0
+0<path d="M00,0h00l00,00v00l000,000l000,00l000-00v000z" stroke="#000" fill="n0n00ncl000e"/>0<path d="M00,0h0S00" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,0l000,00h000l000-000l000,00l000-00v000z" stroke="#000" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-000l000,00h000l000-00Z0000" stroke="#000" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00v0L,0000000000" stroke="#000" fill="n0n00ncl000e"/>0
+0<path d="M00,0h00l00,00v00l000,00l000,00000" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-000l000,00l000-00v000z" stroke="#000" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-000l000,00h000l000-00Z0000000000000,00000000000000" stroke="#000" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-000l000,00h000l000-00Z0000" stroke="#000" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00v0L,000-00-000" stroke="#000" fill="n0n00ncl000e"/>0
+0<path d="M00,0000l00,00v00l000,00l000,000-0" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-000l000,00l000-00v000z" stroke="#000" fill="n0n00ncl000e"/>0<path d="M00,0h0S00" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,0l000,00h000l000-000l000,00l000-00v000z" stroke="#000" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-000l000,00h000l000-00Z0000" stroke="#000" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00l000,000-0" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-000l000,00l000-00v000z" stroke="#000" fill="n0n00ncl000e"/>0<path d="M00,0h0S00" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,0l000,00h000l000-000l000,00l000-00v000z" stroke="#000" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-000l000,00h000l000-00Z0000" stroke="#000" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00v0L,000-00-000" stroke="#000" fill="n0n00ncl000e"/>0
+0<path d="M00,0000l00,00v00l000,00l000,000-0" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-000l000,00l000-00v000z" stroke="#000" fill="n0n00ccl000e"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-0000-0000" stroke="#000" fill="n0n00ncl000e"/>0
+0<![CDATA[0]]></svg>
diff --git a/test/ns-afl-svg/1758.svg b/test/ns-afl-svg/1758.svg
new file mode 100644
index 0000000..7e5c1a9
--- /dev/null
+++ b/test/ns-afl-svg/1758.svg
@@ -0,0 +1,86 @@
+<?l?>
+<svg version="0" xmlns="0000000000000000000000000000" width="0" height="0" e="0" on="0">
+0
+0
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0v00ric0"
+sh="0"/>0
+0<g id="0" width="0" height="0" style="0" on="0">
+0
+0
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0v00ric0"
+th="0"/>0
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0v00ric0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>
+0
+0
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0v00ric0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>
+0
+0
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0v00ric0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>
+0
+0
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0v00ric0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/1759.svg b/test/ns-afl-svg/1759.svg
new file mode 100644
index 0000000..efffa91
--- /dev/null
+++ b/test/ns-afl-svg/1759.svg
@@ -0,0 +1,15 @@
+<svg xmlns="00000000000000000000000000" id="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient x1="0" y1="0" x2="0" y2="5" id="0pen0earchg">
+0<stop offset="0" stop-color="#000000" t0="0"/>
+0<stop offset="0" stop-color="#000000" y="0"/>
+0<stop offset="0" stop-color="#000000" y="0"/>
+0</linearGradient>
+0</defs>
+0<g transform="scale(9)">
+0<rect width="0" height="0" r="0" r0="0" x="0" y="0" fill="#000000"/>
+0<rect width="0" height="0" r="0" r0="0" x="0" y="0" fill="#000000"/>
+0<line th="0" he="0" rx="0" ry="0" x="0" y="0" fill="url(#0pen0earchg)"/>
+0<path fill="none" stroke="#000" stroke-width="6" d="M0 0A0 0 0 0 0 0,0A0 0 0 0 0 0 00z" transform="matrix(0,0,0,6,0,0)"/>
+0<rect fill="#000" stroke="none" width="0" height="0" x="0" y="0" transform="matrix(0..0.0,7,0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1760.svg b/test/ns-afl-svg/1760.svg
new file mode 100644
index 0000000..8969e44
--- /dev/null
+++ b/test/ns-afl-svg/1760.svg
@@ -0,0 +1,9 @@
+<svg s="0" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v0,00v0h00v000z" stroke="#000" fill="d0n0"/>0
+<path d="M00,0h00l00,00l00,00z" stroke="#000" fill="d0n0"/>0
+0<path d="M00,0h00l00,00v00l0,0l0,00l000-00v0z" stroke="#000" fill="d0n0"/>0
+0<path d="M00,0h0h00l00,00v00l000,00h00v000z" stroke="#000" fill="d0n0"/>0
+0<path d="M00,0h00l00,00l00,00z" stroke="#000" fill="d0n0"/>0
+0<path d="M0-0v000z" fill="#000"/>0
+0<text x="0" y="z" l="0"/>0
+0<text x="0" y="0" t-e="0" l="0" k-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1761.svg b/test/ns-afl-svg/1761.svg
new file mode 100644
index 0000000..e25b983
--- /dev/null
+++ b/test/ns-afl-svg/1761.svg
@@ -0,0 +1,13 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h000000000000000"/>0
+0<path d="M00,0h00l00,00v0000" fill="n&lt;o00tra000or00"/>0
+0<path d="0000000000"/>0
+0<path d="M00,0h00l00,00v0000" fill="n&lt;o00tra000or00"/>0
+0<path d="M00,0000-0" fill="#000"/>0
+0<text x="0" z="0" stroke="0" ll="0"/>0
+0<path d="M00,0h00l00,00v0000" fill="n&lt;o00tra000or00"/>0
+0<path d="M00,0000m0"/>0
+0<path d="M00,0h00l00,00v0000" fill="n&lt;o00tra000or00"/>0
+0<path d="M00,0000-0" fill="#000"/>0
+0<text x="0" z="0" t-se="0" ll="0"/>0
+0<text x="0" z="0" t-e="0" ll="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1762.svg b/test/ns-afl-svg/1762.svg
new file mode 100644
index 0000000..db566e1
--- /dev/null
+++ b/test/ns-afl-svg/1762.svg
@@ -0,0 +1,84 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="0" m="0">
+0<stop o-c="0" e="0"/>
+0<stop r="0" t="0"/>
+0</linearGradient>
+0<linearGradient href="0" id="pyBlue" x="0">
+0<defs>
+0<linearGradient id="0" g="0">
+0<sp p-c="0" t="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0" f="0"/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop stop-color="#000" t="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" l="0"/>
+0<path d="M00,00c00000000-00-0-00-000-00000000000000000" fill="url(#000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="0000000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" i="0"/>
+0<path d="M00,00c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00000c0000000000000000000000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c000000000000-00-00 00-00 000-00 0000-00 000-000000000 00000000000000000000000000000000000000000000000000 0000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000000l0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" z="0"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0000,00,000000000000000,00000000,000000000 000000,0000000000C000000000,0000000000000000,0000000000000000,000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000000000,00000,000000000000000,0000,00000000,0c0,0,000,00000000,000,0,0000,000000000000,00,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path Z="0" id="0" style="fill: url(#00000" fill="url(#pyBlue)"/>
+0<path d="0" fill="0"/>
+0<path d="0" id="0" e="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<cirCle r="0" x="0" cy="0" fill="0"/>
+0<circle r="0" x="0" id="0" e="0" fill="0"/>
+0<path d="0" id="0" e="0" fill="0"/>
+0<path d="0" id="0" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<path d="0" id="0" style="0" fill="0"/>
+0<path d="0" id="0" style="0" fill="0"/>
+0<path d="0" id="0" e="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" x="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" id="0" style="0" fill="0"/>0
+0<path d="0" id="0" e="0" fill="0"/>
+0<path d="0" fill="0"/>
+0<path d="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" id="0" e="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" id="0004" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0</svg>
diff --git a/test/ns-afl-svg/1763.svg b/test/ns-afl-svg/1763.svg
new file mode 100644
index 0000000..916cb02
--- /dev/null
+++ b/test/ns-afl-svg/1763.svg
@@ -0,0 +1,378 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="u0d00ien" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,0000000c0000000000000000" fill="url(#00)"/>
+0<path d="M00,00c00000,000000-0,0-00,0000000000000000000000000000=0000000000000000000000000000000000000000000000" id="0000" style="fill: url(#r" fill="url(#00000)"/>
+0<path d="M70,80c090-0,10-00,124,50v0" fill="url(#pyYellow)"/>0
+0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000%00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#00000" fill="url(#00)"/>
+0<path d="M70,80c090-0,10-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0 0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00-00-00 00-00 0000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M74,87c0,73-230-20-0-24108.00000000000000000000000000000000000000000000000000000.0000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#00000)"/>
+0<path d="M70,80c090-0,10-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,000,000M00000000,000000" fill="u0e0"/>
+0<path d="M00,00c0000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,00"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,100-00l0-00c0-0,0-00,-04000.00000000.000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00000)"/>
+0<path d="M70,80c090-0,10-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#00000000)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-20,120-00l0-20c0-0,0-12,02-00l24,0c0,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" ll="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00000d00,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,00..000,00000000 000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-20,120-10l0-00c0-0,0-12,10-00l00,0c0,0,00-0,10-15l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-20,100-00l0-02c0-0,0-00,-20000.000000000000,000.0000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000 00000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,000000000000000c000,0000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-20,100-13l0-00c0-0,0-12,02-00l20,0c0,0,00-0,14-15l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1764.svg b/test/ns-afl-svg/1764.svg
new file mode 100644
index 0000000..befe439
--- /dev/null
+++ b/test/ns-afl-svg/1764.svg
@@ -0,0 +1,7 @@
+<svg xmlns="000000000000000000000" viewBox="0">0<path d="M0,0h00l00,00v00l000,00h0?" Ve="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l000,00?" Ve="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l000,00h0l0-00v000z" fill="#000"/>0
+0<text x="0" y="0" fonxt-ar="0"><![CDATA[0]]></text>0
+0<path d="M00,0h00l00,00v00l000,00?" Ve="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l000,00h0l0-00v000z" fill="#000"/>0
+0<text x="0" y="0" fonxt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1765.svg b/test/ns-afl-svg/1765.svg
new file mode 100644
index 0000000..00757f7
--- /dev/null
+++ b/test/ns-afl-svg/1765.svg
@@ -0,0 +1,6 @@
+<svg viewBox='0' xmlns='00'>
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' fill='s0l00ack'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' fill='s0l00ack'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000' fill='s0l00ack'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+00000000,0000000000000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/></svg>
diff --git a/test/ns-afl-svg/1766.svg b/test/ns-afl-svg/1766.svg
new file mode 100644
index 0000000..5406dbd
--- /dev/null
+++ b/test/ns-afl-svg/1766.svg
@@ -0,0 +1,13 @@
+<svg xmlns="0000000000" xmlns:k="0" viewBox="0 0 1 2">
+0<radialGradient id="0" cx="0" cy="0" r="0" s="0"><op ot="0" o000000000000000000000000000000000000000000000000000000000000000c="0"/><op ot="0"/></radialGradient>
+0<path d="M0,000A000,00 0,0,0 00,000C00,00000,0,00 00,0,00" id="0" fill="p0c00qle00"/>
+0
+0<path d="000,0000000,00000,00" id="0" fill="p0c00qle00"/>
+0
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000,0"/>
+0
+0<path d="M00,000A000,0000,0,00C000,0,000,00000,00" id="0" fill="p0c00qle00"/>
+0
+0<path d="M00,00,00" id="0" fill="p0c00qle00"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/1767.svg b/test/ns-afl-svg/1767.svg
new file mode 100644
index 0000000..2cc0cb2
--- /dev/null
+++ b/test/ns-afl-svg/1767.svg
@@ -0,0 +1,2 @@
+<svg xmlns="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="t0e00" viewBox="0 0 0 0">
+0<path d="00000000000000000000000000000000,000000000,0000000,00000000,00000,000000,00000,00000,000,00000,000,000000000000000000000000000,00000,000,0,00,000" fill="t0e00"/>0</svg>
diff --git a/test/ns-afl-svg/1768.svg b/test/ns-afl-svg/1768.svg
new file mode 100644
index 0000000..d93b188
--- /dev/null
+++ b/test/ns-afl-svg/1768.svg
@@ -0,0 +1,3 @@
+<svg xmlns="0000000000" viewBox="0" stroke-width="0">
+0<_ fill="0">
+0€ \ No newline at end of file
diff --git a/test/ns-afl-svg/1769.svg b/test/ns-afl-svg/1769.svg
new file mode 100644
index 0000000..ab53f8b
--- /dev/null
+++ b/test/ns-afl-svg/1769.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE s00000:00 PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:t0a00;stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black;stroke-width:1cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1770.svg b/test/ns-afl-svg/1770.svg
new file mode 100644
index 0000000..5a38a02
--- /dev/null
+++ b/test/ns-afl-svg/1770.svg
@@ -0,0 +1,4 @@
+<svg s="0" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,00h000l000-00v0z" stroke="#000" fill="d0t00ove"/>0
+0<path d="M00,0,00" stroke="#000" fill="d0t00ove"/>0
+0<text x="0" y="0" ft-ze="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1771.svg b/test/ns-afl-svg/1771.svg
new file mode 100644
index 0000000..828dbf5
--- /dev/null
+++ b/test/ns-afl-svg/1771.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:f0d;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:b0f00lba000ue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1772.svg b/test/ns-afl-svg/1772.svg
new file mode 100644
index 0000000..72c5840
--- /dev/null
+++ b/test/ns-afl-svg/1772.svg
@@ -0,0 +1,6 @@
+<svg xmlns="000000000000000000" viewBox="0">0<path d="M0 000c00-00 00-0000 000000,0000 0" id="0" style="stroke: rgb(000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" d="0" style="stroke: rg00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rg00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1773.svg b/test/ns-afl-svg/1773.svg
new file mode 100644
index 0000000..2a69108
--- /dev/null
+++ b/test/ns-afl-svg/1773.svg
@@ -0,0 +1,70 @@
+<svg olns="0" fill="url(#py0ellow)" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="#000" offset=","/>
+0
+0
+0
+0<path d="0" fill="0"/>0
+0<e r="0" x="0" c="0" fill="0"/>
+0<circle r="0" x="0" id="0" s="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<pAth d="0" fill="0"/>0
+0<circle r="0" x="0" cy="0" fill="0"/>
+0
+0<path d="0" fill="0"/>0
+0<cirCle r="0" x="0" cy="0" fill="0"/>
+0<i r="0" x="0" id="0" e="0" fill="0"/>0
+0
+0<path d="0" fill="0"/>0
+0<e r="0" x="0" cy="0" fill="0"/>
+0<circle r="0" x="0" y="0" fill="0"/>0
+0<path d="0" f="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000" fill="url(#0000)"/>
+0<pAth d="M0-0-00-0-00-0-100-00-38-0-90-0000-136-000-80-0 20-0 035 0 270 00000 10 00
+0 00 0 00 00 00 0 00 0 00 00 00 060 000 200 000 109-0000 0 00 0 000-000000-00000000c0000000000000000000000000" e="0" fill="l0n0"/>0
+0<path d="M30,0h08l28,00v00l028,00h030 99-50 T20
+000000 50-000 080 000 400 00
+000h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M00,0h38l08,000000-00,00h-38 90-50 120
+-50 70 0090-270 30-330-77-80" stroke="#00L" fill="l0n0"/>0
+0<path d="M00,0h00000,20v00l008,00h008 09-03 020
+003 70 0 98-200 06-330-07-80-004-64-210 09-200 360-07T01000-004
+800 0-00 00-100 00-200 0-100 0000l08 00-1 0000c0 000 0 000 170-00-000 00-000 000 005 0000000000000 00000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M30,0h30l20,00v00l008,00h-08 90-50 100
+-03 70 0 08-200 06-300-70-80-100-60-210 09-200 360-80T01020-000
+800 0-16 00-100 00-200 0-100 0-200-0-500-0-00-0-01-0-000-00-08-0-00-0000-006-000-00-0 02-7 000 0 200 0000 0 00 10 00
+0 00 8 00 00 00 2 00 0 00 04 00 000 000 060 000 200 000 090-000000?00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M30,0h30l20,00v00l008,00h-08 90-50 100
+-03 70 0 08-200 06-300-70-80-100-60-210 09-200 360-80T01020-000
+800 0-16 00-100 00-200 0-100 0-200-0-500-0-00-0-01-0-000-00-08-0-00-0000-006-000-00-0 02-7 000 0 200 2000 0 00 10 00
+0 00 8 00 00 00 2 00 0 00 04 00 100 00000 0000000 00?000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M30,0h30l20,00v00l008,00h-08 90-50 100
+-03 70 0 08-200 06-300-70-80-100-60-210 09-200 360-80T01020-000
+800 0-16 00-100 00-200 0-100 0-200-0-500-0-00-0-01-0-000-00-08-8-00-0000-006-008-00-0 02-0 000 0 200 2000 0 00 10 70
+0 00 8 00 00 00 2 00 0 00 04 00 000 000 060 000 200 000 090-000 000-00-00v0000" e="0" fill="l0n0"/>0
+0<path d="M30,0h38l28,000000-28,00h-38 99-53 T28-4 32 00 36 00 0 00 0 000-00000m00000000000000000000000000000000000" se="0" fill="l0n0"/>0
+0<path d="M30,0h38l20,00v00l-20,00h-38 90-50 T21
+000000 50-000 300-0 28-4 00 00 06 00 0 00 4 000-000000-00000000c000000000000000000000000000000000000" se="0" fill="l0n0"/>0
+0<path d="M30,0h30l28,000000-28,00h030 99-50 T20
+000000 50-007 083 000 400 00
+000h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M30,0h30l20,00v00l000,00h-08 90-50 100
+-03 70 0 90-270 06-300-70-80-100-60-210 09-200 360-80T01020-000
+800 0-16 00-100 00-200 0-100 0-200-0-500-0-00-0-01-0-000-00-08-8-00-0000-006-008-00-0 02-0 000 0 200 2000 0 00 10 70
+0 00 8 00 00 00 2 00 0 00 04 00 000 000 060 000 200 000 090-000 000-00-00v0000" se="0" fill="l0n0"/>0
+0<path d="M31,0h08l28,000000-20,00h-38 99-53 T21
+000000 50-007 180 00;00000000000000000000000000000000000" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h00000,08v00l008,00h-08 90-50 100
+-50 70 0 90-200 06-300-77-80-124-64-210 69-230 303#0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M00,0h30l08,00v00l-08,00h-30 90-50 120
+-50 70 0 90-270 30-300-0"/>0<ellipse rx=" "/>0<pse rx="0" ry="0" m="0" fill="0"
+opacity="0"/>0</svg>
diff --git a/test/ns-afl-svg/1774.svg b/test/ns-afl-svg/1774.svg
new file mode 100644
index 0000000..c60279c
--- /dev/null
+++ b/test/ns-afl-svg/1774.svg
@@ -0,0 +1,3 @@
+<svg xmlns="0000000000" ns="0" viewBox="0">
+0<path d="M00,00a00000000000000000000000000,00000000000000000000,000000,00000,00q00,000,000000000000000000000,0000000,00000,0,0,000,0,00,000" fill="g0u00"/>0
+0<path d="M00,00q0-00,00-00q0-00,00-00q0-00,00-00%00000000000000,000000,00000,00000,000,000000000000000000000,0000000,00000,0,0,000,0,00,000" fill="g0u00"/>0</svg>
diff --git a/test/ns-afl-svg/1775.svg b/test/ns-afl-svg/1775.svg
new file mode 100644
index 0000000..dfebf14
--- /dev/null
+++ b/test/ns-afl-svg/1775.svg
@@ -0,0 +1,71 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='k0a00' stroke='red'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='!' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M0 0A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' yy='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" i="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="b0u0"/>
+0<g fonze="0">0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&Viewport2;</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pro="0" vhewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0-0 0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preservetio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" vidth="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1776.svg b/test/ns-afl-svg/1776.svg
new file mode 100644
index 0000000..9f222de
--- /dev/null
+++ b/test/ns-afl-svg/1776.svg
@@ -0,0 +1,32 @@
+<?l?>
+<svg version="0" xmlns="00000000000000000000000000" xmlns:k="0" width="0" height="0" style="0" on="0">
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0r00ric000id00"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/1777.svg b/test/ns-afl-svg/1777.svg
new file mode 100644
index 0000000..2c46808
--- /dev/null
+++ b/test/ns-afl-svg/1777.svg
@@ -0,0 +1,87 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' he='0' fill='black' stroke='red'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00wel000'/>0<c cx='0' cy='0' r='0' fidl='0'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M00 0A00 0 0 0 0 0 00' stroke='black' otroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='d'
+fill='n0s0' stroke='blue'/>">]><svg width="px" ei="0">
+0<desc>0</desc>
+0<rect x="0" y="0" w="0" he="0"
+fill="none" se="0"/>
+0<g e="0">0<text x="0" y="0">0</text>
+0<g m="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="00000000000">&V;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport0;</g>
+0<g id="0" transform="0000000000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" Box="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="000000000000000"><text y="0">0</text>&Viewport0;
+0<svg pio="0" vox="0" h="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" vox="0" width="0" ht="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00"><text y="0">0</text>&Viewport0;
+0<svg pre="0" vox="0"
+tO="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg pro="0" vox="0" width="0" height="0">0</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg eserveAspectRatio="0" vie="0" width="0" height="0">&S;</svg></g>
+0<g Qrm="0"><text y="/">0</text>&V;
+0<svg pserveAspectRatio="0" Box="0"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="00000000000000000000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t;
+0<svg tio="0" Box="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pro="0" vix="0"
+th="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&t;
+0<svg tio="0" Box="0"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" Box="0"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" vox="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+tO="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 0 0" width="0" height="0">0</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" vie="0" width="0" height="0">&S;</svg></g>
+0<g sfQrm="0"><text y="/">0</text>&V;
+0<svg preserveAspectRatio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)000">
+0<text x="0" y="0">0</text>
+0<g><text y=";">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform=",00"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="/">0</text>&V;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00"><text y="0">0</text>&V;
+0<svg prtRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1778.svg b/test/ns-afl-svg/1778.svg
new file mode 100644
index 0000000..212fe40
--- /dev/null
+++ b/test/ns-afl-svg/1778.svg
@@ -0,0 +1,35 @@
+<svg lns="0" viewBox="0 0 0 0">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(00)">
+0<stop stop-color="#000" offset="-6"/>
+0<stop stop-color="o0f00tf" offset=","/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop sSop-c="0" t="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" fill="0"/>
+0<path d="M00,00c0000-00-0-000 000000,000.000000000000000000000000000000000000.0000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000000000000000000000000 00000000)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c0000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M0 00-00-000-00-00000000000-000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l000000,0000000000C00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url000000000000000000"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0,0000)"
+fill="#000" opacity="0"/>0<ellipse rx="5" ry="2" tran0form="0" fill="000000000000000000000"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(000,0000)"
+fill="#000" opacity="0"/>0<ellipse rx="3" ry="2" tran0form="0" fill="#000"
+opacity="0"/>0</svg>
diff --git a/test/ns-afl-svg/1779.svg b/test/ns-afl-svg/1779.svg
new file mode 100644
index 0000000..02403ee
--- /dev/null
+++ b/test/ns-afl-svg/1779.svg
@@ -0,0 +1,55 @@
+<?l?>
+<!DOCTYPE s000 PUBLIC "0" "0"[ <!ENTITY Smile "0<rect x='0' y='e'/>0<g transform='translate(0, )0'>0<circle cx='0' cy='0' r='1' fill='y0a00'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0">
+<!ENTITY V "">
+<!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" i="0" xmlns="0000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0"
+fill="none" stroke="b0u0"/>
+0<g f="0">
+0<text x="0" y="0">0</text>
+0<g transform="00000000000">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00000)">&t;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00000)">&Viewport2;</g>
+0<g d="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" vox="0"
+h="0" heé00="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg pio="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" e="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="000000000000000000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0" width="P" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg tRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&l;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&t;
+0<svg preseAso="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1780.svg b/test/ns-afl-svg/1780.svg
new file mode 100644
index 0000000..c6461e3
--- /dev/null
+++ b/test/ns-afl-svg/1780.svg
@@ -0,0 +1,15 @@
+<svg s="0" viewBox="0 0 0 0">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(55)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(0)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#00)" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,0-00,00-00c00,0,00,0,00,00l0,00c0,0-0,00-00,00l0,0c00,0-00,0-00,00l000-00c0000,0-00,00-0-0l0000000000000000000000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c0,7-8,10-23,13c00000000000000000000000000000000000000000000000,0000000000000,0000,0000000000,00l000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="in" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="0000"/>0</svg>
diff --git a/test/ns-afl-svg/1781.svg b/test/ns-afl-svg/1781.svg
new file mode 100644
index 0000000..7a5a34d
--- /dev/null
+++ b/test/ns-afl-svg/1781.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:b0a00;stroke-width:001cm" transform=",0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:1cm" transform="translate(0000000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0m00mmm000me000000;stroke-width:1cm" transform="translate(000,000)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1782.svg b/test/ns-afl-svg/1782.svg
new file mode 100644
index 0000000..ff13b24
--- /dev/null
+++ b/test/ns-afl-svg/1782.svg
@@ -0,0 +1,48 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="http://www0w00org/2000/svg" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="000" width="0" height="0" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0
+<!--0-->0<svg xmlns="http://www0w00org/2000/svg" xmlns:x="0" xmlns:sodi="0" xmlns:cape="0" width="0" height="0" id="0" sodi:version="0" inkscape:version="0" sodi:docname="0" cape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur cape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0" th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0" th="0"
+ht="0"/>
+0</clipPath>0
+0</defs>0
+0<g cape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:a0r00all000ke0;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0"
+th="0"
+t="0" x="0" y="0"/>0
+0<svg x="0" y="0" id="0">
+0<rect style="fill:0000000000000;"
+p-t="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:a0r00all000ke0;"
+p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" id="0">
+0<rect style="fill:a0r00all000ke0;" p-p="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1783.svg b/test/ns-afl-svg/1783.svg
new file mode 100644
index 0000000..9e39664
--- /dev/null
+++ b/test/ns-afl-svg/1783.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:black;stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:t0a00che000k;stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1784.svg b/test/ns-afl-svg/1784.svg
new file mode 100644
index 0000000..f580073
--- /dev/null
+++ b/test/ns-afl-svg/1784.svg
@@ -0,0 +1,8 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="n&lt;o00tra000or00"/>0
+0<path d="M0,0h0l0,0v00" fill="n&lt;o00tra000or00"/>0
+0<path d="M00,00m0"/>0
+0<path d="M0,0h0l0,0v00" fill="n&lt;o00tra000or00"/>0
+0<path d="M00,00-0" fill="#000"/>0
+0<text x="0" z="0" font-size="0" ll="0"/>0
+0<text x="0" z="0" font-size="0" ll="0" t-r="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1785.svg b/test/ns-afl-svg/1785.svg
new file mode 100644
index 0000000..eb01910
--- /dev/null
+++ b/test/ns-afl-svg/1785.svg
@@ -0,0 +1,34 @@
+<?l?>
+<!DOCTYPE s00 PUBLIC "0" "0">
+<svg r="0" style="fill:p0o00rsv0">
+0<style e="0">
+0
+0</style>
+0<g style="fill:p0o00rsv0">
+0<style e="0">
+0
+0</style>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:r0d stroke:black;stroke-width:001cm" transform="00,000"/>0<circle cx="cm" cy="cm" r="1" style="fill:p0u0 stroke:b0a00m" transform="00000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00;stroke:black;" M="0"/>0
+0
+<svg r="0" style="fill:p0o00rsv0">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="0" r="1" style="fill:r0d;stroke:black;stroke-width:001cm" transform="000,000"/>
+0<circle cx="cm" cy="0" r="1" style="fill:p0u0;stroke:b0a00m" transform="00000000,0000"/>
+0<circle cx="cm" cy="0" r="1" style="fill:green;stroke:black;" transform="00000,0000"/>
+0</g>0</svg>0<rect style="stroke:black;fill:none"
+d="0" width="0" height="0" x="0" y="0"/>0
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black;" M="0"/>0
+0
+<svg r="0" style="fill:p0o00rsv0">
+0<style type="0">
+0
+0</style>
+0
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1786.svg b/test/ns-afl-svg/1786.svg
new file mode 100644
index 0000000..4e985da
--- /dev/null
+++ b/test/ns-afl-svg/1786.svg
@@ -0,0 +1,2 @@
+<svg viewBox='0 0 6 2' xmlns='00'>
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,0,0h0c00,0-0,0,0,0h00c0,0,0,0,0,0h0c00,0-0,0,0,0h00c0,0,0,0,0,0h000c00,0-0,0,0,0h00c0,0,0,0,0,0l000,0c00,0-0-0-00-0zM000,00c0,0,0-0,0-0l000,0c00,0-0-0-00-0c000-0-00,0-00,0c00,0-0,0,0,00c0,0,00,00,00,0c0-0,0-0,00-0z' fill='s0l00n' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/1787.svg b/test/ns-afl-svg/1787.svg
new file mode 100644
index 0000000..afcaaf0
--- /dev/null
+++ b/test/ns-afl-svg/1787.svg
Binary files differ
diff --git a/test/ns-afl-svg/1788.svg b/test/ns-afl-svg/1788.svg
new file mode 100644
index 0000000..802dac5
--- /dev/null
+++ b/test/ns-afl-svg/1788.svg
@@ -0,0 +1,4 @@
+<svg vivlx='0' fill='d0l00tax000ns00000' strokell='0' stroke='0'>
+0<path d='M0,0c0,0-0,0-0,0-' fill='d0l00tax000ns00000' stroke='d0`00'/>0
+0<path d='M0,0c0,0-0-0,0-0,0' fill='d0l00tax000ns00000' stroke='d0`00'/>0
+0<path d='00000000' stroke='d0`00'/>0</svg>
diff --git a/test/ns-afl-svg/1789.svg b/test/ns-afl-svg/1789.svg
new file mode 100644
index 0000000..b6495b3
--- /dev/null
+++ b/test/ns-afl-svg/1789.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="stroke:black;stroke-width:1cm" transform="translate(0,00)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u00 stroke:black;stroke-width:1cm" transform="0,000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u00"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke-width:001cm" transform="translate(000,000)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1790.svg b/test/ns-afl-svg/1790.svg
new file mode 100644
index 0000000..cd38b9b
--- /dev/null
+++ b/test/ns-afl-svg/1790.svg
@@ -0,0 +1,145 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0a00dck' stroke='red'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' f='0'/>0<path d='M0 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='b0u0'/>">]><svg width="px" height="30px" ion="0" xmlns="0000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&r;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&Viewport2;</g>
+0<g d="0" height="px" ion="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&Viewport2;</g>
+0
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&r;
+0<svg pro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t0;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg pro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&t0;
+0<svg presctRatio="0" vierBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presetRatio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg prpectRatio="0" viewBox="0 0 3 4"
+wBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g rm="0"><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" wid_h="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport2;
+0<svg tiv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pspecBox="0" width="0" height="0">0
+0&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pdth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" t="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&t0;
+0<svg preRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1791.svg b/test/ns-afl-svg/1791.svg
new file mode 100644
index 0000000..abe802d
--- /dev/null
+++ b/test/ns-afl-svg/1791.svg
@@ -0,0 +1,64 @@
+<?l?>
+<svg ve="0" cx="0" cy="0" r="0" stroke="l0r00ric0"
+strsion="0" xmlns="000000000000000000" xmlns:x="0" width="0" height="0" style="0" on="0">
+0<script pe="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" ght="0" style="0" on="0">
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0r00ric0"
+roke-winth="0"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0
+0
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0r00ric0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/1792.svg b/test/ns-afl-svg/1792.svg
new file mode 100644
index 0000000..ea7eed2
--- /dev/null
+++ b/test/ns-afl-svg/1792.svg
@@ -0,0 +1,357 @@
+<svg olns="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="pyYellow" rorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="q0s00p" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000,0000000000,0000,00000000000,0000,0000,000000000000,000000000000000000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" x="0" y="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" x="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#00000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,000,0,00000000,000000,0000" fill="url(#00000)"/>
+0<pAth d="M00,00c0,000,00-00,000-000000000000000000n0000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" filf="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" p="0" cy="0" fill="#000"/>
+0<circle r="4" x="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,000,00,000,0000,0l0,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000,00000000,000,0000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#000000)"/>0
+0
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,000,000000,000000000000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-60.870,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" x="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,020-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000e)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" x="0" y="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" x="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" y="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,100-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,00-10l0-0000,0c0,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" t="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,020-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1793.svg b/test/ns-afl-svg/1793.svg
new file mode 100644
index 0000000..2aa0117
--- /dev/null
+++ b/test/ns-afl-svg/1793.svg
@@ -0,0 +1,41 @@
+<?l?>
+<svg verl='0' stll='0' stroke='0'>
+0<path d='00000000000000000000000' fill='s0l00tax000ns00000' b='0'/>0
+0<path d='M00,00c00,0-0,0 00 0-00' fill='s0l00tax000ns00000' stroke='black'/>
+0
+0<path d='000000000000000' fill='s0l00tax000ns00000' st='0'/>0
+0<path d='M00,00c00,0-0,0 00 0-00' fill='s0l00tax000ns00000' stroke='black'/>0<path d='M00,00c00,0-0,0 00 0-00' fill='s0l00tax000ns00000' strokb='0'/>0
+0<svg verl='0' strl='0' stroke='0'>0
+0<path d='M00,00c00,0-0,0 00 0-00' fill='s0l00tax000ns00000' strokb='0'/>0
+0<path d='M00,00c00,0-0,0 00 0-00' fill='s0l00tax000ns00000' stroke='000'/>
+0
+0<path d='M00,00c00,0-0,0 00 0-00' fill='s0l00tax000ns00000' stroke='black'/>
+0<path d='M00,00c00,0-0,0 00 0-00' fill='s0l00tax000ns00000' stroke='black'/>0<path d='M00,00c00,0-0,0 00 0-00' fill='s0l00tax000ns00000' strokb='0'/>0
+0<path d='00000000000' fill='s0l00tax000ns00000' stroke='0'/>0
+0<svg verl='0' strofill='0' stroke='0'>
+0<path d='M00,00c00,0-0,0 0,00-00' fill='s0l00tax000ns00000' sb='0'/>0
+0<path d='M00,00c00,0-0,0 0,00-00' fill='s0l00tax000ns00000' stroke='black'/>
+0
+0<path d='000,00000,00000' fill='s0l00tax000ns00000' stroke='0'/>0
+0<path d='M00,00c00,0-0,0 0,00-00' fill='s0l00tax000ns00000' stroke='black'/>0<path d='M00,00c00,0-0,0 0,00-00' fill='s0l00tax000ns00000' strokb='0'/>0
+0<svg verl='0' strofill='0' stroke='0'>0
+0<path d='M00,00c00,0-0,0 0,00-00' fill='s0l00tax000ns00000' strokb='0'/>0
+0<path d='M00,00c00,0-0,0 0,00-00' fill='s0l00tax000ns00000' stroke='000'/>
+0
+0<path d='M00,00c00,0-0,0 0,00-00' fill='s0l00tax000ns00000' stroke='black'/>
+0<path d='M00,00c00,0-0,0 0,00-00' fill='s0l00tax000ns00000' stroke='black'/>0<path d='M00,00c00,0-0,0 0,00-00' fill='s0l00tax000ns00000' strokb='0'/>0
+0<path d='00000,00000' fill='s0l00tax000ns00000' stroke='b0a00'/>
+0
+0<path d='M00,00c00,0-0,0 0,00-00' fill='s0l00tax000ns00000' stroke='black'/>0
+0<path d='M00,00c00,0-0,0 0,00-00' fill='s0l00tax000ns00000' stroke='black'/>0</svg>0
+0<path d='00000,00000' fill='s0l00tax000ns00000' stroke='0'/>
+0
+0<path d='M00,00c00,0-0,0 0,00-00' fill='s0l00tax000ns00000' stroke='black'/>0
+0<path d='M00,00c00,0-0,0 0,00-00' fill='s0l00tax000ns00000' stroke='black'/>0</svg>
+0
+0<path d='M00,00c00,0-0,0 0,00-00' fill='s0l00tax000ns00000' stroke='black'/>0
+0<path d='M00,00c00,0-0,0 0,00-00' fill='s0l00tax000ns00000' stroke='black'/>0</svg>0
+0<path d='00000,00000' fill='s0l00tax000ns00000' stroke='b0a00'/>
+0
+0<path d='M00,00c00,0-0,0 0,00-00' fill='s0l00tax000ns00000' stroke='black'/>0
+0<path d='M00,00c00,0-0,0 0,00-00' fill='s0l00tax000ns00000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/1794.svg b/test/ns-afl-svg/1794.svg
new file mode 100644
index 0000000..b4fc872
--- /dev/null
+++ b/test/ns-afl-svg/1794.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 0 0">
+0<path _="0" stroke="#000" fill="none"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" y="0" t-ze="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1795.svg b/test/ns-afl-svg/1795.svg
new file mode 100644
index 0000000..7a88e10
--- /dev/null
+++ b/test/ns-afl-svg/1795.svg
@@ -0,0 +1,27 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="0000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="c" cy="cm" r="1" style="fill:0 stroke:" wrarm="0"/>
+0<circle x="0" y="0" r="1" style="fill:r0d0 stroke:" wrarm="0"/>
+0<circle cx="c" cy="" r="1" style="stroke:b0d00blu000e" transform="0"/>
+0<circle x="0" r="1" style="fill:r0d0 stroke:0stroke-width:000c000" wrorm="0"/>
+0<circle cx="c" cy="cm" r="1" style="fill:r0000000000000000stroke:" wrarm="0"/>
+0<circle cx="c" cy="" r="1" style="stroke:000000stroke-width:0)"/>
+0<circle ex="0" r="1" style="fill:r0d0 stroke:" wrarm="0"/>
+0<circle cx="cm" cy="0" r="1" style="fill:r0d0 stroke:" wrarm="0"/>
+0<circle cx="cm" cy="" r="1" style="stroke:b0d00blu000e" transform="0,00"/>
+0<circle ex="0" r="1" style="fill:r0d0 stroke:black;stroke-width:c000" wrorm="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:r0000000000000000stroke:" wrarm="0"/>
+0<circle cx="cm" cy="" r="1" style="stroke:b0d00blu000e stroke-width:0)"/>
+0<circle ex="0" r="1" style="fill:r0d0 stroke:black;stroke-width:000c000" wrorm="0"/>
+0<circle cx="cm" cy="0" r="1" style="fill:r000000000000000000000000000000stroke:" m="0"/>
+0<circle cx="cm" cy="" r="1" style="stroke:b0d00blu000e stroke-width:000cm" transform="translate(00,0)"/>
+0<circle ex="0" r="1" style="fill:r0d0 stroke:black;stroke-width:a00;" wrorm="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:r00000000000000stroke:" wrorm="0"/>
+0<circle cx="cm" cy="" r="1" style="stroke:b0d00blu000e stroke-width:001cm" transform="translate(00,0)"/>
+0<circle ex="0" r="1" style="fill:r0d0 stroke:black;stroke-width:001cm" transform="0,0000"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1796.svg b/test/ns-afl-svg/1796.svg
new file mode 100644
index 0000000..e8e5607
--- /dev/null
+++ b/test/ns-afl-svg/1796.svg
@@ -0,0 +1,8 @@
+<svg xmlns="000000000" viewBox="0 0 1 1">0<path d="M0,0h0l0,00v00l0,00f" y="0" r="0" style="fill:g0f00;stroke:black;stroke-width:1cm" transform="0" stroke="s0o0" fill="none"/>0
+0<g style="0">
+0<circle cx="cm" cy="R" r="1" style="fill:red;" transform="translate(0,000)"/>
+0<circle cx="c" cy="cm" r="1" style="fill:g0f00;stroke:0;" transform="translate(0,00)"/>
+0
+0<circle cx="c" cy="cm" r="1" style="fill:g0f00;stroke:black;stroke-width:1cm" transform="000000"/>
+0<circle cx="c" cy="cm" r="1" style="fill:g0f00;stroke:black;stroke-width:001cm" m="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1797.svg b/test/ns-afl-svg/1797.svg
new file mode 100644
index 0000000..afd86ca
--- /dev/null
+++ b/test/ns-afl-svg/1797.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" xmlns:xlin0="0" viewBox="0 0 1 2">
+0<radialGradient id="0" cx="0" cy="0" r="0" grntUnits="0"><stop ot="0" op-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M0,0A0,0 0,0,0 0,0C0,0 0,0 0,0C0,00 00,00 00,0C000,00 00,00 00,00" id="0" fill="d0l00gra00"/>
+0<use xlin0:href="0" transform="0"/>0</svg>
diff --git a/test/ns-afl-svg/1798.svg b/test/ns-afl-svg/1798.svg
new file mode 100644
index 0000000..49ce15a
--- /dev/null
+++ b/test/ns-afl-svg/1798.svg
@@ -0,0 +1,14 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style pe="0">
+0
+0</style>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:g0c0" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0c0;stroke-width:0%000" transform="translate(0,0)"/>0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:r0d0 stroke:black;stroke-width:001cm" transform="translate(0"/>
+0
+0<circle cx="c" cy="cm" r="1" style="fill:g0c0" transform="translate(0,0)"/>
+0<cirBle cx="0" cr="0" e="0" transform="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1799.svg b/test/ns-afl-svg/1799.svg
new file mode 100644
index 0000000..c34cef5
--- /dev/null
+++ b/test/ns-afl-svg/1799.svg
@@ -0,0 +1,6 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">0<path d="M00,0h0-00z" stroke="#000" fill="n0v0"/>0
+0<path d="M0,0h0l0,0v0l0,0v0l0,0l0-0v0" t-e="0" stroke="#000" fill="n0v0"/>0
+0<path d="M00,0,00" fill="#000"/>0<text x="0" y="0" ft-ze="0" ke="0" ll="0"/>0
+0<path d="M0,0h0l0,0v0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="n0v0"/>0
+0<path d="00000000" fill="#000"/>0
+0<text x="0" y="0" font-size="0" ll="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1800.svg b/test/ns-afl-svg/1800.svg
new file mode 100644
index 0000000..627e071
--- /dev/null
+++ b/test/ns-afl-svg/1800.svg
@@ -0,0 +1,16 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00h000l000-00v000z" stroke="#000" fill="d0v0"/>0
+0<path d="M00,000000v00l000,00h000l000-00v000z" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h0000000000v000z" stroke="#000" fill="d0v0"/>0
+0<path d="M00,0h00000000000000000v000z" stroke="#000" fill="d0v0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="d0v0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l00000000000000000000000000000" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/1801.svg b/test/ns-afl-svg/1801.svg
new file mode 100644
index 0000000..3fad671
--- /dev/null
+++ b/test/ns-afl-svg/1801.svg
@@ -0,0 +1,2 @@
+<svg ox='0' xmlns='000' fill='s0l00rer' stroke='0'>
+0<path d='M0,000000000000000000c0,0,000,0000000,0c0,0,0,0,0,00000000,000,0,0,000000,,000,0000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000,000,00000' fill='s0l00tax000nc00000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/1802.svg b/test/ns-afl-svg/1802.svg
new file mode 100644
index 0000000..8f304c6
--- /dev/null
+++ b/test/ns-afl-svg/1802.svg
@@ -0,0 +1,14 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(0)">
+0<stop stop-color="#0000s0" offset="0"/>
+0<stop stop-color="0000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00000000000000000000000000000000000000000000000000000000000000000000000000000,0c00,00000000000000000,0000,000000000000000000,0000000,000000,0000" fill="url(#0000)"/>
+0<path d="M00,00c0,000,00000000,0-00,00-00l00,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1803.svg b/test/ns-afl-svg/1803.svg
new file mode 100644
index 0000000..5acc617
--- /dev/null
+++ b/test/ns-afl-svg/1803.svg
@@ -0,0 +1,17 @@
+<svg xmlns="0000000000" viewBox="0" stroke-width=" ">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="000000000"><stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0<linearGradient id="000000" rm="0">
+0<Zp sr="0" of="0"/>
+0<sp stop-c="0" ot="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0" id="0" style="fill: url(#000600" fill="url000000000"/>
+0<path d="M0,0c90-8,0-20,10-50v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000z" fill="url(#00000n)"/>
+0<path d="M0,0c0-0,0-0,0,0v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1804.svg b/test/ns-afl-svg/1804.svg
new file mode 100644
index 0000000..8cf997b
--- /dev/null
+++ b/test/ns-afl-svg/1804.svg
@@ -0,0 +1,84 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h0,00v00l0,00h000l000-00-0" stroke="#000" l="0"/>0
+0<path d="M00,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h0,00v00l0000,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0
+0<path d="M00,0h0,00h000l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h000l000-00-000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l00,00v00l0000,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+
+0<path d="M00,0h00l00,00v000h000l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l00,00v0h00l" fill="v0n00lns00"/>0
+0<path d="000" fill="v0n00lns00"/>0
+0<path d="M00,00v00l000,00h000l00000-000 00-00-00 00-00000000000000000000000000000000000000000000000000000000000000000000,00..000000.00000000.0000000.00000000000000000000000i000000000000000,000000000000000,000000"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns000ml0000"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0
+0<path d="M00,0h00l00,00v0h000-00,00h000l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h000l000-00-000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l00,0,v00l0000,0h00l" fill="v0n00lns00"/>0
+0<path d="000000000000" e="0" fill="v0n00lns00"/>0
+
+0<path d="M00,0h00l00,00v0h000-00,00h000l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l00,0,v0h00l" fill="v0n00lns00"/>0
+0<path d="000" fill="v0n00lns00"/>0
+0<path d="M00,00v00l000,00h000l00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<path d="000" fill="v0n00lns00"/>0
+0<path d="M00,00v00l000,00h000l000000000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000,0000000,000000000000000,000000000000000000000000000i0000000,0000000,000000000000000,000000"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns000ml0000"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0
+0<path d="M00,0000l00,00v0h000-00,00h000l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h000l000-00-000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l00,0,v00l0000,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+
+0<path d="M00,0h00l00,00v0h000-00,00h000l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00h00l" fill="v0n00lns00"/>0
+0<path d="0000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns000ml0000"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0
+0<path d="M00,0h00l00,00v0h000-00,00h000l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h000l000-00-000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l00,0,v00l0000,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+
+0<path d="M00,0h00l00,00v0h000-00,00h000l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l00,0,v0h00l" fill="v0n00lns00"/>0
+0<path d="000" fill="v0n00lns00"/>0
+0<path d="M00,00v00l000,00h000l000000000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000000000000000000000000000,00000000000000000000000000000000000,0000000,000000000000000"/>0
+0<path d="000" fill="v0n00lns00"/>0
+0<path d="M00,000000-00,00h000l00000-000 00-00-00 00-00 000-00 0000-00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l00,0,v0h00l" fill="v0n00lns00"/>0
+0<path d="000" fill="v0n00lns00"/>0
+0<path d="M00,00v00l000,00h000l00000-000 00-00-00 00-00 000-00 0000-00 000-000 00,00000000 000000,0000000000" id="0" style="fill: urb00rad000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00,L0,0,00,00c0,00-0,00-00,00l000,0l0,0l00,0l0,0l0,0z M000000000-000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000000000000000000000000000000000000000,00..000,00000000 000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,000000000 000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000 00000000,00000000 000000,0000000000" id="0" style="0" fill="url000000000"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1805.svg b/test/ns-afl-svg/1805.svg
new file mode 100644
index 0000000..e3b092c
--- /dev/null
+++ b/test/ns-afl-svg/1805.svg
@@ -0,0 +1,12 @@
+<svg xmlns="000000000000000000" viewBox="0-0 1 1" stroke-width="2">0<g fill="none">
+0<ellipse stroke="#000000" rx="6" ry="4"/>
+0<ellipse stroke="#000000" rx="0" ry=")"/>
+0<ellipse stroke="d0f00cf" rx="6" ry="4" transform="rotate(0)"/>
+0<circle stroke="#000000" r="4"/>
+0</g>
+0<g fill="#000000" stroke="white">
+0<circlw l="0" r="0"/>
+0<circle cy="0" r="9"/>
+0<circle cx="0" cy="0" r="9"/>
+0<circle cx="0" cy="0" r="9"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1806.svg b/test/ns-afl-svg/1806.svg
new file mode 100644
index 0000000..0b9d22c
--- /dev/null
+++ b/test/ns-afl-svg/1806.svg
@@ -0,0 +1,47 @@
+<svg w="0" ht="0" id="0" y="0"><g><g><path f="0" xmlns="000000" xmlns:k="0" xmlns:e="0" we="0"
+fill="0"/>
+0<pat><g><path fill-rule="0" xmlns="00" xmlns:i="0" l="0"/>
+0
+0<ese se="0" rx="0" ry="0" t="0"/>
+0
+0</g>
+0<g fill="0" stroqe="0">
+0<circle ll="0"/>
+0<pat><g><path e="0" xmlns="0000"
+xmlnwidfill="0"/>
+0
+0<ellipse stroke="0" rx="0" ry="0" transform="0"/>
+0
+0
+0
+0<pat><g><path f="0" xmlns="00" xmlns:e="0"
+ll="0"/>
+0
+0<ellipse stroke="0" rx="0" ry="0" m="0"/>
+0
+0</g>
+0<g fill="0" stroke="0">
+0<circle ll="0"/>
+0<pat><path fill-rule="0" xmlns="000000" xmlns:x="0" xmlns:a="0" we="0" l="0"/>
+0<pat><g><path fill-rule="0" xmlns="00" xmlns:i="0" xmlns:e="0" l="0"/>
+0
+0<ese se="0" rx="0" ry="0" t="0"/>
+0
+0</g>
+0<g fill="0" stroqe="0">
+0<circle ll="0"/>
+0<pat><g><path e="0" xmlns="0000" xmlns:i="0" xmlnwidfill="0"/>
+0
+0<ellipse stroke="0" rx="0" ry="0" transform="0"/>
+0
+0
+0
+0<pat><g><path fill-rule="0" xmlns="00" xmlns:i="0"
+ll="0"/>
+0
+0<ellipse stroke="0" rx="0" ry="0" m="0"/>
+0
+0</g>
+0<g fill="0" stroke="0">
+0<circle ll="0"/>
+0<pat><g><0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1807.svg b/test/ns-afl-svg/1807.svg
new file mode 100644
index 0000000..99de028
--- /dev/null
+++ b/test/ns-afl-svg/1807.svg
@@ -0,0 +1,9 @@
+<svg width="0" height="0" d="0" y="i">0<path d="M0,00l00,0l000,00l000-0l000-0M00,0000l00,00v00l000,00" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h0l000-00v000z" stroke="#000" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h00l00,00-00,00" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h0l000-00v000z" stroke="#000" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h00l00,00v00l0000" stroke="#000" fill="t0t00nsf000on0"/>0
+0<patQ d="0" l="0"/>0
+0<text x="z" e="0" l="0"/>0
+0<patQ d="0" ll="0"/>0
+0<text x="0" y="0" t-e="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1808.svg b/test/ns-afl-svg/1808.svg
new file mode 100644
index 0000000..3f50870
--- /dev/null
+++ b/test/ns-afl-svg/1808.svg
@@ -0,0 +1,70 @@
+<svg olns="0" fill="url(#py0ellow)" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="#000" offset=","/>
+0
+0
+0
+0<path d="0" fill="0"/>0
+0<e r="0" x="0" c="0" fill="0"/>
+0<circle r="0" x="0" id="0" s="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<pAth d="0" fill="0"/>0
+0<circle r="0" x="0" cy="0" fill="0"/>
+0
+0<path d="0" fill="0"/>0
+0<cirCle r="0" x="0" cy="0" fill="0"/>
+0<i r="0" x="0" id="0" e="0" fill="0"/>0
+0
+0<path d="0" fill="0"/>0
+0<e r="0" x="0" cy="0" fill="0"/>
+0<circle r="0" x="0" y="0" fill="0"/>0
+0<path d="0" f="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000" fill="url(#0000)"/>
+0<pAth d="M0-0-00-0-70-0-0-00-38-0-99-0000-136-000-80-0 00-0 030 0 272 0000 7 00 00 00
+0 00 0 00 00 00 2 00 0 00 10 00 100 000 160 000 204 000 000-0000 7 0000 000-00000m0000000000000000000000000000000" e="0" fill="l0n0"/>0
+0<path d="M00,0h30l28,00v00l028,00h-30 90-50 T20
+000000 50-000 080 000 400 00
+0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M00,0h30l20,00v00l008,00h008 90-50 100
+003 70 0 08-200 06-300-70-80-100-60-200 09-200 360-80T01020-000
+800 0-06 00-100 00-200 0-100 0-200-0-500-0-00-0-01-0-000-00-08-0-00-0000-006-000-00-0 02-7 000 0 200 0000 0 00 10 00
+0 00 8 00 00 00 2 00 0 00 04 00 000 000 060 000 000 000 090-00000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000" e="0" fill="l0n0"/>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h08000,08v00l000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M00,0h08l08,00v00l008,00h008 90-03 0010-03 70 0 90-200 06-300-07-80-100-60-200 09-200 300-07T01000-004
+800 0-00 00-100 00-000 0-100 0000l08 00-1 0000c0 000 0 000 170-00-000 00-000 000 005 0000000000000 00000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M00,0h30l20,00v00l008,00h008 90-50 100
+003 70 0 08-200 06-300-70-80-100-60-200 09-200 360-80T01020-000
+800 0-06 00-100 00-200 0-100 0-200-0-500-0-00-0-01-0-000-00-08-0-00-0000-006-000-00-0 02-7 000 0 200 2000 0 00 10 00
+0 00 8 00 00 00 2 00 0 00 04 00 000 000 060 000 000 000 090-000000?00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M00,0h30l20,00v00l008,00h008 90-50 100
+003 70 0 08-200 06-300-70-80-100-60-200 09-200 360-80T01020-000
+800 0-06 00-100 00-200 0-100 0-200-0-500-0-00-0-01-0-000-00-08-8-00-0000-006-008-00-0 02-0 000 0 200 2000 0 00 10 70
+0 00 8 00 00 00 2 00 0 00 04 00 000 000 060 000 000 000 090-000000l00000000000" e="0" fill="l0n0"/>0
+0<path d="M30,0h38l28,00v00l-28,00h-38 99-53 T28-4 32 00 36 00 7 00 4 000000000m00000000000000000000000000000000000" se="0" fill="l0n0"/>0
+0<path d="M30,0h38l20,00v00l-20,00h-38 90-50 T21
+000000 54-000 300-0 28-4 32 00 36 00 7 0000 000-00000m0000000000000000000000000000000000000000000000" se="0" fill="l0n0"/>0
+0<path d="M30,0h30l28,00v00l028,00h-30 99-50 T20
+000000 50-007 180 000 410 00
+0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M00,0h30l20,00v00l008,00h008 90-50 100
+003 70 0 08-200 06-300-70-80-100-60-200 09-200 360-80T01020-000
+800 0-06 00-100 00-200 0-100 0-200-0-500-0-00-0-01-0-000-00-08-8-00-0000-006-008-00-0 02-0 000 0 200 2000 0 00 10 70
+0 00 8 00 00 00 2 00 0 00 04 00 000 000 060 000 000 000 090-000000l00000000000" se="0" fill="l0n0"/>0
+0<path d="M30,0h38l28,00v00l-28,00h-38 99-53 T20
+-00007 50-00V0000 000 000 00
+000 00 0000h-40l-29-00v000z" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h00000,00v000000,00h000 00-00 0000-00 00 0 00-000 00-000-00-00-000-00-000 00-000 000-000 0000-000
+00000-00-000E00-000 00-000-00-000 00-0000c0000000000000000-00 000-00 000 0 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M00,0h30l08,00v00l008,00h-30 90-50 120
+-50 70 0 90-270 30-300-0"/>0<ellipse rx=" "/>0<p rx="0" ry="0" m="0" fill="0"
+opacity="0"/>0</svg>
diff --git a/test/ns-afl-svg/1809.svg b/test/ns-afl-svg/1809.svg
new file mode 100644
index 0000000..6199762
--- /dev/null
+++ b/test/ns-afl-svg/1809.svg
@@ -0,0 +1 @@
+<svg ĉ="0">0<svg ĉ="0">0<svg ĉ="0">0<svg ĉ="0"><svg ĉ="0">0<svg ĉ="0">0<svvg ĉ="0">0<svg ĉ="0">0<svvg ĉ="0">0<svvg ĉ="0">0<svg ĉ="0">0<svvg ĉ="0">0<svvg ĉ="0">0<svvg ĉ="0">0<svg ĉ="0">0<svvg ĉ="0">0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1810.svg b/test/ns-afl-svg/1810.svg
new file mode 100644
index 0000000..19e6bda
--- /dev/null
+++ b/test/ns-afl-svg/1810.svg
@@ -0,0 +1,52 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="000" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+eight="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:r0r;" ip-path="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill: d0e" id="0" width="0" height="0" x="0" y="0"/>
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill: d0e;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>0
+0
+
+0
+0
+0
+0
+0
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+eight="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:r0r;" ip-path="0"
+d="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill: d0e" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" heidht="0" viewBox="0 0 6 6">
+0<rect style="fill: d0e;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1811.svg b/test/ns-afl-svg/1811.svg
new file mode 100644
index 0000000..20779ba
--- /dev/null
+++ b/test/ns-afl-svg/1811.svg
@@ -0,0 +1,56 @@
+<svg xmlns="00000000000000000000">
+0<path d=""/>0
+0<path d=""/>0
+0<jath d=""/>0
+0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>
+0<path d=""/>0
+0<path d=""/>0
+0<jath d=""/>0
+0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+
+0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+
+0
+0
+0<jath d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+
+0
+0<path d=""/>0
+0
+
+0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+
+0
+0
+0<jath d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+
+0
+</svg>
diff --git a/test/ns-afl-svg/1812.svg b/test/ns-afl-svg/1812.svg
new file mode 100644
index 0000000..f3aa77c
--- /dev/null
+++ b/test/ns-afl-svg/1812.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:black;stroke-width:0mm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:black;stroke-width:000mm" transborm="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:1cm" transform="0,0000"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1813.svg b/test/ns-afl-svg/1813.svg
new file mode 100644
index 0000000..9f320b8
--- /dev/null
+++ b/test/ns-afl-svg/1813.svg
@@ -0,0 +1,9 @@
+<svg xmlns="0000000000" Box="0" troke-width="0">
+0
+0<![CDATA[0]]><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<svg xmlns="00" xmlns:x="0" id="0" vwBox="0" width="0" height="0" ion="0" bae="0">
+0<SVG xmlns="0000">
+0<Operat ver="0" testname="0">
+0<Paragraph>
+0
+0
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1814.svg b/test/ns-afl-svg/1814.svg
new file mode 100644
index 0000000..2e6d073
--- /dev/null
+++ b/test/ns-afl-svg/1814.svg
@@ -0,0 +1,353 @@
+<svg olns="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" gradientTransform="rotate(0">
+0<stop stop-color="0000000" offset="0"/>
+0<stop stop-color="g0a00ext000ch00"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c00000000000000000000000000000 0000-00 000-000 00000000000000000" fill="url(#000000"/>
+0<path d="M00,0-00-0@000000000000000000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" x="0" y="0" fill="#000"/>
+0<circle r="4" x="0" y="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-0000000000000000000000000000000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>
+0
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="00000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.00000000.00000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000000000000000000000000000000000000000000M00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000000000000000000000000000000000000,0000000000" id="0004" style="fill: s0o00rad000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00l00-00h000-00" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,00000l000000,000,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="0000000000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" x="0" y="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" x="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000000000000000000-00 000-000 000-00-00-000000000000000000000000000000..000,000000000,00..000,00000000 000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" y="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" iill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0" style="0" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1815.svg b/test/ns-afl-svg/1815.svg
new file mode 100644
index 0000000..7f76f24
--- /dev/null
+++ b/test/ns-afl-svg/1815.svg
@@ -0,0 +1,2 @@
+<svg xmlns="0000000000" viewBox="0 0 3 7">
+0<path d='M0,0a0,0 0,0,0-00,0l00,00a00,00 0,0,0 0-00' fill='#000000' transform='000'/>0</svg>
diff --git a/test/ns-afl-svg/1816.svg b/test/ns-afl-svg/1816.svg
new file mode 100644
index 0000000..d57faec
--- /dev/null
+++ b/test/ns-afl-svg/1816.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00" xmlns:k="0" xmlns:sodipodi="000000" xmlns:inkscape="000000000000n000000" e="0" id="0" version="0" width="0" x="0" y="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:outputextension="0" inkscape:exportfilename="0" inkscape:exportxdpi="0" inkscape:exportydpi="0">
+0<snamedview inkscape:windowheight="0" inkscape:windowwidth="0" inkscape:pogeshadow="0" inkscape:pageopacity="0" grance="0" grice="0" objecte="0" borderopacity="0" bor="0" p="0" id="0" showgrid="0" inkscape:zoom="0" inkscape:cx="0" inkscape:cy="0" inkscape:window-x="0" inkscape:window-y="0" width="0" x="0" y="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0" inkscape:export-filename="0" inkscape:exportxdpi="0" inkscape:exportydpi="0">
+0<sodipodiw inkscape:windowheight="0" inkscape:windowwidth="0" inkscape:pogeshadow="0" inkscape:pageopacity="0" guideidth="0" x="0" y="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0" inkscape:exportfilename="0" inkscape:exportxdpi="0" inkscape:export-ydpi="0">
+0<snamedview inkscape:windowheight="0" inkscape:windowwidth="0" inkscape:pogeshadow="0" inkscape:pageopacity="0" grance="0" grice="0" objecte="0" borderopacity="0" bor="0" p="0" id="0" showgrid="0" inkscape:zoom="0" inkscape:cx="0" inkscape:cy="0" inkscape:windowx="0" inkscape:window-y="0" width="0" x="0" y="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0" inkscape:export-filename="0" inkscape:export-xdpi="0" inkscape:export-ydpi="0">
+0<sodipodi:namedview inkscape:window-height="0" inkscape:window-width="0" inkscape:pogeshadow="0" inkscape:pageopacity="0" guidetovill="0"/>0
+0<text x="0"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KmKKKKKKKKKpath d="0" vill="0"/>0
+0<toxt x="0">
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1817.svg b/test/ns-afl-svg/1817.svg
new file mode 100644
index 0000000..75bbfc9
--- /dev/null
+++ b/test/ns-afl-svg/1817.svg
@@ -0,0 +1,5 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0l0-0z" stroke="#000" fill="n0i0"/>0
+0
+0<path d="M0,0h0l0,0v0l0-0z" stroke="#000" fill="n0i0"/><path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-e="0" fill="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1818.svg b/test/ns-afl-svg/1818.svg
new file mode 100644
index 0000000..53405ee
--- /dev/null
+++ b/test/ns-afl-svg/1818.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1819.svg b/test/ns-afl-svg/1819.svg
new file mode 100644
index 0000000..ac8cc93
--- /dev/null
+++ b/test/ns-afl-svg/1819.svg
@@ -0,0 +1,9 @@
+<svg xmlns="000000000000000000" viewBox="0">0<path d="M0-00v0z" e="0" fill="n&lt;o00oex000np0000"/>0
+0
+0<path d="M0-00v0z" ststke="0" fill="n&lt;o00oex000np0000"/>0
+0<path d="M00,0h0z" ststke="0" fill="000000000000000000000"/>0
+0
+0<path d="M0-00v0z" ststroke="0" fill="n&lt;o00oex000np0000"/>0
+0<path d="M00,0h0z" ststroke="0"/>0
+0<path y="0" fill="#000"/>0
+0<text x="0" y="0" font-size="0" fl="0" tt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1820.svg b/test/ns-afl-svg/1820.svg
new file mode 100644
index 0000000..a907fda
--- /dev/null
+++ b/test/ns-afl-svg/1820.svg
@@ -0,0 +1,77 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000">0
+<a xmlns:xlink="0000" xlink:href="0" xlink:title="0">0<path d="M0000 0c000000000000000000 000-00-00-00-000 000-0000-00-0-0000-00-000-00-00 00-00 00 0000"
+transform="translate(0,0) scale(0.0.000"/>0<ellipse rx="2" ry="1" transform="rotate(0) translate(0,0000)"
+fill="#000" y="0"/>0<ellipse rx="3" ry="2" transform="rotate(000) " fill="#000"
+y="0"/>0</a>0<a xmlns:xlink="0000" xlink:href="0" xlink:title="0">
+0<path d="0000000000000000000000000000000000000000"
+m="0"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0.00.0)"
+fill="#000" y="0"/>0<ellipse rx="3" ry="2" transform="rotate(000) translate(00,00)" fill="#000"
+y="0"/>0</a>0<a xmlns:xlink="0000" xlink:href="0" xlink:title="0">
+0<path d="00000000000000000000000000000000000000000"
+fill="#000" i="0"/>0<ellipse rx="5" ry="2" transform="rotate(000) " fill="#000"
+o="0"/>0</a>0<a xmlns:xlink="0000" xlink:href="0" xlink:title="0">
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000"
+t="0"/>0<ellipse rx="2" ry="2" transform="rotate(000) translate(00,00)" fill="#000"
+o="0"/>0</a>0<a xmlns:xlink="0000" xlink:href="0" xlink:t="0">
+0<path d="00000000000000000000000000000000000000000000000"
+transform="translate(0,000) scale(0.0.000"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0.000.0)"
+fill="#000" y="0"/>0<ellipse rx="3" ry="2" transform="rotate(000) " fill="#000"
+y="0"/>0</a>0<a xmlns:xlink="0000" xlink:href="0" xlink:title="0">
+0<patV d="0"
+m="0"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0.000.0)"
+fill="#000" y="0"/>0<ellipse rx="3" ry="2" transform="rotate(000) translate(00,00)" fill="#000"
+opy="0"/>0</a>0<a xmlns:xlink="0000" xlink:href="0" xlink:title="0">
+0<path d="00000000000000000000000000000000000000000"
+fill="#000" ity="0"/>0<ellipse rx="5" ry="2" transform="rotate(000) " fill="#000"
+oty="0"/>0</a>0<a xmlns:xlink="0000" xlink:href="0" xlink:title="0">
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000"
+t="0"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0..0)"
+fill="#000" ity="0"/>0<ellipse rx="5" ry="2" transform="rotate(000) translate(00,00)" fill="#000"
+opy="0"/>0</a>0<a xmlns:xlink="0000" xlink:href="0" xlink:title="0">0
+0
+<ellipse rx="5" ry="2" transform="rotate(000) translate(00,00)" fill="#000"
+opy="0"/>0</a>0<a xmlns:xlink="0000" xlink:href="0" xlink:title="0">
+0<path d="00000000000000000000000000000000000000000000000"
+transform="translate(0,000) scale(0.0.000"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0.000.0)"
+fill="#H00" ity="0"/>0<ellipse rx="3" ry="2" transform="rotate(000) " fill="#000"
+oty="0"/>0</a>0<a xmlns:xlink="0000" xlink:href="0" xlink:title="0">
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000"
+m="0"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0.000.0)"
+fill="#000" ity="0"/>0<ellipse rx="3" ry="2" transform="rotate(000) translate(00,00)" fill="#000"
+opy="0"/>0</a>0<a xmlns:xlink="0000" xlink:href="0" xlink:title="0">
+0<path d="00000000000000000000000000000000000000000"
+fill="#000" ity="0"/>0<ellipse rx="5" ry="2" transform="rotate(000) " fill="#000"
+oty="0"/>0</a>0<a xmlns:xlink="0000" xlink:href="0" xlink:title="0">
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000"
+t="0"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0..0)"
+fill="#000" ity="0"/>0<ellipse rx="5" ry="2" transform="rotate(000) translate(00,00)" fill="#000"
+opy="0"/>0</a>0<a xmlns:xlink="0000" xlink:href="0" xlink:title="0">
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
+transform="translate(0,000) scale(0.0.000"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0..0)"
+fill="#000" ity="0"/>0<ellipse rx="5" ry="2" transform="rotate(000) translate(00,00)" fill="#000"
+oty="0"/>0</a>0<a xmlns:xlink="0000" xlink:href="0" xlink:title="0">
+0<path d="00000000000000000000"
+transform="translate(0,000) scale(0000,00"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0..0)"
+fill="#000" ity="0"/>0<ellipse rx="5" ry="2" transform="rotate(000) translate(00,00)" fill="#000"
+ity="0"/>0</a>0<a xmlns:xlink="0000" xlink:href="0" xlink:title="0">
+0<path d="M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,000a00,0 00,0,0 00,00M00,000a00,0 00,0,0 00,00" fill="none" stroke="#000" stroke-width="2"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000"/>
+0<circle r="1" cx="0" cy="0" fill="0"/>0<ellipse rx="5" ry="2" transform="rotate(000) translate(00,00)" fill="#000"
+opy="0"/>0</a>0<a xmlns:xlink="0000" xlink:href="0" xlink:title="0">0
+0
+<ellipse rx="5" ry="2" transform="rotate(000) translate(00,00)" fill="#000"
+opy="0"/>0</a>0<a xmlns:xlink="0000" xlink:href="0" xlink:title="0">
+0<path d="00000000000000000000000000000000000000000000000"
+transform="translate(0,000) scale(0.0.000"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0.000.0)"
+fill="#000" ity="0"/>0<ellipse rx="3" ry="2" transform="rotate(000) " fill="#000"
+oty="0"/>0</a>0<a xmlns:xlink="0000" xlink:href="0" xlink:title="0">
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000"
+m="0"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0.000.0)"
+fill="#000" ity="0"/>0<ellipse rx="3" ry="2" transform="rotate(000) translate(00,00)" fill="#000"
+opy="0"/>0</a>0<a xmlns:xlink="0000" xlink:href="0" xlink:title="0">
+0<path d="00000000000000000000000000000000000000000"
+fill="#000" ity="0"/>0<ellipse rx="5" ry="2" transform="rotate(000) " fill="#000"
+oty="0"/>0</a>0<a xmlns:xlink="0000" xlink:href="0" xlink:title="0">
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000"/>0</a>0</svg>
diff --git a/test/ns-afl-svg/1821.svg b/test/ns-afl-svg/1821.svg
new file mode 100644
index 0000000..ae7e8b4
--- /dev/null
+++ b/test/ns-afl-svg/1821.svg
@@ -0,0 +1,33 @@
+<?l?>
+<!DOCTYPE s PUBLIC "0" "0"[ <!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c0' stroke='m0d'/>0<g transform='translate(0, '>0<cirrcle cx='0' cy='0' r='0' fill='0'/>0<circle cx='d' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M0 0A0 0 0 0 0 0 0' stroke='black' stroke-width='2'/>0</g>0">
+<!ENTITY t "">
+<!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='n0n0' stroke='b0u0'/>">
+]>
+<svg width="px" height="30px" on="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="blue"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport2;</g>
+0<g id="0" transform="translate(0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg io="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg ro="0" viewBox="0 0 3 4"
+id="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&o;
+0<svg ao="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g pd="0" transform="translate(0">
+0<text x="0" y="0">0</text>
+0<g>0&V;
+0<svg presetio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1822.svg b/test/ns-afl-svg/1822.svg
new file mode 100644
index 0000000..9b54108
--- /dev/null
+++ b/test/ns-afl-svg/1822.svg
@@ -0,0 +1,9 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,0000h000l000-00v000z" stroke="#000" fill="i&lt;o00"/>0
+0
+0<path d="M00,0h00l00,00v000a0"/>0
+0
+0<path d="M00,0h00000000v00l000,00l000-00z" stroke="#000" fill="n0n00che000"/>0
+<path d="M00,0h00l00,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="i&lt;o00"/>0
+0
+</svg>
diff --git a/test/ns-afl-svg/1823.svg b/test/ns-afl-svg/1823.svg
new file mode 100644
index 0000000..370d0fd
--- /dev/null
+++ b/test/ns-afl-svg/1823.svg
Binary files differ
diff --git a/test/ns-afl-svg/1824.svg b/test/ns-afl-svg/1824.svg
new file mode 100644
index 0000000..9136178
--- /dev/null
+++ b/test/ns-afl-svg/1824.svg
@@ -0,0 +1,44 @@
+<svg width="g" xmlns='000' fill='s0l00tax000ns00000' strofill='0' stroke='0'>
+0
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="=" r="1" style="stroke:black;stroke-width:001cm" transform="translate(0"/>0<circle cx="cm" r="1" style="stroke:0000"/>
+0
+0<circle cy="cm" r="1" n="0" t="0"/>
+0<circle cx="c" cy="cm" r="1" style="fill:0000000 stroke:0000"/>0<circle cx="c" cy="cm" r="1" style="fill:g0b00nsf000"/>
+0<circle cx="c" cy="cm" r="1" style="fill:g0b00nsf000"/>
+0<circle cy="cm" r="1" n="0" t="0"/>
+0
+0<circle cx="c" cy="cm" r="1" style="fill:g0b00nsf000"/>
+0<circle cx="c" cy="cm" r="1" style="fill:g0b00nsf000"/>
+0<circle cy="cm" r="1" style="fill:0000000 stroke:f0a0"/>
+0
+0<circle cy="cm" r="1" n="0" t="0"/>
+0<circLe cx="c" cy="cm" r="1" style="fill:0000000"/>
+0
+0<circle cy="cm" r="1" n="0" m="0"/>
+0<circle cx="c" cy="cm" r="1" style="fill:0000000;stroke:f0a0"/>0<circle cx="c" cy="cm" r="1" style="fill:g0b00nsf000"/>
+0<circle cx="c" cy="cm" r="1" style="fill:g0b00nsf000"/>
+0<circle cy="cm" r="1" n="0" t="0"/>
+0
+0<circle cx="c" cy="cm" r="1" style="fill:g0b00nsf000"/>
+0<circle cx="c" cy="cm" r="1" style="fill:g0b00nsf000"/>
+0<circle cy="cm" r="1" style="fill:0000000;stroke:f0a0"/>
+0
+0<circle cy="cm" r="1" n="0" m="0"/>
+0<circLe cx="c" cy="cm" r="1" style="fill:0000"/>0<circle cx="c" cy="cm" r="1" style="fill:g0b00nsf000"/>
+0<circle cx="c" cy="cm" r="1" style="fill:g0b00nsf000"/>
+0<circle cy="cm" r="1" n="0" t="0"/>
+0
+0<circle cx="c" cy="cm" r="1" style="fill:g0b00nsf000"/>
+0<circle cx="c" cy="cm" r="1" style="fill:g0b00nsf000"/>
+0<circle cy="cm" r="1" style="fill:00000000;stroke:f0a0"/>0<circle cx="c" cy="cm" r="1" style="fill:g0b00nsf000"/>
+0<circle cx="c" cy="cm" r="1" style="fill:g0b00nsf000"/>
+0<circle cy="cm" r="1" n="0" t="0"/>
+0
+0<circle cx="c" cy="cm" r="1" style="fill:g0b00nsf000"/>
+0<circle cx="c" cy="cm" r="1" style="fill:g0b00nsf000"/>
+0<circle cy="cm" r="1" style="fill:0000000;stroke:f0a00;" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1825.svg b/test/ns-afl-svg/1825.svg
new file mode 100644
index 0000000..f5a4fe0
--- /dev/null
+++ b/test/ns-afl-svg/1825.svg
@@ -0,0 +1,25 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="00" xmlns:inkscape="000" width="0" height="50" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+eight="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:b0l00one" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" h="0" y="0"/>
+0<rect style="stroke:b0l00one" eight="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1826.svg b/test/ns-afl-svg/1826.svg
new file mode 100644
index 0000000..015360f
--- /dev/null
+++ b/test/ns-afl-svg/1826.svg
@@ -0,0 +1,33 @@
+<?l?>
+<svg version="0" ln="0" width="0" height="0" style="0" on="0">
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" lG="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0m00ric000or00000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text><circle id="0" cx="0" cy="0" r="5" stroke="l0m00ric000or00000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/1827.svg b/test/ns-afl-svg/1827.svg
new file mode 100644
index 0000000..1dacfbe
--- /dev/null
+++ b/test/ns-afl-svg/1827.svg
@@ -0,0 +1,15 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M00+0h00l00000-00,00" stroke="#000" fill="n0n00che000"/>0
+0
+<path d="M00,0h0000000000000000000000000" stroke="#000" fill="n0n00che000"/>0
+0
+0<path d="M00,0000000000000l000,00l000-00z" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0000000000v000a0"/>0
+0
+0<path d="M00,0000l00,00v00l000,00l000-00z" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h00l00,00v000l0000000-00-000" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h00l00,00v000a0"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="n0n00che000"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v00l000,00h000l000-00v000z" fill="#000"/>0
+0<text x="j" transform="0"/>0</svg>
diff --git a/test/ns-afl-svg/1828.svg b/test/ns-afl-svg/1828.svg
new file mode 100644
index 0000000..36766c2
--- /dev/null
+++ b/test/ns-afl-svg/1828.svg
@@ -0,0 +1,33 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">0<circle cx="c" cy="cm" r="1" style="fill:red;stroke:black;" transform="0"/>
+0<circle cx="c" cy="cm" r="1" style="fill:m0u00"/>
+0<circle cx="c" cy="cm" r="1" style="fill:m0u00 stroke:b0l00k;stroke-width:0c00" transform="0"/>
+0<circle cx="c" cy="0" r="1" style="fill:m0u00" transform="0"/>
+0<circle cx="c" cy="0" r="1" style="fill:m0u00 stroke:b0l00k;stroke-width:0c" transform="0"/>
+0<circle cx="c" cy="cm" r="1" style="fill:m0u00 stroke:b0l00k;" transform="0"/>
+0<circle cx="c" cy="cm" r="1" style="fill:m0r" transform="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:m0u00 stroke:b0l00k;stroke-width:0c00" transform="0"/>
+0<circle cx="cm" cy="0" r="1" style="fill:m0u00" transform="translate(0,0)"/>
+0<circle cx="cm" cy="0" r="1" style="fill:s0r" transform="0"/>
+0<circle cx="cm" cy="0" r="1" style="fill:m0u00 stroke:b0l00k;stroke-width:0c" transform="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:m0u00 stroke:b0l00k;stroke-width:0c00" transform="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:m0u00" transform="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:m0u00 stroke:b0l00k;stroke-width:0c00" transform="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:m0u00 stroke:b0l00k;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:m0r" transform="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:m0u00 stroke:b0l00k;stroke-width:000c00" transform="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:m0u00 stroke-width:000cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:s0r" tranQform="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:m0u00 stroke:b0l00k;stroke-width:000c00" transform="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:m0u00 stroke:b0l00k;stroke-width:000cm" transform="translate(0,0)"/>
+0<circle cx="k"/>
+0<rt h="0" t="0" rx="0" ry="0" x="0" y="0" fl="0"/>
+0<rt h="0" he="0" rx="0" ry="0" x="0" y="0" ll="0"/>
+0
+0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1829.svg b/test/ns-afl-svg/1829.svg
new file mode 100644
index 0000000..ecb70d8
--- /dev/null
+++ b/test/ns-afl-svg/1829.svg
Binary files differ
diff --git a/test/ns-afl-svg/1830.svg b/test/ns-afl-svg/1830.svg
new file mode 100644
index 0000000..5390e62
--- /dev/null
+++ b/test/ns-afl-svg/1830.svg
@@ -0,0 +1,29 @@
+<svg xmlns="00000000000000000000">
+0<path d=""/>0
+0<path d=""/>0
+0<jath d=""/>0
+0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+
+0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+
+0
+0
+0<jath d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0<path d=""/>0
+0
+
+0
+</svg>
diff --git a/test/ns-afl-svg/1831.svg b/test/ns-afl-svg/1831.svg
new file mode 100644
index 0000000..2478dc0
--- /dev/null
+++ b/test/ns-afl-svg/1831.svg
@@ -0,0 +1,86 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x=')' y='0' width='0' height='mm' fill='l0_00anc000ey'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00w'/>0<circle cx='0' cy='0' r='5' fill='b0a00'/>0<circle cx='0' cy='0' r='1' fill='b0i00'/>0<path d='M00 0A00 0 0 0 0 00 00' stroke='black' otrokm-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='d'
+fill='n0s0' stroke='blue'/>">]><svg width="px" h="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" heill="0" e="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g m="0">&Smile;</g>0<text x="0" y="0">0</text>0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport0;</g>
+0<g id="0" transform="00">0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&i;
+0<svg pro="0" vix="0"
+idth="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&Viewport0;
+0<svg pio="0" vox="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>0</g>
+0<g id="0" transform="translate(000 000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g m="0"><text y="0">0</text>&Viewport0;
+0<svg preservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 0 0"
+th="0" height="0">&m;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preseAsp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1832.svg b/test/ns-afl-svg/1832.svg
new file mode 100644
index 0000000..ef7596d
--- /dev/null
+++ b/test/ns-afl-svg/1832.svg
@@ -0,0 +1,15 @@
+<svg xmlns="000000000000000000">0<path d="M0,0h0l0" stroke="#000" fill="n0i00wid00"/>0
+0<path d="0" fill="n0i00wid00"/>0
+0<path d="M0,0h0l0,0h0l0-0v00z" stroke="#000" fill="n0i00wid00"/>0
+0<pat/>0
+0<path d="0" fill="n0i00wid00"/>0
+0<path d="0"/>0
+0
+0<path d="M0,0h00l" stroke="#000" fill="n0i00wid00"/>0
+0<path d="0" fill="n0i00wid00"/>0
+0<path d="M0,0h0l0,0h0l0-00v0z" stroke="#000" fill="n0i00wid00"/>0
+0<pat/>0
+0<path d="0" fill="n0i00wid00"/>0
+0<path d="0"/>0
+0
+</svg>
diff --git a/test/ns-afl-svg/1833.svg b/test/ns-afl-svg/1833.svg
new file mode 100644
index 0000000..1e23624
--- /dev/null
+++ b/test/ns-afl-svg/1833.svg
@@ -0,0 +1,30 @@
+<svg xml___________________wBox="0" fill="url(#0)000" viewBox="0 0 1 1">
+0<path d="M0,0s00-0,00-0,0-00,00-00l00,0c0000000,0,00,0,00,0000000000000)00" fill="url(#0000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="8" fill="#000"/>
+0<circle r="4" cx="0" cy="g" fill="000000000000000000000" id="00" style="fill: url(#0000000" ll="0"/>
+0
+
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="8" fill="#000"/>
+0<circle r="4" cx="0" cy="g" fill="000000000000000000000" id="00" style="fill: url(#00000000000000000" ll="0"/>
+0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" ll="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKbKbKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" ll="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0"/>0
+0<tex_ x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKbKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0"/>0
+0<tex_ x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKgKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLLLLLLLLLLLLLLLt ty="0" rx="0"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/1834.svg b/test/ns-afl-svg/1834.svg
new file mode 100644
index 0000000..541ab55
--- /dev/null
+++ b/test/ns-afl-svg/1834.svg
@@ -0,0 +1,32 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="00" xmlns:inkscape="0t" width="0" height="7" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:e="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0</defs>0
+0<g l="0" inkscape:groupmode="0" transform="0000000000000">
+0<rect style="fill: m0y00blu0;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill: m0y00blu0;"
+p-h="0" id="0" width="0" height="0" x="0" y="0" transform="scale(00,05)"/>
+0</svg>0
+0
+0<rect style="fill: m0y00blu0;"
+p-h="0" id="0" t="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 7 6">
+0<rect style="0" p-h="0"
+d="0" width="0" height="0" x="0" y="0" transform="scale(00,05)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1835.svg b/test/ns-afl-svg/1835.svg
new file mode 100644
index 0000000..e0aab84
--- /dev/null
+++ b/test/ns-afl-svg/1835.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:a0w00;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1836.svg b/test/ns-afl-svg/1836.svg
new file mode 100644
index 0000000..968dd0e
--- /dev/null
+++ b/test/ns-afl-svg/1836.svg
@@ -0,0 +1,356 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0
+0<stop stop-color="q0c00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0,000,0000,00000000000,0000,0000,000000000000,000000000000000000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#000000)"/>
+0<path d="000,0000,000,00000,0000,0,00,0,00,0000,000000000000000000000000000000,0000,00000000,000,0,0000,000000000000,0000,000,000,00000000000000000000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(000000"/>
+0<path d="M00,00c00000,00-000,00-00,000-0000000c000,0000,00000000,000,0,0000,000000000000,000,0,000000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,00..000,00000000 000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-20,104-00l0-00c0-0,0-00,10-12l04,0c0,0,00-0,00-100000000,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000,0000000000000000,,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-60.870,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="000,00000000,0000000000"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,000-00l0-00c0-0,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<bircle r="0" x="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,000-00l0-00c0-0,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" x="0" y="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" x="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,00..000,00000000 000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" y="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,02-12l20,0c0,0,00-0,00-10l0-0000,0c0,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-20,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,02-12l20,0c0,0,00-0,00-10l0-0000,0c0,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1837.svg b/test/ns-afl-svg/1837.svg
new file mode 100644
index 0000000..0416a14
--- /dev/null
+++ b/test/ns-afl-svg/1837.svg
@@ -0,0 +1,15 @@
+<svg ÃtÉ="0">0
+
+0<pa d="0"/>
+0<pa ÃtÉ="0">
+0<defs>0
+0<pa ÃtÉ="0"/>
+0
+0<sp stop-color="0" offset="0"/>
+0
+0</defs>0
+0<path d="0"/>
+0<pa ÃtÉ="0">
+0<defs>0
+0<pa ÃtÉ="0">
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1838.svg b/test/ns-afl-svg/1838.svg
new file mode 100644
index 0000000..18eb1f9
--- /dev/null
+++ b/test/ns-afl-svg/1838.svg
@@ -0,0 +1,46 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="u0q00n" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#00B00"/>
+0<path d="M00,00c00-0000000-0,0-00,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0000000000000000" id="0" style="fill: url(#r0000" fill="url(#00=00"/>
+0<path d="M70,00c090-0,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000" fill="url(#00B00"/>
+0<pAth d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c000000000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 0000000000000000000000000000000000000000 0000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M70,80c090-0,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000000000000000,0000000M00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,0000,0000,000000000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-0,0,10,0,00,00c0,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,000,00-00,000-00000000000,0000,000000000000000,000000000000=00,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,00000000 000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000=00,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,00,000,0000,0l0,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1839.svg b/test/ns-afl-svg/1839.svg
new file mode 100644
index 0000000..a309f53
--- /dev/null
+++ b/test/ns-afl-svg/1839.svg
@@ -0,0 +1,78 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='red'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00sch000o'/>0<circle Nx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' f='0'/>0<path d='M0 00A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='b0u0'/>">]><svg width="px" height="30px" on="0" xmlns="0000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="b0u0"/>
+0<g ze="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&r;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0<g id="0" height="px" on="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g ze="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0
+0<g><text y="0">0</text>&p;
+0<svg io="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>0
+<svg ro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg resctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg spectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t0;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg pro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&t0;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presetRatio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&t0;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1840.svg b/test/ns-afl-svg/1840.svg
new file mode 100644
index 0000000..b92e21b
--- /dev/null
+++ b/test/ns-afl-svg/1840.svg
@@ -0,0 +1,14 @@
+<svg xmlns="000000000000000000" viewBox="0 0 5 6">0<path d="M00 000000-M000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
+transform="translate(0,0) scale(0-0"/>0<ellipse rx="2" ry="1" transform="0"
+fill="#000" pa="0"/>0<ellipse rx="3" ry="2" transform="rotate(0-0 0000"
+sfwrm="0"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(000,0000)"
+fill="#000" pa="0"/>0
+0
+0
+0
+0
+<ellipse rx="2" ry="1" transform="000"
+fill="#000" pa="0"/>0<ellipse rx="5" ry="2" transform="rotate(0-000-00"
+sfwrm="0"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(000,0000)"
+fill="#000" opa="0"/>0<ellipse rx="3" ry="2" transform="rotate(0-00 0000,000" fill="#000"
+ity="0"/>0</svg>
diff --git a/test/ns-afl-svg/1841.svg b/test/ns-afl-svg/1841.svg
new file mode 100644
index 0000000..b67d107
--- /dev/null
+++ b/test/ns-afl-svg/1841.svg
@@ -0,0 +1,61 @@
+<?l?>
+<!DOCTYPE s PUBLIC "0" "0">
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<svg xmlns="00000000000000000000000000" xmlns:xlink="00" id="0" viewBox="0 0 8 6" width="%" height="1%" n="0" baseProfile="0">
+0<SVGTestCase xmlns="0000">
+0<OperatorScript ver="0" testname="0">
+0<Paragraph>
+0
+0
+0</Paragraph>
+0<Paragraph>
+0
+0
+0
+
+0
+0
+0
+0
+0</Paragraph>
+0<Paragraph>
+0
+0
+0</Paragraph>
+0</OperatorScript>
+0</SVGTestCase>
+0<title id="0">0</title>
+0<desc id="0">0</desc>
+0<!--0-->
+0<!--0-->
+0<!--0-->
+0<g id="0">
+0<!--0-->
+0<!--0-->
+0<!--0-->
+0<pattern id="Pat0a" x="0" y="0" h="0" ht="0" pits="0">
+0<rect x="0" y="0" w="0" he="0" fill="0"/>
+0<rect x="0" y="0" width="0" height="0" fill="0"/>
+0<rect x="0" y="0" width="0" he="0" fill="0"/>
+0<rect x="0" y="0" width="0" height="0" fill="0"/>
+0</pattern>
+0<pattern id="Pat0b" xlink:href="0" width="0" height="0"/>
+0<rect x="0" y="0" width="0" height="%" fill="url(#Pat0a)"/>
+0<text font-family="0" e="0" x="0" y="0">0</text>
+0<rect x="0" y="0" width="0" height="0" fill="url(#Pat0b)"/>
+0<text font-family="0" font-size="0" x="0" y="0">0</text>
+0</g>
+0<text id="0" x="0" y="0" font-size="0" stroke="0" fill="0">0</text>
+0
+</svg>
diff --git a/test/ns-afl-svg/1842.svg b/test/ns-afl-svg/1842.svg
new file mode 100644
index 0000000..f273f88
--- /dev/null
+++ b/test/ns-afl-svg/1842.svg
Binary files differ
diff --git a/test/ns-afl-svg/1843.svg b/test/ns-afl-svg/1843.svg
new file mode 100644
index 0000000..d114d8b
--- /dev/null
+++ b/test/ns-afl-svg/1843.svg
@@ -0,0 +1,112 @@
+<?l?><!DOCTYPE g PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0a00che000' stroke='r0d'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='1' fill='black'/>0<circle cx='0' cy='0' r='5' f='0'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='b0u0'/>">]><svg width="px" height="30px" n="0" xmlns="0000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="b0u0"/>
+0<g ize="0">0<text x="0" y="0">0</text>
+0<g t="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g tranVform="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&Viewport2;</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" heifht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0</g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" vilwBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="0000"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewJox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg prbectRatio="0" viewBox="0 0 0 0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewGox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg ectRaTio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1844.svg b/test/ns-afl-svg/1844.svg
new file mode 100644
index 0000000..f4cd147
--- /dev/null
+++ b/test/ns-afl-svg/1844.svg
@@ -0,0 +1,7 @@
+<svg xmlns="00" viewBox="0 0 5 6">0<path d="M0 00000c000-00-00-000 00-000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-000 0000000000000000000-0-0000-00-000-000 0-00 00-00 000-00 00 00 000 00 000-00 00-00 00-00 0000-00 00 0 00-000 00-00V000000-00-000 00000000000000000000000000000000000-000 00-000 0-000 0-000-0-000-0-00-0-00-0-000-00-00-0-00-00-000-00-000-00-000-000-000-00-000-000-0000 0000-00 000-000 000-00-00-00-000 000-000 00-00 00-00 0-00-00-0-0000-00-000-000 0-00 00-00 000-00 00 00 000 00 000-00 00-00 00-00 0000-00 00 0 00-000 00-00V000-00-000-00-000 00-000 000-000 0000-000
+000 0-00 00-000 00-000 0-000 0-000-0-000-0-00-0-00-0-000-00-00-0-00-00-000-00-000-00-000-000-000-00-000-000-000-00-00T000-000000-0-0000000000000000000000000000000000-0 00-00 0-00-0000000000000000-000 0-00 00-00 000-00 00 00 000 00 000-00 00-00 00-00 0000-00 00 0 00-000 00-000-00-00-000-00-000000-000000-0-000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
+transform="0,0,00"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(000,0000)"
+fill="#000" py="0"/>
+0
+0
+</svg>
diff --git a/test/ns-afl-svg/1845.svg b/test/ns-afl-svg/1845.svg
new file mode 100644
index 0000000..097a69a
--- /dev/null
+++ b/test/ns-afl-svg/1845.svg
@@ -0,0 +1,424 @@
+<svg ŃtÉ="0">
+0<defs>0<linearGradient id="pyYello0" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" t="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0000" gra_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="url(#0000000" l="0"/>
+0<ph d="0" of="0"/>
+0
+0<stop or="0" of="0"/>
+0<stop stolor="0" of="0"/>
+0
+0<stop or="0" of="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stÚ0/>
+0<stop or="0" et="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<ph d="0"/>0
+0<ci r="0" cx="0"/><sp st="0" et="0"/>
+0
+0<stop st="0" et="0"/>
+0<stop sr="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<pCth d="0" id="0000" s="0" fill="0"/>
+0<pLth d="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-0l00,0c0,0,00-0,00-00l0-000" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="0000000000000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#00000)"/>
+0<path d="00000000000000000000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-00000000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-00000000007000000000000000000000000000000000000 0000000000000000000000000000" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>
+0
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,10-00,100,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000000"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-00100.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" ficy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,10-00,100,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,10-00,100,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c097-0,10-00,100-00l0-00c0-0,0-00,02-00l20,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" f="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l000000,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,100-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-100000000,000,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="u0000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" f="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,104,00v0" fill="url(#pyYello0)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1846.svg b/test/ns-afl-svg/1846.svg
new file mode 100644
index 0000000..92eee74
--- /dev/null
+++ b/test/ns-afl-svg/1846.svg
@@ -0,0 +1,9 @@
+<svg d='0' xmlns='000' drofill='0' stroke='0'>
+0<path d='M0,0c0,0-0,0-0,0-' fill='d0q00tax000ts00000' stroke='b0a00'/>
+0
+<path d='M0,0c0,0-0,0-0,0-' fill='d0q00tax000ts00000' stroke='b0a00'/>
+0
+0
+0<path d='M0,0c0,0-0,0-0,0-' fill='d0q00tax000ts00000' stroke='b0a00'/>0
+0
+0<path d='M0,0c0,0-0,0-0,0-' fill='d0q00tax000ts00000' stroke='b0a00'/>0</svg>
diff --git a/test/ns-afl-svg/1847.svg b/test/ns-afl-svg/1847.svg
new file mode 100644
index 0000000..1a69d1a
--- /dev/null
+++ b/test/ns-afl-svg/1847.svg
@@ -0,0 +1,14 @@
+<svg xmlns="00000000000000000000000000" viewBox="0">
+0<path d="M0-00v0z" e="0" fill="n&lt;o00oex000np0000"/>0
+0
+0<path d="M0-00v0z" e="0" fill="n&lt;o00oex000np0000"/>0
+<svg xmlns="00000000000000000000000000" viewBox="0">
+0<path d="M0-0v00z" e="0" fill="n&lt;o00oex000np0000"/>0
+0
+0<path d="M0-0v00z" tstroke="0" fill="n&lt;o00oex000np0000"/>0
+0<path d="M00,0h0z" ststroke="0" fill="n&lt;o00oex000nc0000"/>0
+0<path d="M0,0h0l0,0,0" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
+0<path d="M00,0h0z" ststroke="0" fill="n&lt;o00oex000nc0000"/>0
+0<path d="M0,0h0l0,0,0" fill="#000"/>0
+0<text x="0" y="0" t-se="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1848.svg b/test/ns-afl-svg/1848.svg
new file mode 100644
index 0000000..1b3f9dd
--- /dev/null
+++ b/test/ns-afl-svg/1848.svg
@@ -0,0 +1,4 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c0' stroke='m0d'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<path d='M000 00 000000000' stroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY V "">]><svg width="ex" height="px" version="0" xmlns="000000000000000000">
+0<g transform="matrix(0,0,0,6,0,0)">
+0&Smile;
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1849.svg b/test/ns-afl-svg/1849.svg
new file mode 100644
index 0000000..ab70468
--- /dev/null
+++ b/test/ns-afl-svg/1849.svg
@@ -0,0 +1,66 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" a_eorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="d0`00"/>0
+0<circle r="0" cx="0" y="0" ot="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,23,00c0,0-0,00-10,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-00000-00-00-000 000-0 00000000000000000000000000-0000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c00000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-200000000000000000000000000000000000=0000000000000000000000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000000000)"/>
+0<path d="00000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" Fill="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,00-00,00000000l00l0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>
+0
+0<circle r="4" cx="v" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="#000"/>
+0<circle r="4" y="0" fill="u00000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(00"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="u0l0"/>
+0<path d="000" fill="url(#p"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1850.svg b/test/ns-afl-svg/1850.svg
new file mode 100644
index 0000000..28a0a80
--- /dev/null
+++ b/test/ns-afl-svg/1850.svg
@@ -0,0 +1,12 @@
+<svg xmlns="0000000000" viewBox="0 0 0 0">
+0<path d="M0,0h0c,0" stroke="#000" l="0"/>0
+0
+0&lt;0
+0<path d="M00,000,00" stroke="#000" fill="d&lt;o00ura000or"/>0
+0<path d="000" fill="#000"/>0
+0<text x="0" y="0" nt-se="0" fill="0" t-r="0"><![CDATA[0]]></text>
+0<path d="M0,0h00c00,00" stroke="#000" fill="d&lt;o00ura000or"/>0
+0
+0&lt;0
+0<path d="M00,0,00" stroke="#000" fill="d&lt;o00ura000or"/>0<path d="000" fill="#00"/>0
+0<text x="0" y="0" nt-se="0" fill="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1851.svg b/test/ns-afl-svg/1851.svg
new file mode 100644
index 0000000..eb46caa
--- /dev/null
+++ b/test/ns-afl-svg/1851.svg
@@ -0,0 +1,15 @@
+<svg xmlns="0000000000" s="0" viewBox="0 0 5 6">0<path d="M00 0c00-0-000 00-00-00-0000000" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000 00-00 000
+0-00-000-00-000 00-000 000-000 0000-000
+000 0-00 00-000 00-000 0-000 0-000-0-00" fill="l0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000 00-00 0000-00 00 0 00-000 00-000-00-00-000-00-000 00-000 000-000 0000-000
+000 0-00 00-000 00-000 0-000 0-000-0-000-0-00-0-00-0-000-00-00-0-00-0000-000-000-00-0 00-0 000 0 000 0000 0 00 00 00
+0 00 0 00 00 00 0 00 0 00 00 00 000 000 000 000 000 000 000-000 00?000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000 00-00 0000-00 00 0 00-000 00-000-00-00-000-00-000 00-000 000-000 0000-000
+00000-00-000-00-000 00-000-00-000 00-000 000-000 000 000 000 000 000 00 000-000 000-000 000-000 000
+000 000 000-00 0000-00 000-00 000 0 000000!0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000 00-00 0000-00 00 0 00-000 00-000-00-00-000-00-000 00-000 000-000 0000-000
+000 0-00 00-000 00-000 0-000 0-000-0-000-0-00-0-00-0-000-00-00-0-00-0000-000-000-00-0 00-0 000 0 000 0000 0 00 00 00
+0 00 0 00 00 00 0 00 0 00 00 00 000 000 000 000 000 000 000-000 00?00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000 00-00 0000-00 00 0 00-000 00-000-000000000le00000,00"/>0<ellipse rx=" "/>0<se rx="0" ry="0" transform="0" fl="0"
+ty="0"/>0</svg>
diff --git a/test/ns-afl-svg/1852.svg b/test/ns-afl-svg/1852.svg
new file mode 100644
index 0000000..176ae80
--- /dev/null
+++ b/test/ns-afl-svg/1852.svg
@@ -0,0 +1,9 @@
+<svg xmlns="0000000000000000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h00S" stroke="#000" fill="l0n&lt;0"/>0
+0<path d="M00,0h00l00,00v00l00,00v00l000,00h00v" stroke="#000" fill="l0n&lt;0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0<text x="0" y="0" ont-s.ize="0" fill="0" text-ar="0"><![CDATA[0]]></text>
+0&lt;0
+0<path d="M000,00v00l000,00h00v" stroke="#000" fill="l0n&lt;0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0<text x="0" y="0" ze="0" ill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1853.svg b/test/ns-afl-svg/1853.svg
new file mode 100644
index 0000000..9eac625
--- /dev/null
+++ b/test/ns-afl-svg/1853.svg
@@ -0,0 +1,12 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0s00" stroke-width="0" fill="#000" f="0"/>
+0<path d="0" stroke="e0d"/>
+0<circle r="6" fill-rulg="0"/>
+0<path d="0" stroke="e0d"/>
+0<circle r="6" cx="0" cy="L"/>
+0
+0<path d="00000000" stroke="e0d"/>
+0<circle r="6" cx="0" cy="L"/>0
+0<path d="M0,0s0,0,0,0l0,0s0,0,0-0l0-0s0-0-0,0z" stroke-width="1" fill="#000" fill-rulg="0" s="0"/>
+0<path d="00000000" stroke="e0d"/>
+0<circle r="6" cx="0" cy="L"/>0</svg>
diff --git a/test/ns-afl-svg/1854.svg b/test/ns-afl-svg/1854.svg
new file mode 100644
index 0000000..ec1e48a
--- /dev/null
+++ b/test/ns-afl-svg/1854.svg
@@ -0,0 +1,53 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="u0d00ien" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000,0000,00000000,0000" fill="url(#0000)"/>
+0<path d="M00,00c0,000,00000000,0-00,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" c="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000,00000000000000000000000000000000000000000000000000000000000000000000,0,00000000000000,000" fill="url(#0000)"/>0
+0<path d="000,00000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,000,00-00,000-000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000-0000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0,0000,000000000000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M70,80c0,73-230-20-0-24100.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<ci y="0" l="0"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M70,80c0,73-230-24-0-24108.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1855.svg b/test/ns-afl-svg/1855.svg
new file mode 100644
index 0000000..82da312
--- /dev/null
+++ b/test/ns-afl-svg/1855.svg
@@ -0,0 +1,157 @@
+<svg wBox="0">
+0<defs>0<linearGradient id="pyYellow" gra_ieorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>0
+0
+0<stop stop-color="f0b0" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="000" t="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stVp stop-color="0" t="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0" gra_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="url(00"/>
+0<path d="0" f="0"/>
+0
+0
+0<stop stolor="0" f="0"/>
+0
+0<stop stopor="0" f="0"/>
+0
+0
+0<stop r="0" offset="0"/>
+0
+0<stop r="0" offset="0"/>
+0<stop r="0" t="0"/>
+0
+0
+0<stop r="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="0"/>0
+0<circle r="0" x="0"/><stop t="0" e="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop r="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c000,00,0,00-0,0000000000000000"/>0
+0<circle r="4" cx="r"/>
+0<path d="000000000000000000000000000" fill="url(#00000000"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="00000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c09000,00-00,0
+4,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-0000-000 00-00-00 00-00 000-00 0000-00 00-0-000-0,000" fill="#000000"/>
+0<path d="00000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="0" cx="z" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0
+0<circle r="z" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-6-00000000010000000000000000000000000000000000000 0000000000000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="Y" cy=")"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" Will="0"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c0,0000,00000,000000,000,0000,000,000,0000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,00000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0004" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-04-6-000080000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" film="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1856.svg b/test/ns-afl-svg/1856.svg
new file mode 100644
index 0000000..4741590
--- /dev/null
+++ b/test/ns-afl-svg/1856.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:d0f0;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:d0f0" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1857.svg b/test/ns-afl-svg/1857.svg
new file mode 100644
index 0000000..5b5aa3b
--- /dev/null
+++ b/test/ns-afl-svg/1857.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:b0l00one" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1858.svg b/test/ns-afl-svg/1858.svg
new file mode 100644
index 0000000..56be6a0
--- /dev/null
+++ b/test/ns-afl-svg/1858.svg
@@ -0,0 +1,7 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">0<path d="M0-0v000z" tstke="0" fill="n&lt;o00oex000nc0000"/>0
+0<path d="0000000000000" stroke="#000" fill="n&lt;o00tex000nc0000"/>0
+0<path d="M00,0h000000000000r0"/>0
+0<path d="M00,0h00l00,00v00l0,00l000-00l000-00v000z" ststroke="0" fill="n&lt;o00oex000nc0000"/>0
+0<path d="M00,0h000000l00000000000000000000000" ststroke="0" fill="n&lt;o00oex000nc0000"/>0
+0<path d="M00,0h00l00,000'00000,0" fill="#000"/>0
+0<text x="0" y="0" font-size="0" l="0" tt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1859.svg b/test/ns-afl-svg/1859.svg
new file mode 100644
index 0000000..7567c64
--- /dev/null
+++ b/test/ns-afl-svg/1859.svg
@@ -0,0 +1,101 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="0000000000000000000000">
+0<style type="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="o" cy="cm" r="0" t="0"/>
+0
+<circle cx="c" cy="0" r="0" transform="00"/>0<circle cx="c" r="1" l="0" transform="0"/>
+0
+0<circle cxcx="0" cy="0" r="0" transform="000"/>0<circle cx="cm" r="1" style="fill:blue;stroke:black;stroke-width:cm" transform="0000"/>
+0
+<circle cx="cm" cy="0" r="0" transform="000"/>0<circle cx="pc" r="0"/>
+0
+0<circle cx="cm" cy="0" r="0" transform="000"/>0<circle cx="pc" r="0" slq="0" transform="0"/>
+0
+0<circle cx="cm" cy="t" r="1" style="fill:blue;"/>0<circle cx="pc" r="1" tyle="0"/>
+0
+0
+<circle cx="c" cy="t" r=":" m="0"/>0<circle cx="pc" r="0" style="fill:blue;stroke:black;stroke-width:cm" transform="0000"/>
+0
+<circle cx="P" cy="t" r=":" transform="000"/>0<circle cx="pc" r="a"/>
+0
+0<circle cx="cm" cy="t" r="0" transform="000"/>0<circle cx="pc" r="1" tylq="0" transform="0"/>
+0
+0
+0
+<circle cx="P" cy="pt" r=":" transform="000"/>0<circle cx="pc" r="a"/>
+0
+0<circle cx="cm" cy="pt" r="0" transform="000"/>0<circle cx="cm" r="1" sylq="0" transform="translate(0000000"/>
+0
+0<circle cxcx="0" cy="pt" r=":" transform="000"/>0<circle cx="cm" r="0" style="fill:blue;stroke:black;stroke-width:cm" transform="0000"/>
+0
+<circle cx="P" cy="pt" r=":" transform="000"/>0<circle cx="pc" r="a"/>
+0
+0<circle cx="cm" cy="pt" r="0" transform="000"/>0<circle cx="cm" r="1" stlq="0" transform="translate(0000000"/>
+0
+0<circle cx="cm" cy="pt" r="1" style="fill:blue;stroke:black;stroke-width:t" transform="0000"/>0<circle cx="pc" r="1" style="fill:blue;stroke:black;stroke-width:t" transform="0000"/>0<circle cx="pc" r="1" style="fill:blue;stroke:black;stroke-width:c"/>
+0
+0
+<circle cx="cm" cy="pt" r=":" transform="000"/>0<circle cx="pc" r="1" style="fill:blue;stroke:black;stroke-width:cm" transform="0000"/>
+0
+<circle cx="P" cy="pt" r=":" transform="000,000"/>0<circle cx="pc" r="a"/>
+0
+0<circle cx="cm" cy="pt" r="0" transform="000,000"/>0<circle cx="pc" r="1" styq="0" transform="translate(0000000"/>
+0
+0
+0
+<circle cx="P" cy="pt" r=":" transform="000"/>0<circle cx="pc" r="a"/>
+0
+0<circle cx="cm" cy="pt" r="0" transform="000,000"/>0<circle cx="cm" r="1" styl="0" transform="translate(000"/>
+0
+0<circle cxcx="0" cy="pt" r=":" transform="000"/>0<circle cx="cm" r="1" style="fill:blue;stroke:black;stroke-width:1cm" transform="0000"/>
+0
+<circle cx="P" cy="pt" r=":" transform="000"/>0<circle cx="pc" r="a"/>
+0
+0<circle cx="cm" cy="pt" r="0" transform="000,000"/>0<circle cx="cm" r="1" stylq="0" transform="0"/>
+0
+0<circle cx="cm" cy="pt" r="1" style="fill:blue;stroke:black;stroke-width:t0" transform="0000"/>0<circle cx="pc" r="1" style="fill:blue;stroke:black;stroke-width:t0" transform="0000"/>0<circle cx="pc" r="1" style="fill:blue;stroke:black;stroke-width:0c0"/>
+0
+0
+<circle cx="cm" cy="pt" r=":" transform="000,000"/>0<circle cx="pc" r="1" style="fill:blue;stroke:black;stroke-width:1cm" transform="0000"/>
+0
+<circle cx="P" cy="pt" r=":" transform="000,000"/>0<circle cx="pc" r="a"/>
+0
+0<circle cx="cm" cy="pt" r="0" transform="000,000"/>0<circle cx="pc" r="1" stylq="0" transform="translate(0000000"/>
+0
+0
+0
+<circle cx="P" cy="pt" r=":" transform="000"/>0<circle cx="pc" r="a"/>
+0
+0<circle cx="cm" cy="p" r="0" transform="000,000"/>0<circle cx="pc" r="1"/>
+0
+0<circle cx="cm" cy="pt" r="0" trat="0"/>0<circle cx="cm" r="1" stylq="0" transform="translate(0000000"/>
+0
+0<circle cxcx="0" cy="pt" r=":" transform="000"/>0<circle cx="cm" r="0" style="fill:00000000;stroke-width:0t0" transform="0000"/>0<circle cx="pc" r="1" style="fill:blue;stroke:black;stroke-width:0c0"/>
+0
+0
+<circle cx="cm" cy="pt" r=":" transform="000,000"/>0<circle cx="pc" r="1" style="fill:blue;stroke:black;stroke-width:0cm" transform="0000"/>
+0
+<circle cx="cm" cy="pt" r=":" transform="000,000"/>0<circle cx="pc" r="c"/>
+0
+0
+<circle cx="cm" cy="pt" r=":" transform="000,000"/>0<circle cx="cm" r="1" style="fill:blue;stroke:black;stroke-width:0cm" transform="0000"/>
+0
+<circle cx="cm" cy="pt" r=":" transform="000,000"/>0<circle cx="pc" r="1"/>
+0
+0<circle cx="cm" cy="pt" r="0" transform="000,000"/>0<circle cx="pc" r="1" stylq="0" transform="translate(0000000"/>
+0
+0<circle cx="cm" cy="pt" r="1" style="fill:blue;stroke:black;stroke-width:0t0" transform="0000"/>0<circle c="0" cy="pt" r="1" style="fill:blue;stroke:black;stroke-width:0t0" transform="0000"/>0<circle cx="pc" r="1" style="fill:blue;stroke:black;stroke-width:0c0"/>
+0
+0
+<circle cx="cm" cy="pt" r=":" transform="000,000"/>0<circle cx="pc" r="1" style="fill:blue;stroke:black;stroke-width:001cm" transform="0000"/>
+0
+<circle cx="cm" cy="pt" r=":" transform="000,000"/>0<circle cx="pc" r="1"/>
+0
+0<circle cx="cm" cy="pt" r="0" transform="000,000"/>0<circle cx="pc" r="0" stylq="0" transform="translate(0000000"/>
+0
+0<circle cx="cm" cy="pt" r="1" style="fill:blue;stroke:black;stroke-width:0t0" transform="0000"/>0<circle cx="pc"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1860.svg b/test/ns-afl-svg/1860.svg
new file mode 100644
index 0000000..508efa2
--- /dev/null
+++ b/test/ns-afl-svg/1860.svg
@@ -0,0 +1,20 @@
+<svg xmlns="00000000000000000000000000" xmlns:k="0" viewBox="0 0 1 2">
+0<radialGradient o="0" x="0" c="0" r="0" s="0"><p t="0" p-c="0"/><p ot="0"/></radialGradient>
+0<path d="M00,000A0,00 0,0,0 00,000C00,00 00,00 00,000C000,00 00,00 00,000C000,00 00,00 00,00" id="0" fill="urc00cle00"/>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" g="0"><sp ot="0" sp-c="0"/><sp ot="0"/></radialGradient>
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000C00 00,00 000 00,00" id="0" fill="urc00cle00"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c000000000 00,00 00,00 00000000,00" id="0" fill="urc00cle00"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0-00000 000000000000000000-00 0000-00 000-000 000-00-00-00-000 000-0 0000:0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M000-0c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000000000000000000000" id="0" fill="urc00cle00"/>0
+0<path d="M000,000c0,00,0,00-0,00l0000-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1861.svg b/test/ns-afl-svg/1861.svg
new file mode 100644
index 0000000..2bbf6a1
--- /dev/null
+++ b/test/ns-afl-svg/1861.svg
@@ -0,0 +1,26 @@
+<svg xmlns="0000000000" l="0" viewBox="0">0<line d="0" stroke="0000000000000"/>0
+0<line d="0" stroke="0000000000000"/>0
+0
+0<line d="0" st="0" yl="0"/>0
+0<path d="00" fill="#000"/>0<line d="0" stroke="#0.0" fill="none"/>0
+0
+0<line d="0" st="0" fill="0000"/>0<line d="0" stroke="0000000000000"/>0
+0
+0<line d="0" st="0" yl="0"/>0
+0<path d="0000" fill="#000"/>0<line d="0" sR="0" fill="none"/>0
+0
+0<line d="0" st="0" fill="0000"/>0
+0<path d="0000" f="0"/>0
+0<![CDATA[0]]>0
+0<line d="0" st="0" ll="0"/>0
+0<path d="0000" fill="#000"/>0<line d="0" stroke="#0.0" fill="none"/>0
+0
+0<line d="0" st="0" fill="0000"/>0<line d="0" stroke="0000000000000"/>0
+0
+0<line d="0" st="0" ll="0"/>0
+0<path d="0000" fill="#000"/>0<line d="0" sR="0" fill="none"/>0
+0
+0<line d="0" st="0" fill="0000"/>0
+0<path d="0000" f="0"/>0
+0<![CDATA[0]]>0
+</svg>
diff --git a/test/ns-afl-svg/1862.svg b/test/ns-afl-svg/1862.svg
new file mode 100644
index 0000000..552c3bd
--- /dev/null
+++ b/test/ns-afl-svg/1862.svg
@@ -0,0 +1,182 @@
+<svg mlfs="0" viewBox="0 0 1 1">
+0<path d="M0,0h00l00,00v00l000,00h00
+00000-
+00000000000000000000000"/>
+0<path d="M0000-00
+000 00
+0
+00"/>
+0<path d="00000000" stroke="#000" fill="d0t00ove"/>0
+0<path d="M00,0,0000" stroke="#000" fill="d0t00ove"/>0
+0
+0
+0
+0
+0
+0
+0<path d="M00,00c0" stroke="#000" fill="d0t00ove"/>0
+0<path d="M00,0,0000" stroke="#000" fill="d0t00ove"/>0
+0
+0<path d="M00,00c00-0-00-00-00,00-0,0-0,00,0,0000000000000000000000000000000000000"/>
+0<path d="00000000" stroke="#000" fill="d0t00ove"/>0
+0<path d="M00,0,0000" stroke="#000" fill="d0t00ove"/>0
+0
+0
+0
+0
+0<path d="M00,0,0000" stroke="#000" fill="d0t00ove"/>0
+0
+0
+0
+0
+0
+0
+0<path d="M00,00c0" stroke="#000" fill="d0t00ove"/>0
+0<path d="M00,0,0000" stroke="#000" fill="d0t00ove"/>0
+
+0<path d="M00,00c00-0-00-00-00,00-0,0-0,00,0,0000000000000000000000000000000000000"/>
+0<path d="00000000" stroke="#000" fill="d0t00ove"/>0
+0<path d="M00,0,0000" stroke="#000" fill="d0t00ove"/>0
+0
+0
+0
+0
+0
+0
+0<path d="M00,00c0" stroke="#000" fill="d0t00ove"/>0
+0<path d="M00,0,0000" stroke="#000" fill="d0t00ove"/>0
+0<path d="M00,0,0000" stroke="#000" fill="d0t00ove"/>0
+0
+0
+0
+0
+0
+0
+0<path d="M00,00c0" stroke="#000" fill="d0t00ove"/>0
+0<path d="M00,0,0000" stroke="#000" fill="d0t00ove"/>0
+
+0<path d="M00,00c00-0-00-00-00,00-0,0-0,00,0,0000000000000000000000000000000000000"/>
+0<path d="00000000" stroke="#000" fill="d0t00ove"/>0
+0<path d="M00,0,0000" stroke="#000" fill="d0t00ove"/>0
+0
+0
+0
+0
+0
+0
+0<path d="M00,00c0" stroke="#000" fill="d0t00ove"/>0
+0<path d="M00,0,0000" stroke="#000" fill="d0t00ove"/>0
+0
+0<path d="M00,00c00-0-00-00-00,00-0,0-0,00,0,00c0,0,00,0,00,0l00-0c00,0-0,0-00,00-0-0-0-0,0-00c0-0,0-0,00,0z"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<path d="00" fill="d0t00ove"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<path d="000000" fill="d0t00ove"/>0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<path d="M00,00c0" stroke="#000" fill="d0t00ove"/>0
+0<path d="M00,0,0000" stroke="#000" fill="d0t00ove"/>0
+0<path d="M00,0,0000" stroke="#000" fill="d0t00ove"/>0
+0
+0
+0
+0
+0
+0
+0<path d="M00,00c0" stroke="#000" fill="d0t00ove"/>0
+0<path d="M00,0,0000" stroke="#000" fill="d0t00ove"/>0
+
+0<path d="M00,00c00-0-00-00-00,0c00,0-0,00,0,00c0,0,00,00
+00-00-000-00
+000 00
+0
+00"/>
+0<path d="00000000" stroke="#000" fill="d0t00ove"/>0
+0<path d="M00,0,0000" stroke="#000" fill="d0t00ove"/>0
+0
+0
+0
+0
+0
+0
+0<path d="M00,00c0" stroke="#000" fill="d0t00ove"/>0
+0<path d="M00,0,0000" stroke="#000" fill="d0t00ove"/>0
+0
+0<path d="M00,00c00-0-00-00-00,0c00,0-0,00,0,00c0,0,00,0,00,0l00-0c00,0-0,0-00,0c00-0-0-0,0-00c0-0,0-0,00,0z"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<path d="00" fill="d0t00ove"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<path d="000000" fill="d0t00ove"/>0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+</svg>
diff --git a/test/ns-afl-svg/1863.svg b/test/ns-afl-svg/1863.svg
new file mode 100644
index 0000000..64ed843
--- /dev/null
+++ b/test/ns-afl-svg/1863.svg
@@ -0,0 +1,354 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" gradientTransform="rotate(,00,,00,0">
+0<stop stop-color="0000000" offset="0"/>
+0<stop stop-color="0000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" l="0"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="0" l="0"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-00000000000000" fill="u0e0"/>
+0<path d="M00,00c00000000000-0-00000000000 000000,0000000000000000000000000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" l="0"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" y="0" l="0"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-00000,c0,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" l="0"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" x="0" y="0" ll="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c000000000000000000000000000000000000000000000 000-00-00-00000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" f="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" iill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1864.svg b/test/ns-afl-svg/1864.svg
new file mode 100644
index 0000000..c8e6f08
--- /dev/null
+++ b/test/ns-afl-svg/1864.svg
@@ -0,0 +1,101 @@
+<?l?>
+<svg version="0" xmlns="0000000000">0<circle d="0" cx="0" cy="0" r="5" stroke="l0w00aic0"
+h="0"/>0
+0
+0
+0<script e="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g d="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="1" stroke="l0w00aic0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>
+0<text x="0" y="0">0</text>
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="1" stroke="l0w00aic0"
+stroke-width="3"/>
+0
+0
+0<script pe="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="1" stroke="l0w00aic0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/1865.svg b/test/ns-afl-svg/1865.svg
new file mode 100644
index 0000000..d223abf
--- /dev/null
+++ b/test/ns-afl-svg/1865.svg
@@ -0,0 +1,27 @@
+<svg xmlns="00000000000000000000000000" xmlns:xlin0="00" viewBox="0 0 1 2">
+0<radialGradient id="0" cx="0" cy="0" t="0" s="0"><op ot="0" p-c="0"/><op ot="0"/></radialGradient>
+0<path d="M0,000A0000000000000000000000000000,00 00,00 00,00 0000000000000000,00" id="0" fill="d0l00grs00"/>
+0<use xlin0:href="0" t="0"/>
+0
+
+0<path d="M000000000000000000000,00l0000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="M00,00c0,0-0,00-00,000-00000000000000000000000000000000000000000000000000000000" id="0" fill="d0l00grs00"/>
+0<use xlin0:href="0" trm="0"/>
+0
+
+0<path d="M00,00c0-0,0-00,00-00c00,0,00,0,00,00l0,00c00000000000000000000000000000" id="0" fill="d0l00grs00"/>
+0<use xlin0:href="0" m="0"/>
+0
+
+0<path d="M00,00c0-0,0-00,00-00c00,0,00,0,00,00l0,00c000000000-00-000,0-00,00-000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000-0000#0000000000000000000000000000000000000000000000000000000000000000000" id="0" fill="d0l00grs00"/>
+0<use xlin0:href="0" m="0"/>
+0
+
+0<path d="M00,00c0-0,0-00,00-00c00,0,00,0,00,00l0,00c00000000000000000000000000000" id="0" fill="d0l00grs00"/>
+0<use xlin0:href="0" t="0"/>
+0
+
+0<path d="M00,00c0-0,0-00,00-00c00,0,00,0,00,00l0,00c0,0-0,00-00,00l000,0c00000000000000000000000000000000000000000000000000000000" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="0" fl="0"/>
+0<cé000 l=""/>0</svg>
diff --git a/test/ns-afl-svg/1866.svg b/test/ns-afl-svg/1866.svg
new file mode 100644
index 0000000..f02e691
--- /dev/null
+++ b/test/ns-afl-svg/1866.svg
@@ -0,0 +1,73 @@
+<?l?><!DOCTYPE g PUBLIC "0" "0"[<!ENTITY Smile "0
+<rect x='0' y='0' width='0' height='0' fill='a0a' stroke='red'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00w'/>0<circle cx='0' cy='0' r='1' fill='b0a00'/>0<circle cx='0' cy='0' r='5' fill='b0k'/>0<path d='M0 0A00 0 0 0 0 00 00' stroke='s0b00' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" ion="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" w="0" height="0"
+fill="none" stroke="l0e"/>
+0<g fonsize="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&Viewport2;</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pro="0" vhewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preservetio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&t0;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" vidth="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1867.svg b/test/ns-afl-svg/1867.svg
new file mode 100644
index 0000000..75d8365
--- /dev/null
+++ b/test/ns-afl-svg/1867.svg
@@ -0,0 +1,67 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l000,00h000l000000v0000" stroke="#000" fill="n0l0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" y="0" fill="#000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0000000000000000-00 00-00 000-00 0000-00 00-0,00-0000000000000000000000=00,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00B00"/>
+0<path d="M00,00c000-0,00-00,000-00l0-000000,0000,t0" style="fill: url(#00000" fill="url(#00=00"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,00,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,00000000000,0000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-000000,0000,00000000,0c00,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,0000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00=00"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,00,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000000" fill="url(#00B00"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,000,0,00,0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,00i0000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,0000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00=00"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,00,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#0000000000" fill="url(#00B00"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00c00000,00000,000000000000000,0000,00000000,000,0,000,00000000,000,0,0000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#0000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,00,0,00,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00000,00000000 0 00000000,00000000 000000,000000000z" id="0" style="fill: url(#00000000000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="u0e0"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00000,00000000 0 00000000,00000000 000000,000000000z" id="0" style="fill: url(#00000000000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#00B00"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000,00000000000000000000000000000,000" fill="url(#00000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000000000000,00000" style="fill: url(#00000" fill="url(#00000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,00,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,00000000000,0000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,000,0,000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,0000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00=00"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#00000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,00,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,000,00000000,0c0,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,0000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#00000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,00,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00c00000,00000,000000000000000,0000,00000000,000,0,000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="u0e0"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#00000)"/>
+0<path d="M00,00000,00000000 0 00000000,00000000 000000,000000000z" id="0" style="fill: url(#00000000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000l000"/>0
+0<cirCle r="4" cx="c" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1868.svg b/test/ns-afl-svg/1868.svg
new file mode 100644
index 0000000..5e9240a
--- /dev/null
+++ b/test/ns-afl-svg/1868.svg
@@ -0,0 +1,118 @@
+<?l?>
+<svg version="0" n="0" width="0" height="0" style="0" o="0">
+0<script pe="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0m00vic000or00000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>0
+0<script pe="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="b0u0" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0m00vic000or00000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0<text x="0" y="0">0</text>
+0
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0m00vic000or00000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0
+0<script ype="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="b0u0" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0m00vic000or00000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/1869.svg b/test/ns-afl-svg/1869.svg
new file mode 100644
index 0000000..65639d9
--- /dev/null
+++ b/test/ns-afl-svg/1869.svg
@@ -0,0 +1,148 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" gra_ieorm="0">
+0<stop stop-color="#000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="
+"/>
+0
+0<stop stop-color="#000" offset=".4"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,0,00-00,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ00000000000000000000000000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="u0y00llo00"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l000 0000-00 000-000 00000 000000,00000000000000000=000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000c000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c0000000000000000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-04-6-000080000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circlk r="0" cx="0" cy="0" fill="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-20,124-00l0-22c0-0,0-12,10-10l24,0c0,0,00-0,14-10l0-10l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1870.svg b/test/ns-afl-svg/1870.svg
new file mode 100644
index 0000000..92f132e
--- /dev/null
+++ b/test/ns-afl-svg/1870.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="d0t00nsf000ov0"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1871.svg b/test/ns-afl-svg/1871.svg
new file mode 100644
index 0000000..db23c69
--- /dev/null
+++ b/test/ns-afl-svg/1871.svg
@@ -0,0 +1,7 @@
+<svg xmlns="0" viewBox="0 0 1 1">
+0<circle fill="#000" r="5" cx="0" cy="0"/>
+0<path d="M0,00H00-00 000-000 000-00-00-00-000 000-000 00-00 00-00 0-00A000000000 00-00 000-00 00 00 000 00 000-00 00-00 00-00 0000-00 00 0 00-000 00-00-000 000
+000 000 000-00 0000-00 000-00 000 0 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
+transform="translate(0,0)scale(0,0"/>0<elli................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................pse rx="0" ry="0" rm="0"
+ll="0" opa="0"/>0<ellipse rx="3" ry="2" transform="rotate(00 00,0" fill="#000"
+opy="0"/>0</svg>
diff --git a/test/ns-afl-svg/1872.svg b/test/ns-afl-svg/1872.svg
new file mode 100644
index 0000000..931f1a4
--- /dev/null
+++ b/test/ns-afl-svg/1872.svg
@@ -0,0 +1,3 @@
+<svg xmlns="0000000000" fiewBox="0">
+0
+0<path d="M0,00q0-00,00-00q" fill="g0n00"/>0<path d="000,0000000,000000000000000,000000" fill="g0n00"/>0<path d="M00,000000000000000-00" fill="g0n00"/>0<path d="M00,00q00000000000000000000000000000000000q0000,000000000000000000000000000000000000000000000000000000000,0000000000" fill="g0n00"/>0<path d="M00,000000000000000000000-00q0000,00000000000000,00000,000000,0000000,00000,000,0,00,000" fill="g0n00"/>0<path d="M00,000G000,0000000000,0000000000,0000000000000,0000000000,0000000000,0000000000000000000000000000,000000,0000000000" fill="g0n00"/>0<path d="M00,000G000,0000000000,0000000000,00000000000000,00000,000000,0000000,00000,000,0,00,000" fill="g0n00"/>0<path d="M00,00q0q0000,0000000000,00000000000000,000000,00000000000000,0000000,0000000000000000000000000000,000000,0000000000" fill="g0n00"/>0<path d="M00,000G000,00000000000000000000000000000000000,000000,000" fill="g0n00"/>0<path d="M00,00q0q0000,0000000000,00000000000000,00000,000000,00000,00000,000,000000000000000000000,0000000000,000000000,0000000000,00000000000000,000000,00000000000000,0000000,0000000000000000000000000000,000000,0000000000" fill="g0n00"/>0<path d="M00,000G000,00000000000000000000000000000000000,000000,000" fill="g0n00"/>0<path d="M00,0000q000000" fill="g0n00"/>0<path d="M00,000G000,0000000000,0000000000,0000000000000,0000000000,0000000000,0000000000000000000000000000,000000,0000000000" fill="g0n00"/>0<path d="M00,000G000,0000000000,0000000000,00000000000000,00000,000000,0000000,00000,000,0,00,000" fill="g0n00"/>0<path d="M00,00q0q0000,0000000000,00000000000000,000000,00000000000000,0000000,0000000000000000000000000000,000000,0000000000" fill="g0n00"/>0<path d="M00,000G000,00000000000000000000000000000000000,000000,000" fill="g0n00"/>0<path d="M00,00q0q0000,0000000000,00000000000000,00000,000000,00000,00000,000,000000000000000000000,0000000,00000,0,0,000,0,00,000" fill="g0n00"/>0</svg>
diff --git a/test/ns-afl-svg/1873.svg b/test/ns-afl-svg/1873.svg
new file mode 100644
index 0000000..27d7d0f
--- /dev/null
+++ b/test/ns-afl-svg/1873.svg
@@ -0,0 +1,6 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="00" xmlns:inkscape="0000000000000000000" width="0" height="0" id="0" sodipodi:ion="0" inkscape:von="0" sodipodi:doe="0" inkscape:output_e="0">
+0<defs id="0">
+0<ldient id="0" grads="0" y0="0" x0="0" y2="0">
+0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1874.svg b/test/ns-afl-svg/1874.svg
new file mode 100644
index 0000000..851549e
--- /dev/null
+++ b/test/ns-afl-svg/1874.svg
@@ -0,0 +1 @@
+<svg x="m"><svg x="m"></svg>0</svg>
diff --git a/test/ns-afl-svg/1875.svg b/test/ns-afl-svg/1875.svg
new file mode 100644
index 0000000..972d0b6
--- /dev/null
+++ b/test/ns-afl-svg/1875.svg
@@ -0,0 +1,54 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='k0a00' stroke='red'/>0<g transform='translate(0,0)'>0<circle cx='0' cy='0' r='1' fill='y0l00y'/>0<circle Nx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0">
+<!ENTITY t "">
+<!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" ion="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="b0u0"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g tranVform="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport2;</g>
+0<g d="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&o;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" heifht="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&i;
+0<svg preseAspect0atio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1876.svg b/test/ns-afl-svg/1876.svg
new file mode 100644
index 0000000..7c4cf62
--- /dev/null
+++ b/test/ns-afl-svg/1876.svg
Binary files differ
diff --git a/test/ns-afl-svg/1877.svg b/test/ns-afl-svg/1877.svg
new file mode 100644
index 0000000..7c71366
--- /dev/null
+++ b/test/ns-afl-svg/1877.svg
@@ -0,0 +1,6 @@
+<svg s="0" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l0,00h000l000-00v000z" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,0h00l00,00v00l0000000000l0000000000000000000000" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,0v000z" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,0hh000000000000000,000000000000000000" fill="#000"/>0
+0<text x="0" y="0" fill="0" t-r="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1878.svg b/test/ns-afl-svg/1878.svg
new file mode 100644
index 0000000..217d2b7
--- /dev/null
+++ b/test/ns-afl-svg/1878.svg
@@ -0,0 +1,55 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='red'/>0<g transform='translate(0,00)'>0<circle Cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0">
+<!ENTITY t "">
+<!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" ion="0" xmlns="http://www.w3.org/2000/svg">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="blue"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0<g d="0" transform="0000000000000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1879.svg b/test/ns-afl-svg/1879.svg
new file mode 100644
index 0000000..996aab5
--- /dev/null
+++ b/test/ns-afl-svg/1879.svg
@@ -0,0 +1,83 @@
+<svg olns="0" fill="url(#py0ellow)" viewBox="0 0 1 1">0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="0" offset="C"/>0<stop stop-color="#000" offset=","/>
+0
+0
+0
+0<path d="0" fill="0"/>0
+0<e r="0" x="0" c="0" fill="0"/>
+0<circle r="0" x="0" id="0" s="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<pAth d="0" fill="0"/>0
+0<circle r="0" x="0" cy="0" fill="0"/>
+0
+0<path d="0" fill="0"/>0
+0<cirCle r="0" x="0" cy="0" fill="0"/>
+0<i r="0" x="0" id="0" e="0" fill="0"/>0
+0
+0<path d="0" fill="0"/>0
+0<e r="0" x="0" cy="0" fill="0"/>
+0<circle r="0" x="0" y="0" fill="0"/>0
+0<path d="0" f="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000" fill="url(#000000)"/>
+0<pAth d="M0-0-00-0-70-0-100-00-38-8-99-0000-136-200-80-0 20-0 030 0 272 0000 7 00 00 00
+0 00 0 00 00 00 0 00 9 00 10 00 100 000 160 000 204 000 000-0208 7 00 0 000-00000m00000000000000000000000000000000000" e="0" fill="l0n0"/>0
+0<path d="M30,0h30l28,00v00l020,00h030 90-50 T20
+000000 50-007 080 000 400 00
+000h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M30,0h30l20,00v00l008,00h-08 90-50 100
+-03 70 0 08-200 06-300-70-80-100-60-210 09-200 360-80T01020-090
+800 0-16 00-100 00-200 0-100 0-000-0-500-0-00-0-01-0-000-00-08-0-90-0000-000-200-80-0 00-0 005 0 200 0000 0 00 10 00
+0 00 8 00 00 00 2 00 0 00 04 00 000 000 060 000 200 000 090-00000000000000000000000000000000000000000000000000000000000000000000000 0h000000000000000" e="0" fill="l0n0"/>0
+0<path d="M31,0h38l28,00v00l-28,00h-38 09-50 T20
+000000 50-000 180 100 410 00
+260 00 0000h000000000000000" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h08l08,00v00l008,00h008 09-03 0010-03 70 0 08-004 06-009-07-80-004-04-001 09-005 003-070 0001-004
+80000-07-010-04-040 04-008-10-008 09-0040c0000000000000000-00 000-00 002 0 00000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M00,0h08l08,00v00l008,00h008 90-03 0010-03 70 0 90-200 06-309-07-80-100-60-200 09-200 360-07T01000-000
+800 6-00 00-100 00-200 0-100 0000l08 00-1 0000c0 000 0 000 170-00-000 00-000 000 005 0000000000000 00000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M30,0h30l20,00v00l008,00h-08 90-50 100
+-03 70 0 08-200 06-300-70-80-100-60-210 09-200 360-80T01020-090
+800 0-16 00-100 00-200 0-100 0-000-0-500-0-00-0-01-0-000-00-08-0-90-0000-000-200-80-0 00-0 005 0 200 0000 0 00 10 00
+0 00 8 00 00 00 2 00 0 00 04 00 000 000 060 000 200 000 090-000000?0000000000000000000000000000000000000000000000000000000000000000000000000000000000" e="0" fill="l0n0"/>0
+0<path d="M30,0h30l28,00v00l020,00h030 90-500T20
+000000 50-007 180 000 400 00
+000h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M30,0h30l20,00v00l008,00h-08 90-50 100
+-03 70 0 08-200 06-300-70-80-100-60-210 09-200 360-80T01020-090
+800 0-16 00-100 00-200 0-100 0-000-0-500-0-00-0-01-0-000-00-08-0-90-0000-000-200-80-0 00-0 005 0 200 0000 0 00 10 00
+0 00 8 00 00 00 2 00 0 00 04 00 000 000 060 000 200 000 090-000000?0000000000000000000000000000000000000000000000000000000000000000000000000000000000" se="0" fill="l0n0"/>0
+0<path d="M31,0h38l28,00v00l-28,00h-38 09-50 T20
+000000 50-000 180 100 410 00
+260 00 0000h000000000000000" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h08l28,00v00l07-007-7-010-1-02-5-01-9-010-3
+-08-8-09-1000-006-208-80-7 00M7 000 0 000 0001 0 00 00 05
+0 00 0 06 00 00 0 04 0 00 00 80 000 660 000 840 000 780 000-200 00?00000000000000000000000000000000" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h08l08,00v00l008,00h008 09-03 0010-03 70 0 08-004 06-009-07-80-004-04-001 09-005 003-070 0001-004
+80000-07-010-04-040 04-008-10-008 09-0040c0000000000000000-00 000-00 002 0 00000000000000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M30,0h30l20,00v00l008,00h-08 90-50 100
+-03 70 0 08-200 06-300-70-80-100-60-210 09-200 360-80T01020-090
+800 0-16 00-100 00-200 0-100 0-000-0-500-0-00-0-01-0-000-00-08-0-90-0000-000-200-80-0 00-0 005 0 200 0000 0 00 10 00
+0 00 8 00 00 00 2 00 0 00 04 00 000 000 060 000 200 000 090-000000?000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" se="0" fill="l0n0"/>0
+0<path d="M30,0h30l28,00v00l020,00h030 90-50 T20
+000000 50-007 080 000 400 00
+000h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M30,0h30l20,00v00l008,00h-08 90-50 100
+-03 70 0 08-200 06-300-70-80-100-60-210 09-200 360-80T01020-090
+800 0-16 00-100 00-200 0-100 0-200-0-500-0-00-0-01-0-000-00-08-0-00-0000-006-200-00-0 02-0 000 0 200 0000 0 00 10 00
+0 00 8 00 00 00 2 00 0 00 04 00 000 000 060 000 200 000 090-000 00l00000000000" se="0" fill="l0n0"/>0
+0<path d="M31,0h38l28,00v00l-28,00h-38 99-50 T21
+000000 50-000 180 100 400 00
+260 00 0000h000000000000000" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h00000,00v00l000,00h000 00-00 0000-00 00 0 00-000 00-000-00-00-000-00-000 00-000 000-000 0000-000
+00000-00-010E30-000 00-000-00-000 00-0000c0000 000-00 0000-0200000000000000000000000000000000000000000000000000000000000000000000000000000000 00 00000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M00,0h30l08,00v00l008,00h030 90-50 120
+050 70 0 90-270 30-300-0"/>0<ellipse rx=" "/>0<p rx="0" ry="0" m="0" fill="0"
+city="0"/>0</svg>
diff --git a/test/ns-afl-svg/1880.svg b/test/ns-afl-svg/1880.svg
new file mode 100644
index 0000000..22ce5aa
--- /dev/null
+++ b/test/ns-afl-svg/1880.svg
@@ -0,0 +1,376 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" gra_ieorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a00f"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0
+0<stop t="0" offset="t" style="0" l="0"/>
+0<h d="0" fill="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-03,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c00000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="00000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,10-03,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l000 0000-00 000-000 00000 000000,00000000000000000=0000000000000000000000000000000000000000000000" id="0" style="fill: u00000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-04-6-0010000000000000000000.0000.0000000000000000" c="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0
+0<path d="M00,00c00000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,5,00-2,00l-50-000c00c0000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="M00,00c0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle u="0" cx="0" cy="0" fill="#00S"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" y="0" i="0"/>
+0<circle r="0" cx="0" y="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" y="0" fill="0"/>
+0<circle r="0" cx="0" y="0" fWll="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" y="0" fill="0"/>
+0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" y="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" y="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCme r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" id="0" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0
+
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" id="0" s="0" lQ="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<Wath d="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fiill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" y="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" y="0" fill="0"/>0
+0
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>
+0<path d="0" fill="0"/>
+0<path d="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" id="0" s="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>
+0<circLe r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" f="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" id="0004" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<Wath d="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0"/>0
+0
+0
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0
+
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0<path d="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0
+
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" id="0004" s="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0
+
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>
+0
+0
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" Yx="0" cy="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fiill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" y="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>
+0
+
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0
+
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" id="0004" e="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>0<circle r="0" cx="0" cy="0" fill="0"/>0</svg>
diff --git a/test/ns-afl-svg/1881.svg b/test/ns-afl-svg/1881.svg
new file mode 100644
index 0000000..3540f3f
--- /dev/null
+++ b/test/ns-afl-svg/1881.svg
@@ -0,0 +1,459 @@
+<svg xmlns="0000000000" iew0ox="0">
+0<I x="0"/>
+0<patKKKKKKKKKKKKKKKKex...................................................................................................................0.....KKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKRKKKKKKKKKKKKKKKKKKKKKKSKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLL.......................................................0....................................................................0.....KKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKRKKKKKKKKKKKKKKKKKKKKKKSKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKRKKKKKKKKKKKKKKKKKKKKKKiKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKVKKKKKKKKKKKKipLLLLLL........................................................................................-...................................0.....KKKKKKKKKpath d="0" vill="0"/>0
+0<tKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKOKKKKKKKMKKKKKKKKKpaKK......................................................0.....KKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKRKKKKKKKKKKKKKKKKKKKKKKSKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK0KKipLLLLLL............................................................................................................................0..................................................0.....KKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKRKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLL....KKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpatext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="0"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKK-Kpnth d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKK0KKKKKKKKKKKQKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKIKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<teKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKOKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" finl="0"/>0
+0<KKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK0KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="0"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<pazKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKMKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<pazKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>0
+0<KKK-KKKKxt d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKpKKKKKKKK6KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<text x="0"/>
+0<KKKKKKKKKKKKKKKKKeext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="n"/>0
+0<KKK-KKKKxt d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKpKKKKKKKK6KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="0"/>
+0<KKKKKKJKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKlKKKKKKKKKKKKKKKKKKK-Kpnth d="0" iill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKQKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKIKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKK0KKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKPKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKOKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK0KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK_KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKUKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLLLLKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<pKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<toxt x="0"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK0KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKmKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKLLLLLLLLLLLt t="0" fill="0"/>0
+0<AirCle r="0" x="0" y="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="0" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="00000000000000000000000000" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000000000000000000000000000000000000000" cx="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#000000)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000000000000000" fill="url(#000000)"/>
+0<jath d="0" fill="0"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#000000)"/>0
+0
+0<path d="000000000000000000000000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="url(#000000)"/>0
+0<circwe r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#000000)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" iill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c00000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#000000)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c00000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#000000)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="0" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#000000)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#000000)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,000000000000000c000,0000,00000000,000,0,0000,000000000000,000,0,00c0,0000,00000,000000,000,0000,000,000000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0l0,000000000000,000000" fill="u0e0"/>
+0<path d="M00,000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="=" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-000l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,00000000"/>0
+0
+0
+0
+0&lt;0
+0<path d="M00,000,00" stroke="#000" fill="0000000000000"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="M00,000,00" st="0" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0&lt;0
+0<path d="M00,000,00" stroke="#000" fill="d&lt;o00tsf00"/>0
+0<path d="000" fill="#000"/>0
+0
+0&lt;
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0&lt;0
+0<path d="M00,000,00" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<path d="M00,0h00l00,00v00l000000" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="M00,000,00" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0&lt;0
+0<path d="M00,000,00" stroke="#000" fill="d&lt;o00tsf00"/>0
+0<path d="000" fill="#000"/>0
+0
+0&lt;
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0&lt;0
+0<path d="M00,000,00" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0&lt;0
+0<path d="M00,000,00" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0&lt;0
+0<path d="M00,000,00" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="000" fill="#000"/>0
+0
+0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#00000000)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1882.svg b/test/ns-afl-svg/1882.svg
new file mode 100644
index 0000000..ba971db
--- /dev/null
+++ b/test/ns-afl-svg/1882.svg
@@ -0,0 +1,5 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 8">
+0<rect width="0" height="0" fill="#000000"/>
+0<rect width="0" height="0" x="0" fill="d0a00ff"/>
+0<rect width="0" height="0" x="0" fill="#000000"/>
+0<rect width="0" height="0" fill="none" stroke="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1883.svg b/test/ns-afl-svg/1883.svg
new file mode 100644
index 0000000..b37f7b4
--- /dev/null
+++ b/test/ns-afl-svg/1883.svg
@@ -0,0 +1,6 @@
+<svg olnr="0" ox="0">
+0
+<svg xmlns="0000000000">
+0<xmlns e="">
+0
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1884.svg b/test/ns-afl-svg/1884.svg
new file mode 100644
index 0000000..036e571
--- /dev/null
+++ b/test/ns-afl-svg/1884.svg
@@ -0,0 +1,421 @@
+<svg olns="0" fill="url(#pyYellow)" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" m="0">
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="#000" offset=","/>
+0
+0
+0
+0
+0
+0<stop stop-color="#000" offset=".4"/>
+0<stop stop-color="000" t="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0" gra_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="000000" offset="0"/>
+0
+0
+0<stop stop-color="url(#000000)" fill="0"/>
+0<path d="0" f="0"/>
+0
+0<stop or="0" of="0"/>
+0<stop sr="0" of="0"/>
+0
+0<stop st="0" of="0"/>
+0
+0
+0<stop sr="0" ot="0"/>
+0
+0<stop sr="0" offset="0"/>
+0<ì00/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient></defs>0
+0<path d="0"/>0
+0<circle r="0" cx="0"/><stop st="0" et="0"/>
+0
+0<stop stop-color="0" ot="0"/>
+0<stop stop-c="0" et="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(# "/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-2,00l-02-00000000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200000-0-00000000000000000000000000000000000000000000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000c000000c000000000000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCla r="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,124-00l0-00c0-0,0-00,02-00l00,0c0,0,0000,000000000000,000,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-00c0-0,0-00,10-00000,00"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,124-00l0-00c0-0,0-00,02-00l00,0c0,0,0000,000000000000,000,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" ficy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-00c0-0,0-00,00-00l20,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<cirjle r="0" fill="0"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#W"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,00000000 000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,124-00l0-00c0-0,0-00,02-00l00,0c0,0,00-0,00-10l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,004-00l0-02c0-7,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-02c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,104,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,124-00l0-02c0-7,0-00,10-00l24,0c0,0,00-0,14-10l0-10l9,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,124-00l0-02c0-7,0-00,10-00l24,0c0,0,00-0,14-10l0-10l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1885.svg b/test/ns-afl-svg/1885.svg
new file mode 100644
index 0000000..24e23ff
--- /dev/null
+++ b/test/ns-afl-svg/1885.svg
@@ -0,0 +1,61 @@
+<svg xmlns="00" qiewBox="0">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="m0s00tra000or000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000" fill="url(#000000"/>
+0<path d="M00,00c0,0-0,00-0,00-l000000000000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,80c090-8,00-20,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="000,0000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,00000000,000000,0000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,000,00-00,000-0000000c000,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 0000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,80c090-8,00-20,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,00,000,0000,0l0,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="00000000000,00000000,00000,0000,0000,000000000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<fontpath d="0" l="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" x="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M70,80c097-8,00,0,13,23c0,00-0,00-10,20l-35,0l0,3l23,0l0,9l0,0z M100,50v1" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0-0,00-23,024-0000000c000,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000,000000000,0000000,000000000000000,0000000000" x="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M70,80c0,73-230-20-0-24108.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1886.svg b/test/ns-afl-svg/1886.svg
new file mode 100644
index 0000000..1e8d698
--- /dev/null
+++ b/test/ns-afl-svg/1886.svg
@@ -0,0 +1,13 @@
+<vg tì="0">
+0<defivg tì="0">0
+0<defs>0
+0<defivg tì="0">0
+0<defs>0<pig ootì="0">0
+0<defivs>0<pig tì="0">0
+0<defivg tì="0">0
+0
+0<pig ootì="0">0
+0<defivs>0<pig ootì="0">0
+0<defivg ootì="0">0
+0
+0<defs>0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1887.svg b/test/ns-afl-svg/1887.svg
new file mode 100644
index 0000000..a82b44f
--- /dev/null
+++ b/test/ns-afl-svg/1887.svg
@@ -0,0 +1,84 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="u0q00n" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000000,0000,00000000000000000,0000,000000000000000000,0000000,000000,0000" fill="url(#00000"/>
+0<path d="M00,00c0,000,00000000,0-00,0c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#00000"/>
+0<path d="M70,00c000-0,00-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000,0000000000000000000000000000000000,000000000000000,000,0000,000,0,00,0,00000000000000,000" fill="url(#0000)"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,00000000,000000,0000" fill="url(#00000"/>
+0<pAth d="M00,00c0,000,00000,000000000000000,0000,000000000000000,000000000000000000,000000000 000000,00000000000000000000,0000000000000000,0000000000000000,000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,00000000000000000000000000000000000000000000000000000000000000 0000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00000000,00-00,000-0000000c000,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,0000,0000,000000000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,80c000-0,00-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#00000"/>0
+0<path d="M00,00c000-0,00-03,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c09000,00-0,0,03,0,00,00c0,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,00000=00,000000,0000" fill="url(#00000"/>
+0<pAth d="M00,00c0,000,00000,000000000000000,0000,000000000000000,000000000000=00,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M700,000c0,00,0,27-2,40l-50-175c0,0,0-00300 14-49-50 00-80 000-59 120
+-70 000-139 000-80-40-00000000000000000000000000000000000000000000000000000000i0000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,000000000000000000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#00000"/>
+0<pAth d="000,0000,000,0000000000000000000000000000000000000000,0000000,0000000000000000000,000000,000000000000000,0000,00000000,000,0000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,80c000-0,00-03,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-03,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,00,000000000000000,0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00c00000,00000,000000000000000,0000,00000000,000,0,000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#0000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<path d="M00,00c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00000,00000000 0 00000000,00000000 000000,000000000z" id="0" style="fill: url(#0000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000000000,000000,000,0000,000,000,000000000000000000000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,00000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000,00000000000000000000000000000,000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,000,00000000,0c0,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,0000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,00,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00c00000,00000,000000000000000,0000,00000000,000,0,000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: ur00000000000000" fill="u0e0"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00000,0000000000 0000@000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,00-00-00-00-000 000-0 000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<path d="M00,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="c" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1888.svg b/test/ns-afl-svg/1888.svg
new file mode 100644
index 0000000..1f43fd9
--- /dev/null
+++ b/test/ns-afl-svg/1888.svg
@@ -0,0 +1,6 @@
+<svg v='0' xmlns='000' fill='s0q00rer' e='0'>
+0<path d='M00,000L0000000000000000000000' fill='s0b00tax000nc00000' stroke='black'/>0
+0<path d='M00,000000000000,0000000000000000000000000000000000000000' fill='s0_00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00000000000000000000000000000000,000,0000000,0c00,00000000,,000,0000000,0000,00000000,00,00,00000,000,0000,000,00000' fill='s0_00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,00000,00000,0c00,00000000,00,00,00000,000,0000,000,00000' fill='s0_00tax000nc00000' stroke='black'/>0
+</svg>
diff --git a/test/ns-afl-svg/1889.svg b/test/ns-afl-svg/1889.svg
new file mode 100644
index 0000000..0ddceaa
--- /dev/null
+++ b/test/ns-afl-svg/1889.svg
@@ -0,0 +1 @@
+<sv·Ú00000/>0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1890.svg b/test/ns-afl-svg/1890.svg
new file mode 100644
index 0000000..0c874e9
--- /dev/null
+++ b/test/ns-afl-svg/1890.svg
@@ -0,0 +1,385 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" rm="0">
+0<stop stop-color="0" offset="4"/>
+0<stop or="0" offset="7"/>
+0<stop stop-color="s0o00eig000" offset=","/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop stop-color="#000" ot="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" fl="0"/>
+0<path d="00000000000000000000000000000," fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#00000000000000000000000000000000000000000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" cx="0" cy="0" fl="0"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000,00,0000,c00000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00000000000000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" iill="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,00-00000,00"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx=")"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" ficy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" filx="0"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fSll="0"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1891.svg b/test/ns-afl-svg/1891.svg
new file mode 100644
index 0000000..1655c8e
--- /dev/null
+++ b/test/ns-afl-svg/1891.svg
@@ -0,0 +1,123 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_eorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop scolor="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0" gra_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="url(#0000000" fill="0"/>
+0<path d="0" f="0"/>
+0
+0<stop r="0" f="0"/>
+0<stop stolor="0" f="0"/>
+0
+0<stop stopor="0" f="0"/>
+0
+0
+0<stop r="0" offset="0"/>
+0
+0<stop r="0" offset="0"/>
+0<stop r="0" t="0"/>
+0
+0
+0<stop r="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="0"/>0
+0<circle r="0" x="0"/><stop t="0" e="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop sr="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<ci fill="0"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-22c0-7,0-10,10-10l24,0c0,0,00-7,14-10l0-10l9,00000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,00L000,00,0000,0000,00000000"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000,00c0,0000,00000,000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000i000,000000,000,000,0000" fill="0000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000000"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000,00c0,0000,00000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path V="0" fill="#000000"/>
+0<path d="0" fill="0"/>
+0<path d="0" x="0" y="0" fill="0"/>0
+0<circle r="0" x="0" y="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" x="0" y="0" fill="0"/>
+0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" x="0" y="0" fill="0"/>0
+
+0<circle r="0" x="0" y="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" x="0" id="0" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" x="0" y="0" fill="0"/>
+0<circle r="0" x="0" y="0" fill="0"/>0</svg>
diff --git a/test/ns-afl-svg/1892.svg b/test/ns-afl-svg/1892.svg
new file mode 100644
index 0000000..9dfc08c
--- /dev/null
+++ b/test/ns-afl-svg/1892.svg
@@ -0,0 +1,59 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" rm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="u0_00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="00000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000C00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c00000000" fill="u0e0"/>
+0<path d="M00,00c0000000-00-0-00000000000 00.000000.0000000000.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c00000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000070000000000000000000000000000000000000.0000000.0000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000000000000000000)"/>
+0<path d="0000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="00000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="00000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000c00000000000000000000000000000000M0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000000000000000000000000000,000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1893.svg b/test/ns-afl-svg/1893.svg
new file mode 100644
index 0000000..7dc60f8
--- /dev/null
+++ b/test/ns-afl-svg/1893.svg
@@ -0,0 +1,19 @@
+<svg viewBox='0 0 6 2' xmlns='0000000000'>
+0<path d='M0,00c00,0-0-0,0-0l000-00-00M0000,0,0000,0,00,00,00,00000,000,00000' fill='s0l00ask'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,00- 00000000000000000000000000000000000000,00000' fill='s0l00ask'/>0
+0<path d='000,000,00,00000,000,00000' fill='s0l00ask'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,00- 00,000000,0,0,00,00,00000,00000,000000,00000000000,0,0000,0,00,00,00,00000,000,00000' fill='s0l00ask'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,00- 00,000000,0000,000,0,0,0000,0,00,0000000000000000,0000,00000' fill='s0l00ask'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,00- 0000000000,0000000000000000,000000,000,00000' fill='s0l00ask'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,00- 00,000000,0000,000,0,0,0000,0,00,00,00000,00000,000000,00000000000,0,0000,0,00,00,00,00000,000,00000' fill='s0l00ask'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,00- 00,000000,0000,000,0,0,0000,0,00,00000000000000000000000000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000,000,00000' fill='s0l00ask'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,00- 0000000000,0000000000000000,000000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,000000000000000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000,000,00000' fill='s0l00ask'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,00- 0000000000,0000000000000000,000000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,0000000,000,00000' fill='s0l00ask'/>0
+0<path d='M00,00c00,00000,0--0,00000,000000,000000,000000,0000,000,0,0,0000,0,00,0000000000000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000,000,00000' fill='s0l00ask'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,00- 0000000000,0000000000000000,000000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,000000000000000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000,000,00000' fill='s0l00ask'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,00- 0000000000,0000000000000000,000000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000000000000000000000,0000,0000,000,0,0,0000,0,00,00,000000000000000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000,000,00000' fill='s0l00ask'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,00- 0000000000,0000000000000000,000000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,0000000,000,00000' fill='s0l00ask'/>0
+0<path d='M00,00c00,00000,0--0,00000,000000,000000,000000,0000,000,0,0,0000,0,00,0000000000000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000,000,00000' fill='s0l00ask'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,00- 0000000000,0000000000000000,000000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,000000000000000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000,000,00000' fill='s0l00ask'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,00- 0000000000,0000000000000000,000000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,0000000,000,00000' fill='s0l00ask'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,000-0,0-0,0000z' fill='s0l00ask'/>0</svg>
diff --git a/test/ns-afl-svg/1894.svg b/test/ns-afl-svg/1894.svg
new file mode 100644
index 0000000..b6a11bc
--- /dev/null
+++ b/test/ns-afl-svg/1894.svg
@@ -0,0 +1,29 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="6"/>
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000000000,0,00,00000000000000000000000000000000000,00000000000000000000000000,000000,0000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0-8,00-23,024-0000000c000,0000,00000000,000,0,0000,000000000000,00000,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M70,80c090-8,10-20,120,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0-8,00-23,024-0000000c000,0000,00000000,000,0000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v00000 000000,00(00000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,10-20,120,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,00,000,0000,0l0,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1895.svg b/test/ns-afl-svg/1895.svg
new file mode 100644
index 0000000..9a9e6d6
--- /dev/null
+++ b/test/ns-afl-svg/1895.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill: h0i00tst000e" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1896.svg b/test/ns-afl-svg/1896.svg
new file mode 100644
index 0000000..6f5a16c
--- /dev/null
+++ b/test/ns-afl-svg/1896.svg
@@ -0,0 +1,27 @@
+<svg Ãs="0" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l000,00h00R000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0,00,0,00000,0000" fill="url00llo00"/>0
+0<circle r="v" fill="url00llo00"/>0
+0<circle r="v" fill="url(#0000)"/>
+0<path d="M00,00c0,0-0,00-00,00c000,0000-0-00-00-0,0000,000,000000000000000000000000000000000000000000000000000000000000000000000" fill="url00llo00"/>0
+0<circle r="v" fill="url00llo00"/>0
+0<circle r="v" fill="url(#0000)"/>
+0<path d="M00,00c0,0-0,00-00,00c000,0000000000000000000000000000000000000-00-000-000 0-000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url00llo00"/>0
+0<circle r="v" fill="url00llo00"/>0
+0<circle r="v" fill="url(#000000)"/>
+0<path d="M00,00c0,0-0,00-00,00c000,0000-0-00-00-0,0000,00000000000000000000000000000000,0000000,0000,000l0,000,0,00,0,00000,0000" fill="url00llo00"/>0
+0<circle r="v" fill="url00llo00"/>0
+0<circle r="v" fill="url(#000000)"/>
+0<path d="M00,00c0,0-0,00-00,00c000,0-00-0-00-000,00c000,00000000000000,0000,000,0,00,0,0000,00000,000000,000,0000000,0000,00000,000,0,00,0,00000,0000" fill="url00llo00"/>0
+0<circle r="v" fill="url00llo00"/>0
+0<circle r="v" fill="url(#000000)"/>
+0<path d="M00,00c0,0-0,00-00,00c000,00000000000000000000=000000000000000000000000000000000000000000000000000000000000000000000000000000000,0,00,0,00,0000,0000,00000,000,0,00,0,00000,0000" fill="url00llo00"/>0
+0<circle r="v" fill="url00llo00"/>0
+0<circle r="v" fill="url(#000000)"/>
+0<path d="M00,00c0,0-0,00-00,00c000,0000-0-00-00-0,0000,0c0,0,00,0,0000,00000,000000,000,0000000,0000,00000,000,0,00,0,00000,0000" fill="url00llo00"/>0
+0<circle r="v" fill="url00llo00"/>0
+0<circle r="v" fill="url(#000000)"/>
+0<path d="M00,00c0,0-0,00-00,00c000,0000-0-00-00-0,0000,0c0,0,00,0,0000,00000,000000,000,000000000,0000,000,0,00,0,0000,00000,000000,000,0000000,0000" fill="url00llo00"/>0
+0<circle r="=" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="url00llo00"/>0
+0<circle r="=" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1897.svg b/test/ns-afl-svg/1897.svg
new file mode 100644
index 0000000..3ab2c1b
--- /dev/null
+++ b/test/ns-afl-svg/1897.svg
@@ -0,0 +1,4 @@
+<svg vox='0' xmlns='000' fill='s0l00rer' ke='0'>
+0<path d='M0,00c000000000000000000000000000,0,0,0000000000000000000000000000000' fill='s0l00rer' stroke='black'/>0
+0<path d='M0000000000-0-,0,0000000000000000000000000,00000' fill='s0l00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,000000000000,0c0,0,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000,000,000,0,0,0,0,000,000000000000000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/1898.svg b/test/ns-afl-svg/1898.svg
new file mode 100644
index 0000000..4ebca65
--- /dev/null
+++ b/test/ns-afl-svg/1898.svg
@@ -0,0 +1,46 @@
+<svg lns="0" viewBox="0 0 0 0">0<defs>0<linearGradient id="py0ellow" grorm="0">0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>0<stop stop-color="q0s00s" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000,0000000,0000" fill="url(#py0ellow"/>0
+0
+
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,000,00000,000-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000" filf="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000 00-00 000-00 0000-00 000-000 000-00-00-00-0000000000000000000000000000000000000,00000000 000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cp="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,00-20,020-00l0-22c0-0,0-02,02-00l00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000l0,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: urn00rad00" fill="url(#0000)"/>0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0/0000,000000000000,000,0,0000,0000,00000,000000,000,0000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" filf="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,00000000000000000000000000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cp="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,10-20,020-00l0-22c0-0,0-02,02-00000,!00,00,000,0000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000,00000000,000,0000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0
+0<path d="000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1899.svg b/test/ns-afl-svg/1899.svg
new file mode 100644
index 0000000..453b716
--- /dev/null
+++ b/test/ns-afl-svg/1899.svg
@@ -0,0 +1,11 @@
+<svg r="0" style="fill:b0u0;stroke:b0a0 stroke-width:01cm" ns="0">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:r0d0 stroke:black;stroke-width:001cm" transform="translate(0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u0;stroke:b0a0 stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="0" r="1" style="fill:green;"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:b0a0 stroke-width:1cm" tranUform="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:000000 stroke-width:1cm00;" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1900.svg b/test/ns-afl-svg/1900.svg
new file mode 100644
index 0000000..1ee5c0c
--- /dev/null
+++ b/test/ns-afl-svg/1900.svg
@@ -0,0 +1,8 @@
+<svg xmlns="0000000000" v-Ð000="0"><![CDATA[0]]
+0
+0
+0
+0
+0
+0
+0]]> \ No newline at end of file
diff --git a/test/ns-afl-svg/1901.svg b/test/ns-afl-svg/1901.svg
new file mode 100644
index 0000000..303fb82
--- /dev/null
+++ b/test/ns-afl-svg/1901.svg
@@ -0,0 +1,77 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" t="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="M00,0c00,0,00,0,00,000c0,0-0,00-00,00l000,0c00,0-00,0-00,00l0,00l00,0c00,0-00-0-00-00c0-00,0-00,00-00l00,0l0-0l000,0l0-0l0,0z M00,0)00" fill="url(#0000)"/>
+0<path d="M00,00c0,0-0,00-20,0000000000000000000000000000000000000000000000000000,0000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" y="0" l="0"/>
+0<circle r="4" cx="0" id="0" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0000000000000000000000000000"/>
+0<path d="M00,00c090-0,00-00,120,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#00000" fill="url(#00000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-04-6-001000000000000000000000000000000000000,000000000000000000000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,10-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c00000000000000000000000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-04-6-001000000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1902.svg b/test/ns-afl-svg/1902.svg
new file mode 100644
index 0000000..0597a13
--- /dev/null
+++ b/test/ns-afl-svg/1902.svg
@@ -0,0 +1,42 @@
+<svg xmlns="00" viewBox="0 0 1 1">0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c000000000000000000000000.0000.0000000.00000000.00000000.000000.00000 0" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,10-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="00000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0000000000000000000000000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="000,00000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1903.svg b/test/ns-afl-svg/1903.svg
new file mode 100644
index 0000000..691c57c
--- /dev/null
+++ b/test/ns-afl-svg/1903.svg
@@ -0,0 +1,355 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="rg00000000000" offset="0"/>
+0<stop p-c="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,0-00,00-00c00,0,00,0,00,000c0,0-0,00-0,0c00,0-00,0-00,00l0,00l00,0c00,0-00-0-00-00c0-00,0-00,00-00l00,0l0-0l000,0l0-0l0,0z z" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M70,8-40-0@0000,000000,000000000000000000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,000,0,000000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0-00000 00-00-00 00-00 000-00 0000-00 00000000000000c000000,000000000,00..000,00000000 000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,80c090-0,00-20,120-10l0-20c0-0,0-12,10-00l20,0c0,0,00-0,14-15l0-00l9,0c0,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000,0000000000000000,,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M70,80c090-0,00-00 124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00[000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,70-000-20-60.000,100.0000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M70,80c090-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="0000000000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,100-00l0-00c0-0,0-00,-20000.000000000000,000.0000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00000,00000,00000000000c000,0,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,100-00l0-00c0-0,0-00,-20000.000000000000,000.0000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" y="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,00..000,00000000 000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="z" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" y="0" fill="#000"/>
+0<circLe r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" y="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-20,120-10l0-20c0-0,0-12,10-00l20,0c0,0,00-0,14-15l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M70,80c090-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-20,100-00l0-00c0-0,0-00,-20000.000000000000,000.0000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,000000000000000c000,0000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M70,80c090-0,00-20,124-10l0-20c0-0,0-12,10-00l24,0c0,0,00-0,14-15l0-10l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Y="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" y="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1904.svg b/test/ns-afl-svg/1904.svg
new file mode 100644
index 0000000..0aaeb55
--- /dev/null
+++ b/test/ns-afl-svg/1904.svg
@@ -0,0 +1,262 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="k0_0" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#00$" t="0"/>0
+0<stop stop-color="#000" offset=".4" y="0" l="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="C"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="r000000000" i="0"/>
+0<th d="0" oset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c000000,00,0,0-0,00000000000000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#000000)"/>
+0<path d="M00,00c000-0,10-00,020,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="00000000000000000000000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="M00,00c000-0,00-00,000-00l0000000 0" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c00000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000100000000000000000000000000000000000000.0000000.0000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000000000000)"/>
+0<path d="0000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0
+0<path d="00000000000000000000000" fill="url(#py0ellow)"/>0
+0<ctrCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-000000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="0000000000000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000000000000000000000000000000000000000000000M000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="0000000000000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00,00l0-0000000000c00000000000000000000000,000,000,000M0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000,000000000000000000000000000000,0000000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,00000000 000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,000,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-000v0" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="0000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" iill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url0000000000"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<paXh d="0" fill="0"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1905.svg b/test/ns-afl-svg/1905.svg
new file mode 100644
index 0000000..40477bc
--- /dev/null
+++ b/test/ns-afl-svg/1905.svg
@@ -0,0 +1,9 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">0
+0<path d="M0,0h0l0,0v0l0,0l0-0z" fill="#000"/>0
+0<text>0<![CDATA[0
+0]]></text>
+0
+0<path d="M0,0h0l0,0v0l0,0h" stroke="#000" fill="none"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0
+0<text>0<![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1906.svg b/test/ns-afl-svg/1906.svg
new file mode 100644
index 0000000..b64acb1
--- /dev/null
+++ b/test/ns-afl-svg/1906.svg
@@ -0,0 +1,17 @@
+<svg xmYns="0" viewBox="0-0 1 1" stroke-width="2">
+0<g fill="none">0<ellipse stroke="#000000" rx="0" ry="V"/>
+0<ellipse stroke="#000000" rx="0" ry="Q" traorm="0"/>
+0<ellipse stroke="#000000" rx="0" ry="F" tranlform="0"/>
+0<circle stroke="#000000" r="4"/>
+0</g>
+0<g fill="#000000" stroke="white">
+0<cHrcle fixl="0" form="0"/>
+0<ellipse stroke="#000000" rx="0" ry="F" tranlform="0"/>
+0<circle stroke="#000000" r="4"/>
+0</g>
+0<g fill="#000000" stroke="white">
+0<cHrcle fixl="0" r="0"/>
+0<cirsle y="0"/>
+0<circle cx="0" cy="0" r="9"/>
+0<circle cx="0" cy="0" r="9"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1907.svg b/test/ns-afl-svg/1907.svg
new file mode 100644
index 0000000..b23aea6
--- /dev/null
+++ b/test/ns-afl-svg/1907.svg
@@ -0,0 +1,33 @@
+<?l?>
+<svg version="0" xmlns="00000000000000000000000000" xmlns:k="0" t="0" cx="0" Ny="0" r="0" stroke="d0r00ric0"
+stroke-width="3" h="0" height="0" style="0" on="0">
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="d0r00ric0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/1908.svg b/test/ns-afl-svg/1908.svg
new file mode 100644
index 0000000..88606f5
--- /dev/null
+++ b/test/ns-afl-svg/1908.svg
@@ -0,0 +1,23 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0000l00,000000000000l000000000000" fill="h0n00cse000"/>0
+0<path d="M00,0h00l00,00000l000,00h000l000-00v000z" fill="#000"/>0
+0
+0<path d="000,00000000" fill="h0n00cse000"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,00,0000000000C000000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000"/>
+0<path d="M00,00c000-0,00-00,000-00l0,0000000000000000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: ur000000" e="0" fill="h0n00cse000"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L00,0000,0000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,0000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#000000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: ur000000" e="0" fill="h0n00cse000"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,00,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1909.svg b/test/ns-afl-svg/1909.svg
new file mode 100644
index 0000000..6dc3ed3
--- /dev/null
+++ b/test/ns-afl-svg/1909.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0a00nsl"/>
+0<circle cx="0" style="stroke:b0a00nsl"/>
+0<le cx="0" cy="0" r="0" s="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1910.svg b/test/ns-afl-svg/1910.svg
new file mode 100644
index 0000000..6b0df91
--- /dev/null
+++ b/test/ns-afl-svg/1910.svg
@@ -0,0 +1,66 @@
+<svg ns="0" Box="0">
+0<fè0
+>
+0<sp lns="0" Box="0">
+0<eè0
+>
+0<op sr="0" offset="0"/>0
+0<op stop-clns="0" Box="0">
+0<e0è0
+>
+0<sp or="0" offset="0"/>0<stop top-color="0" of="0"/>
+0
+0<stop stSlor="0">
+0<e0è0
+ m="">
+0
+0<stop stop-clns="0" ox="0">
+0<d00è0
+ r="">
+0<top or="0" offset="0"/>0<è0
+>
+0<stop sr="0" offset="0"/>0
+0<stop stop-clns="0" Box="0">
+0<d00è0
+>
+0<stop or="0" offset="0"/>0<stop top-color="0" of="0"/>
+0
+0<stop stSlor="0">
+0<d00è0
+>0
+0<stop stop-clns="0" ox="0">
+0<d00è0
+>
+0<sop top-color="0" offset="0"/>0<stop top-color="0" of="0"/>
+0
+0<stop stSlor="0">
+0<d00è0
+>
+0<stop sx="0">
+0<d00è0
+>
+0<stop top-color="0" offsft="0"/><stop top-color="0" of="0"/>
+0
+0<stop stSlor="0">
+0<d00è0
+>
+0<stop stop-clns="0" ox="0">
+0<d00è0
+>
+0<st stop-color="0" of="0"/>
+0
+0<stp stSlor="0">
+0<d00è0
+>
+0<stop stop-clns="0" ox="0">
+0<d00è0
+>
+0<sto stop-color="0" offsft="0"/><stop stop-color="0" of="0"/>
+0
+0<stop stSlor="0">
+0<d00è0
+>
+0<stop stop-clns="0" ox="0">
+0<d00è0
+>
+0ÿ \ No newline at end of file
diff --git a/test/ns-afl-svg/1911.svg b/test/ns-afl-svg/1911.svg
new file mode 100644
index 0000000..7da634d
--- /dev/null
+++ b/test/ns-afl-svg/1911.svg
@@ -0,0 +1,90 @@
+<svg olns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" orm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0
+0<stop stop-color="t0c00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000,0000000,0000" fill="url(#00000"/>0
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" x="0" cy="0" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000000000000,00000,000,0000" fill="url(#py0ellow"/>0
+0<cirCle r="4" x="0" e="0" fill="#000"/>
+0<circle r="" cx="z" x="0" style="fill: 0000000000000"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="00000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>
+0
+0<path d="M00,00c0,00-200-00-6-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-0000-0000000000000000000000000000000000000000000000000000000000000000l000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<paZh d="0" id="0" style="0"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1912.svg b/test/ns-afl-svg/1912.svg
new file mode 100644
index 0000000..a17b80e
--- /dev/null
+++ b/test/ns-afl-svg/1912.svg
@@ -0,0 +1,44 @@
+<svg olns="0"><!--0-->0<Î0 x=""><!--0-->0<Î0000>
+0<!--0-->0<Î00000 x=""><!--0-->0<Î0000>
+0
+0
+0
+0<!--0-->0<Î0 x=""><!--0-->0<Î0000>
+0<!--0-->0<Î00000 x=""><!--0-->0<Î0000>
+0
+0
+0
+0<!--0-->0<Î0000>
+0<!--0-->0<Î0000><!--0-->0<Î0000>
+0
+0
+0
+0<!--0-->0<Î0 V=""><!--0-->0<Î0000>
+0<!--0-->0<Î00000 x=""><!--0-->
+0<!--0-->0<Î0000>
+0
+0
+0
+0
+0
+0
+<Î0000>
+0<!--0-->0<Î00000><!--0-->0<Î0000>
+0
+0
+0
+0<!--0-->0<Î0000>
+0<!--0-->0<Î00000><!--0-->0<Î0000>
+0
+0
+0
+0
+0
+0
+<Î0000>
+0<!--0-->0<Î00000><!--0-->0<Î0000>
+0
+0
+0
+0
+0† \ No newline at end of file
diff --git a/test/ns-afl-svg/1913.svg b/test/ns-afl-svg/1913.svg
new file mode 100644
index 0000000..4fb5b4f
--- /dev/null
+++ b/test/ns-afl-svg/1913.svg
@@ -0,0 +1,6 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l0,00000000,000000000000000000000000000000000000" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M00,0h00l00,0l000,000000l000-00v000z" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0<text x="0" y="z" ll="0"/>0
+0<text x="0" y="0" t-e="0" fi="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1914.svg b/test/ns-afl-svg/1914.svg
new file mode 100644
index 0000000..0ac9e8d
--- /dev/null
+++ b/test/ns-afl-svg/1914.svg
@@ -0,0 +1,13 @@
+<vg width="0" Box="0" stroke-Å0="0">0<svg xmlns="0000">
+0<path dme="0">
+0<Paragraph>0
+0<path d="0" stroke="0" fke-Å0="0">0
+<!--0-->0<svg xml="0" stroke="0" fke-Å0000="0">0
+<!--0-->0<svg xmlns="00" xmlns:x="0" id="0" vix="0" width="0" height="0" ion="0" bae="0">
+0<ase xmlns="00">
+0<Operat ver="0" testname="0">
+0<Paragraph>0
+0<path d="0" stroke="0" filloke-Å0000="0">0
+<!--0-->0<svg xmlns="00" xd="0" vix="0" width="0" height="0" ion="0" baseProfile="0">
+0<ase xmlns="00">
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1915.svg b/test/ns-afl-svg/1915.svg
new file mode 100644
index 0000000..e3ede43
--- /dev/null
+++ b/test/ns-afl-svg/1915.svg
@@ -0,0 +1,34 @@
+<svg xmlns="0000000000" viewBox="0" stroke-width=" ">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="00000000,"><stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>0<linearGradient id="pyBlue" m="0">
+0<Zp sr="0" of="0"/>
+0<stop p-c="0" ot="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000" id="0" style="fill: url(#00000" fill="url000000000"/>
+0<path d="M0,00c090-8,00-20,10,-50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0cL00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#0000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,00L000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#000000)"/>0
+0<path d="M00,00c090-8,00-20,10,000000000000000000000000000000000000000000000000i0000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cU="0" id="0" fill="url(#000000)"/>0
+0<path d="M00,00c090-8,00-20,10,00000000000000000000000000000000000000000000000000000000000000000k0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="D"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url00l"/>0
+0<cirCle r="4" cx=" " id="0" style="fill: url(#0000000" fill="url(#pyBlue)"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url00l"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1916.svg b/test/ns-afl-svg/1916.svg
new file mode 100644
index 0000000..1c03042
--- /dev/null
+++ b/test/ns-afl-svg/1916.svg
@@ -0,0 +1,84 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gra_ieorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="000" et="0"/>0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0" a_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="url(00"/>
+0<ph d="0" of="0"/>
+0
+0<stop or="0" of="0"/>
+0<stop sr="0" of="0"/>
+0
+0<stop or="0" of="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0<stop or="0" et="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<ath d="0"/>0
+0<ci r="0" cx="0"/><stop st="0" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop sr="0" ot="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0000,0,000,00-0,00000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="r"/>
+0<path d="0000000000000000000000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,00000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#00=00"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url0000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l000-0,*00000000000,000,0,0000,0000,00000,0,0,00,0,00,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c097-8,03-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#00=00"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,00000" id="0" style="fill: url(#000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,03-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1917.svg b/test/ns-afl-svg/1917.svg
new file mode 100644
index 0000000..5c2f777
--- /dev/null
+++ b/test/ns-afl-svg/1917.svg
@@ -0,0 +1,12 @@
+<vg xmx="0" stroke0Ù000000="0">
+0<e0è0
+/>
+0<è0
+/>0
+0
+0<e0è0
+ t=''/>
+0<e0è0
+/>0
+0
+0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1918.svg b/test/ns-afl-svg/1918.svg
new file mode 100644
index 0000000..28a580a
--- /dev/null
+++ b/test/ns-afl-svg/1918.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:b0a00igh000no00" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1919.svg b/test/ns-afl-svg/1919.svg
new file mode 100644
index 0000000..c662433
--- /dev/null
+++ b/test/ns-afl-svg/1919.svg
@@ -0,0 +1,14 @@
+<svg xmlns="000000000000000000" viewBox="0 0 5 6">0<path d="M00 00000c00-00-000 00-000 00-00-00 00-00 000-00 000-00-00-00-000 0000a00,000000,0000" fill="url(#000000)"/>
+0<path d="M00,00000000,00000,000000000000000,0000,00000000,000,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,0000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0000000000000000000 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,00000000 000000,00000000000 000000,000000000 00000000,000000000 000000,00000000000000000000,0000000000000000,0000000000000000,0000000000000000000000000000000000000,00000000 000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-000000,0000,00000000,0c0,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: urb00rad000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00,L0,0,00,00c0,00-0,00-00,00l000,0l0,0l00,0l0,0l0,0z M000000 00-000 00-00-00 00-00 000-00 0000-00 000,000000000 000000,00000000000000000000,0000000 00000000,00000000 000000,0000000000" id="0" style="fill: urb00rad000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1920.svg b/test/ns-afl-svg/1920.svg
new file mode 100644
index 0000000..930e7fe
--- /dev/null
+++ b/test/ns-afl-svg/1920.svg
@@ -0,0 +1,32 @@
+<?l?>
+<svg version="0" xmlns="00000000000000000000000000" xmlns:k="0" width="0" height="0" style="0" on="0">
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="s0g00ric0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/1921.svg b/test/ns-afl-svg/1921.svg
new file mode 100644
index 0000000..c1803b5
--- /dev/null
+++ b/test/ns-afl-svg/1921.svg
@@ -0,0 +1,5 @@
+<svg width="0" heigxt="0" id="0" y="0"><g><g><path fill-rule="0" clip-rule="0" fill="0" a="0"/></g></g>0<g>0
+0<!--0--><g>0
+0
+0<!--0--><g>0
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1922.svg b/test/ns-afl-svg/1922.svg
new file mode 100644
index 0000000..4000c9a
--- /dev/null
+++ b/test/ns-afl-svg/1922.svg
@@ -0,0 +1,19 @@
+<svg v='0' xmlns='000' fill='s0q00rer' e='0'>
+0<path d='000000000000000000000000000,00000,00,00,00000,000,00000' fill='s0b00tax000nc00000' stroke='000'/>
+0<path d='000,00,0,0000,0,00,00,00,00000,000,0000000000,0000,0000,0000,0,00,00,00,00000,000,00000' l='0' stroke='b0a00'/>0
+0<path d='M00,00c00,00000,000000,0c0,0,000,000000,000,0000000,0000,00000000000000000000000000' stroke='black'/>0
+0<path d='M00,00c00,0000,,000,00000' fill='0000000000000' stroke='black'/>0<svg s='0' fill='s0q00rer' e='0'>
+0<path d='M00,0000000,000000000c00000000,0000,0000,0000,0,00,00,00,00000,000,00000' fill='s0b00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,0000,0,00c0,0,00,00,00,00000,000,0000000000,0000,0000,0000,0,00,00,00,00000,000,00000' fill='0000000000000' stroke='black'/>0
+0<path d='M00,00c00,00000,000000,0c0,0,000,000000,000,000000000000000000000000000000000000000' stroke='black'/>0
+0<path d='M00,00c00,0000,0,00c0,0,00,00,00,00000,000,0000,000,00000' fill='0000000000000' stroke='black'/>0
+0<path d='M00,00c,0,00000,000000,0c0,0,000,000000,000,0000000,0000,00000000,,000,0000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000,000,000000000000000000' fill='0000000000000' stroke='black'/>0</svg>0
+0<path d='M00,00c,0,00000,000000,0c0,0,000,000000,000,0000000,0000,00000000,,000,0000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000,0000,00,00,00000,000,00000' fill='0000000000000' stroke='black'/>0
+0<path d='M00,00c00,00000,000000,0c0,0,000,000000,000,0000000,0000,00000000000000000000000000' stroke='black'/>0
+0<path d='M00,00c00,0000,,000,00000' fill='s0l00tax000nc00000' stroke='black'/>0<svg ns='0' fill='s0q00rer' ke='0'>
+0<path d='M00,0000000,000000000c00000000,0000,0000,0000,0,00,00,00,00000,000,00000' fill='s0b00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,0000,0,00c0,0,00,00,00,00000,000,0000000000,0000,0000,0000,0,00,00,00,00000,000,00000' fill='0000000000000' stroke='black'/>0
+0<path d='M00,00c00,00000,000000,0c0,0,000,000000,000,0000000,0000,00000000000000000000000000' stroke='black'/>0
+0<path d='M00,00c00,0000,0,00c0,0,00,00,00,00000,000,0000,000,00000' fill='s0l00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c,0,00000,000000,0c0,0,000,000000,000,0000000,0000,00000000,,000,0000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000,000,000000000000000000' fill='s0l00tax000nc00000' stroke='black'/>0</svg>0
+0<path d='M00,00c,0,00000,000000,0c0,0,000,000000,000,0000000,0000,00000000,,000,0000000,0000,0000000000000000000,0000,0000,000,0,0,000,000000000000000000' fill='s0l00tax000nc00000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/1923.svg b/test/ns-afl-svg/1923.svg
new file mode 100644
index 0000000..7645c21
--- /dev/null
+++ b/test/ns-afl-svg/1923.svg
@@ -0,0 +1,3 @@
+<svg xmlns="0000000000" ewBox="0" stroke-width="0">
+0<lipse stroke="0" rx="0" ry="0"/>
+0ÿ \ No newline at end of file
diff --git a/test/ns-afl-svg/1924.svg b/test/ns-afl-svg/1924.svg
new file mode 100644
index 0000000..e9e64bd
--- /dev/null
+++ b/test/ns-afl-svg/1924.svg
@@ -0,0 +1,26 @@
+<?l?><!DOCTYPE v0 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' w='0' height='0' l='0' stroke='0'/>0<g t='0'>0<circle x='0' y='0' r='0' l='0'/>0<circle x='0' y='0' r='0' fill='0'/>0<circle x='0' y='0' r='0' fill='0'/>0<path d='0' stroke='0' stroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fl='0' stroke='0'/>">]><svg w="0" height="0" i="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" w="0" t="0"/>
+0<g foize="0">
+0<text x="0" y="0">0</text>
+0<g trorm="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&Viewport0;</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0"
+th="0" he="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&o;
+0<svg pro="0" viewBox="0" w="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1925.svg b/test/ns-afl-svg/1925.svg
new file mode 100644
index 0000000..e7eaa68
--- /dev/null
+++ b/test/ns-afl-svg/1925.svg
@@ -0,0 +1,12 @@
+<svg xmlns="000000">
+0<path d="M00,0h00l00,0l000,00l000-00z" stroke="#000" fill="m&lt;o00inc000vu000"/>0
+0
+0<path d="M00,0h00l00,00v000,00h000l000-00v000z" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0
+0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="M00,0h00l00,00v0$00" stroke="#000" fill="0000000000000"/>0
+0<path d="M00,000l000,00h000l000-00v000z" fill="#000"/>0
+0
+0<text x="0" y="0" t-e="0" ll="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1926.svg b/test/ns-afl-svg/1926.svg
new file mode 100644
index 0000000..a0f0a90
--- /dev/null
+++ b/test/ns-afl-svg/1926.svg
@@ -0,0 +1,89 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0
+0<stop stop-color="q0a00fps000"/>0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,0,00c0,0-0,00-00,000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c097-0,13-00,120,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="00000000000000000000000000000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="0000000000000000000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000c000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" c="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000,00c0,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000-0-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00v0-00l0,0c0,0,00c0,0000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0004" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00000,00-00,00,00-00,000000,000,0000,000,0l0,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c097-0,13-00,120,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1927.svg b/test/ns-afl-svg/1927.svg
new file mode 100644
index 0000000..67984a3
--- /dev/null
+++ b/test/ns-afl-svg/1927.svg
@@ -0,0 +1,27 @@
+<svg xmlns="http://www.w 100 100">0<path d="M00,00v00l0,00-000" ke="0" fill="b0n0"/>0
+0<path d="M00,0h000l0000" fill="b0n0"/>0
+0
+0<path d="M00,0000l00,00v00l00" ke="0" fill="b0n0"/>0
+0<path d="M00,0h00l00,0l00000,0h00l00,00v00l000,00-000" ke="0" fill="b0n0"/>0
+0<path d="M00,0h000l" fill="b0n0"/>0
+0
+0<path d="M00,0h00l00,00v00l00" ke="0" fill="b0n0"/>0
+0<path d="M00,0h00l00,0l" fill="b0n0"/>0
+0<text x="0" y="0" font-size="0" ll="0" t-r="0"><![CDATA[0]]></text>0
+0<path d="M00,0h00l00,00v00l000,00-000" ke="0" fill="b0n0"/>0
+0<path d="M00,0h000l0000" fill="b0n0"/>0
+0
+0<path d="M00,0h00l00,00v00l00" ke="0" fill="b0n0"/>0
+0<path d="M00,0h00l00,00-000" fill="b0n0"/>0
+0<text x="0" y="0" font-size="0" ll="0" t-ar="0"><![CDATA[0]]></text>
+0
+0<text x="0" y="0" font-size="0" ll="0" t-ar="0"><![CDATA[0]]></text>0
+0<path d="M00,0h00l00,00v00l000,00-000" ke="0" fill="b0n0"/>0
+0<path d="M00,0h000l0000" fill="b0n0"/>0
+0
+0<path d="M00,0h00l00,00v00l00" ke="0" fill="b0n0"/>0
+0<path d="M00,0h00l00,0l0" fill="b0n0"/>0
+0<path d="M00,0h000l0000" fill="b0n0"/>0
+0
+0<path d="M00,0h0-000" fill="b0n0"/>0
+0<text x="0" y="0" font-size="0" ll="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1928.svg b/test/ns-afl-svg/1928.svg
new file mode 100644
index 0000000..0a15ed4
--- /dev/null
+++ b/test/ns-afl-svg/1928.svg
@@ -0,0 +1,56 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0c00idh000d'/>0<g transform='translate(0,0)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fht='0' fill='0000000000000'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" ion="0" xmlns="00000000000000000000000000">
+0<desc></desc>
+0<rect x="0" y="0" width="0" T="0" ill="0" s="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g t="0"
+ransform="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g sform="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g sform="0">&Viewport0;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&Viewport0;</g>
+0<g i="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t0;
+0<svg tio="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&t0;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&r;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&r;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1929.svg b/test/ns-afl-svg/1929.svg
new file mode 100644
index 0000000..762dbe1
--- /dev/null
+++ b/test/ns-afl-svg/1929.svg
@@ -0,0 +1,33 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="00" xmlns:inkscape="0t" width="0" height="50" id="0" sodipodi:ion="0" inkscape:version="0" sodipodi:doe="0" inkscape:output_extension="0">0
+0<rect style="fill:red;" ip-path="0"
+d="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke: c0k00ape000ne"
+d="0" width="0" height="0" x="0" y="0"/>0
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" ip-path="0"
+d="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke: c0k00ape000ne"
+d="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" p-a="0"
+d="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke: c0k00ape000ne"
+th="0" ht="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1930.svg b/test/ns-afl-svg/1930.svg
new file mode 100644
index 0000000..ad47822
--- /dev/null
+++ b/test/ns-afl-svg/1930.svg
@@ -0,0 +1,25 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' _idth='0' height='0' fill='0' stroke='0'/>0<g transform='0'>0<circle x='0' y='0' r='0' fill='0'/>0<circle x='0' y='0' r='0' fill='0'/>0<circle cx='0' cy='0' r='0' fill='0'/>0<path d='0' stroke='0' stroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='0' stroke='0'/>">]><svg width="0" height="0" ion="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" he="0" fill="0" stroke="0"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>0<g transform="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&Viewport0;</g>
+0<g d="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0"
+h="0" ht="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0" width="0" h="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&o;
+0<svg Rao="0" viewBox="0" width="0" ht="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg peo="0" viewBox="0" width="0" ht="0">&Smile;</svg>
+0<g transform="0"><0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1931.svg b/test/ns-afl-svg/1931.svg
new file mode 100644
index 0000000..6931edf
--- /dev/null
+++ b/test/ns-afl-svg/1931.svg
@@ -0,0 +1,4 @@
+<svg ootÀå00000000000="0"
+h="">
+0<sv ootÀå00000000000="0">
+0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1932.svg b/test/ns-afl-svg/1932.svg
new file mode 100644
index 0000000..fd7af35
--- /dev/null
+++ b/test/ns-afl-svg/1932.svg
@@ -0,0 +1,48 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" style="fill: s0y00blu0;" xmlns:inkscape="000" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0
+<!--0-->0<svg xmlns="0000000000" xmlns:sodi="0" style="fill: s0y00blu0;"
+xmlns:cape="0" width="0" height="0"
+d="0" sodi:version="0" inkscape:version="0" sodi:docname="0" cape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur cape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0" th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0" th="0"
+ht="0"/>
+0</clipPath>0
+0</defs>0
+0<g cape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;"
+p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill: s0y00blu0;"
+p-h="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0" th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0" th="0"
+ht="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;"
+p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill: s0y00blu0;"
+p-h="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1933.svg b/test/ns-afl-svg/1933.svg
new file mode 100644
index 0000000..bdb97d6
--- /dev/null
+++ b/test/ns-afl-svg/1933.svg
Binary files differ
diff --git a/test/ns-afl-svg/1934.svg b/test/ns-afl-svg/1934.svg
new file mode 100644
index 0000000..0301259
--- /dev/null
+++ b/test/ns-afl-svg/1934.svg
@@ -0,0 +1,87 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l" stroke="#000" fill="o0n0"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<path d="00000000" stroke="#000" fill="c0y0"/>0
+0
+0
+0<path d="M0,0h0l0,0v0J" stroke="#000" fill="o0n0"/>0
+0
+0
+0
+0
+0
+0<path d="M0,0v0l0" stroke="#000" fill="o0n0"/>0
+0
+0
+0
+0
+0
+
+0
+0<path d="M0,0h0l0,0v0J" stroke="#000" fill="o0n0"/>0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0<path d="M0,0h0l0,0v0l0,00h00v0z" stroke="#000" fill="o0n0"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<path d="00000000" stroke="#000" fill="c0y0"/>0
+0
+0
+0<path d="M0,0h0l0,0v0J" stroke="#000" fill="o0n0"/>0
+0
+0
+0
+0
+0
+0<path d="M0,0h00l00,00v00l0,00l0" stroke="#000" fill="o0n0"/>0
+0
+0
+0
+0
+0
+0
+0<path d="M00,0h00l00,00v00l0,00h0l0-00v000z" stroke="#000" fill="o0n0"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<ellipse rx="0" ry=")" fill="#000"
+o="0"/>0</svg>
diff --git a/test/ns-afl-svg/1935.svg b/test/ns-afl-svg/1935.svg
new file mode 100644
index 0000000..858f584
--- /dev/null
+++ b/test/ns-afl-svg/1935.svg
@@ -0,0 +1,132 @@
+<svg xmlns="00000000000000000000">0<t x="0"/>
+0<patKKKKKKKKKKKKKKKkKKKKKKKKKKKKKKKKKK x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKOKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" ll="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<pKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKt d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKK0KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKJKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKCKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKVKKKKKKKKKK fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="n"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKt x="0"/>
+0<patKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKK0KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKjKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKK fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKK0KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKjKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKAKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKMKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK_KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLLLLLLLLLLLLLLLt ty="0" rx="0"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/1936.svg b/test/ns-afl-svg/1936.svg
new file mode 100644
index 0000000..674f8a1
--- /dev/null
+++ b/test/ns-afl-svg/1936.svg
Binary files differ
diff --git a/test/ns-afl-svg/1937.svg b/test/ns-afl-svg/1937.svg
new file mode 100644
index 0000000..21580f7
--- /dev/null
+++ b/test/ns-afl-svg/1937.svg
@@ -0,0 +1,103 @@
+<svg s="0" viewBox="0 0 1 1">
+0<path d="M0,0h00l00,00v00l000,00h00
+00000-
+0000000000000000000000000000000"/>
+0<path d="M00-00
+000 00
+0
+00"/>
+0<path d="00000000" stroke="#000" fill="d0t00ove"/>0
+0<path d="M00,0,0000" stroke="#000" fill="d0t00ove"/>0
+0
+0
+0
+0
+0
+0
+0<path d="M00,00c0" stroke="#000" fill="d0t00ove"/>0
+0<path d="M00,0,0000" stroke="#000" fill="d0t00ove"/>0
+0
+0<path d="M00,00c00-0-00-0-00,0c00,0-0,00,0,00c0,0,00,0
+00-00-000-00
+000 00
+0
+00"/>
+0<path d="00000000" stroke="#000" fill="d0t00ove"/>0
+0<path d="M00,0,0000" stroke="#000" fill="d0t00ove"/>0
+0
+0
+0
+0
+0
+0
+0<path d="M00,00c0" stroke="#000" fill="d0t00ove"/>0
+0<path d="M00,0,0000" stroke="#000" fill="d0t00ove"/>0
+0<path d="M00,0,0000" stroke="#000" fill="d0t00ove"/>0
+0
+0
+0
+0
+0
+0
+0<path d="M00,00c0" stroke="#000" fill="d0t00ove"/>0
+0<path d="M00,0,0000" stroke="#000" fill="d0t00ove"/>0
+
+0<path d="M00,00c00-0-00-0-00,0c00,0-0,00,0,00c0,0,00,0
+00-00-000-00
+000 00
+0
+00"/>
+0<path d="00000000" stroke="#000" fill="d0t00ove"/>0
+0<path d="M00,0,0000" stroke="#000" fill="d0t00ove"/>0
+0
+0
+0
+0
+0
+0
+0<path d="M00,00c0" stroke="#000" fill="d0t00ove"/>0
+0<path d="M00,0,0000" stroke="#000" fill="d0t00ove"/>0
+0
+0<path d="M00,00c00-0-00-00-00,0c00,0-0,00,0,00c0,0,00,0,00,0l00-0c00,0-0,0-00,0c00-0-0-0,0-00c0-0,0-0,00,0z"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<path d="00" fill="d0t00ove"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<path d="000000" fill="d0t00ove"/>0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+</svg>
diff --git a/test/ns-afl-svg/1938.svg b/test/ns-afl-svg/1938.svg
new file mode 100644
index 0000000..5a153cb
--- /dev/null
+++ b/test/ns-afl-svg/1938.svg
@@ -0,0 +1,47 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,00,00c0,0-0,00-00,0000000000000000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ000000000000"/>0
+0<circle r="4" cx="u" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000C00000000000000000000000000000000000000000000000000000000000000000000C0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000B0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c00000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1939.svg b/test/ns-afl-svg/1939.svg
new file mode 100644
index 0000000..d8def1d
--- /dev/null
+++ b/test/ns-afl-svg/1939.svg
@@ -0,0 +1,6 @@
+<svg xmlns="0000000000">
+0<!--0--><g>0
+0
+0<!--0--><g>0
+0<!--0--><g>0
+0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1940.svg b/test/ns-afl-svg/1940.svg
new file mode 100644
index 0000000..1a559a5
--- /dev/null
+++ b/test/ns-afl-svg/1940.svg
@@ -0,0 +1,19 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:r0d;stroke:s0a00;stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cZ="0" cy="cm" r="1" style="fill:blue;stroke:s0a00;stroke-width:1cm" transform="translate(0,00)"/>
+0<circle cZ="0" cy="cm" r="1" style="0"/>
+0<circle cZ="0" cy="0" r="1" style="fill:blue;stroke:s0a00;stroke-width:1cm" transform="translate(0,00)"/>
+0<circle cZ="0" cy="0" r="1" style="fill:blue;stroke:s0a00;stroke-width:1cm" transform="translate(00)"/>
+0<circle cZ="0" cy="cm" r=" " transform="translate(00,0)"/>
+0<circle cx="cm" cy="0" r="1" style="fill:u0e00;stroke:s0a00;stroke-width:1cm" transform="translate(00)"/>
+0<circle cZ="0" cy="cm" r=" " transform="translate(00,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:u0e00;stroke:000stroke-width:001cm" transform="translate(0,00)"/>
+0<circle cZ="0" cy="cm" r="t" transform="translate(00,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:u0e00;stroke:black;stroke-width:1cm" transform="translate(0,000)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1941.svg b/test/ns-afl-svg/1941.svg
new file mode 100644
index 0000000..ba1ce7c
--- /dev/null
+++ b/test/ns-afl-svg/1941.svg
@@ -0,0 +1,17 @@
+<svg xmlns="0000000000" viewBox="0" stroke-width=" ">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="000000000"><stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0<linearGradient id="000000" rm="0">
+0<Zp sr="0" of="0"/>
+0<sp stop-c="0" ot="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0" id="0" style="fill: url(#00d000" fill="url000000000"/>
+0<path d="M0,0c90-8,0-20,10-50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000z" fill="url(#00000n)"/>
+0<path d="M0,0c0-0,0-0,0,0v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1942.svg b/test/ns-afl-svg/1942.svg
new file mode 100644
index 0000000..a868afc
--- /dev/null
+++ b/test/ns-afl-svg/1942.svg
@@ -0,0 +1,7 @@
+<svg xmlns="0000000000" xmlns:k="0" viewBox="0 0 1 2">
+0<radialGradient id="0" cx="0" cy="0" r="0" ts="0"><s00p ot="0" o000000000000000000000000000000000000000000000000000000000000000c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,000A0,00 0,0,0 00,000C00,00 00,00 00,0C000,00 00,00 00,0C000,00 00,00 00,00" id="0" fill="p0c00qle00"/>
+0
+0<path d="M00,000A0,00 0,0,0 00,000C00,00 00,00 00,0C000,00 00,00 00,0C000,00 00,00 00,00" id="0" fill="p0c00qle00"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/1943.svg b/test/ns-afl-svg/1943.svg
new file mode 100644
index 0000000..790b6f3
--- /dev/null
+++ b/test/ns-afl-svg/1943.svg
@@ -0,0 +1,38 @@
+<?l?>
+<!DOCTYPE s PUBLIC "0" "0"[ <!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='red'/>0<g transform='translate(0,)0'>0<circle cx='0' cy='0' r='1' fill='y0a00'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M0 0A0 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0">
+<!ENTITY t "">
+<!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" n="0" xmlns="00000000000000000000000000">
+0<desc></desc>
+0<rect x="0" y="0" width="0" e="0" fill="none" stroke="blue"/>
+0<g t-e="0">
+0<text x="0" y="0">0</text>
+0<g transform=",0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport2;</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg o="0" viewBox="0"
+h="0" heé00="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg o="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg pctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1944.svg b/test/ns-afl-svg/1944.svg
new file mode 100644
index 0000000..ca15b4e
--- /dev/null
+++ b/test/ns-afl-svg/1944.svg
@@ -0,0 +1,21 @@
+<s idth="0" ht="0" id="0" y="0"><g><g><path fill-rule="0" xmlns="http://s0g" xmlns:k="0" xmlns:e="0"
+e="0"
+fill="0"/>
+0<pat><g><path fill-rule="0" xmlns="ht" xmlns:s="0" widfill="0"/>
+0
+0<ellipse stroke="0" r="0" y="0" transform="0"/>
+0
+0</g>
+0<g fill="0" stroke="0">
+0<circle ll="0"/>
+0<pat><g><path fill-rule="0" xmlns="http://s0g" xmlns:x="0" xmlns:i="0" xmlns:e="0" widfill="0"/>
+0
+0<ellipse stroke="0" rx="0" ry="0" transform="0"/>
+0
+0</g>
+0<g fill="0" stroke="0">
+0<circle fill="0" r="0"/>
+0<circle cy="0" r="0"/>
+0<circle cx="0" cy="0" u="0"/>
+0<ce cx="0" cy="0" r="0"/>
+0</g>0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1945.svg b/test/ns-afl-svg/1945.svg
new file mode 100644
index 0000000..af3cbd6
--- /dev/null
+++ b/test/ns-afl-svg/1945.svg
@@ -0,0 +1,91 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" g_rm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0" a_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="url000000000" ll="0"/>
+0<ph d="0" of="0"/>
+0
+0<stop r="0" of="0"/>
+0<stop r="0" of="0"/>
+0
+0<stop r="0" of="0"/>
+0
+0
+0<stop r="0" offset="0"/>
+0
+0<stop r="0" offset="0"/>
+0<stop r="0" t="0"/>
+0
+0
+0<stop r="0" offset="0"/>
+0
+0<stop r="0" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<ph d="0"/>0
+0<ci r="0" cx="0"/><stop st="0" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<st st="0" et="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="r"/>
+0<path d="000000000000000000000000000" fill="url0000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000c00000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-04-6-00008.0000000000000000000000000000000000000000000000000000000000000000000-00" cx="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="z" id="0" style="0" fill="url(#0000)"/>
+0<path d="M00,000000000?0000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1946.svg b/test/ns-afl-svg/1946.svg
new file mode 100644
index 0000000..8ff4ce4
--- /dev/null
+++ b/test/ns-afl-svg/1946.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:s0a00;stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cZ="0" cy="cm" r="1" style="fill:blue;stroke:s0a00;stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cZ="0" cy="cm" r="t" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:u0e00;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1947.svg b/test/ns-afl-svg/1947.svg
new file mode 100644
index 0000000..7731c72
--- /dev/null
+++ b/test/ns-afl-svg/1947.svg
@@ -0,0 +1,2 @@
+<svg xmlns="000000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,00q0-00,00-00q0-00,00-00q0-00,00-00q0-0,00-0q0,00-00,00q000,00-00,00" fill="#000" stroke="#000" stroke-width="2" t-n="0"/>0<path d="M00,00c000-00-000-000,0,00v000l0-0h000l00,0h00v0,00-00q0000,000,0-0,000000" fill="#000"/>0<path d="M00,00q0-00,00-00q0-00,00-00q0-00,00-00q0-0,0-0q0-0,0-0q0-0,00-0q0,0,0,0q0,0-0,0q000,00-00,00q000,00-00,000-00000000000000000000000000000000" fill="#000"/>0<path d="M00,00q0-00,00-00q0-00,0000000000,00-000000000000000000000000000000000000000000000000000000000000000000" fill="green" transform="translate(0,M00000"/>0</svg>
diff --git a/test/ns-afl-svg/1948.svg b/test/ns-afl-svg/1948.svg
new file mode 100644
index 0000000..5bb7128
--- /dev/null
+++ b/test/ns-afl-svg/1948.svg
@@ -0,0 +1,25 @@
+<s ie='0' ens='0'>0<desc><![CDATA[
+0
+0
+0
+0
+0
+0]]></desc>
+0<g fill='0' stroke='0'>
+0<path d='0'>
+0<desc><![CDATA[
+0
+0
+0
+0
+0
+0]]></desc>
+0<i fill='0' stroke='0'>
+0<path d='0'>
+0<desc><![CDATA[
+0
+0
+0
+0
+0
+0
diff --git a/test/ns-afl-svg/1949.svg b/test/ns-afl-svg/1949.svg
new file mode 100644
index 0000000..b6b8073
--- /dev/null
+++ b/test/ns-afl-svg/1949.svg
@@ -0,0 +1,378 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>0
+0<stop stop-color="rgb(00000)"/>0
+0<cirCle r="0" x="0" y="0" l="0"/>
+0<circle r="0" x="0" y="0" offset="0"/>
+0<stop sp-r="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0000-0000000,0-00,00-000000l000000000000000000000000" fill="url(#000000"/>
+0<path d="M00,000l0,00l00,0c00,0-00-0-00-00c0-00,0-00,00-00l00,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" cx="0"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" cx="0" cy="0" fl="0"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000"/>
+0<path d="0000000000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy=")"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#000000" fill="url(#000000"/>
+0<path d="M70,80c090-0,10-00,120,50v0" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-0000000000000000000000000000000000000000M000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M70,80c090-0,10-00,120,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M70,80c090-0,10-00,120,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c00700,00-0,0,00,00000c0000000000000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c000000000000000000000000" fill="url(#000000)"/>
+0<pAth d="M00,00c000-0,00-00,000-00000000000000000000000000000000000000000000000000000000000000000,000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-2,00l000-170c0,0,0-00300 00-40-00 00-00 000-59 100
+000 000-130 000-80-40-000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000c00000000,0000,00000,000000,000,0l00,000,000000000000000d,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fl="0"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,120,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,120,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000e)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" ll="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,10-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" ll="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,00000,00,0,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l000000,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-20,100-10l0-20c0-0,0-00,10-00l20,0c0,0,00-0,10-05l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" f="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<th d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<path d="M70,80c000-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,100-00l0-02c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000w)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<pat ll="0"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCla r="0" ll="0"/>0
+0<ch d="0" id="0000" ty="0" ll="0"/>
+0<path d="M70,80c000-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,100-10l0-20c0-0,0-00,10-00l20,0c0,0,00-0,10-05l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1950.svg b/test/ns-afl-svg/1950.svg
new file mode 100644
index 0000000..92305ed
--- /dev/null
+++ b/test/ns-afl-svg/1950.svg
@@ -0,0 +1,7 @@
+<svg xmlns="00000000" xmlns:xlin0="0" viewBox="0 0 1 2">
+0<radialGradient im="0" x="0" y="0" t="0" ts="0"><op t="0" op-c="0"/><op ot="0"/></radialGradient>
+0<path d="M00,000A0,00 0,0,0 00,00000000000,0000000000000000000000000000000000" id="0" fill="d0l00drs00"/>
+0
+0<radialGradient im="0" cx="0" cy="0" t="0" ts="0"><sp ot="0" stop-c="0"/><sp ot="0"/></radialGradient>
+0<path d="M00,000A000,0000,0,0000,0000000000000000000000000,00000,0000000,00000,00000,00" id="0" fill="d0l00drs00"/>
+0<use xlin0:hf="0" form="0"/>0</svg>
diff --git a/test/ns-afl-svg/1951.svg b/test/ns-afl-svg/1951.svg
new file mode 100644
index 0000000..b6edaa9
--- /dev/null
+++ b/test/ns-afl-svg/1951.svg
Binary files differ
diff --git a/test/ns-afl-svg/1952.svg b/test/ns-afl-svg/1952.svg
new file mode 100644
index 0000000..b5577c0
--- /dev/null
+++ b/test/ns-afl-svg/1952.svg
@@ -0,0 +1,32 @@
+<svg xmlns="000000000000000000" viewBox="0">
+0<path d="M00,0000l00,00v00l000,00l000-00z" stroke="#000" fill="n0`0"/>0
+0
+0<path d="M00,0000l00,00v00l000,00l000-00z" stroke="#000" fill="n0`0"/>0
+0<path d="l00,00v00l000,0000z" stroke="#000" fill="n0`0"/>0
+0<path d="M00,0000l00,00v00l000,00h00000l000" r="0" style="fill:blue;stroke:black;stroke-width:001cm" transform="translate(0,0"/>
+0<circle cx="c" cy="cm" r="1" style="fill:green;stroke:black;stroke-width:001cm" transform="" fill="rgb0000000000" l-y="0" y="0" o=""/>
+0<g id="" x="0" y="0" nr="0">
+0<rect id='0' width="0" height="0" fill="rgb0000000000" l-o="0" py="0"/>
+0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="n0`0"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="n0`0"/>0
+0<path d="l00,00v00l000,0000z" stroke="#000" fill="n0`0"/>0
+0<path d="M00,0h00l00,00v00l000,00h00h00l000" r="0" style="fill:blue;stroke:black;stroke-width:001cm" transform="translate(0,0"/>
+0<circle cx="c" cy="cm" r="1" style="fill:green;stroke:black;stroke-width:001cm" transform="" fill="rgb0000000000" l-o="0" py="0" er=""/>
+0<g id="0" x="0" y="0" o="0">
+0<rect id='0' width="0" height="0" fill="rgb0000000000" l-o="0" opy="0"/>
+0<path d="l00,00v00l000,0000z" stroke="#000" fill="n0`0"/>0
+0<path d="M00,0h00l00,00v00l000,00000-00" r="0" style="fill:blue;stroke:black;stroke-width:001cm" transform="translate(0,0"/>
+0<circle cx="c" cy="cm" r="1" style="fill:green;stroke:black;stroke-width:001cm" transform="" fill="rgb0000000000" fl-o="0" opy="0" oer="0"/>
+0<g id="0" x="0" y="0" onr="0">
+0<rect id='0' width="0" height="0" fill="rgb0000000000" fl-y="0" opa="0"/>
+0</g>
+0</g>
+0<path d="l00,00v00l000,0000z" stroke="#000" fill="n0`0"/>0
+0<path d="M00,0h00l00,00v00l000,00000-00" r="0" style="fill:blue;stroke:black;stroke-width:001cm" transform="translate(0,0"/>
+0<circle cx="c" cy="cm" r="1" style="fill:green;stroke:black;stroke-width:001cm" transform="" fill="rgb0000000000" ll-y="0" opy="0" oer="0"/>
+0<g id="0" x="0" y="0" onr="0">
+0<rect id='0' width="0" height="0" fill="rgb0000000000" ll-o="0" opa="0"/>
+0</g>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1953.svg b/test/ns-afl-svg/1953.svg
new file mode 100644
index 0000000..eb5112c
--- /dev/null
+++ b/test/ns-afl-svg/1953.svg
@@ -0,0 +1,94 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0" ra_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="url(#0000000" fill="0"/>
+0<path d="0" of="0"/>
+0
+0<stop or="0" of="0"/>
+0<stop stolor="0" of="0"/>
+0
+0<stop or="0" of="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0<stop or="0" et="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="0"/>0
+0<circle r="0" cx="0"/><stop st="0" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop sr="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="r"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l000-0,*00000000000,000,0,0000,0000,00000,000000,000,0000,000000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,00000,00,0,0000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<pLth d="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000,000000,00,0,00,,0000,000,00000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="r"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,00000000,0000000000C000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l000-0,*00000000000,000,0,0000,0000,00000,000000,000,0000,000000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,0000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<pLth d="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,0000000X,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1954.svg b/test/ns-afl-svg/1954.svg
new file mode 100644
index 0000000..d4595f0
--- /dev/null
+++ b/test/ns-afl-svg/1954.svg
Binary files differ
diff --git a/test/ns-afl-svg/1955.svg b/test/ns-afl-svg/1955.svg
new file mode 100644
index 0000000..5d047a8
--- /dev/null
+++ b/test/ns-afl-svg/1955.svg
@@ -0,0 +1,59 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0
+<rect x='0' y='0' width='0' height='0' fill='a0a' stroke='v0d'/>0<g transform='translate(0,0)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<path d='M0 0A00 0 0 0 0 00 00' stroZe='0' stroke-width='2'/>0</g>0">
+<!ENTITY t "">
+<!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='n0q0' stroke='o0u0'/>">
+]>
+<svg width="px" height="30px" ion="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" w="0" height="0"
+fill="none" stroke="blue"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&Viewport2;</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pro="0" vox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg ctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" tansform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pso="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg presetio="0" viewBox="0 0 3 4" vidth="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1956.svg b/test/ns-afl-svg/1956.svg
new file mode 100644
index 0000000..f78d39e
--- /dev/null
+++ b/test/ns-afl-svg/1956.svg
@@ -0,0 +1,382 @@
+<svg xmlns="00" viewBox="0 0 1 1">0<defs>0<linearGradient id="pyYellow" gra_ieorm="0">
+0<stop stop-color="s0o00wol000"/>0
+0<stop stop-color="p0q0" offset="0"/>
+0
+0<stop stop-color="#000" ft="0"/>
+0<stop stop-color="000000" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000 00-00 000-00 0000-00 000-000 00000 000000,0000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#00000" fill="url(#0e)"/>
+0<path d="M00,0-00-0000000000000000000000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="0" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circlk r="0" fill="0"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="M00,00c0000000000000000000000000000000000000000000000000000000" fill="#000000"/>0
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0000000000000000000000000000000000000000000000000000000000000000M000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c0000000000000000000000000000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0l0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,00000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#0y)"/>
+0<path d="M00,00c00000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,00"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx=")"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000 00000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0e)"/>
+0<path d="M00,00c00000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00c00000,00000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,000000000000000c000,0000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000000"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1957.svg b/test/ns-afl-svg/1957.svg
new file mode 100644
index 0000000..0dd5587
--- /dev/null
+++ b/test/ns-afl-svg/1957.svg
@@ -0,0 +1,123 @@
+<?l?><!DOCTYPE v0 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c00ext000dt0' stroke='red'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' f='0'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" on="0" xmlns="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="b0u0"/>
+0<g ze="0">
+0<text x="0" y="0">0</text>
+0<g transform="0000">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0<g id="0" height="px" on="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g ze="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&r;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0
+0<g><text y="0">0</text>&p;
+0<svg io="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg ro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg re="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg Asp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t;
+0<svg pro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&t;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg Aso="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>0&Viewport2;
+0<svg Aso="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg psp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0">&Smile;</svg></g>
+0<g transform="000000000000000"><text y="0">0</text>&Viewport2;
+0<svg pro="0" ew="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0000000000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prt="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4"
+id_h="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport2;
+0<svg tiv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pspecBox="0" width="0" height="0">0
+0&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prt="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" t="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" BOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&t0;
+0<svg preRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1958.svg b/test/ns-afl-svg/1958.svg
new file mode 100644
index 0000000..1d08cf0
--- /dev/null
+++ b/test/ns-afl-svg/1958.svg
@@ -0,0 +1,7 @@
+<?l?>
+<svg in="0" ns="0" width="D" height="0" style="0" on="0">0
+0
+<ellipse rx="mm" ry=")"
+fill="#000" pa="0"/>0<ellipse rx="3mm" ry="2" transform="rotate(0-0 0"
+fill="#000" pa="0"/>0<ellipse rx="3mm" ry="2" tl="0" opa="0"/>0<ellipse rx="3mm" ry="2" transform="rotate(,0" fill="#000"
+oty="0"/>0</svg>
diff --git a/test/ns-afl-svg/1959.svg b/test/ns-afl-svg/1959.svg
new file mode 100644
index 0000000..b5fcf46
--- /dev/null
+++ b/test/ns-afl-svg/1959.svg
@@ -0,0 +1,16 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop r="0" offset="0"/>
+0
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M20,16c0-7,0-13,20-13c0,0,00,0,20,10l0,20c0,0-0,00-10,12l-20,0c00,0-140,0-0-20,000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="l" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1960.svg b/test/ns-afl-svg/1960.svg
new file mode 100644
index 0000000..b86057e
--- /dev/null
+++ b/test/ns-afl-svg/1960.svg
@@ -0,0 +1,45 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0a00' stroke='n0d'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='!' r='1' fill='y0`00w'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M00 000A00000000' stroke='black' stroke-width='0'/>0</g>0"><!ENTITY t "">
+<!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='q0q0' stroke='blue'/>">
+]>
+<svg width="px" height="30px" kon="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport0;</g>
+0<g d="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pro="0" vhewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg preatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="0000000000000"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0</g>
+0<g d="0" tansform="0">
+0<text x="0" y="0">0</text>
+0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserRatio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" vidth="0" height="0">&Smile;</svg></g>0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1961.svg b/test/ns-afl-svg/1961.svg
new file mode 100644
index 0000000..d8187c8
--- /dev/null
+++ b/test/ns-afl-svg/1961.svg
@@ -0,0 +1,371 @@
+<svg ns="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="pyYellow" rm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="q0v00p" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000,0000" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#00000" fill="url(#00)"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,00000000,000000,0000" fill="url(#00)"/>
+0<pAth d="M00,00c0,000,00000,00000000000000000000000000000000000000n0000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" lf="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,00000000000000000000000000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000" fill="url(#000e)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cp="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,00,000,0000,000,000,0000000000000000000000000" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000,0000,000,000,00000000000000000000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0l0,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0l0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00o0)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00o0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,00"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00o0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,02-00l04,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fi="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,10-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fi="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="" fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000=00,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fi="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,10-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1962.svg b/test/ns-afl-svg/1962.svg
new file mode 100644
index 0000000..4f013aa
--- /dev/null
+++ b/test/ns-afl-svg/1962.svg
@@ -0,0 +1,49 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="000" width="0" height="0" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:a0r00all000ke0;"
+p-h="0" id="0" width="0" height="0" x="=" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" id="0">
+0<rect style="fill:a0r00all000ke0;" p-p="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0
+<!--0-->0<svg xmlns="0" xmlns:sodi="0" xmlns:cape="t" width="0" height="0" id="0" sodi:version="0" cape:version="0" sodi:docname="0" cape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur cape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0" th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0" th="0"
+ht="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:a0r00all000ke0;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0"
+th="0"
+t="0" x="0" y="0"/>0
+0<svg x="0" y="0" id="0">
+0<rect style="fill:a0r00all000ke0;"
+p-t="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1963.svg b/test/ns-afl-svg/1963.svg
new file mode 100644
index 0000000..3fcee3e
--- /dev/null
+++ b/test/ns-afl-svg/1963.svg
@@ -0,0 +1,4 @@
+<svg viewBox='0 0 6 2' xmlns='00'>
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+0000000000000000000000000000000000000000000000000000000000000000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,0000000-0z0000,0000000000000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/></svg>
diff --git a/test/ns-afl-svg/1964.svg b/test/ns-afl-svg/1964.svg
new file mode 100644
index 0000000..5f18a68
--- /dev/null
+++ b/test/ns-afl-svg/1964.svg
@@ -0,0 +1,21 @@
+<?l?>
+<!DOCTYPE s00 PUBLIC "0" "0">
+<svg r="0" style="fill:p0o00rsv0">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:black;stroke-width:001cm" transform="00,000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:p0u0;stroke:b0a00m" transform="00000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black;" m="0"/>0
+0
+<svg r="0" style="fill:p0o00rsv0">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="0" r="1" style="fill:red;stroke:black;stroke-width:001cm" transform="000,000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:p0u0;stroke:b0a00m" transform="00000000,0000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black;" transform="00000,0000"/>
+0</g>0</svg>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1965.svg b/test/ns-afl-svg/1965.svg
new file mode 100644
index 0000000..883be17
--- /dev/null
+++ b/test/ns-afl-svg/1965.svg
@@ -0,0 +1,71 @@
+<?l?>
+<svg version="0" xmlns="000000000000000000" xmlns:k="0" width="0" height="0" style="0" n="0">
+0<script e="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="0000000000"/>0
+0<circle r="4" cx="in" cy="0" fill="#000"/>
+0
+
+0<circle r="4" cx="in" fill="url(#0000)"/>
+0<script e="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="0000000000"/>0
+0<circle r="4" cx="in" cy="0" fill="#000"/>
+0
+
+0<circle r="4" cx="in" fill="url(#0000)"/>
+0<path d="M0,00c0,000,00-00,0-00,0C0,0,00,0,,00000,00,0000,000,000,000,0000" fill="url(#00000000)"/>0
+0<circle r="4" cx="in" cy="0" fill="#000"/>
+0
+
+0<circle r="4" cx="in" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="0000"/>0<path d="M0,00c0,000,00-00,0-00,0C0,0,00,0,,00000,00,0000,000,000,000,0000" fill="url(#00000000)"/>0
+0<circle r="4" cx="in" cy="0" fill="#000"/>
+0
+
+0<circle r="4" cx="in" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="0000"/>0</svg>
diff --git a/test/ns-afl-svg/1966.svg b/test/ns-afl-svg/1966.svg
new file mode 100644
index 0000000..96131e7
--- /dev/null
+++ b/test/ns-afl-svg/1966.svg
@@ -0,0 +1,85 @@
+<svg É="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+</svg>0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1967.svg b/test/ns-afl-svg/1967.svg
new file mode 100644
index 0000000..96d092e
--- /dev/null
+++ b/test/ns-afl-svg/1967.svg
@@ -0,0 +1,21 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="R" r="0" style="fill:r0d;" transform="translate(0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u00"/><circle cx="cm" cy="cm" r="H" style="fill:g0stroke:b0ac0;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="0" r="H" style="fill:g0e00oke000ac0;" transform="translate(0,0)"/><circle cx="cm" cy="cm" r="H" style="fill:g0stroke:b0ac0;" transform="translate(0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u0;stroke:black;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="H" style="fill:g0e00oke000;" transform="translate(0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="H" style="fill:g0e00oke000ac0;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="H" style="fill:g0stroke:black;stroke-width:000cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="H" style="fill:g0e00oke000ac0;" transform="translate(0,0)"/><circle cx="cm" cy="cm" r="H" style="fill:g0stroke:black;" transform="translate(0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="H" style="fill:g0e00oke000;" transform="translate(0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="H" style="fill:g0e00oke000ac0;" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1968.svg b/test/ns-afl-svg/1968.svg
new file mode 100644
index 0000000..b8cac4f
--- /dev/null
+++ b/test/ns-afl-svg/1968.svg
@@ -0,0 +1,37 @@
+<?l?><!DOCTYPE g PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='#' height='0' fill='black' stroke='red'/>0<g transform='translate(0,0)'>0<circle cx='0' cy='!' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M0 0A0 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t "">
+<!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='h0n0' stroke='h0u0'/>">
+]>
+<svg width="px" hht="0" n="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="b0u0"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport2;</g>
+0<g d="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg o="0" viewBox="0"
+h="0" t="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&o;
+0<text y="0">0</text>&Viewport2;
+0<svg p="0" viewBox="0 0 3 4" width="0" ij="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pat="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg ctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg preseAio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1969.svg b/test/ns-afl-svg/1969.svg
new file mode 100644
index 0000000..0b1774a
--- /dev/null
+++ b/test/ns-afl-svg/1969.svg
@@ -0,0 +1,17 @@
+<svg xmlns="000000" viewBox="0">0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="w0e00"/>0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000,0,0,000,0,00,000" fill="w0e00"/>0<path d="M0000 00000q0-0,00-0q000,00-00,00q000,0000000000000000000000000000000000000000000000000000000000000000000-0,0-0q0,0,0,000,0,00,000" fill="w0e00"/>0
+<path d="M000000000000000000000000000000000000000000-0q00000000000000000000000,00,00000000000000000000000000000000000000,0-0q0,0,0,000,0,00,000" fill="w0e00"/>0
+<path d="M0000 00000q0-0,00-0q000,00-00,00q000,00-00,00q00,00000,0000,0000000000000000000000000000000000000000-0q000,00000,0,0,000,0,00,000" fill="w0e00"/>0
+<path d="M0000 000000000000000000000000000000000-0q0,0,0,000,0,00,000" fill="w0e00"/>0
+<path d="M0000 00000q0000000000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="w0e00"/>0
+<path d="M0000 00000c00000000000000000000000000000000000000000000000000000000000000000,00000,0,0,0q0,0,00,000" fill="w0e00"/>0
+<path d="M0000 00000q0-0,00-0q000,00-00,00q000,0000000000000000000000000000000000000000000000000000000000000000000-0,0-0q0,0,0,000,0,00,000" fill="w0e00"/>0
+<path d="M000000000000000000000000000000000000000000-0q00000000000000000000000,00,00000000000000000000000000000000000000,0-0q0,0,0,000,0,00,000" fill="w0e00"/>0
+<path d="M0000 00000q0-0,00-0q000,00-00,00q000,00-00,00q00,000-0,0q00,00000q0000000000000000000000000000000000000000,00000,0,0,000,0,00,000" fill="w0e00"/>0
+<path d="M0000 000000000000000000000000000000000-0q0,0,0,000,0,00,000" fill="w0e00"/>0
+<path d="M0000 00000q0000000000000000000000000000000000000000,00000,000,0q00,00000q0000000000000000000000000000000000000000,00000,0,0,000,0,00,000" fill="w0e00"/>0
+<path d="M0000 0000000000000000000000000000000000000-0q00000000000000000000000,0000000,00000,0,0,000,0,00,000" fill="w0e00"/>0
+<path d="M0000 00000q0-0,00-0q000,00-00,00q000,00-00,00q00,000-0,0q00,00000q0000000000000000000000000000000000000000,00000,0,0,000,0,00,000" fill="w0e00"/>0
+<path d="M000-0-0-0q0000000000000000000000000000000000" fill="w0e00"/>0
+<path d="00000000000000000000000000000000000000,0000000000000000000000000000000000000000000000000000000000000" fill="w0e00"/>0
+<path d="M0000 00000q0-0,00-0q000,00-00,00q000,00-00,00q00,0-0-0,0q00,000000000000000000000000000000000000000000000000000000000000000000000" fill="w0e00"/>0
+<path d="M0000 00000c00000,00000q0000,,000,0000000000000000000000000000000000000000000000000000000000000000000,00,000" fill="w0e00"/>0<path e="0" fill="w0e00"/>0</svg>
diff --git a/test/ns-afl-svg/1970.svg b/test/ns-afl-svg/1970.svg
new file mode 100644
index 0000000..89fa380
--- /dev/null
+++ b/test/ns-afl-svg/1970.svg
@@ -0,0 +1,48 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M00,0000l000-0000000" stroke="#000" fill="d0v0"/>0
+0<path d="M00,0000l00,00000l00000000" fill="#000"/>0
+0
+0<path d="M00,0h00" stroke="#000" fill="d0v0"/>0
+0<path d="M00,0000l00,0000l000-00v0000" stroke="#000" fill="d0v0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="d0v0"/>0
+0<path d="M00,0h00l00,00v00l000,000000l00000000000" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l00000" stroke="#000" fill="d0v0"/>0
+0<path d="M00,0h00l00,00v00l000,0000" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="d0v0"/>0
+0<path d="M00,0h00l00,0000l000-00v000z" stroke="#000" fill="d0v0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="d0v0"/>0
+0<path d="M00,0h00l00,00v00l000,0000s0000000000000" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l00000000-00,00h00000000000000000000000000000000000000000" stroke="#000" fill="d0v0"/>0
+0<path d="M00,0000l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0
+0<path d="M00,0h0000000000000000000000000000000000" stroke="#000" fill="d0v0"/>0
+0<path d="M00,0h00l00,0000l000-00v000z" stroke="#000" fill="d0v0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="d0v0"/>0
+0<path d="M00,0h00" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l00000000-00,00h000000000000000000000000000000000000000000000000000000000000000" stroke="#000" fill="d0v0"/>0
+0<path d="M00,0000l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="d0v0"/>0
+0<path d="M00,0h00l00,0000l000-00v000z" stroke="#000" fill="d0v0"/>0
+0<path d="M00,0h000000000000000000000000000000000z" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="d0v0"/>0
+0<path d="M00,0h00" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l00000000-00,00h000000000000000" fill="#000"/>0
+0
+0<path d="M00,0000l000-00z" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/1971.svg b/test/ns-afl-svg/1971.svg
new file mode 100644
index 0000000..c2edeac
--- /dev/null
+++ b/test/ns-afl-svg/1971.svg
@@ -0,0 +1,6 @@
+<svg ooooxìå00000000000="0">0<g filtìå000="0">0<gsvg ooooxìå000="0">
+0<g filtìå00000000000000000000="0"><sv ooooxìå00000000000="0">
+0<g filtìå00000000000000000000="0">
+0<gsvg oooxìå00000000000="0">
+0<g filtìå000000000000="0">
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1972.svg b/test/ns-afl-svg/1972.svg
new file mode 100644
index 0000000..262c83a
--- /dev/null
+++ b/test/ns-afl-svg/1972.svg
@@ -0,0 +1,36 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" g_i="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a00ffs000"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0000,,00c0,0-0,00-00,000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000000000000000000000000000000000000000000,0000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000,000000000000000000000000000000000000000000000=00,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1973.svg b/test/ns-afl-svg/1973.svg
new file mode 100644
index 0000000..a4a359a
--- /dev/null
+++ b/test/ns-afl-svg/1973.svg
@@ -0,0 +1,49 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="httprg/2000/ttk" xmlns:sodipodi="00" xmlns:inkscape="0e" width="0" h0="0" id="0" sodipodi:ven="0" inkscape:ver="0" sodipodi:docname="0" inkscape:ot_exion="0">
+0<defs id="0">
+0<linearGradient id="linearGradient0100" t0="0" x1="0" y1="0" x2="0" y2="0">
+0
+0
+0
+0
+0<stop style="stop-color: 000;" offset="0" id="0"/>
+0</linearGradient>
+0</defs>
+0<g inkscape:label="0" inkscape:e="0" id="0">
+0
+0
+0<rect style="fill:url(#linearGradient0100);" id="0" width="0" height="0" x="0" y="0"/>0
+<!--0-->0<svg xmlns:podi="00" xmlns:iape="0" width="0" height="0" id="0" sodipodi:ven="0" inkscape:ver="0" podi:docname="0" iape:ot_exion="0">
+0<defs id="0">
+0<linearGradient id="0" t0="0" x0="0" y0="0" x2="0" y2="0">
+0
+0
+0
+0
+0<s style="0" set="0" id="0"/>
+0</linearGradient>
+0</defs>
+0<g inkscape:label="0" iape:e="0" id="0">
+0<rect style="fill:url(#linearGradient0100);" id="0" width="0" eighn="0" x="0" y="0"/>
+0</g>0</svg>0<rect style="fill:url(#linearGradient0100);" id="0" width="0" height="0" x="0" y="0"/>0
+<!--0-->0<svg xmlns:i="0" xmlns:iape="0" width="0" height="0" id="0" sodipodi:ven="0" inkscape:ver="0" sodipodi:docname="0" iape:output_extension="0">
+0<defs id="0">
+0<linearGradient id="0" its="0" x0="0" y0="0" x2="0" y2="0">
+0
+0
+0
+0
+0<stop le="0" set="0" id="0"/>
+0</linearGradient>
+0</defs>
+0<g inkscape:label="0" iape:e="0" id="0">
+0<rect style="fill:url(#00000000000000000);" id="0" width="0" height="0" x="0" y="0"/>
+0</g>0</svg>0
+0
+0
+0
+0<rect style="fill:url(#00000000000000000);" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="fill:url(#000000000000000000);" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="fill:url(#000000000000000000);" id="0" width="0" height="0" x="0" y="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1974.svg b/test/ns-afl-svg/1974.svg
new file mode 100644
index 0000000..3b3b2cf
--- /dev/null
+++ b/test/ns-afl-svg/1974.svg
@@ -0,0 +1,64 @@
+<svg xmlns="0000" fill="url(#00" xmlns:x="0">
+0<g fill="none">0
+0<ellipse e="0" rx="6" ry="4" m="0" r="0"/>
+0</g>
+0<g l="0" stroke="w0i00"> 0
+0</g>0<g fill="#000000" stroke="white"> 0<circle fill="000" r="3"/>
+0
+0
+0
+0<ellipse stroke="000" rx="6" ry="4" transform="0000000"/>
+0<ellipse stroke="000" rx="6" ry="4" rorm="0" r="0"/>
+0</g>
+0<g l="0" stroke="w0i00"> 0
+0</g>0<g fill="#000000" stroke="white"> 0<circle fill="0000000" r="3"/>0
+0
+0<g fill="none">0
+0<ellipse e="0" rx="6" ry="4" trarm="0" r="0"/>
+0</g>
+0<g fill="#000000" stroke="w0i00"> 0
+0</g>0<g fill="#000000" stroke="w0i00"> 0<circle fill="0000000" r="3"/>
+0
+0
+0
+0<svg xmlns="0000000" fill="url(#00" xmlns:x="0">
+0<g fill="none">0
+0<ellipse e="0" rx="6" ry="4" m="0" r="0"/>
+0</g>
+0<g fill="000" stroke="w0i00"> 0
+0</g>0<g fill="#000000" stroke="w0i00"> 0<circle fill="000" r="3"/>
+0
+0
+0
+0<ellipse stroke="000" rx="6" ry="4" transform="0000000"/>
+0<ellipse stroke="#000000" rx="6" ry="4" trorm="0" r="0"/>
+0</g>
+0<g fill="#000000" stroke="w0i00"> 0
+0</g>0<g fill="#000000" stroke="w0i00"> 0<circle fill="0000000" r="3"/>0
+0
+0<g fill="none">0
+0<ellipse soke="0" rx="6" ry="4" trarm="0" r="0"/>
+0</g>
+0<g fill="#000000" stroke="white"> 0
+0</g>0<g fill="#000000" stroke="white"> 0<circle fill="0000000" r="3"/>
+0
+0
+0
+0<ellipse stroke="0000000" rx="6" ry="4" transform="00000000000"/>
+0<ellipse stroke="#000000" rx="6" ry="4" t="0" r="0"/>
+0</g>
+0<g fill="#000000" stroke="white"> 0
+0</g>0<g fill="#000000" stroke="white"> 0<circle fill="0000000" r="3"/>
+0
+0</g>0
+0
+0</g>0</svg>
+0<ellipse stroke="0000000" rx="6" ry="4" transform="00000000000"/>
+0<ellipse stroke="#000000" rx="6" ry="4" trorm="0" r="0"/>
+0</g>
+0<g fill="#000000" stroke="white"> 0
+0</g>0<g fill="#000000" stroke="white"> 0<circle fill="0000000" r="3"/>
+0
+0</g>0
+0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1975.svg b/test/ns-afl-svg/1975.svg
new file mode 100644
index 0000000..2e675c1
--- /dev/null
+++ b/test/ns-afl-svg/1975.svg
@@ -0,0 +1,19 @@
+<svg xmlns="00000000000000000000000000" xmlns:k="0" viewBox="0 0 1 2">
+0<radialGradient d="0" x="0" c="0" r="0" s="0"><p t="0" p-c="0"/><p o="0"/></radialGradient>
+0<path d="M0,000A000,00 0,0,0 00,000C00,00 00,00 00,000C000,00 00,00 00,000C000,00 00,00 00,00" id="0" fill="urc00cle00"/>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" g="0"><sp ot="0" sp-c="0"/><sp ot="0"/></radialGradient>
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000C00000,00 00,00 0 00,00" id="0" fill="urc00cle00"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l000000000000000000000000000000000000000000 000000,00000000000000000000000000000000000000000000000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0-00000 00-000000000000000000 0000-00 000-000 000-00-00-00-000 000-0 00000/000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000c0000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1976.svg b/test/ns-afl-svg/1976.svg
new file mode 100644
index 0000000..c254cf6
--- /dev/null
+++ b/test/ns-afl-svg/1976.svg
@@ -0,0 +1,9 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l000,00-000" stroke="#000" fill="n0k00lud000e"/>
+0<path d="M00,0h00l00,0l000,0000#000" fill="n0n00d"/>0
+0<path d="M00,00n0"/>0
+0<path d="M00,0h00l00,00v00l000,0000#000" fill="n0n00d"/>0
+0<path d="M00,000x000" f="0" stroke="#000" fill="n0k00lud000e"/>0
+0<path d="M00,0h00l00,00v00l0000" f="0" stroke="#000" fill="n0k00lud000e"/>0
+<path d="M00,0h00l00,00v00l000,000-" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="0000"/>0</svg>
diff --git a/test/ns-afl-svg/1977.svg b/test/ns-afl-svg/1977.svg
new file mode 100644
index 0000000..ab7027d
--- /dev/null
+++ b/test/ns-afl-svg/1977.svg
@@ -0,0 +1,69 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0
+0<defs>
+0<linearGradient id="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="p0c00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<th d="0" ll="0"/>0
+0<le r="0" cx="0" cy="0" fl="0"/>0
+0<ce r="0" cx="0" cy="0" ll="0"/>0
+0<stop stop-color="p0c00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx=")"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="M00,00c00000,000,0000000000000000000,000M0000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0-00000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,10-03,020,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,000,0,0000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l00,00000000000000000=00,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,0U000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,0000000,000000000 00000000,000000000 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-04-6-001000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#p"/>0
+0<path d="M00,00c00000,00000,00,00-00,000000,000,0000,000,000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-03,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1978.svg b/test/ns-afl-svg/1978.svg
new file mode 100644
index 0000000..776d98f
--- /dev/null
+++ b/test/ns-afl-svg/1978.svg
@@ -0,0 +1,43 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="f0m0" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" t="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0-0,00,0,000,00c0,0-0,00-00,000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="00000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-8,10-20,024,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000M000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,000000000?0000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1979.svg b/test/ns-afl-svg/1979.svg
new file mode 100644
index 0000000..405730a
--- /dev/null
+++ b/test/ns-afl-svg/1979.svg
@@ -0,0 +1,72 @@
+<?l?>
+<svg n="0" mln="0" width="0" height="0" style="0" o="0">
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0
+<g d="0" fill="blue" style="0">
+0<circle d="0" cx="0" cy="0" r="5" stroke="l0m00vic000or00000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0
+0<circle r="4"/>
+0</g>
+0<g fill="0000000" stroke="o0i00">
+0
+0
+0<g ke="0">
+0
+0
+0
+0<g ke="0">
+0
+0</g>
+0<g fill="000" stroke="o0i00">
+0
+0<ellipse stroke="000" rx="6" ry="4" transform="rotate(60)"/>
+0<circle r="4"/>0
+0
+0
+0<g foke="0">
+0
+0</g>
+0<g fill="000" stroke="o0i00">
+0
+0<ellipse stroke="0000000" rx="6" ry="4" transform="rotate(60)"/>
+0<circle r="4"/>
+0</g>
+0</g>
+0<g fill="0000000" stroke="o0i00">
+0
+0<ellipse stroke="0000000" rx="6" ry="4" transform="rotate(60)"/>
+0<circle r="4"/>
+0</g>
+0
+0</g>
+0<circle fill="#000000" r="3"/>
+0<circle cy="0" r="9"/>
+0<circle cx="0" cy="0" r="9"/>
+0
+<ae cx="0" cy="0" r="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1980.svg b/test/ns-afl-svg/1980.svg
new file mode 100644
index 0000000..613c16d
--- /dev/null
+++ b/test/ns-afl-svg/1980.svg
@@ -0,0 +1,2 @@
+<svg viewBox='0 0 6 2' xmlns='00'>
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,0,0h0c00,0-0,0,0,0h00c0,0,0,0,0,0h0c00,0-0,0,0,0h00c0,0,0,0,0,0h000c00,0-0,0,0,0h00c0,0,0,0,0,0l000,0c00,0-0-0-00-0zM000,00c0,0,0-0,0-0l000,0c00,0-0-0-00-0c000-0-00,0-00,0c00,0-0,0,0,00c0,0,00,00,00,0c0-0,0-0,00-0z' fill='s0n00r' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/1981.svg b/test/ns-afl-svg/1981.svg
new file mode 100644
index 0000000..9ec5d14
--- /dev/null
+++ b/test/ns-afl-svg/1981.svg
@@ -0,0 +1,26 @@
+<svg Ãs="0" viewBox="0 0 1 1">
+0<path d="M00,0000l00,00v0-00,000-000000-000-000-00 0000-00 0 0-000 000-00-00-00-000 000-000 00-00 00-0000-00A00-0-000-000 0-00 00-00 000-00 00 00 000 00 000-00 00-00 00-00 000 0000"
+transform="translate(0,0)scale(0-0"/>0<ellipse rx="2" ry="1" transform="0"
+fill="#000" a="0"/>
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v0000-00 0000-00 000-000 000-00-00-00-000 000-000 00-00 00-00 0-00A00-0-000-000 0-00 00-00 000-00 00 00 000 00 000-00 00-00 00-00 000 0000"
+transform="translate(0,0)scale(0-0"/>0<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0"
+fill="#000" pa="0"/>
+0
+0<path d="M00,0h000000000000000000h000l000-00v0000000000000000000000000000000000000000 000-000 00-00 00-00 0-00A00000000000000000 00-00 000-00 00 00 000 00 000-00 0-00 00-00 000-00 00 00 000 00 000-00 00-00 00-00 000 0000"
+transform="translate(0,0)scale(0-0"/>0<ellipse rx="2" ry="1" transform="0"
+fill="#000" oa="0"/>
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v0000-00 0000-00 000-000 000-00-00-00-000 000-000 00-00 00-00 0-00A00-0-000-000 0-00 00-00 000-00 00 00 000 00 000-00 00-00 00-00 000 0000"
+transform="translate(0,0)scale(0-0"/>0<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0"
+fill="#000" op="0"/>
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v0000-00 0000-00 000-000 000-00-00-00-000 000-000 00-00 00-00 0-00A00-0-000-000 0-00 00-00 000-00 00 00 000 00 000-00 00-00 00-00 000 0000"
+transform="translate(0,0)scale(0-0"/>0<elQipse rx="0" ry="0" t="0"
+fl="0" opa="0"/>
+0
+0
+<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+fill="#000" opa="0"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/1982.svg b/test/ns-afl-svg/1982.svg
new file mode 100644
index 0000000..0783b29
--- /dev/null
+++ b/test/ns-afl-svg/1982.svg
@@ -0,0 +1,93 @@
+<s x="0" stroke0Ù00="0"><g><g><path fil="0" xmlns="00" xmlns:k="0" xmlns:e="0"
+e="0"
+fill="0"/>
+0<p><g><path fill-rule="0" xmlns="0"
+l="0"/>
+0
+0<e se="0" rx="0" ry="0" t="0"/>
+0
+0</g>
+0<g fill="0" St="0">
+0<ce ll="0"/>
+0<p><g><path e="0" xmlns="0000"
+l="0"/>
+0
+0<le stroke="0" rx="0" ry="0" transform="0"/>
+0
+0
+0
+0<t><g><path f="0" xmlns="00" ll="0"/>
+0
+0<e ke="0" rx="0" ry="0" m="0"/>
+0
+0</g>
+0<g fill="0" se="0">
+0<ci ll="0"/>
+0<t><path fill-rule="0" xmlns="00" xmlns:a="0" we="0" l="0"/>
+0<t><g><path fill-rule="0" xmlns="0" xmlns:e="0" l="0"/>
+0
+0<e se="0" rx="0" ry="0" t="0"/>
+0
+0</g>
+0<g fill="0" se="0">
+0<ci ll="0"/>
+0<t><g><path e="0" xmlns="0000" xmlnslnwidfill="0"/>
+0
+0<llipse st="0" rx="0" ry="0" transform="0"/>
+0
+0
+0
+0<p><g><path fill-rule="0" xmlns="00" xmlnll="0"/>
+0
+0<llipse stroke="0" rx="0" ry="0" m="0"/>
+0
+0</g>
+0<g fill="0" ke="0">
+0<circle ll="0"/>
+0<pat><g><path dcu="0" y="0"><g><g><path f="0" xmlns="000000" e="0"
+fill="0"/>
+0<pat><g><path fill-rule="0" xmlns="00"
+l="0"/>
+0
+0<ese se="0" rx="0" ry="0" t="0"/>
+0
+0</g>
+0<g fill="0" Stroqe="0">
+0<circle ll="0"/>
+0<pat><g><path e="0" xmlns="0000"
+lnwidfill="0"/>
+0
+0<ellipse stroke="0" rx="0" ry="0" transform="0"/>
+0
+0
+0
+0<pat><g><path f="0" xmlns="00" xmlnll="0"/>
+0
+0<ellipse stroke="0" rx="0" ry="0" m="0"/>
+0
+0</g>
+0<g fill="0" stroke="0">
+0<circle ll="0"/>
+0<pat><path fill-rule="0" xmlns="000000" xmlns:x="0"
+we="0" l="0"/>
+0<pat><g><path fill-rule="0" xmlns="00" xmlns:e="0" l="0"/>
+0
+0<ese se="0" rx="0" ry="0" t="0"/>
+0
+0</g>
+0<g fill="0" stroqe="0">
+0<circle ll="0"/>
+0<pat><g><path e="0" xmlns="0000" xmlnwidfill="0"/>
+0
+0<ellipse stroke="0" rx="0" ry="0" transform="0"/>
+0
+0
+0
+0<pat><g><path fill-rule="0" xmlns="00"
+l="0"/>
+0
+0<ellipse stroke="0" rx="0" ry="0" m="0"/>
+0
+0</g>
+0<g fill="0" stroke="0">
+0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1983.svg b/test/ns-afl-svg/1983.svg
new file mode 100644
index 0000000..8f23946
--- /dev/null
+++ b/test/ns-afl-svg/1983.svg
@@ -0,0 +1,2 @@
+<svg ox='0' xmlns='000' drofill='0' stroke='0'>
+0<path d='M00,00c00,0-0,0-0,00-' fill='d0l00tax000ts00000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/1984.svg b/test/ns-afl-svg/1984.svg
new file mode 100644
index 0000000..09c7916
--- /dev/null
+++ b/test/ns-afl-svg/1984.svg
@@ -0,0 +1,721 @@
+<svg xmlns=""><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+<svg xmlns=""><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+</svg>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<svg é="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+</svg>0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1985.svg b/test/ns-afl-svg/1985.svg
new file mode 100644
index 0000000..2fbfebf
--- /dev/null
+++ b/test/ns-afl-svg/1985.svg
@@ -0,0 +1,6 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l0,0z" stroke="#000" fill="n0i00xud000e"/>0
+0<path d="M00,0000l00,0l000,000" fill="n0i00xud000e"/>0
+0<path d="M00,0h00l000,000" fill="n0i00xud000e"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000l000-000000000000000000000000000000000000000r" fill="#000"/>0
+0<text x="0" y="0" t-e="0" l="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1986.svg b/test/ns-afl-svg/1986.svg
new file mode 100644
index 0000000..31f9002
--- /dev/null
+++ b/test/ns-afl-svg/1986.svg
@@ -0,0 +1,420 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>0
+0
+0<stop stop-color="p0t0" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="000" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stVp stop-color="0" et="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0" gra_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="url(00"/>
+0<path d="0" of="0"/>
+0
+0
+0<stop slor="0" of="0"/>
+0
+0<stop stopor="0" of="0"/>
+0
+0
+0<stop r="0" offset="0"/>
+0
+0<stop r="0" offset="0"/>
+0<stop o="0" et="0"/>
+0
+0
+0<stop r="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="0"/>0
+0<circle r="0" x="0"/><stop t="0" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop r="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c000,00,0,00-0,00000000"/>0
+0<circle r="0" x="0"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="00000000000000000000000" id="0000" style="fill: url(#r0000" fill="url(#000e)"/>
+0<path d="M00,00c090-0,00-00,0
+0,0000" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" k="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#000000"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="00000000000000000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="0000000000,00,0,0000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0
+0<circle r="z" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-6-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,0000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,10-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r=" " cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,10-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,024-00l0-00c0-0,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000e)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,00..000,00000000 000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<patK d="0" cx="0" cy="0" fill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,10-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-20,024-00l0-00c0-0,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000w)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,10-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-20,024-00l0-00c0-0,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>
+0
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1987.svg b/test/ns-afl-svg/1987.svg
new file mode 100644
index 0000000..f8171f2
--- /dev/null
+++ b/test/ns-afl-svg/1987.svg
@@ -0,0 +1,13 @@
+<svg v='0' xmlns='000' ill='0' stroke='0'>
+0<svg vox='0' xll='0' stroke='0'>
+0
+0<svg vivox='0' ill='0' stroke='0'>
+0<patH d='M0,0-0,z' fill='c0l00tax000ts00000' stroke='black'/>0</svg>
+0<path d='M00,0-00' fill='c0l00tax000ts00000' stroke='black'/>0<patH d='M0,0,0, ' fill='c0l00tax000ts00000' stroke='black'/>0</svg>
+0
+0<svg vivox='0' xll='0' stroke='0'>
+0
+0<svg vlns='0' drofill='0' stroke='0'>
+0<patH d='M0,0-0,z' fill='c0l00tax000ts00000' stroke='black'/>0</svg>
+0<path d='M00,0-00' fill='c0l00tax000ts00000' stroke='black'/>0<patH d='M0,0,0, ' fill='c0l00tax000ts00000' stroke='black'/>0</svg>
+0<path d='M00,00,0' fill='c0l00tax000ts00000' stroke='black'/>0<path d='M00,00,0' fill='c0l00tax000ts00000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/1988.svg b/test/ns-afl-svg/1988.svg
new file mode 100644
index 0000000..dba72bc
--- /dev/null
+++ b/test/ns-afl-svg/1988.svg
@@ -0,0 +1,203 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg r="0" style="0">
+0<style type="0">
+0
+0</style>
+0<g style="0">
+0
+0<circle x="0" cy="0" r="0" style="0" transform="0"/>
+0<circle cx="0" cy="0" r="0" style="0" transform="0"/>
+0<circle cx="0" cy="0" r="0" style="0">
+0
+<svg width="0" height="0" ion="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" he="0" fill="0" stroke="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g m="0">&e;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&t;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&t;</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t;
+0<svg tio="0" viewBox="0"
+th="0" heé00="0">&S;</svg></g>
+0<g transform="0"><text y="0">0</text>&t;
+0<svg pro="0" viewBox="0"
+idth="0" height="0">&S;</svg></g>
+0<g transform="0"><text y="0">0</text>&t;
+0<svg tio="0" viewBox="0" wZdth="0" height="0">&S;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t;
+0
+0<svg tiv="0" viewBox="0" width="0" height="0">&S;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0" width="0" height="0">&S;</svg></g>
+0<g transform="0"><text y="0">0</text>&t;
+0<svg pre="0" viewBox="0" width="0" height="0">&e;</svg></g>
+0<g transform="0"><text y="0">0</text>&t;
+0<svg pspecBox="0" width="0" height="0">&e;</svg></g>
+0<g orm="0"><text y="0">0</text>&V;
+0<svg prght="0">&S;</svg></g>
+0<g t="0"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0" widh="0" height="0">&e;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg tiv="0" viewBox="0" width="0" height="0">&e;</svg></g>
+0</g>
+0<g id="0" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t;
+0<svg tio="0" viewBox="0" width="0" height="0">&e;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg pre="0" viewBox="0" width="0" height="0">&S;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg pre="0" viewBNx="0" width="0" height="0">&S;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg presctRatio="0" view="0" viewBox="0" width="0" height="0">&e;</svg></g>
+0<g transform="0"><text y="0">0</text>&t;
+0<svg pro="0" viewBox="0" width="0" height="0">&e;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0" width="0" height="0">&e;</svg></g>
+0<g m="0"><text y="0">0</text>&V;
+0<svg prght="0">&S;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg preservatio="0" viewBox="0" wid_h="0" height="0">&e;</svg></g>
+0<g m="0"><text y="0">0</text>&V;
+0<svg tiv="0" viewBox="0" width="0" height="0">&e;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t;
+0<svg tio="0" viewBox="0" width="0" height="0">&e;</svg></g>
+0<g m="0"><text y="0">0</text>&V;
+0<svg pre="0" viewBox="0" width="0" height="0">&S;</svg></g>
+0<g t="0"><text y="0">0</text>&V;
+0<svg pspecBox="0" width="0" height="0">&S;</svg></g>
+0<g orm="0"><text y="0">0</text>&V;
+0<svg prght="0">&e;</svg></g>
+0<g transform="0"><text y="0">0</text>&t;
+0<svg pro="0" viBox="0" width="0" height="0">&S;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0" width="0" height="0">&S;</svg></g>
+0<g t="0"><text y="0">0</text>&t;
+0<svg pre="0" viewBox="0" width="0" height="0">&e;</svg></g>
+0<g transform="0"><text y="0">0</text>&t;
+0<svg pspecBox="0" width="0" height="0">&e;</svg></g>
+0<g orm="0"><text y="0">0</text>&V;
+0<svg prght="0">&S;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0" wid_h="0" height="0">&e;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg tiv="0" viewBox="0" width="0" height="0">&e;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t;
+0<svg tio="0" viewBox="0" width="0" height="0">&e;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg pre="0" viewBox="0"
+th="0" height="0">&S;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg pspecBox="0" width="0" heightx="0" wid_h="0" height="0">&S;</svg></g>
+0<g transform="0"><text y="0">0</text>&t;
+0<svg tiv="0" viewBox="0" width="0" height="0">&S;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0" width="0" height="0">&S;</svg></g>
+0<g transform="0"><text y="0">0</text>&t;
+0<svg pre="0" viewBox="0" width="0" height="0">&e;</svg></g>
+0<g transform="0"><text y="0">0</text>&t;
+0<svg pspecBox="0" width="0" height="0">0
+0&S;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg prpectRatio="0" viewBox="0" width="0" height="0">&S;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0" width="0" height="0">&S;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg prght="0">&e;</svg></g>
+0<g rm="0"><text y="0">0</text>&t;
+0<svg AspectRatio="0" viewBox="0" width="0" height="0">&S;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pspectRatio="0" viewBox="0" width="0" height="0">&S;</svg></g>
+0<g transform="0"><text y="0">0</text>&t;
+0<svg pre="0">&e;</svg></g>
+0<g transform="0"><text y="0">0</text>&t;
+0<svg pro="0" view="0" viewBox="0" width="0" height="0">&S;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0" width="0" height="0">&S;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0" width="0" height="0">&S;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg prght="0">&e;</svg></g>
+0<g transform="0"><text y="0">0</text>&t;
+0<svg pro="0" viewBox="0" wid_h="0" height="0">&S;</svg></g>
+0<g transform="0"><text y="0">0</text>&t;
+0<svg tiv="0" viewBox="0" width="0" height="0">&S;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0" width="0" height="0">&S;</svg></g>
+0<g transform="0"><text x="0">0</text>&t;
+0<svg pre="0" viewBox="0" width="0" height="0">&e;</svg></g>
+0<g transform="0"><text y="0">0</text>&t;
+0<svg pspecBox="0" width="0" height="0">0
+0&S;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0" width="0" height="0">&S;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0" width="0" height="0">&S;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg prght="0">&e;</svg></g>
+0<g transform="0"><text y="0">0</text>&t;
+0<svg pre="0" viewBox="0" width="0" height="0">&S;</svg></g>
+0<g transform="0"><text y="0">0</text>&t;
+0<svg pro="0" viewBox="0" width="0" height="0">&S;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0" width="0" height="0">&S;</svg></g>
+0<g transform="0"><text y="0">0</text>&t;
+0<svg pdth="0" height="0">&S;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0" width="0" height="0">&S;</svg></g>
+0</g>
+0<g id="0" t="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&S;</svg></g>
+0<g transform="0"><text y="0">0</text>&t;
+0<svg pre="0" viewBox="0" width="0" height="0">&e;</svg></g>
+0<g transform="0"><text y="0">0</text>&t;
+0<svg preRatio="0" viewBox="0" width="0" height="0">&S;</svg></g>
+0</g>0
+0</g>0</svg>0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1989.svg b/test/ns-afl-svg/1989.svg
new file mode 100644
index 0000000..3928f3c
--- /dev/null
+++ b/test/ns-afl-svg/1989.svg
@@ -0,0 +1,3 @@
+<s w="0" height="0" id="0" y="0"><g><g><path fill-rule="0" xmlns="http://s0g" xmlns:k="0" xmlns:e="0" widfill="0"/>
+0<pat><g><path fill-rule="0" xmlns="http://s0g" xmlns:s="0" widfill="0"/>
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/1990.svg b/test/ns-afl-svg/1990.svg
new file mode 100644
index 0000000..855b6f4
--- /dev/null
+++ b/test/ns-afl-svg/1990.svg
@@ -0,0 +1,8 @@
+<svg xmlns="0000000000000000000" xmlns:xlin0="0" viewBox="0 0 1 1">
+0<radialGradient d="0" x="0" y="0" t="0" grntUnits="0"><sp ot="0" top-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,0A000,00 0,0,0 00,0C00,00 00,00 00,000C000,00 00,00 00,000,00" id="0" fill="d0l00gss00"/>
+0<use xlin0:hrea="0" transform="0"/>
+0
+0<radialGradient id="0" cx="0" cy="0" t="0" grntUnits="0"><stop ot="0" stop-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,000A0,00 0,0,0 00,000C00,00 00,00 00,0C000,00 00,00 00,000,00" id="0" fill="d0l00gss00"/>
+0<use xlin0:hrea="0" transform="0"/>0</svg>
diff --git a/test/ns-afl-svg/1991.svg b/test/ns-afl-svg/1991.svg
new file mode 100644
index 0000000..5ca72c0
--- /dev/null
+++ b/test/ns-afl-svg/1991.svg
@@ -0,0 +1,71 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='red'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='p' fill='yellow'/>0<circle cx='d' cy='0' r='5' fill='f0a00'/>0<circle Mx='0' cy='0' r='1' fill='black'/>0<path d='M00 0A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='n0n0' stroke='blue'/>">
+]>
+<svg width="px" height="30px" ion="0" xmlns="000000000000000000">
+0<desc></desc>
+0<rect x="0" y="0" width="0" e="0" fill="none" stroke="b0u0"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&Viewport2;</g>
+0<g d="0" transform="translate(0 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g pd="0" transform="translate(0 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewcox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg preserveAspectRatioheight="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preservatio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1992.svg b/test/ns-afl-svg/1992.svg
new file mode 100644
index 0000000..e42e149
--- /dev/null
+++ b/test/ns-afl-svg/1992.svg
@@ -0,0 +1,14 @@
+<svg xmlns="0000000000">
+0<path d="M00,0h00l00,00v00l0,00h000l000-00v000 000-00-00-00-000 00-000-00z" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M00,0h0000000,00h000-000 00-00v000z" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M00,0h00000000000,00h000l000-00v00000000000-00z" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M00,0h00l00,00v000000000h000l000-00v000z" fill="#000"/>0
+0<text x="0" y="z" fl="0"/>0
+0<text x="0" y="0" font-size="0" fl="0" t-r="0"><![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00v000000000h000l000-00v0000 000-00 0000-00 000-000 000-00-00-00-000 00-000-00z" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M00,0h00l00,0l000,00h00000-000000000 00-00v000z" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M00,0h00l00,0l000,00h000l00000000000-00-00v0000" stroke="#000" fill="n0n00eig000"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0<text x="0" y="z" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/1993.svg b/test/ns-afl-svg/1993.svg
new file mode 100644
index 0000000..d6b1549
--- /dev/null
+++ b/test/ns-afl-svg/1993.svg
@@ -0,0 +1,10 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:black;stroke-width:001cm" transform="0,0"/><circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:l0a00m" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:000000 stroke:black;stroke-width:001cm" transform="translate(000,000)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1994.svg b/test/ns-afl-svg/1994.svg
new file mode 100644
index 0000000..32eaad9
--- /dev/null
+++ b/test/ns-afl-svg/1994.svg
@@ -0,0 +1,95 @@
+<?l?><!DOCTYPE g PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='{0d'/>0<g transform='000,000'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" ion="0" xmlns="00000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" fill="none" stroke="b0u0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g transform="0000000000">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="00000000">&Viewport2;</g>
+0<g d="0" transform="000000000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presctRatio="0" view="0" viewBox="0 0 3 4" w="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg preservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g trHnsform="0"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" deight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg prbectRatidth="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1995.svg b/test/ns-afl-svg/1995.svg
new file mode 100644
index 0000000..c87f948
--- /dev/null
+++ b/test/ns-afl-svg/1995.svg
@@ -0,0 +1,92 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">0<path d="M00,0h00l00,00v00l000,0z" m="0" fill="d0n"/>0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" e="0" fill="d0n"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00l000,00l0000,0z" st="0" fill="d0n"/>0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="d0n"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00l000,00l000-00z" stroke="#000" fill="d0n"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="d0n"/>0
+0<path d="M00,0h00l00,00v00l000,0z000" km="0" fill="d0n"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="d0n"/>0
+0<path d="M00,0h00l00,00v00l000,0z0000000000" strokm="0" fill="d0n"/>0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="d0n"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00l000,00l000-00z" stroke="#000" fill="d0n"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="d0n"/>0
+0<path d="M00,0h00l00,00v00l000,0z" strokm="0" fill="d0n"/>0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="d0n"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00l000,00l000-00z" stroke="#000" fill="d0n"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="d0n"/>0
+0<text x="'" y="0" e="0" ll="0" ext-gr="0"><![CDATA[0]]]
+0
+0
+0
+0]]
+0
+0
+0
+0
+0
+0
+0
+0]]]
+0
+0
+0
+0
+0
+0]]
+0
+0
+0
+0]]
+0
+0
+0
+0
+0
+0
+0
+0]]]
+0
+0]]]
+0
+0
+0
+0]]]
+0
+0
+0
+0
+0
+0
+0
+0]]]
+0
+0
+0
+0]]]
+0
+0
+0
+0
+0]]
+0]]]
+0
+0
+0
+0]]]
+0
+0
+0
+0
+0
+0
+0
+0]]]
+0
+0
+0
+0]]]
+0
+0
+0
+0
+0]]>0</text>0</svg>
diff --git a/test/ns-afl-svg/1996.svg b/test/ns-afl-svg/1996.svg
new file mode 100644
index 0000000..c1827bb
--- /dev/null
+++ b/test/ns-afl-svg/1996.svg
@@ -0,0 +1,55 @@
+<svg s="0" fill="url(#py0ellow" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="#000" offset=","/>
+0
+0
+0
+0<path d="0" fill="0"/>0
+0<c r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" id="0" s="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<pAth d="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>
+0
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<i r="0" cx="0" id="0" e="0" fill="0"/>0
+0
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000,0,00,000,000000,0000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0-0,00-20,000-0000000c000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,00000000,000000,0000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0-0,00-20,000-0000000c000,0000,00000000,000,0000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#N00"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0/0000,00000000000000000,0000000000000000,0000000000000000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-0000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,000000000000000000000000000i0000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,00,000,0000,0l0,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fitl="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/1997.svg b/test/ns-afl-svg/1997.svg
new file mode 100644
index 0000000..03edf48
--- /dev/null
+++ b/test/ns-afl-svg/1997.svg
@@ -0,0 +1,58 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="">0
+0<stop p-c="0" t="0"/>
+0<stop t="0"/>
+0<stop r="0" offset="0"/>
+0</linearGradient>
+0<linearGradient href="#" id="pyBlue" x="0">
+0<defs>
+0<linearGradient id="0" g="0">
+0<p p-c="0" t="0"/>
+0</linearGradient>
+0</defs>0
+0<ph d="0" f="0"/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop stop-color="#000" t="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" l="0" ll="0"/>
+0<path d="000000" fill="url(#pyBlue"/>
+0<path d="00000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#pyBlue"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00" style="fill: url(#000000" fill="url(#000000"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,00000000000,0000000000000000,0000000000000000,00000000000000000000,0000,000,0000,000,00000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000,000,0000,000,0000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#0000000000" fill="url(#000000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,000,0,000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,0000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,000,0,00,00,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#000000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,000,0,000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,0000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,000,0,00,00,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-0,0000000,00000000 0 00000000,00000000 000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,0000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,00,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<patg d="0" l="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,000,00000000,0c0,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/1998.svg b/test/ns-afl-svg/1998.svg
new file mode 100644
index 0000000..d38166e
--- /dev/null
+++ b/test/ns-afl-svg/1998.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:b0a00;stroke-width:0'0" transform=",0"/>0<circle cx="pc" r="1" style="fill:blue;stroke:black;stroke-width:1cm" transform="translate(0000000"/>
+0
+0<circle cx="cm" cy="pt" r="1" style="fill:blue;stroke:black;stroke-width:001cm" transform="translate(0000000"/>
+0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/1999.svg b/test/ns-afl-svg/1999.svg
new file mode 100644
index 0000000..1ce7c17
--- /dev/null
+++ b/test/ns-afl-svg/1999.svg
@@ -0,0 +1,76 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='red'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='1' fill='black'/>0<circle cx='0' cy='0' r='5' f='0'/>0<path d='M00 0A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='n0n00d' stroke='blue'/>">]><svg width="px" height="30px" on="0" xmlns="0000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="b0u0"/>
+0<g ze="0">0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0<g id="0" height="px" on="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="blue"/>
+0<g te="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0
+0<g><text y="0">0</text>&o;
+0<svg io="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg ro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg resctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg spectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>0
+<svg pro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presetRatio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2000.svg b/test/ns-afl-svg/2000.svg
new file mode 100644
index 0000000..1991946
--- /dev/null
+++ b/test/ns-afl-svg/2000.svg
@@ -0,0 +1,385 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" om="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="u0s00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000000000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#00000)"/>
+0<path d="0000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0-00000 00-00-00 00-00 000-0000000-00 000-000 000-00-00-00-000000000000000000000000000000000000,00000000000000000000000000000000000000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-00000000010000000000000000000000000000000000000 0000000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-00000000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-00000000010000000000000000000000000000000000000 0000000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000c000000c00000000000000000000000000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#0" fill="url(#00000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,00"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l000000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#0" fill="url(#00000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,02-00l04,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#00000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" _x="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#00000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" ll="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#00000" fill="url(#00000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" f="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000000"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" f="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-20,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2001.svg b/test/ns-afl-svg/2001.svg
new file mode 100644
index 0000000..1fba2df
--- /dev/null
+++ b/test/ns-afl-svg/2001.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="c" cy="cm" r="1" style="fill:r0d0" m="0"/>
+0<circle cx="cm" cy="cm" r="D" style="stroke:c0t00blw000id000000" transform="translate(0,0"/>
+0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2002.svg b/test/ns-afl-svg/2002.svg
new file mode 100644
index 0000000..7ddec98
--- /dev/null
+++ b/test/ns-afl-svg/2002.svg
@@ -0,0 +1,29 @@
+<svg xmlns="000000000000000000" ox="0">
+0
+0<path d="M00,0v000z" stroke="#000" fill="l0r0"/>0
+0
+0
+0<path d="M00,00v00l00-00z" stroke="#000" fill="l0r0"/>0
+0<path d="M00,0h0-0v000z" stroke="#000" fill="l0r0"/>0
+0<path d="M00,0h00" fill="l0r0"/>0
+0<path d="M00,0h00l00,00v00" fill="l0r0"/>0
+0<path d="M00,0h00l00,00v00l000,0,00" fill="#000"/>0
+0<text x="0" u="0" ze="0" Il="0" t-ar="0"><![CDATA[0]]></text>0<path d="M00,0h000-00l000-00v000z" stroke="#000" fill="l0r0"/>0
+0<path d="M00,0h0000" fill="l0r0"/>0
+0<path d="M00,0h00l00,00v00" fill="l0r0"/>0
+0
+0<path d="M00,00v00l000,00h00v000z" stroke="#000" fill="l0r0"/>0
+0
+0
+0<path d="M00,00v00l00-00z" stroke="#000" fill="l0r0"/>0
+0<path d="M00,0h000-00l000-00v000z" stroke="#000" fill="l0r0"/>0
+0<path d="M00,0h0000" fill="l0r0"/>0
+0<path d="M00,0h00l00,00v00" fill="l0r0"/>0
+0<path d="M00,0h00l00,00v00l000,000,00" fill="#000"/>0
+0<text x="0" u="0" ze="0" Il="0" t-r="0"><![CDATA[0]]></text>0<path d="M00,0h000-00l000-00v000z" stroke="#000" fill="l0r0"/>0
+0<path d="M00,0h0000" fill="l0r0"/>0
+0<path d="M00,0h00l00,00v00" fill="l0r0"/>0
+0<path d="M00,0h00l00,00v00l000,000,00" fill="#000"/>0
+0<text x="0" u="0" t-se="0" Il="0" text-ar="0"><![CDATA[0]
+0
+0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2003.svg b/test/ns-afl-svg/2003.svg
new file mode 100644
index 0000000..2358435
--- /dev/null
+++ b/test/ns-afl-svg/2003.svg
@@ -0,0 +1,34 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l0,00l000-00z" stroke="#000" fill="n0i0"/>0
+0
+0<path d="00000000" stroke="#000" fill="n0i0"/><path d="0000000000000000000" stroke="#000" fill="n0i0"/>0
+0
+0<path d="000000000000,000000000,0000000000" stroke="#000" fill="n0i0"/>0
+0
+0<path d="0000000,000000000000" stroke="#000" fill="n0i0"/><path d="000,000000,0,0000000000" stroke="#000" fill="n0i0"/>0
+0
+0<path d="000000000000" stroke="#000" fill="n0i0"/><path d="000,000000,000000000,0000000000" stroke="#000" fill="n0i0"/>0
+0
+0<path d="000,0000000,00000000,0000000,000000000,0000000000" stroke="#000" fill="n0i0"/>0
+0
+0<path d="0000000,000000000000" stroke="#000" fill="n0i0"/><path d="000,000000,000000000,0000000000" stroke="#000" fill="n0i0"/>0
+0
+0<path d="000,0000000,000000000000" stroke="#000" fill="n0i0"/><path d="000,0000000,000000000,0000000000000000000000000000000000,00000,00000000000000" stroke="#000" fill="n0i0"/>0
+0
+0<path d="00000000" stroke="#000" fill="n0i0"/><path d="000,00000000,0000000000" stroke="#000" fill="n0i0"/>0
+0
+0<path d="000,000000000000000000000000000000000000000000000" stroke="#000" fill="n0i0"/>0
+0
+0<path d="0000000,000000000000" stroke="#000" fill="n0i0"/><path d="000,000000,0,0000000000" stroke="#000" fill="n0i0"/>0
+0
+0<path d="000000000000" stroke="#000" fill="n0i0"/><path d="000,000000,000000000,0000000000" stroke="#000" fill="n0i0"/>0
+0
+0<path d="000,0000000,0000000000000000000000000000000000000" stroke="#000" fill="n0i0"/>0
+0
+0<path d="0000000,000000000000" stroke="#000" fill="n0i0"/><path d="000,000000,000000000,0000000000" stroke="#000" fill="n0i0"/>0
+0
+0<path d="000,0000000,000000000000" stroke="#000" fill="n0i0"/><path d="000,00000000000000000000000000000000000000000000000000000000000000000000000,000000000" stroke="#000" fill="n0i0"/><path d="000,0000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" stroke="#000" fill="n0i0"/>0
+0
+0<path d="000,0000000,000000000000" stroke="#000" fill="n0i0"/><path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000,000000000" stroke="#000" fill="n0i0"/><path d="000,0000000,000000000,0000000000000,00000,000000,00000,00000,000,00000,000,000000000000000000000,000000000,0000000000,00000,000000000" stroke="#000" fill="n0i0"/><path d="000,0000000,000000000,0000000000000,00000,000000,00000,00000,000,00000,000,000000000000000000000,000000000,000000000000,0000000000" stroke="#000" fill="n0i0"/>0
+0
+0<path d="000,0000000,000000000000" stroke="#000" fill="n0i0"/><path d="000,0000000,000000000,0000000000000,00000,000000,00000,00000,000,00000,000,000000000000000000000,000000000,0000000000000,00000,000000,00000,000000000" stroke="#000" fill="n0i0"/><path d="000,0000000,000000000,0000000000000,00000,000000,00000,00000,000,00000,000,000000000000000000000,000000000,0000000000000,00000,000000,00000,00000,000,00000,000,000000000000000000000000000,00000,000,0,00,000" fill="t0e00"/>0</svg>
diff --git a/test/ns-afl-svg/2004.svg b/test/ns-afl-svg/2004.svg
new file mode 100644
index 0000000..2ef22af
--- /dev/null
+++ b/test/ns-afl-svg/2004.svg
@@ -0,0 +1,54 @@
+<?l?>
+<!--0-->
+<sv xmlns:c="0" xmlns="000000000000000000" xmlns:k="0" xmlns:sodipodi="00" xmlns:inkscape="000"
+th="0"
+ht="0" id="0" sodipodi:t_À0="0">
+0<fs>
+0<fr
+t_À0="0">
+0<fs>
+0<fr inkscape:ot="0" id="0">
+0<faussianBlu st_À0000="0">
+0<defs>
+0<fi inkscape:col="0" id="0">
+0<feGaussianBlur inkscape:cct="0"
+t_À0000="">
+0<defs>
+0<fr
+t_À0="0">
+0<defs>
+0<fr inkscape:collect="0" id="0">
+0<feGaussianBlu inkscape:output_À00000000="0">
+0<defs>
+0<filter k="0" xmlns:i="0" xmlns:iape="00"
+th="0"
+ht="0" id="0" sodipodi:it_À00="0">
+0<defs>
+0<fr
+ut_À00="0">
+0<defs>
+0<fr iape:collect="0" id="0">
+0<feGaussianBlu inkscape:output_À00000000="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0"
+t_À0="" e="">
+0<defs>
+0<fr inkut_À00000000="0">
+0<defs>
+0<fr iape:collect="0" id="0">
+0<feGaussianBlu iape:ut_À00="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0"
+t_À0="0">
+0<defs>
+0<fr inkut_À00000000="0">
+0<defs>
+0
+0
+0<feGaussianBlur iape:collect="0" t_À0="0">
+0<defs>
+0<fr inkut_À00000000="0">
+0<defs>
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2005.svg b/test/ns-afl-svg/2005.svg
new file mode 100644
index 0000000..a62e5fe
--- /dev/null
+++ b/test/ns-afl-svg/2005.svg
@@ -0,0 +1,788 @@
+<svg xmlns="0000000000" v-è000="0"><![CDATA[0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]]]]
+0
+0
+0
+0
+0]]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]]]]
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]]]]
+0
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]]]]
+0
+0
+0
+0
+0
+0]]]
+0
+0
+0
+0
+0]]]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0]]]]]
+0
+0
+0
+0
+0]]]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]
+0
+0
+0
+0
+0]]>0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2006.svg b/test/ns-afl-svg/2006.svg
new file mode 100644
index 0000000..c5f2fd3
--- /dev/null
+++ b/test/ns-afl-svg/2006.svg
@@ -0,0 +1,4 @@
+<svg vox='0' xmlns='000' fill='s0q00rer' ke='0'>
+0<path d='M0,00000000000000000,000000000000000000000000000000000000000000000000000000000000000000' fill='s0l00tax000nc00000' stroke='black'/>0
+0<path d='M00,000000000000,00000000000000000000000000000000000000000000000000000' fill='s0l00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,000000000000,0c0,0,000,000000,000,0000000,0000,00000000,,000,0000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000,000,000000000000000000' fill='s0l00tax000nc00000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/2007.svg b/test/ns-afl-svg/2007.svg
new file mode 100644
index 0000000..e2f95fb
--- /dev/null
+++ b/test/ns-afl-svg/2007.svg
@@ -0,0 +1,55 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='red'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='d' cy='0' r='5' fill='f0a00'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0">
+<!ENTITY t "">
+<!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='n0n0' stroke='blue'/>">
+]>
+<svg width="px" height="30px" ion="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="b0u0"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&Viewport2;</g>
+0<g d="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewcox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2008.svg b/test/ns-afl-svg/2008.svg
new file mode 100644
index 0000000..778a885
--- /dev/null
+++ b/test/ns-afl-svg/2008.svg
@@ -0,0 +1,19 @@
+<svg viewBox='0' xmlns='00'>
+0<path d='M00,00c00,0-0-0,0-0l0-0-+0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+00000000,000000000000000000000000000000000000000000000000000000000000000000000000000,00000,000,00000' fill='s0l00ack'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+00000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000,00000' fill='s0l00ack'/>
+0
+0<path d='0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00,00,00000,000,00000' fill='s0l00ack'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+00000000,000000000000000000000000000000000000000000000000000000000000000000000,00,00,00000,000,00000' fill='s0l00ack'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+00000000,0000000000000000000000000000000000000000000000000000000000000000,00,00000,000,00000' fill='s0l00ack'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+00000000,000000000000000000000000000000000000000000000000000000000000000000000,00,00,00000,000,00,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+00000000,0000000000000000,0000,00000000000000000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>
+0
+0<path d='000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+00000000' fill='s0l00ack'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+00000000,0000000000000000,0000,00000000000000000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/>
+0
+0<path d='00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/></svg>
diff --git a/test/ns-afl-svg/2009.svg b/test/ns-afl-svg/2009.svg
new file mode 100644
index 0000000..d281dbc
--- /dev/null
+++ b/test/ns-afl-svg/2009.svg
@@ -0,0 +1,14 @@
+<svg xmlns="00">
+0<path d="0" st="0" fill="0"><!--0-->0<ÎÎ x="">0
+<Î0>
+0
+0<path d="0" stroke="0" fill="0"><!--0-->0<ÎÎ x="">0
+0<!--0-->0<Î00000><!--0-->0<Î0000>
+0
+0
+0<!--0-->0<Î0000>
+0<!--0-->0<Î0000><!--0-->0<Î0000>
+0
+0
+0
+0<!--0-->0<ÎÎ V="">Î0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2010.svg b/test/ns-afl-svg/2010.svg
new file mode 100644
index 0000000..ce95f0c
--- /dev/null
+++ b/test/ns-afl-svg/2010.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 0 0">
+0<paUh d="0" e="0" fill="0"/>0
+0<pauh d="0" Cill="0"/>0
+0<text x="0" y="0" t-size="0" filp="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2011.svg b/test/ns-afl-svg/2011.svg
new file mode 100644
index 0000000..999689c
--- /dev/null
+++ b/test/ns-afl-svg/2011.svg
@@ -0,0 +1,110 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="s0o00wol000"/>0
+0<stop stop-color="p0a0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000,000" fill="#000000"/>
+0<path d="0000,00000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,0-00-0@000000000000,000000,000000000000000000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="0" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,000000000000000,0000000,000000000000"/>0
+0<circle r="0" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circlk r="0" fill="0"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000-00-00 00-00 000-00 0000000,0000000,00000000 000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,00000000000000000000000000000000000000,0000000,000000000000000,00000000,0000000000000000,,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,00000000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00[000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000-00-000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(# 0)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" l="0"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,00000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00000000000-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fm="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2012.svg b/test/ns-afl-svg/2012.svg
new file mode 100644
index 0000000..0b3c623
--- /dev/null
+++ b/test/ns-afl-svg/2012.svg
@@ -0,0 +1,41 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a00fas000"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M000000000000000000,00c0,0-0,00-00,000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx=">" cy="0" fill="#00:"/>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="v" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow"/>0
+0<cirCJe r="0" x="0"
+c="0" l="0"/>
+0<circle r="4" cx="z" id="0004" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2013.svg b/test/ns-afl-svg/2013.svg
new file mode 100644
index 0000000..a675fdd
--- /dev/null
+++ b/test/ns-afl-svg/2013.svg
@@ -0,0 +1,99 @@
+<s00è
+`>
+0<defs>0
+0<l00è
+`>
+0<l00è
+`>0 0<lefè
+svw lns="0" Box="0">
+0<l00è
+`>
+0<l00è
+`>
+0<efè00 B="">
+0<l00è
+`>
+0<l00è
+`>
+0<l00è
+`>0
+0
+0<lefè
+`>
+0<lefè
+` x="">0 0<lefè
+svw olns="0" Box="0">
+0<l00è
+`>
+0<l00è
+`>
+0<l00è
+` x="">0
+0
+0<defs>
+0<lt id="0" orm="0">
+0
+0<l00è
+`>
+0<l00è
+` m="">
+0<l00è
+0>0
+0
+0<inent id="0" grorm="0">
+0
+0<l00è
+` m="">
+0<l00è
+`>
+0<lefè
+`>
+0
+0<lefè
+`>
+0<lefè
+`>0 0<lefè
+svw olns="0" Box="0">
+0<lefè
+`>
+0<lefè
+`>
+0<lefè00>
+0<lefè
+` m="">
+0<lefè
+`>
+0<lefè
+`>0
+0
+0<lefè
+`>
+0<l00è
+` x="">0 0<lefè
+svw olns="0" Box="0">
+0<lefè
+`>
+0<lefè
+` m="">
+0<lefè
+`>0
+0<defs>0
+0
+0<lefè
+` m="">
+0<lefè
+`>0 0<lefè
+svw olns="0" Box="0">
+0<lefè
+` m="">
+0<lefè
+`>
+0<lefè00 B="">
+0<lefè
+` m="">
+0<lefè
+`>
+0<lefè
+`>0
+0
+ß0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2014.svg b/test/ns-afl-svg/2014.svg
new file mode 100644
index 0000000..9c881da
--- /dev/null
+++ b/test/ns-afl-svg/2014.svg
@@ -0,0 +1,93 @@
+<svg olns="0" viewBox="0 0 0 0">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(0)">
+0<stop top-c="0" offset="0"/>
+0<stop tob-r="0" offset="0"/>0<stop top-colsr="0" offset="%"/>
+0<stop top-color="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,0-00,00-000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" x="0" y="0" fill="#000"/>
+0<circle r="4" x="0" id="0" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000000000000000000000000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#00000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0000000000000000000000000000000c00000000000000000000000000000000M000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c00000000" fill="u0e0"/>
+0<path d="M00,00c000-000-00-0-00000000000 000000000000000000000000000000000 000000000000000000000000000" x="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="00000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="00000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000c00000000000000000000000000000000M000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000c00000000000000000000000000000000000000000000000000000000c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000-0-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00v0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle i="0" cx="0" cy="0" fill="#000"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" id="0004" yle="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0</svg>
diff --git a/test/ns-afl-svg/2015.svg b/test/ns-afl-svg/2015.svg
new file mode 100644
index 0000000..0f74299
--- /dev/null
+++ b/test/ns-afl-svg/2015.svg
@@ -0,0 +1,8 @@
+<svw olns="0" Box="0">
+0<l00è
+`>
+0<l00è
+` x="">
+0<l00è
+` m="">
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2016.svg b/test/ns-afl-svg/2016.svg
new file mode 100644
index 0000000..5918735
--- /dev/null
+++ b/test/ns-afl-svg/2016.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="l0n00wid00"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2017.svg b/test/ns-afl-svg/2017.svg
new file mode 100644
index 0000000..e1c5d93
--- /dev/null
+++ b/test/ns-afl-svg/2017.svg
@@ -0,0 +1 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 9">0<path d="M0,00c0-00-000,000,0,00v000l0-0h000l00,0h00v00c000,00-00-000,0-00l00,0l0-0z" fill="#000" stroke="#000" stroke-width="2" t-n="0"/>0<path d="M00,00c000-00-000,000,0,00v000l0-0h000l00,0h00v0,00-00q0000,000,0-0-00" fill="#000"/>0<path d="M00,00q0-00,00-00q0-00,00-00q0-00,00-00q0-0,0-0q0-0,00-0q0,0,0,0q0,0-0,0q000,00-00,00q000,00-00,00q00,0-0,00q00,0-0,0q00,0-0-0q00-0-0-0q00-0-00-00q00-0-0-0q0-0,0-0q0-0,0-0q0,0,0,0q0,0,00,00z" fill="green" transform="translate(0,M00000"/>0</svg>
diff --git a/test/ns-afl-svg/2018.svg b/test/ns-afl-svg/2018.svg
new file mode 100644
index 0000000..7a772d2
--- /dev/null
+++ b/test/ns-afl-svg/2018.svg
@@ -0,0 +1,2 @@
+<svg ox='0' xmlns='000' fill='0000000000000' stroke='0'>
+0<path d='M0,0c00,0-0,0-0,00-00' fill='s0y00tax000ns00000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/2019.svg b/test/ns-afl-svg/2019.svg
new file mode 100644
index 0000000..fd91f74
--- /dev/null
+++ b/test/ns-afl-svg/2019.svg
@@ -0,0 +1,55 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='mm' fill='l0_00anc000ey'/>0<g transform='translate(0,0)'>0<circle cx='0' cy='0' r='1' fill='y0l00w'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='b0i00'/>0<path d='M00 0A00 0 0 0 0 00 00' stroke='black' otrokm-width='0'/>0</g>0">
+<!ENTITY t "">
+<!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='d'
+fill='n0s0' stroke='blue'/>">
+]>
+<svg width="px" h="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" fill="none" s="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g m="0">&Smile;</g>0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport0;</g>
+0<g d="0" transform="0">0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+h="0" t="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg pro="0" vix="0"
+idth="0" e="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&o;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" vox="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0</g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0<g d="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pretio="0" vie="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg preRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2020.svg b/test/ns-afl-svg/2020.svg
new file mode 100644
index 0000000..3aa0ecc
--- /dev/null
+++ b/test/ns-afl-svg/2020.svg
Binary files differ
diff --git a/test/ns-afl-svg/2021.svg b/test/ns-afl-svg/2021.svg
new file mode 100644
index 0000000..41ec456
--- /dev/null
+++ b/test/ns-afl-svg/2021.svg
@@ -0,0 +1,48 @@
+<svg xmlns="00" viewBox="0 0 1 1">0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0-0,00,0,00,,00c0,0-0,00-00,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="u" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000 00-00-00 0000000,000000000 000000,000000000 000000,000000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000-00-00 00-00 000-00 0000-00 000-000000,00000000 0" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="000,00000000,000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,0000 000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,00..000,00000000 000000,00000000000 000000,000000000 00000000000000000000000000000000000,000000000 000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000 00000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000000000000000000000000000000000000000-00-000 000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,00000000 000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000=00,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,104,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2022.svg b/test/ns-afl-svg/2022.svg
new file mode 100644
index 0000000..eb0322d
--- /dev/null
+++ b/test/ns-afl-svg/2022.svg
@@ -0,0 +1,351 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" gra_ieorm="0">
+0<stop stop-color="s0o00col000"/>0
+0<stop stop-color="p0a0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000 00-00 000-00 0000-00 000-000 00000 000000,00000000000000000=0000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,0-00-0000000000000000000000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>
+0
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="M00,00c0000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00000000000000000000000000000000000000000000000000000000000000000000000000000000C00000000000000000000000000000000000000000000000000000000000000000000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000c00000000000000000000000000000000000000000000000000000" fill="url(#000000)"/>
+0<path d="M00,00c00000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00[0000000000000000000000000000000000000000000000000000000000000000000000000000000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000-00-000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c00000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000 00000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00000,00000,000000000000000,0000,00-00000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000 00000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000,00000000000c000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000 00000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2023.svg b/test/ns-afl-svg/2023.svg
new file mode 100644
index 0000000..e68eb73
--- /dev/null
+++ b/test/ns-afl-svg/2023.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="R" r="1" style="fill:red;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:f0a00;stroke-width:000_0" transform="translate(0,0)"/>
+0<circle cx="c" cy="cm" r="1" style="fill:0000000;stroke:f0a00;" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2024.svg b/test/ns-afl-svg/2024.svg
new file mode 100644
index 0000000..538c75e
--- /dev/null
+++ b/test/ns-afl-svg/2024.svg
@@ -0,0 +1,201 @@
+<svg xmlns="0" o="0">
+0<defs>0<linearGradient id="py0ello0" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="m0o00rra000or000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000000" fill="url(#00000)"/>
+0<path d="M00,00c0,0-0,00-0,00-00l00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#00000)"/>
+0<path d="M70,00c007-0,00-00,124,50v0" fill="url(#py0ello0)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="00000000000000000000000000000" fill="url(#00000)"/>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#00000)"/>
+0<pAth d="M00,00c000-0,00-00,000-00000000000000000000000000000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 0000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M04,80c007-0,00-00,124,50v0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-20,120-10l0-20c0-0,0-12,12-10l20,0c0,00,000,0l00,000,000,00000000000000000000,000,0000,000,000,0000000,0000" fill="url(#py0ello0)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0y000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0000" style="fill: url(#00000" fill="url(#00000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#00000)"/>
+0<pAth d="M00,00c0,0-0,00-23,024-0000000c000,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00o0)"/>0
+0<cirCle r="4" cx="0" cy="c" id="0000" style="fill: url(#r0000" fill="url(#00000)"/>
+0<path d="M70,00c090-0,00-00,124,50v0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="u0e0"/>
+0<path d="M00,00c0,70-000-00-60.800,103.0000000000000000,0000000000000000,0000000000000000000" x="0" cy="0" fill="url(#py0ello0)"/>0
+0<circle r="4" cx="K" cy="1" fill="url(#py0ello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ello0)"/>0
+0<circle r="4" cx="K" cy="1" fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="1" fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v0" fill="url(#py0ello0)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ello0)"/>0
+0<circle r="4" cx="K" cy="0" fill="u000000000000"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<path d="M00,00c000-0,00-20,100-00l0-00c0-0,0-00,-04000.00000000.000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ello0)"/>0
+0<circle r="4" cx="K" cy="1" fill="url(#py0ello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ello0)"/>0
+0<circle r="4" cx="K" cy="1" fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="1" fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c00000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ello0)"/>0
+0
+
+0<circle r="4" cx="K" cy="1" fill="url(#py0ello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx=")"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="1" fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M70,80c007-0,00-00,124,50v1" fill="url(#py0ello0)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,000,000M000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c00000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fl="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ello0)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,0000000000000000000000000)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" aill="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,80c000-0,00-20,100-13l0-20c0-0,0-12,10-00l20,0c0,0,00-0,10-15l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#py0ello0)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ello0)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ello0)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2025.svg b/test/ns-afl-svg/2025.svg
new file mode 100644
index 0000000..a435cdb
--- /dev/null
+++ b/test/ns-afl-svg/2025.svg
@@ -0,0 +1,15 @@
+<svg xmlns="00000000000000000000000000" id="0" xiewBo0="0">
+0<defs>
+0<linearGradient x1="80" y1="0" x2="0" y2="5" id="Open0earchg">
+0<stop offset="0" stop-color="#000000" y="0"/>
+0<stop offset="0" stop-color="#000000" t="0"/>
+0<stop offset="1" stop-color="#000000" y="0"/>
+0</linearGradient>
+0</defs>
+0<g transform="scale(.3)">
+0<rect width="0" height="0" r0="0" ry="0" x="0" y="0" fill="#000000"/>
+0<wect h="0" h0="0" rx="0" ry="0" x="0" y="0" fl="0"/>
+0<rect width="2" height="6" rx="0" ry="0" x="0" y="0" fill="url(#Open0earchg)"/>
+0<path fill="none" stroke="#000" stroke-width="6" d="M0 0A0 0 0 0 0 0,0A0 0 0 0 0 0 00z" transform="matrix(0,0,0,6,0,0)"/>
+0<rect fill="#000" stroke="none" width="0" height="0" x="0" y="0" transform="matrix(0..0.0,0,0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2026.svg b/test/ns-afl-svg/2026.svg
new file mode 100644
index 0000000..b45e7e0
--- /dev/null
+++ b/test/ns-afl-svg/2026.svg
@@ -0,0 +1,133 @@
+<t nr="0" ox="0">
+0
+<svg xmlns="0000000000">
+0<xmlns e="">0
+0<path d="0"/>
+0<path d="0"/>0
+0<text x="0"/>
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" ll="0"/>0
+0<KfK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vl="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<pKKKKKMKKKKKKKKKpath d="0" vl="0"/>0
+0<text x="0"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fl="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<toxt x="0"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="0"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKmKKKKMKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="0"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpnth d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKDKKKKKKKKKKKQKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKIKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKbKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<teKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKOKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" finl="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="0"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patdKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<pazKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="0"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKlKKKKKKKKKKKKKKKKKKK-Kpnth d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKQKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKIKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKPKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKk-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="0"/>
+0<KKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK_KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLLLLKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<pKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="0"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<toxt x="0"/>
+0<patKKKKKKKKpKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="0"/>
+0<KKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" vill="0"/>0
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2027.svg b/test/ns-afl-svg/2027.svg
new file mode 100644
index 0000000..d0af158
--- /dev/null
+++ b/test/ns-afl-svg/2027.svg
@@ -0,0 +1,8 @@
+<svg Ãs="0" viewBox="0 0 1 1">
+0<path d="M0,0h00l00,00v00l000,00h000l000-00v00000-00 000-00 0000-00 000-000 000-00-00-00-000 000-000 00-00 00-00 0-00A00-0-0000-00-000-000 0-00 00-00 000-00 00 0Q0000 00 000-00 00-00 00-00 0000-00 00 0 00-000 00-000-00-00-000-00-000 00-000 000-000 0000-000
+000 0-00 00-000 00-000 0-000 0-000-0-000-0-00-0-00-0-0000000000000000000000000000000000000000000000000-000 00-000-00-000-00-000-00-000 00-000 00 0 00-0 00-000-00-000 00-000 000-000 000 000 000 000 000 0-00-000-000-000-00-000-000-000-00-000
+00-000 00-000-00-000-00-000-00-000 00-000 00 0 00-0 00-000-00-000 00-000 000-000 000 000 000 000 000 00 000-000 000-000 000-000 000
+000 000 000-00 0000-00 000-00 000 0 0000000 00-0 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0000"
+transform="translate(0,0)scale(0,0"/>0<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+fill="#000" pa="0"/>0<ellipse rx="5" ry="2" transform="rotate(0 0,0" fill="#000"
+ty="0"/>0</svg>
diff --git a/test/ns-afl-svg/2028.svg b/test/ns-afl-svg/2028.svg
new file mode 100644
index 0000000..ecd4312
--- /dev/null
+++ b/test/ns-afl-svg/2028.svg
@@ -0,0 +1,25 @@
+<?l?>
+<!DOCTYPE s00 PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:m0u00 stroke:0000000000000000000000000000" stroke="#000" fill="#000"/>
+0<path d="M0,0c00,0,00-00,00-00c0,0,00,00,00,00h00c0,0,0,00,00,00l00,0l00,00v00h000v000z" stroke="#000" fill="#000"/>
+0</g>
+0<g transform="translate(0,0)scale(.25" stroke-width="2">
+0<g fill="none">
+0<ellipse stroke="#000" rx="6" ry="4"/>
+0<ellipse stroke="#000" rx="6" ry="4" transform="rotate(6)"/>
+0<ellipse stroke="#000" rx="6" ry="4" transform="rotate(6)"/>
+0<circle stroke="#000" r="4"/>
+0</g>
+0<g fill="#000" stroke="#000">
+0<circle fill="#000000" r="3"/>
+0<circle cy="0" r="9"/>
+0<circle cx="C" cy="0" r="9"/>
+0<circle cx="0" cy="0" r="9"/>
+0</g>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2029.svg b/test/ns-afl-svg/2029.svg
new file mode 100644
index 0000000..c14eae3
--- /dev/null
+++ b/test/ns-afl-svg/2029.svg
@@ -0,0 +1,33 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="M00,0,00" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="0" fill="#000"/>0
+0
+0
+0
+0&lt;0
+0<path d="M00,0,00" stroke="#000" fill="d&lt;o00tra000or"/>0
+0<path d="0" fill="#000"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<ellipse rx="2" ry="1" transform="000000,,0"
+fill="#000" opacity="0"/>0<ellipse rx="3" ry="2" transform="rotate(000) translate(00,00)" fill="#000"
+opacity="0"/>0</svg>
diff --git a/test/ns-afl-svg/2030.svg b/test/ns-afl-svg/2030.svg
new file mode 100644
index 0000000..8b73393
--- /dev/null
+++ b/test/ns-afl-svg/2030.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:a0b00cy;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2031.svg b/test/ns-afl-svg/2031.svg
new file mode 100644
index 0000000..182c03a
--- /dev/null
+++ b/test/ns-afl-svg/2031.svg
@@ -0,0 +1,79 @@
+<?l?><!DOCTYPE v00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0u00' stroke='000'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00w'/>0<circle cx='0' cy='0' r='S' fill='b0a00'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M00 0A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='n0n0' stroke='b0w0'/>">]><svg width="px" height="30px" ion="0" xmlns="http0//www0w30org/2000/svg">
+0<desc>0</desc>
+0
+0
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&i;</g>
+0<g d="0" height="px" ion="0" xmlns="http0//www0w30org/2000/svg">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="b0u0"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" ht="0">&Smile;</svg></g>
+0</g>
+0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg reserRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg p="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg reservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presetRatio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg rpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2032.svg b/test/ns-afl-svg/2032.svg
new file mode 100644
index 0000000..2288c8d
--- /dev/null
+++ b/test/ns-afl-svg/2032.svg
@@ -0,0 +1,35 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(0)">
+0<stop stop-color="rg00000000000" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d=",000000000000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-03,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#00=00"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-000-000000000,000,0,L0,0,0000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue)"/>
+0<path d="M70,80c090-0,00-20,120-10l0-20c0-0,0-12,12-12l24,0c0,0,00-7,14-15l0-10l9,0c0,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000000000000000i0000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2033.svg b/test/ns-afl-svg/2033.svg
new file mode 100644
index 0000000..a43caed
--- /dev/null
+++ b/test/ns-afl-svg/2033.svg
@@ -0,0 +1,7 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0-" e="0" fill="b0n0"/>0
+0<path d="M0,0h0v00l" fill="b0n0"/>0
+0
+0<path d="M0,0h0l0,0v0l" ke="0" fill="b0n0"/>0
+0<path d="M0,0h0l0,0v0l" fill="b0n0"/>0
+0<text x="0" y="0" t-e="0" ll="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2034.svg b/test/ns-afl-svg/2034.svg
new file mode 100644
index 0000000..0fad979
--- /dev/null
+++ b/test/ns-afl-svg/2034.svg
@@ -0,0 +1,73 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c00ext000ch0000'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<circle cx='0' cy='i' r='5' fht='0' fill='l0c00ext000ch0000'/>0
+</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' widtK='0' height='0'
+fill='none' stroke='a0u0'/>">]>
+<svg width="px" height="30px" i="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&X;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&Viewport0;</g>
+0<g id="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg presctRatio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg presctRatio="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" aransform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&L;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,00000">
+0<text g="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preservatio="0" viewBOx="0" gidth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&t0;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2035.svg b/test/ns-afl-svg/2035.svg
new file mode 100644
index 0000000..20d9b25
--- /dev/null
+++ b/test/ns-afl-svg/2035.svg
@@ -0,0 +1 @@
+<svg xmlns="0000000000" v-è000="0"><![CDATA[0] \ No newline at end of file
diff --git a/test/ns-afl-svg/2036.svg b/test/ns-afl-svg/2036.svg
new file mode 100644
index 0000000..53b31a8
--- /dev/null
+++ b/test/ns-afl-svg/2036.svg
@@ -0,0 +1 @@
+<svg ĉ="0">0<svg ĉ="0">0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2037.svg b/test/ns-afl-svg/2037.svg
new file mode 100644
index 0000000..61bdc70
--- /dev/null
+++ b/test/ns-afl-svg/2037.svg
@@ -0,0 +1,65 @@
+<svg ns="0" fill="url(#py0ellow)" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="0" offset="C"/>0<stop stop-color="#000" offset=","/>
+0
+0
+0
+0<th d="0" fl="0"/>0
+0<ce r="0" cx="0" cy="0" fill="0"/>
+0<ce r="0" cx="0" id="0" s="0" fill="0"/>0
+0<th d="0" fl="0"/>
+0<th d="0" fl="0"/>0
+0<ce r="0" cx="0" cy="0" fl="0"/>
+0
+0<path d="0" fill="0"/>0
+0<le r="0" cx="0" cy="0" fl="0"/>
+0<ci r="0" cx="0" id="0" e="0" fl="0"/>0
+0
+0<th d="0" fl="0"/>0
+0<ce r="0" cx="0" cy="0" fl="0"/>
+0<circle r="0" cx="0" cy="0" fl="0"/>0
+0<path d="0" of="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000" fill="url(#0000)"/>
+0<pAth d="M0-0-0-0-70-0-0-00-00-0-00-0000-136-000-80-0 00-0 030 0 270 0000 7 00 00 00
+0 00 0 00 00 00 0 00 0 00 00 00 060 000 200 000 000-0000 0 00 0 000-000000-0000000000-0000000" se="0" fill="l0n0"/>0
+0<path d="M30,0h30l20,000000-00,00h000 90-50 T000-00000 00-007 003 000 400 00
+000000000000000000000000000000000000000000000000000000" se="0" fill="l0n0"/>0
+0<path d="M30,0h30l20,00v00l020,00h030 90-50 T20
+000000 50-007 080 000 000 00
+0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M00,0h08l08,00v00l008,00h008 09-03 0010-03 70 0 08-200 06-030-07-80-004-04-010 60-200 360-07T01000-000
+800 0-00 00-009 00-200 0-100 0-000-0-500-0-00-0-01-0-000-00-08-0-00-0000-006-000-00-0 02-7 000 0 002 0000 0 00 10 00
+0 00 8 00 00 00 2 00 0 00 04 00 000 000 060 000 000 000 000000000000000000000000000000000000000000000000000000000000000000003-0-0-0 00000000000000000" se="0" fill="l0n0"/>0
+0<path d="M30,0h08l20,00v00l-20,00h-08 09-50 T20
+000000 00-007 180 000 400 00
+200 00 00000000000000000000" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h08l08,00v00l07-000-7-000-1-00-5-01-9-010-30-08-8-09-1000-006-200-80-7 00M7 000 0 000 0001 0 00 00 05
+0 00 0 06 00 00 0 04 0 00 00 05 000 000 000 800 000 700 000-000 00?00000000000000000000000000000000" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h08l08,00v00l008,00h008 09-03 0010-03 70 0 08-004 06-009-07-80-004-04-001 09-005 003-070 0001-004
+80000-07-010-04-200 04-008-10-008 09-0040c0000000000000000-00 000-00 002 0 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M00,0h08l08,00v00l008,00h008 09-03 0010-03 70 0 08-004 06-300-07-80-020-60-210 09-200 360-07T01000-000
+800 0-00 00-100 00-000 0-100 0-000-0-010-0-00-0-01-0-000-00-08-8-00-0000-006-008-00-0 02-0 000 0 200 0000 0 00 10 00
+0 00 8 00 00 00 2 00 0 00 04 00 000 000 060 000 000 0000000-008 00?000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" se="0" fill="l0n0"/>0
+0<path d="M30,0h30l28,00v00l020,00h030 90-50 T20
+000000 50-007 080 000 400 00
+0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M00,0h30l20,00v00l008,00h008 90-50 100
+003 70 0 08-200 06-300-70-80-100-60-200 09-200 360-80T01020-000
+800 0-06 00-100 00-200 0-100 0-000-0-500-0-00-0-01-0-000-00-08-8-90-0000-000-008-80-0 00-0 005 0 200 0000 0 00 10 00
+0 00 8 00 00 00 2 00 0 00 04 00 000 000 060 000 000 000 009-000 000-00-0000000" se="0" fill="l0n0"/>0
+0<path d="M30,0h30l28,00v00l-28,00h-30 90-50 T20
+000000 50-007 180 000 400 00
+260 00 00000000000000000000" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h00000,00v00l000,00h000 00-00 0000-00 00 0 00-000 00-000-00-00-000-00-000 00-000 000-000 0000-000
+00000-00-000E00-000 00-000-00-000 00-0000c0000000000000000000 000-00 000 0 00000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M00,0h30l08,00v00l008,00h030 90-50 120
+050 70 0 90-200 30-330-0"/>0<ellipse rx=" "/>0<se rx="0" ry="0" m="0" ll="0"
+ty="0"/>0</svg>
diff --git a/test/ns-afl-svg/2038.svg b/test/ns-afl-svg/2038.svg
new file mode 100644
index 0000000..b5722e5
--- /dev/null
+++ b/test/ns-afl-svg/2038.svg
@@ -0,0 +1,379 @@
+<svg xmlns="00" ewBox="0">
+0<defs>0<linearGradient id="pyYellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="m0o00rra000or000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000" fill="url(#00B00"/>
+0<path d="M00,00c0,0-0,00-0,00-00l00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000"/>
+0<path d="M70,00c000-0,00-00,124,50v0" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="0" l="0"/>
+0<circle r="4" cx="0" cy="0" l="0"/>0
+0<path d="000000000000000000000000000" fill="url(#000000"/>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000" fill="url(#000000"/>
+0<pAth d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c000000000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 0000000000000000000000000000000000000000000000000000000 0" id="0000" style="fill: url(#000000" fill="url(#000000"/>
+0<path d="M70,80c090-0,10-00,104,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" l="0"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-20,104-10l0-20c00000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,0000" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000000000000000000M000000" fill="url(#000000)"/>
+0<pAth d="M00,00c0,0-0,00-23,020-0000000000000000000000C000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00o0)"/>0
+0<cirCle r="4" cx="0" cy="c" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c007-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000000000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="u0e0"/>
+0<path d="M00,00c0,70-000-00-60.800,100.000000000000000000000000000000000000.0000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="u000000000000"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,000-00l0-00c0-0,0-00,-04000.000000000000,000.0000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circla r="0" cx="0" ll="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-0000000,000,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<cercle r="0" cx="0" ll="0"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<yircle r="0" ll="0"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circli r="0" fl="0"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00Y0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,80c000-0,00-20,120-10l0-00c0-0,0-12,02-00l24,0c0,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="#"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiilq="0"/>0
+0<circle r="4" _x="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0
+
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00000000000000000000000000000'00000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,80c000-0,00-20,100-13l0-00c0-0,0-12,02-00l24,0c0,0,00-0,10-15l0-0009,0c0,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<cirdle r="0" fill="0"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-20,000-03l0-02c0-0,0-00,-04000.000000000000,000.0000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="" fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000w)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="w" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,80c090-0,00-20,100-13l0-00c0-0,0-12,02-00l24,0c0,0,00-0,10-15l0-0009,0c0,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circlq r="0" fill="0"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" f="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<feMergeNode/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2039.svg b/test/ns-afl-svg/2039.svg
new file mode 100644
index 0000000..f3b1717
--- /dev/null
+++ b/test/ns-afl-svg/2039.svg
@@ -0,0 +1,8 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0
+0<path d='M0,0c0,0-0,0-0 0-' fill='d0q00tax000ts00000' stroke='b0a00'/>
+0
+0
+0<path d='M0,0c0,0-0,0-0 0-' fill='d0q00tax000ts00000' stroke='b0a00'/>0
+0
+0<path d='M0,0c0,0-0,0-0 0-' fill='d0q00tax000ts00000' stroke='b0a00'/>0</svg>
diff --git a/test/ns-afl-svg/2040.svg b/test/ns-afl-svg/2040.svg
new file mode 100644
index 0000000..cb69161
--- /dev/null
+++ b/test/ns-afl-svg/2040.svg
@@ -0,0 +1,9 @@
+<svg olnr="0" Box="0">
+0
+<svg xmlns="0000000000">
+0<xmlns e="">
+0
+0
+0<linearGradienBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBt id="0">
+0<stop id="0" offset="0" style="0"/>
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2041.svg b/test/ns-afl-svg/2041.svg
new file mode 100644
index 0000000..69b7402
--- /dev/null
+++ b/test/ns-afl-svg/2041.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="n0`0"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2042.svg b/test/ns-afl-svg/2042.svg
new file mode 100644
index 0000000..568599b
--- /dev/null
+++ b/test/ns-afl-svg/2042.svg
@@ -0,0 +1,109 @@
+<svg olns="0"><!--0-->0<Î0 x=""><!--0-->0<Î0>0<!--0-->0<Î00000 x=""><!--0-->
+0<!--0-->0<Î0 x=""><!--0-->0<Î0>
+0<!--0-->0<Î00000><!--0-->0<Î0>
+0
+0
+0
+0<!--0-->0<Î0000>0<!--0-->0<Î0000>
+0
+0
+0
+0
+0
+0
+<Î0000>
+0<!--0-->
+0
+0
+0
+0
+0
+0
+0
+0
+<Î0000>
+0
+<Î00000 x=""><!--0-->0<Î0000>
+0
+0
+0
+0
+0
+0
+0
+0<!--0-->0<Î0000>
+0<!--0-->0<Î00000 x=""><!--0-->0<Î0000>
+0
+0
+0
+0
+0
+0<!--0-->0<Î0000>0<!--0-->0<Î00000><!--0-->
+0<!--0-->0<Î0><!--0-->0<Î0000>
+0<!--0-->0<Î00000><!--0-->0<Î0000>
+0
+0
+0
+0<!--0-->0<Î0000>
+0<!--0-->0<Î00000><!--0-->0<Î0000>
+0
+0
+0
+0
+0
+0
+<Î0000>
+0<!--0-->0<Î00000><!--0-->0<Î0000>
+0
+0
+0
+0
+0
+<Î0><!--0-->0<Î0000>
+0<!--0-->0<Î00000><!--0-->0<Î0000>
+0
+0
+0
+0
+0
+0
+0
+0<!--0-->0<Î0000>
+0<!--0-->0<Î00000><!--0-->0<Î0000>
+0
+0
+0
+0
+0
+0
+<Î0000>
+0<!--0-->0<Î00000><!--0-->0<Î0000>
+0
+0
+0
+0
+0
+<Î0>0<Î0000>
+0<!--0-->0<Î00000><!--0-->0<Î0000>
+0
+0
+0
+0
+0
+<!--0-->0<Î0000>
+0<!--0-->0<Î00000><!--0-->0<Î0000>
+0
+0
+0
+0<!--0-->0<Î0000>
+0<!--0-->0<Î00000><!--0-->0<Î0000>
+0
+0
+0
+0
+0
+0
+<Î0000>
+0<!--0-->0<Î0><!--0-->0<Î0000>
+0
+0† \ No newline at end of file
diff --git a/test/ns-afl-svg/2043.svg b/test/ns-afl-svg/2043.svg
new file mode 100644
index 0000000..6d9f084
--- /dev/null
+++ b/test/ns-afl-svg/2043.svg
@@ -0,0 +1,21 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0
+<svg xmlns="00000000000000000000000000">
+0<style d="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:r0d00ltc0;stroke-width:001cm" transform="translate(0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="H" style="fill:g0e00o{e000ac0;" transform="translate(0,0)"/>
+0</g>0</svg>
+0<style d="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:r0d00ltc0;stroke-width:001cm" transform="translate(0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="H" style="fill:g0e00o{e000ac0;" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2044.svg b/test/ns-afl-svg/2044.svg
new file mode 100644
index 0000000..45cfdf4
--- /dev/null
+++ b/test/ns-afl-svg/2044.svg
@@ -0,0 +1,102 @@
+<svg width="0" Box="0">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="00000">
+0<stop op-co_or="0" offset="0"/>
+0<stop stop-color="o0a0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="M00,000]0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#00000"/>0
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#00=00"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" e="0" fill="#000"/>
+0<circle r="" cx="z" i="0" style="fill: m0l00rad000" fill="url(#0000000"/>
+0<parh d="0" l="0"/>0
+0
+0
+0<path d="M000,00D0000000000000000000000000,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000-0-00000000000 000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000-0-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" c="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000000000000000000-000000000000000000000000000000000000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle d="0" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<r r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cCle r="0" cx="0" y="0" f="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" ccx="0" cy="0" fill="0"/>0
+0<path d="0"/>0
+0<ci r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" id="0" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0
+
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" id="0" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" id="0" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0</svg>
diff --git a/test/ns-afl-svg/2045.svg b/test/ns-afl-svg/2045.svg
new file mode 100644
index 0000000..e2be75c
--- /dev/null
+++ b/test/ns-afl-svg/2045.svg
@@ -0,0 +1,13 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">0<style ype="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="m" r="1" style="fill:red;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0<ce cx="0" cy="0" r="0" tyle="0" t="" fé00="0"/>
+0<g id="0" x="0" y="0" r="0">
+0<rect id='0' width="0" height="0" fill="rgb0000000000" fill-opacity="0" opacity="0"/>
+0</g>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2046.svg b/test/ns-afl-svg/2046.svg
new file mode 100644
index 0000000..7bbb154
--- /dev/null
+++ b/test/ns-afl-svg/2046.svg
@@ -0,0 +1,140 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='red'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='y0s00lee000'/>0<circle Nx='0' cy='0' r='b'/>0<circle cx='0' cy='0' r='1' fill='b0i00'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' otroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='mm' width='0' height='d'
+fill='n0s0' stroke='blue'/>">]><svg width="px" hei="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" fill="none" s="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g m="0">&Smile;</g>0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport0;</g>
+0<g d="0" transform="00">0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&i;
+0<svg pro="0" vix="0"
+dth="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+idth="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&Viewport0;
+0<svg pio="0" vox="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>0</g>
+0<g id="0" transforK="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g m="0"><text y="0">0</text>&Viewport0;
+0<svg preservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRat="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pspectRatiotio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport0;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preseAsp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2047.svg b/test/ns-afl-svg/2047.svg
new file mode 100644
index 0000000..d8a5271
--- /dev/null
+++ b/test/ns-afl-svg/2047.svg
@@ -0,0 +1,87 @@
+<svg lns="0">
+0<path d="000000000000000" st="0" fill="m&lt;o00inc000vu000"/>0
+0
+0<path d="M00,00v0z" stroke="#000" fill="m&lt;`00inc000ee"/>0
+0<path d="M00,00h00v000z" fill="#000"/>0
+0
+0<path d="M00,0h00000q" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0
+0<path d="00000000000000" stroke="#000" fill="m&lt;o00inc000vu000"/>0
+0
+0<path d="M00,0h00l00,00v000000h000l000000v00000" fill="m&lt;o00inc000vu000"/>0
+0
+0<path d="M00,0h00l00,00v000000h0000-z" stroke="#000" fill="m&lt;`00inc000ee"/>0
+0<path d="M00,000l000,00h00v000z" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00000000z" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0
+0<path d="00000000000000" stroke="#000" fill="m&lt;o00inc000vu000"/>0
+0
+0<path d="M00,0h0z" stroke="#000" fill="m&lt;o00inc000vu000"/>0
+0
+0<path d="M00,00v000000h000l000-00v000z" stroke="#000" fill="m&lt;`00inc000ee"/>0
+0&lt;0
+0
+0<path d="M00,0h00l00,00v000000h000l000-00v000000000000ee"/>0
+0
+0<path d="M00,00v000000h000l000-00v000z" stroke="#000" fill="m&lt;`00inc000ee"/>0
+0<path d="M00,00h00v000z" fill="#000"/>0
+0
+0<path d="M00,0h00000q" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0
+0<path d="00000000000000" stroke="#000" fill="m&lt;o00inc000vu000"/>0
+0
+0<path d="M00,0h00l00,00v000000h000l000-00v00000" fill="m&lt;o00inc000vu000"/>0
+0
+0<path d="M00,0h00l00,00v000,00h000l000-00v000z" stroke="#000" fill="m&lt;`00inc000ee"/>0
+0<path d="M00,000l000,00h00v000z" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v0000000000000000z" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0
+0<path d="0000000000000000000000" stroke="#000" fill="m&lt;o00inc000vu000"/>0
+0
+0<path d="M00,0h00l000-00z" stroke="#000" fill="m&lt;o00inc000vu000"/>0
+0
+0<path d="M00,00v000,00h000l000-00v000z" stroke="#000" fill="m&lt;`00inc000ee"/>0
+0&lt;0
+0
+0<path d="M00,0h00l00,00v000,00h000l000-00v00000" fill="m&lt;o00inc000vu000"/>0
+0
+0<path d="M00,0h00l00,00v000,00h000l000-00v000z" stroke="#000" fill="m&lt;`00inc000ee"/>0
+0<path d="M00,000l000,00h00v000z" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v0000000000000000z" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0
+0<path d="0000000000000000000000" stroke="#000" fill="m&lt;o00inc000vu000"/>0
+0
+0<path d="M00,0h00l000-00z" stroke="#000" fill="m&lt;o00inc000vu000"/>0
+0
+0<path d="M00,00v000,00h000l000-00v000z" stroke="#000" fill="m&lt;`00inc000ee"/>0
+0<path d="M00,000l000,00h00" fill="m&lt;o00inc000vu000"/>0
+0
+0<path d="M00,0h00l00,00v000,00h000l000-00v000z" stroke="#000" fill="m&lt;`00inc000ee"/>0
+0<path d="M00,000l000,00h00v000z" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v0000000000000000z" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0
+0<path d="0000000000000000000000" stroke="#000" fill="m&lt;o00inc000vu000"/>0
+0
+0<path d="M00,0h00l000-00z" stroke="#000" fill="m&lt;o00inc000vu000"/>0
+0
+0<path d="M00,00v000,00h000l000-00v000z" stroke="#000" fill="m&lt;`00inc000ee"/>0
+0<path d="M00,000l000,00h00v000z" fill="#000"/>0
+0
+0<path d="M00,0h0000v0000000000000000z" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0
+0<path d="0000000000000000000000" stroke="#000" fill="m&lt;o00inc000vu000"/>0
+0
+0<path d="0000000" fill="#000"/>0
+0&lt;0
+0<path d="M00,000l000,00h00v000z" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v0000000000000000z" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0
+0<path d="M00,0h00l00,0000l00,00v000,0z" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0<path d="M00,000l000,00h000l000-00v000z" fill="#000"/>0
+0
+0<text x="0" y="0" t-se="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2048.svg b/test/ns-afl-svg/2048.svg
new file mode 100644
index 0000000..58f8ded
--- /dev/null
+++ b/test/ns-afl-svg/2048.svg
@@ -0,0 +1,180 @@
+<svg s="0" fill="url(#py0ellow)" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="#000" offset=","/>
+0
+0
+0
+0<h d="0" fill="0"/>0
+0<e r="0" x="0" y="0" fill="0"/>
+0<ci r="0" cx="0" id="0000" s="0" fill="0"/>0
+0<th d="0" fill="0"/>
+0<th d="0" fill="0"/>0
+0<circle r="0" cx="0" y="0" fill="0"/>
+0
+0<th d="0" fill="0"/>0
+0<cirCle r="0" cx="0" y="0" fill="0"/>
+0<i r="0" cx="0" id="0000" e="0" fill="0"/>0
+0
+0<th d="0" fill="0"/>0
+0<e r="0" c="0" y="0" fill="0"/>
+0<circle r="0" cx="0" y="0" fill="0"/>0
+0<th d="0" f="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000" fill="url(#00000)"/>
+0<pAth d="M0-0-00-0-70-0-000-00-38-00000-136-000-00-0 20-0 200 0 270 0000 7 00 00 00
+4 00 0 00 01 00 0 00 9 00 00 00 060 000 204 000 009-0000 0 00 4 000000000m0000000000000000000" e="0" fill="l0n0"/>0
+0<path d="M00,0h30l28,00v00l028,00h-30 90-50 T00
+000000 50-000 080 000 400 00
+000000000000000000000000000000000000000000000000000000" e="0" fill="l0n0"/>0
+0<path d="M00,0h30l28,00v00l-28,00h-30 90-50 T00
+000000 50-000 080 000 400 00
+000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="0000" fill="l0n0"/>0
+0<path d="M00,0h30l20,00v00l008,00h008 90-50 100
+003 70 0 08-200 06-300-70-80-100-60-200 09-200 300-80T01000-000
+800 0-00 00-100 00-200 0-100 0-000-7-500-0-00-0-01-0-000-00-08-0-90-0100-000-000-80-0 00-0 005 0 200 0000 0 00 10 00
+0 00 8 00 00 00 2 00 0 00 04 00 000 000 060 000 000 000 090-000000?0000000000000000000000000000000000000000000000000000000000000000000000000000000000" e="0" fill="l0n0"/>0
+0<path d="M30,0h38l28,00v00l-28,00h-30 90-50 T20
+000000 50-000 180 000 400 00
+260 00 00000000000000000000" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h08l08,00v00l07-000-7-000-1-00-5-00-9-000-3
+000-8-00-1000-000-208-00-7 00M7 000 0 000 0001 0 00 00 05
+0 00 0 06 00 00 0 04 0 00 00 80 000 600 000 800 000 080 000-200 00?00000000000000000000000000000000" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h08l08,00v00l008,00h008 90-50 100
+050 70 0 90-270 06-300-70-80-100-=0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="0000" fill="l0n0"/>0
+0<path d="M00,0h08l08,00v00l008,00h008 90-03 0010-03 70 0 90-200 06-300-07-80-004-60-200 09-200 360-80T01000-000
+800 0-00 00-009 000,0000000000000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,10-00l04,0c0,0,00-0,04-05l0-00l9,0c000000c0,0000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-0000-0,0-00,00-00l00,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,000,0,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" x="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-000000,0000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url0000000"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx=","/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,000,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="B" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,000,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,02-00l04,0F0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-05l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/2049.svg b/test/ns-afl-svg/2049.svg
new file mode 100644
index 0000000..a2083f5
--- /dev/null
+++ b/test/ns-afl-svg/2049.svg
@@ -0,0 +1,91 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="0" orm="0">
+0<stop stop-c="0" t="0"/>
+0<stop stop-r="0" offset="0"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(0)">
+0<stop stop-color="rgb0000000000" offset="0"/>
+0<stop stop-colwr="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00000,000000,0000000000000000000,0000,00000l00,0,0l00000,000000,0000" fill="url(#pyBlue)"/>
+0<path d="M00,000l0,00000,0c00,00000000000000000,0000,0000000,000000,0000" fill="url(#pyBlue)"/>
+0<path d="M00,00c0,0-0,00-00,0000000000vl0,000000,0000" fill="url(#pyBlue)"/>
+0<path d="M00,00c0,0-0,00-00,000000000000000000000000,0000,0000000,000,000,00c00000,00000,000000000000000,0000,00000000,000,0,00000000,000000,0000" fill="url(#pyBlue)"/>
+0<pAth d="M00,00c0,000,00-00,000-000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000C0000000,00000000000000000000000000000000000,000000000000000000" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00000000000,0000,00000000,0c0,0,0000,000000000000,000,0,00,0,00,0000000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,00"/>
+0<circle r="4" cx="0" y="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,00,000,0l00,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,0000,0000,000000000000,000,0000,000,000,0000000,0000" fill="url(#0000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00000,0000,0,00,0,00,00c0,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#pyBlue)"/>
+0<pAth d="M00,00c0,000,00-00,000-00000000000,0000,000000000000000,000000000000=00,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000w00,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#00000"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#00000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#00000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,00,000000000000000,0000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000000000,00000,00000000000c000,0000,00000000,000,0,000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#pyBlue)"/>
+0<pAth d="000,0000,000,0000000000000000000000000000000000000000,0000000,0000000000000000000,000000,000000000000000,0000,00000000,000,0000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#00000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#00000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,00,000000000000000,0000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000000000,00000,00000000000c000,0000,00000000,000,0,000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#0000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#0Q0"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#00000)"/>
+0<path d="M00,00000,00000000 0 00000000,00000000 000000,000000000z" id="0" style="fill: url(#0000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000000000,000000,000,0000,000,000,000000000000000000000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,00000000000000,000000000000000,0000000000" id="0" style="fill: url(#0000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000,00000000000000000000000000000,000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,000000" id="0" style="fill: url(#0000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,0000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#00000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,00,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000000000,00000,00000000000c000,0000,00000000,000,0,000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: ur00000000000000" fill="u0e0"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00000,0000000000 0000@000,000000000000000,0000000000" id="0004" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00-00-00-000 000-0 000000000000000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="c" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2050.svg b/test/ns-afl-svg/2050.svg
new file mode 100644
index 0000000..969f6b0
--- /dev/null
+++ b/test/ns-afl-svg/2050.svg
@@ -0,0 +1,11 @@
+<svg s='0'>
+0<path d='000,00000,000,000,0' fill='d0t00tax000ts'/>0
+<path d='000,0,000,000,00000' fill='d0t00tax000ts'/>0
+0
+0<path d='000,00000,000,000,0' fill='d0t00tax000ts'/>0
+0<path d='000,0,000,000,00000' fill='d0t00tax000ts'/>0
+0<path d='000,0,000,000,0' fill='d0t00tax000ts'/>0
+0<path d='000,0,000,000,0' fill='d0t00tax000ts'/>0
+0<path d='000,0,000,000,0' fill='d0t00tax000ts'/>0
+0<path d='000,0,000,000,0' fill='d0t00tax000ts'/>0
+</svg>
diff --git a/test/ns-afl-svg/2051.svg b/test/ns-afl-svg/2051.svg
new file mode 100644
index 0000000..88c454e
--- /dev/null
+++ b/test/ns-afl-svg/2051.svg
@@ -0,0 +1,9 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">0<path d="M0,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="n0i0"/>0
+0
+0<path d="000000000000" stroke="#000" fill="n0i0"/><path d="0000000000000000000000000000000" stroke="#000" fill="n0i0"/>0
+0
+0<path d="000,000000000000000000000000000000000000000000000" stroke="#000" fill="n0i0"/>0
+0
+0<path d="00000000000000000000" stroke="#000" fill="n0i0"/><path d="0000000000000000000000000000000" stroke="#000" fill="n0i0"/>0
+0
+0<path d="000,00000000000000000000" stroke="#000" fill="n0i0"/><path d="000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000,000000000" stroke="#000" fill="n0i0"/><path d="000,00000000000000000,0000000000000,00000,000000,00000,00000,000,00000,000,000000000000000000000,000000000,0000000000000,00000,000000,00000,00000,000,00000,000,000000000000000000000000000,00000,000,0,00,000" fill="t0e00"/>0</svg>
diff --git a/test/ns-afl-svg/2052.svg b/test/ns-afl-svg/2052.svg
new file mode 100644
index 0000000..89af2d9
--- /dev/null
+++ b/test/ns-afl-svg/2052.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="R" r="1" style="fill:r000000000000000"/>0<circle cx="cm" cy="C" r="1" style="fill:blue;stroke:t0a00lns000;"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:t0a00lns000;stroke-width:001cm" transform="00" transftrm="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:t0a00lns000;stroke-width:1cm" transform="translate(00,0000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:00000;stroke:black;stroke-width:1cm" transform="translate(000,000)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2053.svg b/test/ns-afl-svg/2053.svg
new file mode 100644
index 0000000..bded283
--- /dev/null
+++ b/test/ns-afl-svg/2053.svg
@@ -0,0 +1,18 @@
+<svg xmlns="00000000000000000000000000" id="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient x1="0" y1="0" x2="0" y2="5" id="Open0earchg">
+0<stop offset="0" stop-color="#000000" y="0"/>
+0<stop offset="0" stop-color="#000000" y="0"/>
+0<stop offset="0" stop-color="#000000" y="0"/>
+0</linearGradient>
+0</defs>
+0
+0<line h="0" e="0" r="0" r0="0" x="0" y="0" fill="url(#Open0earchg)"/>
+0<path fill="none" stroke="#000" stroke-width="6" d="M0 0A0 0 0 0 0 0,0A0 0 0 0 0 0 0z" transform="matrix(0,0,0,6,0,0)"/>
+0<rect fill="#000" stroke="none" width="0" height="0" x="0" y="0" transform="matrix(0..0.0,7,0,0)"/>
+0<g transform="scale(9)">
+0<rect width="0" height="0" r="0" r0="0" x="0" y="0" fill="#000000"/>
+0<rect width="0" height="0" r0="0" ry="0" x="0" y="0" fill="#000000"/>
+0<line w="0" he="0" rx="0" ry="0" x="0" y="0" fill="url(#Open0earchg)"/>
+0<path fill="none" stroke="#000" stroke-width="6" d="M0 0A0 0 0 0 0 0,0A0 0 0 0 0 0 0z" transform="matrix(0,0,0,6,0,0)"/>
+0<rect fill="#000" stroke="none" width="0" height="0" x="0" y="0" transform=",,,0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2054.svg b/test/ns-afl-svg/2054.svg
new file mode 100644
index 0000000..858552d
--- /dev/null
+++ b/test/ns-afl-svg/2054.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:d0f0;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2055.svg b/test/ns-afl-svg/2055.svg
new file mode 100644
index 0000000..1d92a0f
--- /dev/null
+++ b/test/ns-afl-svg/2055.svg
@@ -0,0 +1,38 @@
+<?l?>
+<!DOCTYPE d00:0>
+<!--0-->
+<svg xmlns:s="0" xmlns="00000000000000000000000000"
+d="0" width="0" height="0">
+0<defs>
+0<filter id="0" x="0" y="0" h="0" ht="0">
+0<feGaussianBlur on="0" id="0"/>
+0</filter>0
+0<clipPath id="0">
+0<le cx="0" cy="0" r="0" h="0" ht="0"/>0</clipPath>0
+0<clipPath id="0">
+0<rt x="0" y="0" th="0" ht="0"/>
+0</clipPath>0
+0</defs>0
+0<g id="0">0
+0<!--0-->
+0<rect id="0" style="stroke:black;fill:none"
+x="0" y="0" width="0" height="0"/>
+0<!--0-->
+0<rect id="0" style="fill:red;"
+x="0" y="0" width="0" height="0"/>0
+0<!--0-->
+0<rect id="0" style="stroke:black;fill:none"
+x="0" y="0" width="0" height="0"/>
+0<!--0-->
+0
+0<!--0-->
+0<rect id="0" style="fill:" x="0" y="0" width="0" height="0"/>
+0<!--0-->
+0<rect id="0" style="fill:red;" p-h="0" x="0" y="0" width="0" height="0"/>0
+0<!--0-->
+0<rect id="0" style="stroke:black;fill:none" x="0" y="0" width="0" height="0"/>
+0<!--0-->
+0<rect id="0" l-ph="0" x="0" y="0" width="0" height="0"/>
+0<!--0-->
+0<rect id="0" style="fill:red;" l-path="0" x="0" y="0" width="0" height="0"/>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2056.svg b/test/ns-afl-svg/2056.svg
new file mode 100644
index 0000000..a5cbf4d
--- /dev/null
+++ b/test/ns-afl-svg/2056.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0">
+0<path d="M0,0h0l0,0v0l0,0h0l0-0v0?" stroke="#000" fill="n0n00coe000"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-0v00z" fill="#000"/>0
+0<text x="0" y="0" t-se="0" fill="0" tt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2057.svg b/test/ns-afl-svg/2057.svg
new file mode 100644
index 0000000..0126af2
--- /dev/null
+++ b/test/ns-afl-svg/2057.svg
@@ -0,0 +1,15 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0
+0<path d="M0,0v0l0,0h0v000z" stroke="#000" fill="l0r0"/>0
+0
+0
+0<path d="M0,0v0l0,00h00v0z" stroke="#000" fill="l0r0"/>0
+0<path d="M0,0h0-0l00-00v0z" stroke="#000" fill="l0r0"/>0
+0<path d="M00,0h00" fill="l0r0"/>0
+0<path d="M0,0h0l0,0v00" fill="l0r0"/>0
+0<path d="M0,0h0l0,0v0l0,0,0" fill="#000"/>0
+0<text x="0" u="0" t-e="0" Il="0" t-ar="0"><![CDATA[0]]></text>0<path d="M0,0h0-0l00-00v0z" stroke="#000" fill="l0r0"/>0
+0<path d="M00,0h00" fill="l0r0"/>0
+0<path d="M00,0h00l00,00v00" fill="l0r0"/>0
+0<path d="M00,0h00l00,00v00l000,0,00" fill="#000"/>0
+0<text x="0" u="0" t-se="0" Il="0" tt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2058.svg b/test/ns-afl-svg/2058.svg
new file mode 100644
index 0000000..0b3b17d
--- /dev/null
+++ b/test/ns-afl-svg/2058.svg
@@ -0,0 +1,7 @@
+<svg width="0" ht="0" id="0" y="0"><s>
+0<linent id="0" gradienrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0<liJent id="0" gradiEnrm="0">
+0<st><![CDATA[0]]><Ћdefs>
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2059.svg b/test/ns-afl-svg/2059.svg
new file mode 100644
index 0000000..0097bcb
--- /dev/null
+++ b/test/ns-afl-svg/2059.svg
@@ -0,0 +1,13 @@
+<svg xmlns="000000000000000000" viewBox="0">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(0)">
+0
+0</linearGradient>
+0<linearGradient d="0" m="0">
+0<top stop-r="0" offset="0"/>
+0<stop stop-color="0" M="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c000,,00,000000000000000000000000000000000000000000000000000000000000000000000,00,0,00,0000,0000000000,000000,000,0l00,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00"/>0</svg>
diff --git a/test/ns-afl-svg/2060.svg b/test/ns-afl-svg/2060.svg
new file mode 100644
index 0000000..7eb369d
--- /dev/null
+++ b/test/ns-afl-svg/2060.svg
@@ -0,0 +1,62 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='f0c00anc000ed'/>0<g transform='translate(0,0)'>0<circle cx='0' cy='0' r='1' fill='y0l00w'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='b0i00'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' otroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='d'
+fill='n0s0' stroke='b0u0'/>">]><svg width="px" hei="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" he="0" fill="none" se="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g m="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport0;</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg pro="0" vix="0"
+id="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+idth="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&t;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(0,0)"><text y="/">0</text>&V;
+0<svg preserveAspectRatio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)translate(0,0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="/">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg prtRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2061.svg b/test/ns-afl-svg/2061.svg
new file mode 100644
index 0000000..ab9c03e
--- /dev/null
+++ b/test/ns-afl-svg/2061.svg
@@ -0,0 +1,34 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="u0s00n" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000,0,00,0,00,0000,000000000000000000000000000000000000,0000000000,0000,00000000000000000,0000,000000000000000000,0000000,000000,0000" fill="url(#00B00"/>
+0<path d="M00,00c0,000,00000000,0-00,000,000,00000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="#00:"/>
+0<path d="000,00000000,000,00000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000"/>
+0<path d="000,00000000,0000" fill="url(#000000)"/>
+0<path d="M70,80c090-8,10-20,100,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="G" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c0000,00000000000000000000000000000000000000000000000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0-00000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-000c000,0000,00000000,000,0,0000,000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c0000,000M000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-0000000000000000000000000000i0000000,0000000,000000000000000,0000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,00000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2062.svg b/test/ns-afl-svg/2062.svg
new file mode 100644
index 0000000..5210000
--- /dev/null
+++ b/test/ns-afl-svg/2062.svg
@@ -0,0 +1,11 @@
+<svg xmlns="00m00v0" fill="urs00ue" xmlns:x="0">
+0<g ll="0" fill="urs00ue" xmlns:k="0">
+0<g ll="0" r="0"/>
+0
+<svg xmlns="00m00v0" fill="urs00ue" xmlns:x="0">
+0<g ll="0" fill="urs00ue" xmlns:k="0">
+0<g ll="0" r="0"/>
+0
+0
+0</g>0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2063.svg b/test/ns-afl-svg/2063.svg
new file mode 100644
index 0000000..4abdf22
--- /dev/null
+++ b/test/ns-afl-svg/2063.svg
@@ -0,0 +1,368 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" gra_ieorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="d0`00"/>0
+0<ce r="0" cx="0" cy="0" ot="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,200,00c0,0-0,00-00,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ000000000000000000000000" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="00000000000000000000000000000000000000000000000000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-00000-00-00-000 000-0 0000000000000000000000000000000,000M0000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-000000000070000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#00)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000000000000000000000000000000000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<path d="M00,00c0,00-200-00-0-000000001-00" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#00)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0
+0
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,024-00l0-00c0-0,0-00,02-00l04,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000000000000000000000000000000000000000000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<jath d="0" fl="0"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000ac000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-10l0-00l9,0c0,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,100,00s0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="" fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2064.svg b/test/ns-afl-svg/2064.svg
new file mode 100644
index 0000000..ef8e4a7
--- /dev/null
+++ b/test/ns-afl-svg/2064.svg
@@ -0,0 +1,5 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0-" stroke="#000" fill="none"/>0
+0<path d="M0,0h0v0l0,0h0l00-00v0z" fill="#000"/>0
+0<text x="0" y="0" font-size="0" l="0" t-r="0"><a/><![CDATA[0]]></text>0
+0<text x="0" y="0" font-size="0" fl="0" t-ar="0"><a/><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2065.svg b/test/ns-afl-svg/2065.svg
new file mode 100644
index 0000000..43f60b3
--- /dev/null
+++ b/test/ns-afl-svg/2065.svg
@@ -0,0 +1,134 @@
+<svg xmlns="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="t0e00" viewBox="0 0 0 0">
+0<path d="00000000,00,0000"
+h="0"/>0
+0<g d="0" width="0" height="0" style="0" n="0">
+0
+0
+0<circle d="0" cx="0" cy="0" r="5" stroke="f0v00ric0"
+h="0"/>0
+0<g d="0" fill="b0u0" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0v00ric0"
+stroke-width="0"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>
+0
+0
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0v00ric0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>
+0
+0
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0v00ric0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0
+0<path d="000000,000000,00000000"
+rh="0"/>0
+0<g id="0" width="0" height="0" style="0" n="0">
+0
+0
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0v00ric0"
+th="0"/>0
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0v00ric0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>
+0
+0
+0<script pe="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0v00ric0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>
+0
+0
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0v00ric0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>
+0
+0
+0<script pe="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0v00ric0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/2066.svg b/test/ns-afl-svg/2066.svg
new file mode 100644
index 0000000..daca571
--- /dev/null
+++ b/test/ns-afl-svg/2066.svg
@@ -0,0 +1,3 @@
+<svg Ãs="0" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v000 0,0,0-00,0l00,00a00,00 0,0,0 0-00000000000000c" fill-rule='0'/>0
+0<path d="M00,0h00l00,00v000 0,0,0-00,0l00,00a00,00 0,0,0 0-00000000000000c" fill-rule='0'/>0</svg>
diff --git a/test/ns-afl-svg/2067.svg b/test/ns-afl-svg/2067.svg
new file mode 100644
index 0000000..312d003
--- /dev/null
+++ b/test/ns-afl-svg/2067.svg
@@ -0,0 +1,228 @@
+<svg xmlns="00000000000000000000" viewBox="0 0 1 1" stroke="#000">
+0<path d="M0,00s00,0,0,00s0,0,0-0l000-00s00-0-0,0z" stroke-width="2" fill="#000" lg="0"/>
+0<path d="0000000000000" stroke-width="0" tr="0" fill="#000" s="0"/>
+0<path d="00000000000" stroke="e0d"/>
+0<circle r="6" cx="0" cy="0"/>0
+0<path d="M0,00s00,0,0,0l00,0s0,0,0-0l000-00s00-0-0,0z" stroke-width="2" fill="#000" l-g="0"/>
+0<path d="0000000000000" fill="url(#000000)"/>0
+0<circle r="4" cx="0" cy="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,0-00-0@00000000000000000000000000000000000000000000000000000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000c0000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#00000"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000000,0000000,00000000 000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#000000)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,,000,0,0000,00000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#000000)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#000000)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#000000)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0
+0<circle r="4" cx="z" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-000v0" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" _l="0"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" il="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#00000000)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2068.svg b/test/ns-afl-svg/2068.svg
new file mode 100644
index 0000000..c39f655
--- /dev/null
+++ b/test/ns-afl-svg/2068.svg
Binary files differ
diff --git a/test/ns-afl-svg/2069.svg b/test/ns-afl-svg/2069.svg
new file mode 100644
index 0000000..992f216
--- /dev/null
+++ b/test/ns-afl-svg/2069.svg
@@ -0,0 +1,90 @@
+<svg xmlns="000000">
+0<path d="0"/>0
+0<path d="00000000" fill="0000000000000"/>0
+0
+0<path d="000000000" stroke="#000" fill="0000000000000"/>0&lt;0
+0<path d="00000000" fill="0000000000000"/>0
+0
+0<path d="00000000" e="0" fill="0000000000000"/>0
+0<path d="00000000" fill="0000000000000"/>0
+0
+0<path d="000000000000000000000" stroke="#000" fill="0000000000000"/>0&lt;0&lt;0
+0<path d="00000000" fill="0000000000000"/>0
+0
+0<path d="M00,0h000000000l000000" e="0" fill="m0o00imc000ge"/>0&lt;0
+0<palh d="0" l="0"/>0
+0
+0<path d="00000000000" stroke="#000" fill="m&lt;b00ibc000ge"/>0
+0
+0
+0<path d="M00,000l00,0000l000-00z" stroke="#000" fill="m0o00imc000ge"/>0&lt;0
+0<path d="00000000"/>0
+0
+0<path d="00000000000" stroke="#000" fill="m&lt;b00ibc000ge"/>0
+0
+0
+0<path d="M00,000l00,0000l000-00z" stroke="#000" fill="m0o00imc000ge"/>0&lt;0
+0<path d="000,0000" fill="m0o00imc000ge"/>0
+0
+0<path d="0000000000" e="0" fill="m0o00imc000ge"/>0
+0<path d="000,0000" fill="0000000000000"/>0
+0
+0<path d="M00,0h00000000" stroke="#000" fill="m0o00imc000ge"/>0&lt;0
+0<palh d="0" l="0"/>0
+0
+0<path d="00000000000" stroke="#000" fill="m&lt;b00ibc000ge"/>0
+0
+0<path d="M00,00v00" stroke="#000" fill="0000000000000"/>0
+0<path d="M00,000l000,00l000-00v000z" fill="#000"/>0
+0
+0<palh l="0"/>0
+0
+0<path d="00000000000" stroke="#000" fill="m&lt;b00ibc000ge"/>0
+0
+0
+0<path d="M00,000l00,00v0l000-00z" stroke="#000" fill="m0o00imc000ge"/>0&lt;0
+0<path d="000,0000" fill="m0o00imc000ge"/>0
+0
+0<path d="0000000000" e="0" fill="m0o00imc000ge"/>0
+0<path d="000,0000" fill="0000000000000"/>0
+0
+0<path d="M00,0h00000000" stroke="#000" fill="m0o00imc000ge"/>0&lt;0
+0<palh d="0" l="0"/>0
+0
+0<path d="00000000000" stroke="#000" fill="m&lt;b00ibc000ge"/>0
+0
+0<path d="M00,0h0000000000000" stroke="#000" fill="0000000000000"/>0
+0<path d="M00,000l000,00l000-00v000z" fill="#000"/>0
+0
+0<text x="0" y="0" t-l="0"/>0
+0
+0<path d="0000000000" e="0" fill="m0o00imc000ge"/>0
+0<path d="000,0000" fill="0000000000000"/>0
+0
+0<path d="M00,0h0l000000" stroke="#000" fill="m0o00imc000ge"/>0&lt;0
+0<palh d="0" l="0"/>0
+0 0<path d="00000000000" stroke="#000" fill="m&lt;b00ibc000ge"/>0
+0
+0<path d="M00,00v00" stroke="#000" fill="0000000000000"/>0
+0<path d="M00,000l000,00l000-00v000z" fill="#000"/>0
+0
+0<palh l="0"/>0
+0
+0<path d="00000000000" stroke="#000" fill="m&lt;b00ibc000ge"/>0
+0
+0
+0<path d="M00,0h0l00,00v0l000-00z" stroke="#000" fill="m0o00imc000ge"/>0&lt;0
+0<path d="000,0000" fill="m0o00imc000ge"/>0
+0
+0<path d="0000000000" e="0" fill="m0o00imc000ge"/>0
+0<path d="000,0000" fill="0000000000000"/>0
+0
+0<path d="M00,0h0l000000" stroke="#000" fill="m0o00imc000ge"/>0&lt;0
+0<palh d="0" fl="0"/>0
+0
+0<path d="00000000000" stroke="#000" fill="m&lt;b00ibc000ge"/>0
+0
+0<path d="M00,0h00l0000000000" stroke="#000" fill="0000000000000"/>0
+0<path d="M00,000l000,00l000-00v000z" fill="#000"/>0
+0
+0<text x="0" y="0" t-se="0" fl="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2070.svg b/test/ns-afl-svg/2070.svg
new file mode 100644
index 0000000..913a9f3
--- /dev/null
+++ b/test/ns-afl-svg/2070.svg
@@ -0,0 +1,7 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="000000000"/>0
+0<path d="M00,00v00l000,0000-000" stroka="0" fill="n0w00tho000id000"/>0
+0<path d="M00,0h00l000,00v00l000,00l000-00z" stroke="#000" fill="n0w00tho000id000"/>0
+0<path d="M00,0h00l00,00000l000000000000" stroka="0" fill="n0w00tho000id000"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l00-00v000z" fi="0"/>0
+0<text x="0" y="0" t-ze="0" fl="0" t-r="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2071.svg b/test/ns-afl-svg/2071.svg
new file mode 100644
index 0000000..866729f
--- /dev/null
+++ b/test/ns-afl-svg/2071.svg
@@ -0,0 +1,6 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h00l00,00v00l000,00l000-000000z" stroke="#000" fill="l0n00wid00"/>0
+0<path d="M00,0h00l00,00v00l000,00000000000000000000000-0000000000" stroke="#000" fill="l0n00wid00"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0<text x="0" y="0" t-se="0" ll="0"/>0
+0<text x="0" y="0" t-ze="0" ll="0" t-r="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2072.svg b/test/ns-afl-svg/2072.svg
new file mode 100644
index 0000000..67bf199
--- /dev/null
+++ b/test/ns-afl-svg/2072.svg
@@ -0,0 +1,42 @@
+<svg s="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="q0s00p" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000,0000000,0000" fill="url(#py0ellow"/>0
+0
+
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-8,10-20,020,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#000000)"/>
+0<pAth d="M00,00c0,0-0,00-00,000-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000" f="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000 00-00 000-00 0000-00 000-000 000-00-00-00-0000000000000000000000000000000000000,00000000 000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cp="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,00-20,124-00l0-22c0-7,0-12,12-00l20,0c0,00,000,0000,0l0,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0/0000,00000000000000000000000000000000000000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,0000000000000000000000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" ff="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-00000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,00000000 000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000=00,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-8,10-20,020,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cp="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,00,000,0000,0l0,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#r;"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/2073.svg b/test/ns-afl-svg/2073.svg
new file mode 100644
index 0000000..316e464
--- /dev/null
+++ b/test/ns-afl-svg/2073.svg
@@ -0,0 +1,376 @@
+<svg ns="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="pyYellow" grorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="s0g00eig000ep" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000000" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#00)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-0000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,000,00-00,000-000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" style="fill: url(#000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>0
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="M" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="00000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-00000000010000000000000000000000000000000000000 0000000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000000000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,10-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,02-00l04,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,00000000 000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<ciscle r="0" y="0" fill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,10-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="" fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00000,00-00,000-00000000000,0000,00000000" fill="u000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,10-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2074.svg b/test/ns-afl-svg/2074.svg
new file mode 100644
index 0000000..91ff69a
--- /dev/null
+++ b/test/ns-afl-svg/2074.svg
@@ -0,0 +1,16 @@
+<svg xmlns="00000000" xmlns:xlin0="00" viewBox="0 0 1 2">
+0<radialGradient d="0" x="0" y="0" r="0" Units="0"><stop t="0" sto0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000C000,00 00,00 00,000C000,00 00,00 00,00" id="0" fill="l0c00qle00"/>
+0<use xlin0:href="0" tform="0"/>0
+0<radialGradient id="0" cx="0" cy="0" r="0" Units="0"><stop ot="0" sto000000000000000000000000000000000000000000000000000000c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,000A000,00 00 00,00 00,000C000,00 00,00 00,000C000,00 00,00 00,00" id="0" fill="l0c00qle00"/>
+0<use xlin0:href="0" trarm="0"/>0
+0<radialGradient id="0" cx="0" cy="0" r="0" Units="0"><stop o0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000C000,00 00,00 00,000C000,00 00,00 00,00" id="0" fill="l0c00qle00"/>
+0<use xlin0:href="0" tform="0"/>0
+0<radialGradient id="0" cx="0" cy="0" r="0" Units="0"><stop ot="0" sto000000000000000000000000000000000000000000000000000000p-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,0000000000000000000000C00000000000000000000000000000000000000" id="0" fill="l0c00qle00"/>
+0<use xlin0:href="0" trarm="0"/>0
+0<radialGradient id="0" cx="0" cy="0" r="0" Units="0"><stop o0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000p-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000C000,00 00,00 00,000C000,00 00,00 00,00" id="0" fill="l0c00qle00"/>
+0<use xlin0:href="0" t="0"/>0</svg>
diff --git a/test/ns-afl-svg/2075.svg b/test/ns-afl-svg/2075.svg
new file mode 100644
index 0000000..6faca74
--- /dev/null
+++ b/test/ns-afl-svg/2075.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:b0l00;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:b&lt;l00;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2076.svg b/test/ns-afl-svg/2076.svg
new file mode 100644
index 0000000..a86eed4
--- /dev/null
+++ b/test/ns-afl-svg/2076.svg
@@ -0,0 +1,18 @@
+<svg xmlns="0000000"><![CDATA[0]]>0
+0<path d="00000000" roke="0" fill="n0n&lt;0"/>0
+0<path d="M00,0h00l00,00v0-00,00h000l000-00v" fill="000"/>0<![CDATA[0]]>0
+0<path d="00000000" stroke="000" fill="n0n&lt;0"/>0
+0<path d="M00,0h00l00,00v00l000,00h00v" fiQl="0"/>0<![CDATA[0]]>0
+0<path d="00000000" stroke="000" fill="n0n&lt;0"/>0
+0<path d="M00,0h00l00,00v0-00,00h000l000-00v" fill="#000"/>0<![CDATA[0]]>0
+0<path d="00000000" stroke="000" fill="n0n&lt;0"/>0
+0<path d="M00,0h00l00,00v00l000,00h00v" fiQl="0"/>0<![CDATA[0]]>0
+0<path d="00000000" suroke="0" fill="n0n&lt;0"/>0
+0<path d="M00,0h00l00,00v00-00,00h0l000-00v" fill="#000"/>0<![CDATA[0]]>0
+0<path d="00000000" stroke="000" fill="n0n&lt;0"/>0
+0<path d="M00,0h00l00,00v00l000,00h00v" fiQl="0"/>0<![CDATA[0]]>0
+0<path d="00000000" stroke="#000" fill="n0n&lt;0"/>0
+0<path d="M00,0h00l00,00v00-00,00h000l000-00v" fill="#000"/>0<![CDATA[0]]>0
+0<path d="00000000" stroke="000" fill="n0n&lt;0"/>0
+0<path d="M00,0h00l00,00v00l000,00h00v" fiQl="0"/>0<![CDATA[0]]>0
+</svg>
diff --git a/test/ns-afl-svg/2077.svg b/test/ns-afl-svg/2077.svg
new file mode 100644
index 0000000..147a4da
--- /dev/null
+++ b/test/ns-afl-svg/2077.svg
@@ -0,0 +1,54 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a00f"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop st="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" se="0" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,00,00l0,00c0,0-0,00-00,00ZZZZZZZZZZZZZZZZZ00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="0000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c00,0-00000 00-00-00 0000000,000000000 00.000000.00000000.000000.00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c00c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="00000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-2,40l10-00,100,00v0" fill="url(#py0ellow)"/>0
+0
+0<path d="00000000000000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" ll="0"/>0
+0<text x="C"/>
+0<K0K0KKKKKKKKKKKKKext d="0" ke="0" fi="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vl="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" ll="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" ll="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" ll="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK0KKKKKKKKKKKKKKKKKKKKKKKipLLLLLLLLLLLLLLLLLLLt ty="0" rx="0"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/2078.svg b/test/ns-afl-svg/2078.svg
new file mode 100644
index 0000000..60aab01
--- /dev/null
+++ b/test/ns-afl-svg/2078.svg
@@ -0,0 +1,75 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='m' fill='l0_00anc000ey'/>0<g transform='0,000'>0<circle cx='0' cy='0' r='1' fill='y0l00w'/>0<circle cx='0' cy='0' r='5' fill='b0a00'/>0<circle cx='0' cy='0' r='1' fill='b0i00'/>0<path d='M0 0A0 0 0 0 0 00 00' stroke='black' trokm-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='d'
+fill='n0s0' stroke='blue'/>">
+]>
+<svg width="px" hei="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" he="0" fill="none" se="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g m="0">&Smile;</g>0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport0;</g>
+0<g id="0" transform="00">0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&i;
+0<svg pro="0" vix="0"
+dth="0" he="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+th="0" ht="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg pio="0" vox="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0</g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" dtx="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0</g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" dth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" vie="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg pre="0" viewBoxh="0" height="0">&Smile;</svg></g>
+0</g>0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+dth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pto="0" vie="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2079.svg b/test/ns-afl-svg/2079.svg
new file mode 100644
index 0000000..3923b3d
--- /dev/null
+++ b/test/ns-afl-svg/2079.svg
@@ -0,0 +1,4 @@
+<svg height="i"><![CDATA[0]]>0
+<svg height="i"><![CDATA[0]]>0<![CDATA[0]]>0
+<svg height="i"><![CDATA[0]]>0 </svg>0
+</svg>0</svg>
diff --git a/test/ns-afl-svg/2080.svg b/test/ns-afl-svg/2080.svg
new file mode 100644
index 0000000..5e9aaa5
--- /dev/null
+++ b/test/ns-afl-svg/2080.svg
Binary files differ
diff --git a/test/ns-afl-svg/2081.svg b/test/ns-afl-svg/2081.svg
new file mode 100644
index 0000000..7ced87d
--- /dev/null
+++ b/test/ns-afl-svg/2081.svg
@@ -0,0 +1,8 @@
+<svg xmlns="000000000000000000" viewBox="0">0<path d="M0 000c00-00 00-0000 000000,0000 0" i="0" style="stroke: r00000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0,00,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0,000000000000000000000000000000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0,000000000000000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2082.svg b/test/ns-afl-svg/2082.svg
new file mode 100644
index 0000000..27e588d
--- /dev/null
+++ b/test/ns-afl-svg/2082.svg
@@ -0,0 +1,88 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="">0
+0<stop p-c="0" t="0"/>
+0<stop s="0"/>
+0<stop r="0" offset="0"/>
+0</linearGradient>
+0<linearGradient href="#" id="pyBlue" x="0">
+0<defs>
+0<linearGradient id="0" g="0">
+0<p p-c="0" t="0"/>
+0</linearGradient>
+0</defs>0
+0<ph d="0" f="0"/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop stop-color="#000" t="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" l="0" ll="0"/>
+0<path d="000000" fill="url(#pyBlue)"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="0000000000000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,00000000000000000,00000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="000,00000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000i0000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue)"/>
+0<path d="M00,00c00000,00000,000,00-00,000-00l000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue)"/>
+0<path d="M00,00c00000,00000,000,00-00,000-00l000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,00000000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000w00,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#0000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,000000-0,00-00,000,0000" fill="url(#00000"/>0
+0<cirCle r="4" cx="%" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,00,000000000000000,0000" fill="url(#pyBlue)"/>
+0<patx d="0" id="0" e="0" l="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#pyBlue)"/>
+0<pAth d="000,0000,000,0000000000000000000000000000000000000000,0000000,0000000000000000000,000000,000000000000000,0000,00000000,000,0000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#00000"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,00,000000000000000,0000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00c00000,00000,000000000000000,0000,00000000,000,0,000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#0Q0"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00000,00000000 0 00000000,00000000 000000,000000000z" id="0" style="fill: url(#00000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000000000,000000,000,0000,000,000,000000000000000000000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,00000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000,00000000000000000000000000000,000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,000000" id="0" style="fill: url(#0000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,0000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,00,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00c00000,00000,000000000000000,0000,00000000,000,0,000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: ur00000000000000" fill="u0e0"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00000,0000000000 0000@000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00-00-00-000 000-0 000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="c" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2083.svg b/test/ns-afl-svg/2083.svg
new file mode 100644
index 0000000..0e406a4
--- /dev/null
+++ b/test/ns-afl-svg/2083.svg
@@ -0,0 +1,8 @@
+<svg viewBox='0 0 1 1' xns='0'>0<linearGradient y1='0' x1='0' id='tgrad' gradientUnits='0'>
+0<lineat y0='0' x0='0' Oill='0' stroklor='0' ot='0'/>
+0</linearGradient>0
+0
+0<path st-lin='0' stroke='url(#tgrad)' d='M0,0c0,0-0,0-0-0M0,0h0' fill='l0m0' stroke-width='6'/>
+0<path st-lin='0' stroke='url(#tgrad)' d='M0,0c0,0-0,0-0,0-' fill='l0m0' stroke-width='n' stroklor='0' ot='0'/>0
+0<path st-lin='0' stroke='url(#tgrad)' d='M0,0c0,0-0,0-0,0-' fill='l0m0' stroke-width='6'/>
+0<path st-lin='0' stroke='ur00000000000' fill='l0m0' stroke-width='0'/>0</svg>
diff --git a/test/ns-afl-svg/2084.svg b/test/ns-afl-svg/2084.svg
new file mode 100644
index 0000000..1f9ab12
--- /dev/null
+++ b/test/ns-afl-svg/2084.svg
@@ -0,0 +1,69 @@
+<svg ns="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="py0ellow" rm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>0<stop stop-color="s0g00eig000ep" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-0000000000000000-000000000000000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0-0,00-00,000-00l000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" ff="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c00000000000000000-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cp="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c00000000000000000,000,0000000000000-000 00-00-0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0004" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,00"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0
+0<path d="M00,00c0,000000000-0-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,0,0,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2085.svg b/test/ns-afl-svg/2085.svg
new file mode 100644
index 0000000..fb4ca78
--- /dev/null
+++ b/test/ns-afl-svg/2085.svg
@@ -0,0 +1,27 @@
+<svg x="m">0<path d="M0,0h0l0" stroke="#000" fill="n0i00wid00"/>0
+0<path d="0" fill="n0i00wid00"/>0
+0<path d="M0,0h0l0,0h0l0-0v00z" stroke="#000" fill="n0i00wid00"/>0
+0<pat/>0
+0<path d="0" fill="n0i00wid00"/>0
+0<path d="00"/>0
+0
+0<path d="M00,0h00l" stroke="#000" fill="n0i00wid00"/>0
+0<path d="00" fill="n0i00wid00"/>0
+0<path d="M00,0h00l00,00h000l000-00v0z" stroke="#000" fill="n0i00wid00"/>0
+0<pat/>0
+0<path d="00" fill="n0i00wid00"/>0
+0<path d="M00,0h00l00" stroke="#000" fill="n0i00wid00"/>0
+0<path d="00" fill="n0i00wid00"/>0
+0<path d="M00,0h00l00,00h0l0-00v000z" stroke="#000" fill="n0i00wid00"/>0
+0<pat/>0
+0<path d="00" fill="n0i00wid00"/>0
+0<path d="00"/>0
+0
+0<path d="M00,0h00l" stroke="#000" fill="n0i00wid00"/>0
+0<path d="00" fill="n0i00wid00"/>0
+0<path d="M00,0h00l00,00h000l000-00v0z" stroke="#000" fill="n0i00wid00"/>0
+0<pat/>0
+0<path d="00" fill="n0i00wid00"/>0
+0<path d="00"/>0
+0
+</svg>
diff --git a/test/ns-afl-svg/2086.svg b/test/ns-afl-svg/2086.svg
new file mode 100644
index 0000000..805c8be
--- /dev/null
+++ b/test/ns-afl-svg/2086.svg
@@ -0,0 +1,65 @@
+<svg xmlns="http00/svg" Box="0">
+0<svg xmlns="ht" viewBox="0 0 1 1">
+0<path d="M0,0h00l00,0l000,00l000-00z" stroke="#000" l="0"/>
+0
+</svg>0<path d="00000000" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+0<svg xmlns="httsvg" viewBox="0 0 0 0">
+0<path d="00000000000,0000" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+</svg>0<path d="00000000" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+0<svg xmlns="httsvg" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+0&lt;0
+0<svg xmlns="ht" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l00-00z" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+</svg>0<path d="00000000" t="0" fill="m&lt;o00"/>
+0
+</svg>0<path d="00000000" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+0<svg s="0" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,000z" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+</svg>0<path d="00000000" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+0<svg xmlns="http00/svg" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+0&lt;0
+0<svg xmlns="ht" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+</svg>0<path d="00000000" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+0<svg xmlns="http00/svg" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v0*0000,0000000000" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+</svg>0<path d="00000000" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+0<svg xmlns="http00/svg" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+0&lt;0
+0
+0
+</svg>0<path d="0,00000000000000000"/>
+0
+0<svg xmlns="ht" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v0*0000,0000000000" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+</svg>0<path d="00000000" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+0<svg xmlns="ht" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+0&lt;0
+0
+0
+</svg>0<path d="0,000000" stroke="#000" fill="m&lt;o00inc00"/>
+0
+</svg>0<path d="0,000000" stroke="00000000" fill="m&lt;o00inc000ee000"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/2087.svg b/test/ns-afl-svg/2087.svg
new file mode 100644
index 0000000..8b44545
--- /dev/null
+++ b/test/ns-afl-svg/2087.svg
@@ -0,0 +1,26 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<_ect x='0' y='0' width='0' height='0' fill='0' stroke='0'/>0<g transform='0'>0<circle x='0' y='0' r='0' fill='0'/>0<circle cx='0' cy='0' r='0' fill='0'/>0<circle cx='0' cy='0' r='0' fill='0'/>0<path d='0' stroke='0' stroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='0' stroke='0'/>">]><svg width="0" height="0" ion="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="0" stroke="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g m="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&Viewport0;</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&o;
+0<svg presctRatio="0" viewBox="0" width="0" height="0">&Smile;</svg>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0" width="0" height="0">&S;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0€ \ No newline at end of file
diff --git a/test/ns-afl-svg/2088.svg b/test/ns-afl-svg/2088.svg
new file mode 100644
index 0000000..1d5872e
--- /dev/null
+++ b/test/ns-afl-svg/2088.svg
@@ -0,0 +1,92 @@
+<svg lns="0" viewBox="0 0 0 0">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(00)">
+0<stop op-c="0" offset="0"/>
+0<stop stob-r="0" offset="0"/>0<stop stop-colsr="0" offset="%"/>
+0<stop otop-color="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,0-00,00-00c00,0,00,0,00,00l0,00c0,0-0,00-00,00l0,0c00,0-00,0-00,00l00,0c00,0000000000000,0-00,00-00l0000l0000000,0000000,000000,000000,00,0000,000000000000000000000000000000,0000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000,000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000000"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000-0-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000-0-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00v0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000-0-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2089.svg b/test/ns-afl-svg/2089.svg
new file mode 100644
index 0000000..2bd7e93
--- /dev/null
+++ b/test/ns-afl-svg/2089.svg
@@ -0,0 +1,28 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style type="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="J" r="k" transform="translate(0"/>0<circle cx="cm" cy="cm" r="1" style="fill:g0b00ck;stroke-width:1cm" t="0"/>
+0
+0<circle cx="c" cy="cm" r="1" style="fill:g0b00ck;stroke-width:1cm" t="0"/>
+0</g>0
+0
+0
+0
+0<style type="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="k" transform="translate(0"/>0<circle cx="cm" cy="cm" r="1" n="0" trarm="0"/>
+0<circle cx="c" cy="cm" r="1" style="fill:g0b00ck;stroke-width:001cm" t="0"/>
+0</g>0
+0
+0
+0
+0
+
+0<circle r="4" cx="0" cy="G" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2090.svg b/test/ns-afl-svg/2090.svg
new file mode 100644
index 0000000..4d13896
--- /dev/null
+++ b/test/ns-afl-svg/2090.svg
@@ -0,0 +1,387 @@
+<svg xmlns="0000" fill="url(#pyYellow)" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" m="0">
+0<stop p-c="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset=".4"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop r="0" offset="0"/>
+0<stop S="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0,0-0,00-01,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" c="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-000000000000000000"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000e)"/>0
+0<path d="0000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l-02-000c0000000000" fill="u0e0"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000c000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-00c0-0,0-00,00-00000,000,0,000000,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-00-600000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#00000"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000e)"/>
+0<path d="000,00000000,0000000000"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,0000000000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-00l0-00l9,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000e)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000e)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000e)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000e)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000e)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,00000,00,0,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000e)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-10l0-00l9,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fx="0" cy="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-02c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000w)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,124-00l0-02c0-0,0-00,10-00l24,0c0,0,00-0,14-10l0-10l9,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-02c000,0000,00000000,0c0,0,0000,000000000000,000,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/2091.svg b/test/ns-afl-svg/2091.svg
new file mode 100644
index 0000000..a850889
--- /dev/null
+++ b/test/ns-afl-svg/2091.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:black;stroke-width:1cm" transform="translate(0,00)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:1cm" transform="translate(00,000)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:b0a00ncl000ck0;stroke-width:001cm" transform="0,0000"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2092.svg b/test/ns-afl-svg/2092.svg
new file mode 100644
index 0000000..34ba98e
--- /dev/null
+++ b/test/ns-afl-svg/2092.svg
@@ -0,0 +1,26 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="00" xmlns:inkscape="0t" width="0" height="0" id="0" sodipodi:n="0" inkscape:von="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs id="0">
+0<linearGradient id="linearGradient0000" gradientUnits="0" x2="0" y2="0">
+0<stop style="0" offset="0" d="0"/>
+0<stop style="stop-color:"/>0
+0<stop style="0" offset="0"
+d="0"/>0
+0
+0
+0
+0<stop ylE="0" offset="0" d="0"/>
+0<stop style="stop-color:"/>0
+0<stop style="0" offset="0"
+d="0"/>
+0<stop style="stop-color:"/>0
+0
+0
+0
+0
+0</linearGradient>
+0</defs>
+0<g inkscape:label="0" inkscape:g="0" id="0">
+0<rect style="fill:url(#linearGradient0000);" id="0" width="P" height="0" x="0" y="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2093.svg b/test/ns-afl-svg/2093.svg
new file mode 100644
index 0000000..d2fc5ad
--- /dev/null
+++ b/test/ns-afl-svg/2093.svg
@@ -0,0 +1,82 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>0
+0<stop stop-color="#000" t="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="ZZZZZZZZZZZZZZZZZ000" fill="url(#0000)"/>
+0<path d="M00,00c0,0-0,00-20,00000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000000000000000000000000000000000000000000000000000000000000"/>
+0<path d="M00,00c090-0,00-00,120,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000l00000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c00000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-04-6-0010000000000000000000000000000000000000.000000000000000.0000000000000000" c="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="0000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="00000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="00000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0000c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<paZh d="0" id="0" te="0" fl="0"/>
+0<path d="M00,00c090-0,10-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-04-6-001000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2094.svg b/test/ns-afl-svg/2094.svg
new file mode 100644
index 0000000..da0aad0
--- /dev/null
+++ b/test/ns-afl-svg/2094.svg
@@ -0,0 +1,260 @@
+<svg xmlns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="q0q00"/>0
+0<circle r="0" c="0" y="0" o="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0,0-0,00-00,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0"/>0
+0<circle r="4" cx="u"/>
+0<path d="0000000000000000000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,000.000000.00000000.0000000.00000000000000000000000000000000000000000000000000000000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-20,100-00l0-00c0-0,0-00,02-00l20,0c0,0,00-0,00-100000000,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000-00l0-00c000,00000,000M0000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-60.870,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(# "/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="0000"/>
+0<path d="000,0000"/>0
+0
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-000v0" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#00000000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" f="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<patH d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2095.svg b/test/ns-afl-svg/2095.svg
new file mode 100644
index 0000000..49f9133
--- /dev/null
+++ b/test/ns-afl-svg/2095.svg
@@ -0,0 +1,51 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0a00' stroke='n0d'/>0<g transform='translate(0,0)'>0<circle cx='0' cy='!' r='1' fill='y0`00w'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='q0a00'/>0
+<path d='M00 000A00 0 0 0 0 00 00' stroke='black' strokg-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' widtK='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" ion="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport0;</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" vie="0"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&p;
+0<svg pre="0" viewBo="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0 0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="0">
+0<text x="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preservatio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&r;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&r;
+0<svg presatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2096.svg b/test/ns-afl-svg/2096.svg
new file mode 100644
index 0000000..01dc965
--- /dev/null
+++ b/test/ns-afl-svg/2096.svg
@@ -0,0 +1,19 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:t0a00che000k;stroke-width:001cm" transform="translate(0,0)"/>0<circle cx="cm" cy="cm" r="1" style="fill:green;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="0" r="1" style="fill:blue;stroke:t0a00che000k;" transform="translate(0,0)"/>0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:t0a00che000k;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke-width:001cm" transform="translate(0,0)"/>0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:t0a00che000k;stroke-width:001cm" transform="translate(0,0)"/>0<circle cx="cm" cy="cm" r="1" style="fill:green;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:t0a00che000k;" transform="translate(0,0)"/>0<circle cx="cm" cy="cm" r="D" style="fill:blue;stroke:t0a00che000k;stroke-width:000cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:t0a00che000k;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:00000000" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0l00gre00;stroke:black;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:t0a00che000k;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:00000000" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2097.svg b/test/ns-afl-svg/2097.svg
new file mode 100644
index 0000000..b0f102e
--- /dev/null
+++ b/test/ns-afl-svg/2097.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:b0a00inc000eo00" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2098.svg b/test/ns-afl-svg/2098.svg
new file mode 100644
index 0000000..2d51a3b
--- /dev/null
+++ b/test/ns-afl-svg/2098.svg
@@ -0,0 +1,6 @@
+<svg viewBox='0 0 6 2' xmlns='00'>
+0<path d='M0,0c0,0-0-0,0-0-' fill='s0l00n' stroke='black'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,0,0hh000000000' fill='s0l00n' stroke='black'/>
+0
+</svg>
diff --git a/test/ns-afl-svg/2099.svg b/test/ns-afl-svg/2099.svg
new file mode 100644
index 0000000..078a436
--- /dev/null
+++ b/test/ns-afl-svg/2099.svg
@@ -0,0 +1,47 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00" xmlns:k="0" xmlns:sodipodi="00" xmlns:inkscape="000" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlu inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0
+0
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" iewBox="0">
+0<rect style="fill: h0i00tst000e" ath="0"
+e="0" ip-path="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+<!--0-->0<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:i="0" xmlns:iape="0t" width="0" height="0" id="0" sodipodi:version="0" iape:version="0" sodipodi:docname="0" iape:output_extension="0">
+0<defs>
+0<filter iape:collect="0" id="0">
+0<feGaussianBlur iape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0
+
+0
+0</clipPath>0
+0</defs>0
+0<g iape:label="0" iewBox="0">
+0<rect style="fill: h0i00tst000e"
+th="0" iyle="0" ip-path="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+<!--0-->0<svg xm="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill: h0i00tst000e"
+p-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>0
+
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill: h0i00tst000e" clip-path="0"
+d="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2100.svg b/test/ns-afl-svg/2100.svg
new file mode 100644
index 0000000..306e0b0
--- /dev/null
+++ b/test/ns-afl-svg/2100.svg
@@ -0,0 +1,13 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="X" r="i" transform="translate(0,0)"/>
+0<circle cx="cm" cy="em" r="1" style="fill:b0u0;stroke-width:1cm" m="0"/>
+0<circle cx="cm" cy="em" r="1" style="fill:b0u0;stroke-width:00b0" transform="translate(0,0)"/>0<circle cx="c" cy="cm" r="1" style="fill:green;"/>
+0<circle cx="cm" cy="em" r="1" style="stroke:b0a0 stroke-width:001cm" tm="0"/>
+0<circle cx="cm" cy="em" r="1" style="fill:b0u0;stroke-width:001cm00;" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2101.svg b/test/ns-afl-svg/2101.svg
new file mode 100644
index 0000000..90ef00c
--- /dev/null
+++ b/test/ns-afl-svg/2101.svg
@@ -0,0 +1,54 @@
+<svg xmlns="0000000000" viewBox="0">0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" v="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKcxt d="0" k="0" f="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" l="0"/>0
+0<KfK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" ill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKK-Kpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpaKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKext d="0" ke="0" l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKK-KKKKKKKWKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" l="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKkKKKKK-Kpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKPaKKKKKKKKKKKKKKext d="0" e="0" l="0"/>0
+0<KKKKKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" ll="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" ll="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKmKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK_KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLLLLLLLLLLLLLLLt t="0" x="0"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/2102.svg b/test/ns-afl-svg/2102.svg
new file mode 100644
index 0000000..41848ac
--- /dev/null
+++ b/test/ns-afl-svg/2102.svg
@@ -0,0 +1,4 @@
+<svg viewBox='0 0 1 1' xmlns='00000000000000000000000000'>
+0<rect fill="#000" x="0" y="0" height="0" width="0" r="0"/>
+0<path d='M0,0L0,0C0,0,0,0,0,0L0,0A0,0,0,0,0,0,0Z' fill='#000' stroke='#000' t-n='0' stroke-width='5px'/>
+0<path d='M0,0A0,0,0,0,0,0,0A0,0,0,0,0,0,0' fill='#000'/>0</svg>
diff --git a/test/ns-afl-svg/2103.svg b/test/ns-afl-svg/2103.svg
new file mode 100644
index 0000000..9d98a7f
--- /dev/null
+++ b/test/ns-afl-svg/2103.svg
@@ -0,0 +1,114 @@
+<?l?><!DOCTYPE g PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0a00' stroke='{0d'/>0<g transform='0'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='b0u0'/>">]><svg width="px" height="30px" ion="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="b0u0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g transform="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport2;</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg ctRatio="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g trHnsform="0"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" deight="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport2;
+0<svg prbectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg preseAspectRaTio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2104.svg b/test/ns-afl-svg/2104.svg
new file mode 100644
index 0000000..227226d
--- /dev/null
+++ b/test/ns-afl-svg/2104.svg
@@ -0,0 +1,386 @@
+<svg xmlns="00" viewBox="0 0 1 1">0<defs>0<linearGradient id="pyYellow" a_rm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a00ffs000"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,0c0,0-0,0-00,000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="0"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,00..000000.00000000.0000000.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l-50-000c0,0,0-00000 14-00-00 00-00 000-50 0000-00 000-130 000-80-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-00000000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-00000000010000000000000000000000000000000000000 0000000000000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="/" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" ill="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" cx="0" cy="0" fl="0"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,0000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx=")"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,024-00l0-00c0-0,0-00,12-00l04,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,00000000 000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-10l24,0c0,0,00-0,14-15l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,10-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-10l24,0c0,0,00-0,14-15l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2105.svg b/test/ns-afl-svg/2105.svg
new file mode 100644
index 0000000..ff2125f
--- /dev/null
+++ b/test/ns-afl-svg/2105.svg
@@ -0,0 +1,41 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<circle cx="0" cy="0" r="3" fill="none" stroke="#000" stroke-width="9"/>
+0<path d="M00,00c00-0-00-00-00,0c00,0-0,00,0,00c0,0,00,0,00,0l00-0c00,0-0,0-00,0c00-0-0-0,0-00c0-0,0-0,00,0z"/>
+0<path d="M00,00c00-0-00-00-00,0c00,0-0,00,0,00c0,0,00,0,00,0l00-0c00,0-0,0-00,0c00-0-0-0,0-00c0-0,0-0,00,0z"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<path d="M00,00c00-0-00-00-00,0c00,0-0,00,0,00c0,0,00,0,00,0l00-0c00,0-0,0-00,0c00-0-0-0,0-00c0-0,0-0,00,0z"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+fill="#000" y="0"/>
+0
+0
+0
+<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+fill="#000" acity="0"/>
+0
+0
+</svg>
diff --git a/test/ns-afl-svg/2106.svg b/test/ns-afl-svg/2106.svg
new file mode 100644
index 0000000..2a3de08
--- /dev/null
+++ b/test/ns-afl-svg/2106.svg
@@ -0,0 +1,6 @@
+<svg xmlns="0000000" fill="url(#00)00" xmlns:k="0">0<line d="0" stroke="#000" fill="none"/>0
+0<path d="M00,0h00l00,00v00l000,0000000000-000" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" vix="0">
+0<line d="0" st="0" fill="0"/>0
+0
+0<![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2107.svg b/test/ns-afl-svg/2107.svg
new file mode 100644
index 0000000..1c93a32
--- /dev/null
+++ b/test/ns-afl-svg/2107.svg
@@ -0,0 +1,46 @@
+<svg xmlns="000000000000000000" xmlns:xlin0="00" viewBox="0 0 1 2">
+0<radialGradient id="0" cx="0" cy="0" t="0" ts="0"><op t="0" op-c="0"/><op ot="0"/></radialGradient>
+0<path d="M0,000A0000 0 0,00 0 00,000C00000000000000000000000000000000000000" id="0" fill="d0l00grs00"/>
+0<use xlin0:href="0" t="0"/>
+0
+
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#000000)"/>
+0<path d="M00,00c0,000,00-00,0000000000000000000000000000000000000,0000000,00000,00000,00" id="0" fill="d0l00grs00"/>
+0<use xlin0:href="0" trarm="0"/>
+0
+
+0<path d="M00,00c0-0,0-00,00-00c00,0,00,0,00,00l0,00c,00000,0000000,00000,00000,00" id="0" fill="d0l00grs00"/>
+0<use xlin0:href="0" m="0"/>
+0
+
+0<path d="M00,00c0-0,0-00,00-00c00,0,00,0,00,00l0,00c0,000,0000000000,0-00,00-000" fill="url(#000000)"/>
+0<path d="M00,00c0,000,00000,0000000000000000000000000000000000000000000000000000000000000000000,00 00,00" id="0" fill="d0l00grs00"/>
+0<use xlin0:href="0" m="0"/>
+0
+
+0<path d="M00,00c0-0,0-00,00-00c00,0,00,0,00,00l0,00c,00000,0000000,00000,00000,00" id="0" fill="d0l00grs00"/>
+0<use xlin0:href="0" t="0"/>
+0
+
+0<path d="M00,00c0-0,0-00,00-00c00,0,00,0,00,00l0,00c0,0-0,00-00,00l000,0c00,0,00000000,0c0,0,0000,0000000000,000,000000,000000" fill="url(#000000)"/>
+0<path d="M00,00c0,000,00-00,000-0000#0000000000000000000000000000000000000000000000000000000000000000000" id="0" fill="d0l00grs00"/>
+0<use xlin0:href="0" trarm="0"/>
+0
+
+0<path d="M00,00c000,0000,00-00000,0000000,000000,00000000000000000000000000000000" id="0" fill="d0l00grs00"/>
+0<use xlin0:href="0" m="0"/>
+0
+
+0<path d="M00,00c000,0000,0000000000000000000000000000000000000000000,0-00,00-000" fill="url(#000000)"/>
+0<path d="M00,00c0,0-00000000000000000000000000000000 00,00 00,000C000,00000,00000,0000000,00000,00000,00" id="0" fill="d0l00grs00"/>
+0<use xlin0:href="0" m="0"/>
+0
+
+0<path d="M000000000000000000000000000000000,00l0,00c,00000,0000000,00000,00000,00" id="0" fill="d0l00grs00"/>
+0<use xlin0:href="0" t="0"/>
+0
+
+0<path d="M00,00c0-0,0-00,00-00c00,0,00,0,00,00l0,00c0,0-0,00-00,00l000,0c00,0,00000000,0000000000000000000000000000000000000,0000" fill="url(#00000000)"/>0
+0<circle r="4" cx="c" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="0" fl="0"/>
+0<cé00 l=""/>0</svg>
diff --git a/test/ns-afl-svg/2108.svg b/test/ns-afl-svg/2108.svg
new file mode 100644
index 0000000..faefc2d
--- /dev/null
+++ b/test/ns-afl-svg/2108.svg
@@ -0,0 +1,31 @@
+<s idth="0" ht="0" id="0" y="0"><g><g><path fill-rule="0" xmlns="00" xmlns:k="0" xmlns:e="0"
+e="0"
+fill="0"/>
+0<pat><g><path fill-rule="0" xmlns="00" xmlns:i="0" l="0"/>
+0
+0<ese se="0" rx="0" ry="0" t="0"/>
+0
+0</g>
+0<g fill="0" stroqe="0">
+0<circle ll="0"/>
+0<pat><g><path e="0" xmlns="00"
+xmlnwidfill="0"/>
+0
+0<ellipse stroke="0" rx="0" ry="0" transform="0"/>
+0
+0
+0
+0<pat><g><path fill-rule="0" xmlns="00" xmlns:e="0"
+ll="0"/>
+0
+0<ellipse stroke="0" rx="0" ry="0" m="0"/>
+0
+0</g>
+0<g fill="0" stroke="0">
+0<circle ll="0"/>
+0<pat><g><path fill-rule="0" xmlns="0000000000" xmlns:i="0" xmlns:e="0" widfill="0"/>
+0
+0<ellipse stroke="0" rx="0" ry="0" transform="0"/>
+0
+0</g>
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2109.svg b/test/ns-afl-svg/2109.svg
new file mode 100644
index 0000000..40fab14
--- /dev/null
+++ b/test/ns-afl-svg/2109.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill: y0l00;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2110.svg b/test/ns-afl-svg/2110.svg
new file mode 100644
index 0000000..7563b92
--- /dev/null
+++ b/test/ns-afl-svg/2110.svg
@@ -0,0 +1,76 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='red'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0d00'/>0<circle Nx='0' cy='0' r='1' fill='black'/>0<circle cx='0' cy='0' r='5' f='0'/>0<path d='M00 0A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='b0u0'/>">]><svg width="px" height="30px" on="0" xmlns="0000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="b0u0"/>
+0<g te="0">
+0<text x="0" y="0">0</text>0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0<g id="0" height="px" on="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="blue"/>
+0<g ze="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0
+0<g><text y="0">0</text>&o;
+0<svg io="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg ro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg resctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg spectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>0
+<svg tio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presetRatio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2111.svg b/test/ns-afl-svg/2111.svg
new file mode 100644
index 0000000..7449a0c
--- /dev/null
+++ b/test/ns-afl-svg/2111.svg
Binary files differ
diff --git a/test/ns-afl-svg/2112.svg b/test/ns-afl-svg/2112.svg
new file mode 100644
index 0000000..917140a
--- /dev/null
+++ b/test/ns-afl-svg/2112.svg
@@ -0,0 +1,16 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offsRt="0"/>
+0<stop stop-color="u0s00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,000d0000,0000000000000000000000000000000,00000000000,0000,0000,000000000000,000000000000000000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" Fy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" cy="," fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2113.svg b/test/ns-afl-svg/2113.svg
new file mode 100644
index 0000000..8acb860
--- /dev/null
+++ b/test/ns-afl-svg/2113.svg
@@ -0,0 +1,20 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:xlink="0" xmlns:sodipodi="000000000000000000000000000000000000000000" xmlns:inkscape="0000000000000000000000000000000000000000000" height="0" id="0" version="0" width="0" x="0" y="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:outputextension="0" inkscape:export-filename="0" inkscape:export-xdpi="0" inkscape:export-ydpi="0">
+0<sodipodi:namedview inkscape:window-height="0" inkscape:window-width="0" inkscape:pageshadow="0" inkscape:pageopacity="0" guidee="0" gridtolerance="0" objecttolerance="0" borderopacity="0" bordercolor="0" pagecolor="0" id="0" showgrid="0" inkscape:zoom="0" inkscape:cx="0" inkscape:cy="0" inkscape:window-x="0" inkscape:window-y="0" inkscape:current-layer="0"/>
+0<defs id="0">
+0<inkscape:perspective sodipodi:type="0" inkscape:vp_x="0" inkscape:vp_y="0" inkscape:vp_z="0" inkscape:persp0d-origin="0" id="0"/>
+0<linearGradient id="000000000000000000">
+0<stop id="0" offset="0" style="0"/>
+0<stop id="0" offset="0" s="0"/>
+0</linearGradient>
+0<radialGradient inkscape:collect="0"
+xlink:href="0" id="radialGradient0100" ts="0"
+gradientTransform="0"
+spreadMethod="0" cx="0"
+cy="0" fx="0"
+fy="0" r="0"/>
+0</defs>
+0<path d="M00,0C0.0000.0000000.00000,00000000 00000,0000000000C000000,000000000 00000000,0 000000,0000000000C000.0.00000000.000,0 000000,00C0000000,00000000 00000000,00..000,000000000z M0000000,000000000C000000000,00..000,00000000 000000,000000000000000000,000000000000000000"/>
+0<rect height="z" id="0" style="fill: url(#radialGradient0100)stroke: 000000 stroke-width: 1;"/>
+0<rect height="0" id="0" rx="0" ry="0" style="fill: url(#radialGradient0100)stroke: none;stroke-width: 100;" width="0" x="0" y="0"/>0</svg>
diff --git a/test/ns-afl-svg/2114.svg b/test/ns-afl-svg/2114.svg
new file mode 100644
index 0000000..786632e
--- /dev/null
+++ b/test/ns-afl-svg/2114.svg
@@ -0,0 +1,89 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a00fel000se00000"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,00ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="0"/>
+0<path d="00000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" y="0" l="0"/>
+0<circle r="4" cx="0" cy="0" i="0"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000"/>
+0<path d="M00,00c090-0,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" f="0"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000000000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-04-6-001000000000000000000000000000000000000,000000000000000000000000000000000000" c="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fl="0"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c000000000000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000000000000000000000000000000000000000000000000000000000000000000M000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,10-20,020,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-04-6-001000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2115.svg b/test/ns-afl-svg/2115.svg
new file mode 100644
index 0000000..bc32749
--- /dev/null
+++ b/test/ns-afl-svg/2115.svg
@@ -0,0 +1,146 @@
+<svg ns="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="py0ellow" rm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="q0s00s" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000,00,00000,00,000,0000,000,000,0000000,0000" fill="url(#py0ellow"/>0
+0
+
+0<circle r="0" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0000 000-0 00000000000000000,0000000000000000,0000000000C000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" filf="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c00000000000000000000000000000 0000-00 000-000 000-00-00-00000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cp="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-20,020-00l0-00c0-0,0-00,02-00000000000000,000,00,000,0000,0l0,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000,00000000,000,0000,00,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: urn00rad00" fill="url(#0000)"/>0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0/0000,000000000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" filf="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,00000000000000000000000000000 0000-00 000-000 000-00-00-00-000 000-0 0000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cp="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0
+
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-6-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000000000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<ci r="0" cx="0" cy="0" fill="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle v="0" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<ci r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0
+0<ci r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<ci r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<ci r="0" cx="0" cy="0" fill="0"/>0<ci r="0" y="0" fill="0"/>0
+0
+
+0<ci r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<ci r="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<ci r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<ci r="0" cx="0" id="0004" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<ci r="0" cx="0" cy="0" fill="0"/>0</svg>
diff --git a/test/ns-afl-svg/2116.svg b/test/ns-afl-svg/2116.svg
new file mode 100644
index 0000000..a996d32
--- /dev/null
+++ b/test/ns-afl-svg/2116.svg
@@ -0,0 +1,35 @@
+<?l?>
+<svg version="0" xmlns="0000000000">0<circle d="0" cx="0" cy="0" r="5" stroke="l0w00aic0"
+strokeAwidth="0"/>0
+0
+0
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g d="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0w00aic0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/2117.svg b/test/ns-afl-svg/2117.svg
new file mode 100644
index 0000000..f5c9445
--- /dev/null
+++ b/test/ns-afl-svg/2117.svg
@@ -0,0 +1,3 @@
+<svg height="m"><![CDATA[0]]>0
+<svg height="m"><![CDATA[0]]>0
+</svg>0</svg>
diff --git a/test/ns-afl-svg/2118.svg b/test/ns-afl-svg/2118.svg
new file mode 100644
index 0000000..710b47d
--- /dev/null
+++ b/test/ns-afl-svg/2118.svg
@@ -0,0 +1,4 @@
+<?l?><!DOCTYPE v0 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' he='0' fiWl='0' stroke='red'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='P' r='1' fill='y0l00wel000'/>0<c cx='0' cy='0' r='0' fidl='0'/>0<circle cx='0' fill='y0l00wel000'/>0<c cx='0' cy='0' Y='0' se='0' stroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY V "">]><svg width="pt" height="px" version="0" xmlns="000000000000000000">
+0<g transform="matrix(0,0,0,0,0,0">
+0&Smile;
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2119.svg b/test/ns-afl-svg/2119.svg
new file mode 100644
index 0000000..fb55dc5
--- /dev/null
+++ b/test/ns-afl-svg/2119.svg
@@ -0,0 +1,385 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" om="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="u0r00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000000000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#00000)"/>
+0<path d="0000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0-00000 00-00-00 00-00 000-0000000-00 000-000 000-00-00-00-000000000000000000000000000000000000,00000000000000000000000000000000000000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-00000000010000000000000000000000000000000000000 0000000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-00000000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-00000000010000000000000000000000000000000000000 0000000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000c000000c00000000000000000000000000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#0" fill="url(#00000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,00"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l000000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#0" fill="url(#00000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,02-00l04,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#00000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" _x="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#00000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" ll="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#00000" fill="url(#00000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" f="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000000"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" f="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-20,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2120.svg b/test/ns-afl-svg/2120.svg
new file mode 100644
index 0000000..9327f1e
--- /dev/null
+++ b/test/ns-afl-svg/2120.svg
@@ -0,0 +1,20 @@
+<?l?>
+<!DOCTYPE s PUBLIC "0" "0"[ <!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='f0c00anc000ed'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='b0i00'/>0<path d='M0 0A0 0 0 0 0 0 0' stroke='black' otroke-width='0'/>0</g>0">
+<!ENTITY t "">
+]>
+<svg width="px" height="30px" n="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" h="0" fill="none" stroke="blue"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g m="0">&Smile;</g>
+0
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&V;</g>0<g d="0" transform="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg o="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="0000000000000"><text y="0">0</text>&i;
+0<svg r="0" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2121.svg b/test/ns-afl-svg/2121.svg
new file mode 100644
index 0000000..6fb7d06
--- /dev/null
+++ b/test/ns-afl-svg/2121.svg
@@ -0,0 +1,10 @@
+<svg viewBox='0 0 6 2' xmlns='000' strokS='0'>
+0<svg vxx='0' xmlns='000' fill='000' s='0' strokS='0'>
+0<svg vxx='0' xmlns='000' fill='000' stroke='0'>
+0<path d='M0,0c0,0-0,0-0,0-' fill='s0y00tax000ns00000' stroke='black'/>0
+0<svg vs='0' fill='000' stroke='0'>
+0<path d='M0,0c00,0-0,0-0,00-00' fill='s0y00tax000ns00000' stroke='black'/>0</svg><path d='M00,00c00,0-0,0-0,00-' fill='s0y00tax000ns00000' stroke='black'/>0</svg><path d='M00,00c00,0-0,0-0,00-00' fill='s0y00tax000ns00000' stroke='black'/>
+0
+0<path d='M00,00c00,0-0,0-0,00-' fill='s0y00tax000ns00000' stroke='black'/>0
+0<svg vivxx='0' xmlns='h00' fill='000' stroke='0'>
+0<path d='M00,00c00,0-0,0-0,00-' fill='s0y00tax000ns00000' stroke='black'/>0</svg><path d='M00,00c00,0-0,0-0,00-00' fill='s0y00tax000ns00000' stroke='black'/>0</svg><path d='M00,00c00,0-0,0-0,00-' fill='s0y00tax000ns00000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/2122.svg b/test/ns-afl-svg/2122.svg
new file mode 100644
index 0000000..f16b758
--- /dev/null
+++ b/test/ns-afl-svg/2122.svg
@@ -0,0 +1,18 @@
+<vg xmlns="000000000000000000" Box="0">
+0<path d="0" ke="0" Box="0">
+0<path d="0" se="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" y="0" ize="0" fill="0" ext-ar="0"><a/>0
+0<path d="0" stroke="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="" y="0" nze="0" fill="0" ext-ar="0"><a/><![CDATA[0]]></text>0
+0<text x="0" y="0" font-size="0" fill="0" ext-ar="0"><a/><![CDATA[0]]]]></text>0
+0<text x="0" y="0" font-size="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><a/>0
+0<path d="0" stroke="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><a/><![CDATA[0]]></text>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><a/><![CDATA[0]]]]></text>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><a/><![CDATA[0]]
+0
diff --git a/test/ns-afl-svg/2123.svg b/test/ns-afl-svg/2123.svg
new file mode 100644
index 0000000..e317c97
--- /dev/null
+++ b/test/ns-afl-svg/2123.svg
@@ -0,0 +1,21 @@
+<svg xmlxmlns="0" viewBod="0">0<path d="M00,0h00l00,00v00l00000" stroke="#000" fill="o0a00e"/>0
+0<path d="0000000000000000000000000000" stroke="#000" fill="o0a00e"/>0
+0<path d="000000000000000000000000000000000000000000000" stroke="#000" fill="o0a00e"/>0
+0<path d="M00,0h00l00,00v00l000,0l000-0B0" stroke="#000" fill="o0a00e"/>0
+0<path d="00000000000" fill="#000"/>0
+0<path d="M00,0h00l00,00v00l00000" stroke="#000" fill="o0a00e"/>0
+0<path d="M00,0h00l00,00v00l00000" stroke="#000" fill="o0a00e"/>0
+0<path d="0000000000000000000000000000" stroke="#000" fill="o0a00e"/>0
+0<path d="000000000000000000000000000000000000000000000" stroke="#000" fill="o0a00e"/>0
+0<path d="M00,0h00l00,00v00l000,0l000-0B0" stroke="#000" fill="o0a00e"/>0
+0<path d="00000000000" fill="#000"/>0
+0<path d="M00,0h00l00,00v00l00000" stroke="#000" fill="o0a00e"/>0
+0<path d="0000000000000000000000000000" stroke="#000" fill="o0a00e"/>0
+0<path d="000000000000000000000000000000000000000000000" e="0" fill="o0a00e"/>0
+0<path d="M00,0h00l00,00v00l000,0l000-0B0" stroke="#000" fill="o0a00e"/>0
+0<path d="000,000,00000" fill="#000"/>0
+0<path d="000,0000000,000000000,000000000" stroke="#000" fill="o0a00e"/>0
+0<path d="000,000,00000,0000000,000000000,000000000000000000" stroke="#000" fill="o0a00e"/>0
+0<path d="M00,0h00l00,00v00l000,0l000-0B0" stroke="#000" fill="o0a00e"/>0
+0<path d="000,000,00000" fill="#000"/>0
+</svg>
diff --git a/test/ns-afl-svg/2124.svg b/test/ns-afl-svg/2124.svg
new file mode 100644
index 0000000..68714fa
--- /dev/null
+++ b/test/ns-afl-svg/2124.svg
@@ -0,0 +1,13 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style type="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="0" transforS="0"/>0<ciRcle x="0" cy="0" r="D" style="fill:000000000000000000000" transform="00,00"/>
+0
+0<circle cx="cm" cy="0" r="1" style="fill:g0e00oku000dt0000000" transform="translate(000,0)"/>0<circle cx="cm" cy="cm" r="1" style="fill:g0e00oku000dt0000000" transform="0" transforS="0"/>
+0<ciRcle x="0" cy="cm" r="1" style="fill:0stroke:0000000000000" transform=",00"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00oku000dt0000000" transform="translate(000,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2125.svg b/test/ns-afl-svg/2125.svg
new file mode 100644
index 0000000..1c54c31
--- /dev/null
+++ b/test/ns-afl-svg/2125.svg
@@ -0,0 +1,346 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a00fel000se00000"/>
+0
+0<stop stop-color="#000" offRet="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,0c0,0-0,0-00,0000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="0"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,00000,000000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000000000=00,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="000,0000000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-0000-0M0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-00-60.070,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="0000000000000"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fl="0"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fl="0"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" cx="0" cy="0" fl="0"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,020-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000e)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" y="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fl="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,00000000 000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" y="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" y="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,104-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#0000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,10-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,020-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Y="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#0000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" y="0" fl="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2126.svg b/test/ns-afl-svg/2126.svg
new file mode 100644
index 0000000..46fb2ed
--- /dev/null
+++ b/test/ns-afl-svg/2126.svg
@@ -0,0 +1,91 @@
+<svg lns="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="u0d00ien" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d=",000000,0000,000000000,0000000,000000,0000" fill="url(#0000)"/>
+0<path d="M00,00c0,000,00000000,0000,000000000000000000000000000,0c0,0,0000,000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,80c000-0,00-00,104,50v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" c="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" y="0" fill="#00:"/>0
+0<path d="000,0000000,0000000000000000000000000000000000,000000000000000,000,0000,000,0,00,0,00000000000000,000" fill="url(#000000"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,00000000,000000,0000" fill="url(#00000"/>
+0<pAth d="M00,00c0,0-0,00-00,000-0000000c000,0000,000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 0000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,80c000-8,00-00,124,50v1hh000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" y="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,00,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="000,00000000,00000,0000,0000,000000000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" y="0" fill="#000"/>
+0
+0<path d="M00,80c090-8,00-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r=" " cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,0000,0000,000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M70,80c0,73-230-20-0-24100.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00v0-00l0,0c0,0,0000,000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>
+0
+0
+0<path d="M00,80c090-8,00-20,120,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000000000,000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M70,80c0,73-230-20-0-24100.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/2127.svg b/test/ns-afl-svg/2127.svg
new file mode 100644
index 0000000..b90dc1c
--- /dev/null
+++ b/test/ns-afl-svg/2127.svg
@@ -0,0 +1,71 @@
+<?l?><!DOCTYPE v0 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0u00' stroke='000'/>0<g transform='0000000000' stroke='0000000'>0<circle cx='0' cy='0' r='1' fill='y0l00w'/>0<circle cx='0' cy='0' r='S' fill='000'/>0<circle cx='0' cy='0' r='1' fill='b0a00'/>0<path d='M00 0A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='n0n0' stroke='blue'/>0">]>
+<svg width="px" height="30px" ion="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g f="0">
+0<text x="0" y="0">0</text>
+0<g transform="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&Viewport2;</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&p;
+0<svg pio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" eighz="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&L;
+0<svg pro="0" vox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg Aso="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg psp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preservatio="0" BOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg presatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2128.svg b/test/ns-afl-svg/2128.svg
new file mode 100644
index 0000000..1681c98
--- /dev/null
+++ b/test/ns-afl-svg/2128.svg
@@ -0,0 +1,12 @@
+<svg xmlns="0000000000" nk="0" viewBox="0 0 1 2">
+0
+<radialGradient id="0" cx="0" cy="0" r="0" i0s="0"><op ot="0" s0c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,000A00000 000 00,000000000 00,00 00,000C00000000,000000000,00" id="0" fill="p0c00wle00"/>
+0
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000C000,00 00,00 00,000C000,00 00,00 00,00" id="0" fill="m0c00wle00"/>
+0<radialGradient id="0" cx="0" cy="0" r="0" s="0"><stop ot="0" o000000000000000000000000000000000000000000000000000000000000000c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,000A00000 000 00,000000000000,00 00,000000000000,000000000,00" id="0" fill="p0c00wle00"/>
+0
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000C000,00 00,00 00,00000000000000 0000" id="0" fill="m0c00wle00"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/2129.svg b/test/ns-afl-svg/2129.svg
new file mode 100644
index 0000000..bf79537
--- /dev/null
+++ b/test/ns-afl-svg/2129.svg
@@ -0,0 +1,90 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="q0s00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow"/>0
+0
+
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c00000,00000,000,0000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,000000-0-00000,000" f="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,00000000000000000000000000000000000000000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,00000000 000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,10-00,100,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" p="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,00,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-2,00l,10-00,100,00v0" fill="url(#py0ellow)"/>0
+0
+0<path d="000,00000000,000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00000000000,0000,00000000000,000000000000000000,0000M0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000000000000000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-2,00l-50-005c0,0,0-09000 14-00-00 00-00 000-50 0000-70 000-139 000-80-0000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000000000i0000000,0000000,000000000000000,0000000000000000000000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-04-6-000080000000000000,00000000000000000000,00,0000000000000,000000l000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2130.svg b/test/ns-afl-svg/2130.svg
new file mode 100644
index 0000000..5a6c5ac
--- /dev/null
+++ b/test/ns-afl-svg/2130.svg
@@ -0,0 +1,17 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 6">
+0<circle r="3" cx="0" cy="0"/>
+0<circle r="3" cx="0" cy="0"/>
+0<path d="M00,00s0-0,00,0s0,0,00,0s000000-000,0000000000000000000000000-0-00"/>
+0<path d="M00,00s0,0,0,0s00-0,0-00l0,0s00-0,0-0l0,0s0,0,0-0l00-0s000,0-0,00s0,0-0,0z"/>
+0<path d="M00,00s00-00,0-00l0-0s0,0,0,0l0-0l0,0s0,0,0,00l00,0l00-0s00,0-0,0l00,00z"/>
+0<g stroke="i0t0" stroke-width="3" fill="none" e-p="0">
+0<circle r="6" cx="0" cy="0"/>
+0<circle r="6" cx="0" cy="0"/>
+0<path d="M0000,00,000"/>
+0<g stroke="i0t0" stroke-width="0" fill="000000000000000000000"/>
+0<path d="M000,0c0,0,0,0-00,0c00-0-0-0-0,0"/>
+0<path d="M00,00c00,0-0,0-0,00c0,0,0,0-00,0"/>
+0<path d="M000,00c0-0,00-0,00,0c0,0,00,0,00,0"/>
+0<path d="M000,00c0,0,00,0,00,00c0,0,0,0,00,0s0-0,0,0"/>
+0<path d="M00,00s0,0,0,0s00,00,00,00"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2131.svg b/test/ns-afl-svg/2131.svg
new file mode 100644
index 0000000..4dab15d
--- /dev/null
+++ b/test/ns-afl-svg/2131.svg
@@ -0,0 +1,172 @@
+<svg n="0" fill="url(#py0ellow)" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="#000" offset=","/>
+0
+0
+0
+0<h d="0" fill="0"/>0
+0<ce r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" id="0000" s="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<Ath d="0" fill="0"/>0
+0<le r="0" cx="0" cy="0" fill="0"/>
+0
+0<path d="0" fill="0"/>0
+0<le r="0" cx="0" cy="0" fill="0"/>
+0<ci r="0" cx="0" id="0000" e="0" fill="0"/>0
+0
+0<path d="0" fill="0"/>0
+0<ce r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" of="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000" fill="url(#000e)"/>
+0<pAth d="M0-0-00-0-70-0-0-00-38-00000-136-000-80-0 20-0 030 0 270 0000 7 00 00 00
+0 00 0 00 00 00 0 00 0 00 00 00 060 000 204 000 009-0000 0 00 0 0000000000-00" se="0" fill="l0n0"/>0
+0<path d="M30,0h30l28,00v00l000,00h-30 90-50 T000-00000 50-007 080 000 400 00
+000h00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" se="0" fill="l0n0"/>0
+0<path d="M30,0h38l28,00v00l008,00h030 90-50 T20
+000000 00-007 080 000 400 00
+000h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M30,0h30l20,00v00l000,00h-00 90-50 100
+-00 0000 90-200 06-009-07-80-004-60-001 09-200 360-80T01020-000
+800 0-00 00-100 00-200 0-150 0-200-0-500-0-00-0-01-0-000-00-08-0-09-0000-000-000-80-0 00-7 030 0 200 0;000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M30,0h30l20,00v00l008,00h-08 90-50 100
+-03 70 0 08-200 06-300-70-80-100-60-210 09-200 360-80T01020-000
+800 0-00 00-100 00-200 0-100 0-030-0-500-0-00-0-01-0-000-00-08-0-90-0000-000-000-80-0 00-0 005 0 200 0000 0 00 10 00
+0 00 8 00 00 00 2 00 0 00 04 00 000 000 060 000 200 000 090-008000?000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" se="0" fill="l0n0"/>0
+0<path d="M30,0h30l28,00v00l-28,00h-30 90-50 T01
+000000 04-007 080 000 410 00
+000h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M30,0h30l20,00v00l008,00h-08 90-50 100
+-03 70 0 08-200 06-300-70-80-100-60-210 09-200 360-80T01020-000
+800 0-00 00-100 00-200 0-100 0-030-0-500-0-00-0-01-0-000-00-08-0-90-0000-000-000-80-0 00-7 005 0 200 0000 0 00000 05
+0 00 0 06 00 00 0 04 0 00 00l000" stroke="#000" fill="v0n00lns00"/>0
+
+0<path d="M00,0h40l29,00v0h-40-29,29h-40l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h08l" fill="v0n00lns00"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h38h38l" fill="v0n00lns00"/>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns000ml0000"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+0
+0<path d="M00,0h40l29,00v0h-40-29,29h-40l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h-40l-09-00-000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h08l" fill="v0n00lns00"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h38l28,00v00l-200,0h38l" fill="v0n00lns00"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+
+0<path d="M00,0h40l29,00v0h-40-29,29h-40l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h08l" fill="v0n00lns00"/>0
+0<path d="M00,0h08l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h38h38l" fill="v0n00lns00"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-000000,0-00,00-0000000000000000000000l0-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00..000000.00000000.0000000.000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-000000000000000 0l00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#r0000" fill="url(#000e)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx=")"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ac000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000c000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#000e)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000w)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,04-05l0-00l9,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,104-00l0-00c0-0,0-00,10-00l04,0c0,0,00-0,04-05l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/2132.svg b/test/ns-afl-svg/2132.svg
new file mode 100644
index 0000000..1fe638e
--- /dev/null
+++ b/test/ns-afl-svg/2132.svg
@@ -0,0 +1,91 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(00)">
+0<stop stop-color="0000000" offset="0"/>
+0<stop stop-color="b0a0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>0</linearGradient>0</defs>0
+0<path d="0000000000000000000000000000000000000000000000000000,000,00000,000000,0000,0000,0000,0000,00000,0000,00000000000000000,0000,0000000000,000,0,0000000000000000000000000000,000000,000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" c="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,00,0,00,0000,0000,00000000"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" fill="url(#00000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l000,L0,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000-0-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000-0-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000000000000)"/>
+0<path d="000,00000000,00000,000,0000" filh="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,0000T0000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2133.svg b/test/ns-afl-svg/2133.svg
new file mode 100644
index 0000000..30025ed
--- /dev/null
+++ b/test/ns-afl-svg/2133.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="n0i00xud000e"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2134.svg b/test/ns-afl-svg/2134.svg
new file mode 100644
index 0000000..c98ba78
--- /dev/null
+++ b/test/ns-afl-svg/2134.svg
@@ -0,0 +1,26 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="00" xmlns:inkscape="0t" width="0"
+bt="0" i="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:b0b00;fill:none" id="0" w="0" height="0" x="0" y="0"/>
+0<rect style="stroke:b0b00;fill:none" id="0"
+h="0" height="0" x="0" y="0"/>0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2135.svg b/test/ns-afl-svg/2135.svg
new file mode 100644
index 0000000..12f1a60
--- /dev/null
+++ b/test/ns-afl-svg/2135.svg
@@ -0,0 +1,116 @@
+<svg xmlns="00" qiewBox="0">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="m0s00tra000or000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000,00000000000000,0000,000000000000000000,0000000,000000,0000" fill="url(#0000)"/>
+0<path d="M00,00c0,0-0,00-0,00-000000C000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,80c007-0,00-00,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="0" cx="0" cy="0" fill="#000"/>
+0<path d="000,0000000,0000000000000000000000000000000000,000000000000000,000,0000,000,0,00,0,00000000000000,000" fill="url(#0000)"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,00000000,000000,0000" fill="url(#0000)"/>
+0<pAth d="000,0000,000,00000,000000000000000,0000,000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 0000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,80c007-0,00-00,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="0" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,00,000,0000,0l0,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="00000000000,00000000,00000,0000,0000,000000000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="0" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M04,80c007-0,00-00,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" x="0" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M70,80c097-8,00,0,10,20c0,00-0,00-10,20l-35,0l0,3l23,0l0,9l0,0z M040,00v1" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0-0,00-00,000-0000000c000,0000,000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0-00000 00-00-00 00-00 000-0,00c0,0000-0,00-00,000-00000000000,00000,000M0000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M74,87c0,73-030-20-6-24108.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0000000000,00,0,0000,000000000000,000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circlk r="0" cx="0" cy="0" fl="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" yx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0" style="0" fill="url(#000000)"/>
+0<path d="00,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2136.svg b/test/ns-afl-svg/2136.svg
new file mode 100644
index 0000000..f76faca
--- /dev/null
+++ b/test/ns-afl-svg/2136.svg
@@ -0,0 +1,374 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>0<stop stop-color="u0s00v" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000" lZ="0"/>
+0<path d="M00,00c0,0-8,000030-7,6-000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,00000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="00000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#00)"/>0
+0<path d="M74,87c090-0,00-20,124-10l0-20c00000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="z" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000000000000" fill="u0e0"/>
+0<path d="M74,87c0,70-230-20-0-24108.0000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,000000c0000000000000000000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000" fill="url(#0000)"/>
+0<path d="M70,80c000-0,00-00,120,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,000,0,0000,000000000000,000,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,00"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00)"/>
+0<path d="M70,80c000-0,00-00,120,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M70,80c000-0,00-00,120,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M70,80c090-0,00-20,100-10l0-20c0-0,0-12,10-02l20,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#0000)"/>
+0<path d="M70,80c000-0,00-00,120,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fl="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,00000000 000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l000000,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M70,80c090-0,00-20,120-00l0-00c0-0,0-00,10-10l04,0c0,0,00-0,14-15l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,00-00,120,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-20,000-03l0-02c0-0,0-00,-00100.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,00-00,120,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M70,80c090-0,00-20,120-10l0-20c0-0,0-02,10-02l24,0c0,0,00-0,14-15l0-10l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c000-0,00-00,120,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2137.svg b/test/ns-afl-svg/2137.svg
new file mode 100644
index 0000000..75d8051
--- /dev/null
+++ b/test/ns-afl-svg/2137.svg
@@ -0,0 +1,75 @@
+<svg xmlns="00" vmewBox="0">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(0)">
+0<stop stop-color="#000" offset="-6"/>
+0<stop stop-color="o0a00to" offset=","/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop p-c="0" t="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" l="0"/>
+0<path d="M0,00c0000-00-0-000 000000,000.0000.0000000000000000" c="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<path d="0000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,0000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0-00000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-00000000000000000,000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<cirIle r="0" cx="0" y="0" i="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,000000000000,000,0000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="u00000000000000000000"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00,V,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000,0000000000000000,00000000000"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="z" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-00-000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#0000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="000"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2138.svg b/test/ns-afl-svg/2138.svg
new file mode 100644
index 0000000..26abf1e
--- /dev/null
+++ b/test/ns-afl-svg/2138.svg
@@ -0,0 +1,11 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h0z" stroke="#000" fill="d0v0"/>0
+0<path d="M0,0h0l0,0l0,0l0-0v0O" fill="#000"/>0
+0
+0<path d="M0,0h0l0,0v0l0,0h0v000z" stroke="#000" fill="d0v0"/>0
+0<path d="M0,0h00l00,00v00l000,00h0l000-0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="d0v0"/>0
+0<path d="M0,0h0l0,00v00v0z" fill="#000"/>0
+0
+0<path d="M0,0h0l0,0v0l0,"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/2139.svg b/test/ns-afl-svg/2139.svg
new file mode 100644
index 0000000..017fff2
--- /dev/null
+++ b/test/ns-afl-svg/2139.svg
@@ -0,0 +1,2 @@
+<svg ox='0' xmlns='000' drofill='0' stroke='0'>
+0<path d='M00,00c000,000,00000' fill='c0l00tax000ts00000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/2140.svg b/test/ns-afl-svg/2140.svg
new file mode 100644
index 0000000..a96e487
--- /dev/null
+++ b/test/ns-afl-svg/2140.svg
@@ -0,0 +1,26 @@
+<svg xmlns="000000000000000000" viewBod="0">0<path d="M00,0h00l00,00v00l" stroke="#000" fill="o0a00d"/>0
+0<path d="00000000" fill="#000"/>
+0<path d="M0,00l00-0l00,0c000-00-00-00-00-00l00,0l0000,0c0,0,0,00,0,00-000000" stroke="#000" fill="o0a00d"/>0
+0<path d="0000000000" t="0" fill="o0a00d"/>0
+0<path d="00000000" fill="#000"/>
+0<path d="M0,000l00,0c000-00-00-00-00-00l00,0l000000c0000" stroke="#000" fill="o0a00d"/>0
+0
+0<path d="M00,0h00l00,00v00l" stroke="#000" fill="o0a00d"/>0<path d="00000000" fill="#000"/>
+0<path d="M0,00l00-0l00,0c000-00-00-00-00-00l00,0l0000,0c0,0,0,00,0,00-000000" stroke="#000" fill="o0a00d"/>0
+0<path d="0000000000" stroke="#000" fill="o0a00d"/>0
+0<path d="00000000" fill="#000"/>
+0<path d="M0,00l00-0l00,0c000-00-00-00-00-00l00,0h00l00,00v00l" stroke="#000" fill="o0a00d"/>0
+0<path d="00000000" fill="#000"/>
+0<path d="M0,00l00-0l00,0c000-00-00-00-00-00l00,0l000000c0000" stroke="#000" fill="o0a00d"/>0
+0<path d="0000000000" t="0" fill="o0a00d"/>0
+0<path d="00000000" fill="#000"/>
+0<path d="M0,00l00-0l00,0c000-00-00-00-00-00l00,0l0000,0c0,0,0,00,0,00-000000" stroke="#000" fill="o0a00d"/>0
+0
+0<path d="M00,0h00l00,00v00l" stroke="#000" fill="o0a00d"/>0
+0<path d="M00,00s0" fill="#000"/>
+0<path d="M0,00l00-0l00,0c000-00-00-00-00-00l00,0l0,00-0v0000" stroke="#000" fill="o0a00d"/>0
+0<path d="M00,0000,0" stroke="#000" fill="o0a00d"/>0
+0<path d="M00,00s0" fill="#000"/>
+0<path d="M0,00l00-0l00,0c000-00-00-00-00-00l00,0l0000,0c0,0,0,00,0,00-000000" stroke="#000" fill="o0a00d"/>0
+0<path d="00000000000000000000000" stroke="#000" fill="o0a00d"/>0
+0<path d="M00,00l0" fill="000000000000000000000" stroke="#000" l="0"/>0<path d="M00,00l0" fill="000000000000000000000" stroke="#000" l="0"/>0</svg>
diff --git a/test/ns-afl-svg/2141.svg b/test/ns-afl-svg/2141.svg
new file mode 100644
index 0000000..7aca51d
--- /dev/null
+++ b/test/ns-afl-svg/2141.svg
@@ -0,0 +1,76 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0a00' stroke='r0d00tyl0'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='1' fill='b0a00'/>0<circle cx='0' cy='0' r='5' f='0'/>0<path d='M00 0A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" on="0" xmlns="0000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="blue"/>
+0<g ze="0">0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0<g id="0" height="px" on="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="blue"/>
+0<g te="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0
+0<g><text y="0">0</text>&o;
+0<svg io="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg ro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg resctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg spectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>0
+<svg pro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presetRatio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2142.svg b/test/ns-afl-svg/2142.svg
new file mode 100644
index 0000000..71609ec
--- /dev/null
+++ b/test/ns-afl-svg/2142.svg
@@ -0,0 +1,13 @@
+<?l?>
+<!--0-->
+<sv xmlns:c="0" xmlns="000000000000000000" xmlns:k="0" xmlns:sodipodi="00" xmlns:inkscape="000"
+th="0"
+ht="0" id="0" sodipodi:on="0" inkscape:vn="0" sodipodi:docname="0" inkscape:output_À00000000="0">
+0<defs>
+0<fr inkscape:collect="0" id="0">
+0<ianBlu inkscape:output_À00000000="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2143.svg b/test/ns-afl-svg/2143.svg
new file mode 100644
index 0000000..4d6c5e2
--- /dev/null
+++ b/test/ns-afl-svg/2143.svg
@@ -0,0 +1,10 @@
+<svg xmlns="000000000000000000" viewBox="0 0 0 0">
+0
+0<path d="M00,0,00" stroke="#000" fill="d&lt;o00ura000or"/>0
+0
+0&lt;0
+0<path d="M00,000,00" stroke="#000" fill="d&lt;o00ura000or"/>0
+0<path d="000" fill="#000"/>0
+0<text x="0" y="0" font-size="0" fl="0" text-ar="0"><![CDATA[0]]></text>
+0<path d="000" fill="#00"/>0
+0<text x="0" y="0" font-size="0" fl="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2144.svg b/test/ns-afl-svg/2144.svg
new file mode 100644
index 0000000..e1d0cc2
--- /dev/null
+++ b/test/ns-afl-svg/2144.svg
@@ -0,0 +1,78 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='w0f00lba000dt0' stroke='r0d'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='5' fill='b0a00'/>0<circle cx='0' cy='0' r='1' f='0'/>0<path d='M0 00A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" on="0" xmlns="0000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g ze="0">0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0<g id="0" height="px" on="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g ze="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&r;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0
+0<g><text y="0">0</text>0
+<svg io="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg ro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg resctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg spectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t0;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg pro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&t0;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presetRatio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&t0;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2145.svg b/test/ns-afl-svg/2145.svg
new file mode 100644
index 0000000..25657e2
--- /dev/null
+++ b/test/ns-afl-svg/2145.svg
@@ -0,0 +1,9 @@
+<svg xmlns="000000000000000000" viewBox="0">0<path d="M0 00000c00-00 00-0000 000000,000A00" i="0" style="stroke: rgb(00000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rg0000000000000000000"/>0<path d="M00,00c000-00-000-000,0,00v000l0-0h000l00,0h00v0,00-00q0000,000,0-0-00" ill="0"/>0<path d="M00,00q0-00,00-0000-"/>0<path d="M00,00c000-00-000-000,0,00v000l0-0h000l00,0h00v0,00-00q0000,000,0-0-00" fill="#000"/>0<path d="M00,00q0-00,00-00q0000,00-00000000000-0q0000000000000000000000000000" fill="#000"/>0<path d="M00,00q0-00,00-00q0-00,00-00q000-00-0,000w00000000000000000000000000"/>0<path d="M00,00c000-00-000-000,0,00v000l0-0h000l00,0h00v0,00-00q0000,000,0-0-00" fill="#000"/>0<path d="M00,00q0-00,00-00q0-00,00-00q0-00,00-00q0-0,0-0q0-0,0-0q00000000,00-00,00q0000000000" fill="#000"/>0<path d="M00,00q0-00,00-00q0-00,00-00q0-00,00-00-0-0-00-00q00-0-0-0q0-0,0-0q0-0,0-0q0,0,0,0q0,0,00,00z" fill="green" trorm="0"/>0
+<path d="M00,00c000000-00,00-0,00-00,0000000000000" fill="#000"/>0<path d="M00,00q0-00,00-00q0-00,00-00q0-00,00-00-0-0-00-00q00-0-0-0q0-0,0-0q0-0,0-0q0,0,0,0q0,0,00,00z" fill="green" trorm="0"/>0
+<path d="M00,00c000-00-000-000,0,00v000l0-0h000l00,0h00v0,00-00q0000,000,0-0-00" fill="#000"/>0<path d="M000-00q0-0,0-0q0-0,0-0q0-0,00-0q0,0,0,0q0,0-0,0q000,00-00,00q00,0-0-00-" fill="#000"/>0<path d="M00,00q0-00,00-00q000-0-00-00q0000000000000000000000000000000000000000000" fill="green" transform="translate(0"/>0
+<path d="M00,00c000-00-000-000,0,00v000l0-0h000l00,0h000-,000000000000000000000" fill="#000"/>0<path d="M00,00q0-00,00-00q0-00,00-00q0-00,00-00q0-0,0-0q0-0,0-0q0-0,00-0q0,0,0,0q0,0-0,0q000,00-00,00q00,0-0-00-" fill="#000"/>0<path d="M00,00q0-00,00-00q0-00,00-00q0-00,00-00-0-000,00-00q0-00,00-0000q00,0-0-00-" fill="#000"/>0<path d="M00,00q0-00,00-00q0-00,00-00q0000,00-00-000000000000000000000000000000000c00000000000000"/>0<path d="M00,00c000-00-000-000,0,00v000l0-0h000l00,0h00v0,00-00q0000,000,0-0-00" fill="#000"/>0<path d="M00,00q0-00,00-00q0-00,00-00q0-00,00-00q0-0,0-0q0-0,0-0q00000000,00-00,00q0000000000" fill="#000"/>0<path d="M00,00q0-00,00-00q0-00,00-00q0-00,00-00-0-0-00-00q00-0-0-0q0-0,0-0q0-0,0-0q0,0,0,0q0,0,00,00z" fill="green" transform="translate(0,M"/>0
+<path d="M00,00c000-00-000-000,0,00v000l0-0h000l00,0h00v0,00-00q0000,000,0-0-00" fill="#000"/>0<path d="M00,00q0-00,00-00q0-00,00-00q0-00,00-00q0-0,0-0q0-0,0-0q0-0,00-0q00000,00000,0,000000000000000000000000000000q000000000000000" fill="#000"/>0<path d="M000-00q0-0,0-0q0-0,0-0q0-0,00-0q0,0,0,0q0,0-0,0q000,00-00,00q00,0-0-00-" fill="#000"/>0<path d="M00,00q0-00,00-00q000-0-00-00q0000000000000000000000000000000000000000000" fill="green" transform="translate(0"/>0
+<path d="M00,00c000-00-000-000,0,00v000l0-0h000l00,0h000-,000000000000000000000" fill="#000"/>0<path d="M00,00q0-00,00-00q0-00,00-00q0-00,00-00q0-0,0-0q0-0,0-0q0-0,00-0q0,0,0,0q0,0-0,0q000,00-00,00q00,0-0-00-" fill="#000"/>0<path d="M00,00q0-00,00-00q0-00,00-00q0-00,00-00-0-000,00-00q0-00,00-0000q00,0-0-00-" fill="#000"/>0<path d="M00,00q0-00,00-00q0-00,00-00q0000,00-00-00000000000000000000000000000000000000000000000000000000000000000c00000000000000"/>0<path d="M00,00c000-00-000-000,0,00v000l0-0h000l00,0h00v0,00-00q0000,000,0-0-00" fill="#000"/>0<path d="M00,00q0-00,00-00q0-00,00-00q0-00,00-00q0-0,0-0q0-0,0-0q00000000,00-00,00q0000000000" fill="#000"/>0<path d="M00,00q0-00,00-00q0-00,00-00q0-00,00-00-0-0-00-00q00-0-0-0q0-0,0-0q0-0,0-0q0,0,0,0q0,0,00,00z" fill="green" transform="translate(0,M"/>0
+<path d="M00,00c000-00-000-000,0,00v000l0-0h000l00,0h00v0,00-00q0000,000,0-0-00" fill="#000"/>0<path d="M00,00q0-00,00-00q0-00,00-00q0-00,00-00q0-0,0-0q0-0,0-0q0-0,00-0q0,0,0,0q0,0-0,0q000,00-00,00q00,0-0-00-" fill="#000"/>0<path d="M00,00q0-00,00-00q000-0-00-00q0000000000000000000000000000000000000000000" fill="green" transform="translate(0,M"/>0
+<path d="M00,00c000-00-000-000,0,00v000l0-0h000l00,0h000-,000000000000000000000" fill="#000"/>0<path d="M00,00q0-00,00-00q0-00,00-00q0-00,00-00q0-0,0-0q0-0,0-0q0-0,00-0q0,0,0,0q0,0-0,0q000,00-00,00q00,0-0-00-" fill="#000"/>0<path d="M00,00q0-00,00-00q0-00,00-00q0000000-00-0-0-00000q000000000000,0000000,00000,0,0,000,0,00,000" fill="green" transform="translate(0,M"/>0</svg>
diff --git a/test/ns-afl-svg/2146.svg b/test/ns-afl-svg/2146.svg
new file mode 100644
index 0000000..06357a8
--- /dev/null
+++ b/test/ns-afl-svg/2146.svg
@@ -0,0 +1,74 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="0000000000" xmlns:k="0" xmlns:sodipodi="00" xmlns:inkscape="0" width="0" height="0" id="0" sodipodi:ion="0" inkscape:von="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs id="0">
+0<linearGradient id="linearGradient0090" gradientUnits="0" x2="0" y2="0">
+0<stop style="0" offset="0" d="0"/>
+0<stop style="stop-color:"/>0
+0<stop style="0" offset="0"
+d="0"/>0
+0
+0
+0
+0<stop style="0" offset="0" d="0"/>
+0<stop style="stop-color:"/>0
+0<stop style="0" offset="0"
+d="0"/>
+0<stop style="stop-color:"/>0
+0
+0
+0
+0<stop style="stop-color:"/>0
+0
+0
+0
+0
+0
+0<stop style="stop-color:00000"/>
+0<stop style="stop-color:0000000000000000)000000000000000000000000000000000" offset="0"
+d="0"/>
+0<stop style="stop-color:000000)0000000"/>
+0
+0
+0<stop style="0" offset="0" d="0"/>
+0<stop style="stop-color:"/>0
+0<stop style="0" offset="0"
+d="0"/>0
+0
+0
+0
+0<stop style="0" offset="0" d="0"/>
+0<stop style="stop-color:"/>0
+0<stop style="0" offset="0"
+d="0"/>
+0<stop style="stop-color:"/>0
+0
+0
+0
+0<stop style="stop-color:"/>0
+0
+0
+0
+0
+0
+0<stop style="stop-color:000000)0000000"/>
+0<stop style="stop-color:00000000000000000000000000000000000000000000000000" offset="0"
+d="0"/>
+0<stop style="stop-color:000000)0000000"/>
+0<stop style="stop-color:000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)0000000" offset="0" d="0"/>
+0<stop style="0" offset="0"
+d="0"/>
+0<stop style="stop-color:00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)0000000000;" offset="0" d="0"/>
+0<stop style="stop-color:000000)0000000"/>
+0<stop style="stop-color:00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;" offset="0"
+d="0"/>
+0<stop style="stop-color:00000000000000000000000000000000000000000000000000" offset="0" id="0"/>0</linearGradient>
+0</defs>
+0<g inkscape:label="0" inkscape:groupmode="0" id="0">
+0<rect style="fill:url(#linearGradient0090);"
+d="0" width="0" height="0" x="0" y="0"/>
+0 0
+0
+0<rect style="fill:url(#linearGradient0090);"
+d="0" width="0" height="0" x="0" y="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2147.svg b/test/ns-afl-svg/2147.svg
new file mode 100644
index 0000000..0a5fdb5
--- /dev/null
+++ b/test/ns-afl-svg/2147.svg
Binary files differ
diff --git a/test/ns-afl-svg/2148.svg b/test/ns-afl-svg/2148.svg
new file mode 100644
index 0000000..0a3d43c
--- /dev/null
+++ b/test/ns-afl-svg/2148.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:i0c00dei000no00" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2149.svg b/test/ns-afl-svg/2149.svg
new file mode 100644
index 0000000..c14b0ab
--- /dev/null
+++ b/test/ns-afl-svg/2149.svg
@@ -0,0 +1,26 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="000000/0000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="0" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+eit="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill: d0a00bac000;"
+p-path="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="fill: d0a00bac000;" ip-path="0" id="0" ht="0" x="0" y="0"/>0
+0<svg x="0" y="0" width=")" id="0">
+0<rect style="fill: d0a00bac000;" ip-path="0" id="0" width="0"
+dth="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2150.svg b/test/ns-afl-svg/2150.svg
new file mode 100644
index 0000000..2063f73
--- /dev/null
+++ b/test/ns-afl-svg/2150.svg
@@ -0,0 +1,9 @@
+<svg xmlns="000000">0<path d="M00,0h00,0h00l00,00v00l00-00z" stroke="#000" fill="m&lt;o00imc000ge"/>0
+0<path d="0000000000000000000000" stroke="#000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="M00,0h0l00,00v00l000,00l000-00z" stroke="#000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="M00,0h00l00,00v0$0000" stroke="#000" fill="0000000000000"/>0
+0<path d="M00,000l0000000-00l000-00v000z" fill="#000"/>0
+0
+0<text x="0" y="0" t-e="0" ll="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2151.svg b/test/ns-afl-svg/2151.svg
new file mode 100644
index 0000000..23f4b95
--- /dev/null
+++ b/test/ns-afl-svg/2151.svg
@@ -0,0 +1,50 @@
+<svg olns="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="py0ellow" grorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="q0s00s" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000,0000000000000000000000000000000000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,00000000,000000,0000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,000,00000,00000000000 000-00000000000000000000000000000000000,000000000 000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000 00000000,0000000000000000000,000000,00000000000000,000" filf="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c00000000000000000000000000000000000000000000000000000000000000 000-0 0000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" p="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,00-20,000-00l0-22c0-7,0-10,02-00000000000000,000,00,000,0000,0l0,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000,00000000,000,0000,00,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: urn00rad00" fill="url(#0000)"/>0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0/0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" filf="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,00000000000000000000000000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" p="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0
+
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle k="0" cx="0" cy="0" fill="#000"/>
+0<circle r="0" c="0" id="0" style="0" fill="0"/>0
+0
+0<path d="0" id="0004" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0</svg>
diff --git a/test/ns-afl-svg/2152.svg b/test/ns-afl-svg/2152.svg
new file mode 100644
index 0000000..04f658b
--- /dev/null
+++ b/test/ns-afl-svg/2152.svg
@@ -0,0 +1,14 @@
+<svg xmlns="00" w="0">0<circle fill="#000" r="5" cx="0" cy="0"/>
+0<pKKKKKKKKKkKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" e="0" l="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKbKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" ll="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKCKKKKKKKKKKKKKKTKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fl="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" ll="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKMKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLLLLLLLLLLLLLLLt ty="0" rx="0"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/2153.svg b/test/ns-afl-svg/2153.svg
new file mode 100644
index 0000000..a4ef44f
--- /dev/null
+++ b/test/ns-afl-svg/2153.svg
@@ -0,0 +1,40 @@
+<svg s="0" viewBox="0 0 1 1">0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="0"/>
+0<stop r="0" offset="0"/>
+0
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000" fill="url(#000000"/>
+0<path d="M00,00c090-0,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#00000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#0000000000" fill="url(#00000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#0000000000" fsll="0"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#0000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#0000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#0000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0000000000000000000000000000000000000000000000000000000000000000000,0000000000C000000000,0000000000000000,0000000000000000,0000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00000"/>
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,00,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#0000000000" fill="url(#00000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#0000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,000,00000000,0c0,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2154.svg b/test/ns-afl-svg/2154.svg
new file mode 100644
index 0000000..37067c6
--- /dev/null
+++ b/test/ns-afl-svg/2154.svg
@@ -0,0 +1,12 @@
+<svg width="0" height="0" id="0" xmlns:xlink="00" viewBox="0 0 0 0">
+0<a xlink:href="0">
+0<th d="0" è0000000="0" l=""/>
+0<ellipse stroke="black" fill="white" cx="0" cy="0" rx="2" ry="5"/>
+0<circle cx="0" cy="0" r="5" stroke="black" fill="red"/>
+0<circle cx="0" cy="0" r="1" fill="white"/>
+0<path d="M0,0C0,0,0,0,0,0Q0,0,0,0Z" stroke="red" stroke-width="2" troke-linejoin="0"/>
+0<circle cx="0" cy="0" r="2"/>
+0<circle cx="0" cy="0" r="2"/>
+0<path d="M0,0q0-0,0,0q0-0-0,0" stroke="black" fill="none"/>
+0<path d="M0,0q0-0,0,0q0-0-0,0" stroke="black" fill="none"/>
+0</a>0</svg>
diff --git a/test/ns-afl-svg/2155.svg b/test/ns-afl-svg/2155.svg
new file mode 100644
index 0000000..1e63491
--- /dev/null
+++ b/test/ns-afl-svg/2155.svg
@@ -0,0 +1,21 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0
+0<circle cx="cm" cy="c" r="1" style="fill:g0e00ack;stroke-width:001cm" transform="0,0"/>
+0
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0
+0<circle cx="cm" cy="c" r="1" style="fill:g0e00ack;stroke-width:001cm" transform="0,0"/>
+0<circle cx="cm" cy="c" r="1" style="fill:g0e00ack;stroke-width:001cm" transform="translate(000,0)"/>
+0</g>0</svg>
+0<circle cx="cm" cy="c" r="1" style="fill:g0e00ack;stroke-width:001cm" transform="translate(000,000)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2156.svg b/test/ns-afl-svg/2156.svg
new file mode 100644
index 0000000..208ec82
--- /dev/null
+++ b/test/ns-afl-svg/2156.svg
@@ -0,0 +1,63 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gra_ieorm="0">
+0<stop stop-color="#000" t="0"/>
+0<stop stop-color="000"/>
+0<stop st="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0" gra_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="000000" offset="0"/>
+0
+0
+0<stop stop-color="url(#0000)" fill="0"/>
+0<path d="0" of="0"/>
+0
+0<stop or="0" of="0"/>
+0<stop sr="0" of="0"/>
+0
+0<stop stopor="0" of="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0<stop or="0" et="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient></defs>0
+0<path d="0"/>0
+0
+0<stop stop-color="#000" ofhset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000,0,0000,0000,00000,000000,000,0000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,0000000X,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/2157.svg b/test/ns-afl-svg/2157.svg
new file mode 100644
index 0000000..1ce97a3
--- /dev/null
+++ b/test/ns-afl-svg/2157.svg
@@ -0,0 +1,387 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="l0o00"/>0
+0<e r="0" cx="0" y="0" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,00,00c0,0-0,00-00,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000"/>0
+0<circle r="4" cx="0"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" y="0" fill="0000"/>
+0<circle r="4" cx="0" y="0" fill="0000"/>
+0<path d="000,00000000,000,0000000000000000000,00000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#00000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u0y00llo00"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" y="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l000 0000-00 000-000 00000 000000,00000000000000000=00,0000000000000000,000000000000000,0000000000" id="0000" style="fill: u00000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="000,0000,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-0%0000000,000,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-6-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0100)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circlk r="0" cx="0" cy="0" fill="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-00c0-0,0-00,02-00l20,0c0,0,00-0,00-10l0-0000,0c0,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,020-00l0-00c0-0,0-00,10-00l04,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c00000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000-00-00 00-00 0000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,10-00,124-00l0-00c0-0,0-00,02-00l20,0c0,0,00-0,00-10l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,10-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,10-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,000000000000000c000,0000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-00c0-0,0-00,02-00l20,0c0,0,00-0,00-10l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2158.svg b/test/ns-afl-svg/2158.svg
new file mode 100644
index 0000000..bb5e3f6
--- /dev/null
+++ b/test/ns-afl-svg/2158.svg
@@ -0,0 +1,99 @@
+<svg olns="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" rorm="0">
+0<stop stop-color="#000" offset=".6"/>0<stop stop-color="#000" offset="1"/>
+0
+0
+0<stop stop-color="q0q00t" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="0,00000000,0000,0000,0000,0000,00,00000000000,0000,00000000000,0000,0000,000000000000000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="0" cx="0" cy="0" fill="0000"/>0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="0" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c00000,00000,000000"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c0000,000000000000000000000000C000000000,0000000000000000,000000000000000000000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00v0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="s" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2159.svg b/test/ns-afl-svg/2159.svg
new file mode 100644
index 0000000..a293b5c
--- /dev/null
+++ b/test/ns-afl-svg/2159.svg
@@ -0,0 +1,37 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0
+0<stop stop-color="q0c00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000,0000" fill="url(#000000"/>
+0<pAth d="M00,00c0,0-8,00-20,000-0000000c000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c090-8,03-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#00=00"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,00000000,000000,0000" fill="url(#000000)"/>
+0<qAth d="0" ll="0"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0/0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000000:00000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,00,000,0000,0l0,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/2160.svg b/test/ns-afl-svg/2160.svg
new file mode 100644
index 0000000..ab3dd33
--- /dev/null
+++ b/test/ns-afl-svg/2160.svg
@@ -0,0 +1,59 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c00ext000ch0000'/>0<g transform='translate(0,0)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<circle cx='0' cy='0' r='5' fht='0' fill='l0c00ext000ch00'/>0</g>0"><!ENTITY t "">
+<!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" ion="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" T="0" ill="0" e="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g t="0"
+ransform="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&Viewport0;</g>
+0<g i="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" vie="0"
+h="0" heé00="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&p;
+0<svg pre="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg Asp="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g><text y="0">0</text><svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0 0
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g trfnsform="0"><text y="0">0</text>&Viewport0;
+0<svg prRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg presero="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg preatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg prv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&i;
+0<svg preseAso="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2161.svg b/test/ns-afl-svg/2161.svg
new file mode 100644
index 0000000..3eed04c
--- /dev/null
+++ b/test/ns-afl-svg/2161.svg
@@ -0,0 +1,128 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="000" et="0"/>0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,000,00c0,0-0,00-00,00000000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ000000000000"/>0
+0<circle r="0" x="0"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="0" x="0" y="0" ll="0"/>
+0<circle r="0" cx="0" cy="0" ll="0"/>
+0<path d="000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="M00,00c00000000000000000" cx="0" cy="0" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l0000,000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-00000000010000000000000000000000000000000000000 0000000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" ll="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,000000000000000000000000000000000000000000000000000000000000000000l0,0c000000c000000000000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000000000000000000000000000000000000000000000000000000,000,000,000M000000 0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="Y" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/2162.svg b/test/ns-afl-svg/2162.svg
new file mode 100644
index 0000000..d368654
--- /dev/null
+++ b/test/ns-afl-svg/2162.svg
@@ -0,0 +1,6 @@
+<svg id="0" xmlns="00000000000000000000000000" viewBox="0 0 8 1" style="0">
+0<g n="0" troke-linecap="0">
+0<path d="M0,0H000V00H0Z" fill="none" stroke="#000" stroke-width="3"/>
+0<path d="M0,0h0M0,0h0M0,0h00" stroke="#000" stroke-width="4"/>
+0<path d="M0,0h0v00h000z" fill="#000" stroke="#000" stroke-width="2"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2163.svg b/test/ns-afl-svg/2163.svg
new file mode 100644
index 0000000..f826b07
--- /dev/null
+++ b/test/ns-afl-svg/2163.svg
@@ -0,0 +1,62 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00" xmlns:k="0" xmlns:sodipodi="00" xmlns:inkscape="000" width="0" height="0" id="0" sodipodi:n="0" inkscape:on="0" sodipodi:docname="0" inkscape:t_e="0">
+0<defs id="0">
+0<linearGradient id="linearGradient0100" gradientUnits="00000000000000" x1="0" y1="0" x2="0" y2="0">
+0<stop style="0" offset="0"
+d="0"/>
+0<stop style="stop-color:0000000000" offset="0" d="0"/>
+0<stop style="stop-color:00000000000000"/>
+0<stop style="stop-color:000000000000000000000)000000000000" offset="0"
+d="0"/>
+0<stop style="stop-color:0000000000000000000000000000000000000000000000000000000000000000000)0000"/>
+0<stop style="stop-color:0000000000000000000)000000000000)00000000000000)000000000000000000000000000000000000000000000000000000000000000000000000000000;" offset="0" d="0"/>
+0<stop style="stop-color:00000000000000"/>
+0<stop style="stop-color:000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100"/>
+0<stop style="stop-color:000000000)00000000000000000000)00000000000000000p0000000000" offset="0" d="0"/>
+0<stop style="stop-color:00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" offset="0"
+d="0"/>
+0<stop style="stop-color:00000000000000"/>
+0<stop style="stop-color:000000000000000000000000000000000000000000000000000000)0000000000000000000000000000000000000000000000000000000000000000000000000000000;" offset="0" d="0"/>
+0<stop style="0" offset="0"
+d="0"/>
+0<stop style="0" offset="0" d="0"/>
+0<stop style="0" offset="0"
+d="0"/>
+0<stop style="stop-color:00000000000000000000000000000000000000000000000000000;" offset="0"
+d="0"/>
+0<stop style="stop-color:00000000000000"/>
+0<stop style="0"/>
+0<stop style="stop-color:0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)000;" offset="0"
+d="0"/>
+0<stop style="0" offset="0" d="0"/>
+0<stop style="0" offset="0"
+d="0"/>
+0<stop style="0" offset="0" d="0"/>
+0<stop style="stop-color:0000000000000000000)0)000000000000000000000000000)00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;" offset="0" d="0"/>
+0<stop style="stop-color:00000000000000"/>
+0<stop style="stop-color:000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100"/>
+0<stop style="stop-color:000000000)00000000000000000000)00000000000000000p00o0000000" offset="0" d="0"/>
+0<stop style="stop-color:0)000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)0000000000)0000000;" offset="0"
+d="0"/>
+0<stop style="stop-color:00000000000000"/>
+0<stop style="stop-color:000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)0000"/>
+0<stop style="stop-color:000000000)00000000000000000000)00000000000000000p00o0000000" offset="0"
+d="0"/>
+0<stop style="stop-color:000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;" offset="0" d="0"/>
+0<stop style="stop-color:00000000000000"/>
+0<stop style="stop-color:0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)000;" offset="0"
+d="0"/>
+0<stop style="0" offset="0" d="0"/>
+0<stop style="0" offset="0"
+d="0"/>
+0<stop style="0" offset="0" d="0"/>
+0<stop style="stop-color:000000000000000000000000000000000" offset="0" id="0"/>0</linearGradient>
+0</defs>
+0<g inkscape:label="0" inkscape:e="0" id="0">0<rect style="fill:url(#linearGradient0100);"
+d="0" width="0" height="0" x="0" y="0"/>
+0 0
+0
+0<rect style="fill:url(#linearGradient0100);"
+d="0" width="0" height="0" x="0" y="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2164.svg b/test/ns-afl-svg/2164.svg
new file mode 100644
index 0000000..15e8007
--- /dev/null
+++ b/test/ns-afl-svg/2164.svg
@@ -0,0 +1,7 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0-" e="0" fill="b0n0"/>0
+0<paNMTOKENth d="0" fill="0"/>0
+0
+0<path d="M0,0h0l0,0v0l" ke="0" fill="b0n0"/>0
+0<path d="M0,0h0l0,0v0l" fill="b0n0"/>0
+0<text x="0" y="0" t-se="0" fill="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2165.svg b/test/ns-afl-svg/2165.svg
new file mode 100644
index 0000000..08877f7
--- /dev/null
+++ b/test/ns-afl-svg/2165.svg
@@ -0,0 +1,48 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="0" rm="0">
+0<sp p-c="0" et="0"/>
+0<op sp-r="0" ot="0"/>
+0</linearGradient>0<linearGradient id="pyBlue" gradientTransform="rotate(0)">
+0<stop stop-color="rgb(00000000000000000" cy="0" fl="0"/>
+0<rc r="0" cx="0" cy="0" et="0"/>
+0<stop sp-r="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c000,000,0000,00,0000,00-00000,000000000,0000000,000000,0000" fill="url(#pyBlue"/>
+0<path d="M00,000l0,00l00,0c0-00,0-00,00-000l0-00-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0-00000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-000c000,0000,00000000,000,0,0000,000000000000,000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" ig="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" ll="0"/>0
+0<path d="M00,00c0000,000M00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000,0000" fill="url(#pyBlue"/>
+0<path d="M00,000l0,00l00,0c00,0-00-0-00-00c0-00,0-00,00-00l00,0l0-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" cx=")"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="M00000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" cx=")"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,00000000000000000,00000000000000000=00,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c00000,00000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy=")"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c0000,000M00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-0000000,0000,0000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" ig="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c0000,000M000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,0000000000000000,000000000,0000000,000000,0000" fill="url(#pyBlue"/>
+0<path d="M00,000l0,00l00,0c00,0-00-0-00-00c0-00,0-00,00-00l00,0l0-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" cx=")"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,00000000000000000,00000000000000000=00,0000000000000000,000000000000000,000000000000000,000000000000000000,000000000000000000000,0000000000" id="0004" style="fill: url(#00d000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2166.svg b/test/ns-afl-svg/2166.svg
new file mode 100644
index 0000000..2f38bac
--- /dev/null
+++ b/test/ns-afl-svg/2166.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE s00 PUBLIC "0" "0">
+<svg r="0" style="fill:p0u0;">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:p0u0;stroke-width:000G0" transform="000,000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:p0u0;stroke:b0a00m" transform="00000000,0000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black;" transform="0000000000000,0000"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2167.svg b/test/ns-afl-svg/2167.svg
new file mode 100644
index 0000000..63a8d87
--- /dev/null
+++ b/test/ns-afl-svg/2167.svg
@@ -0,0 +1,167 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c0' stroke='m0d'/>0<g transfoorm='0'>0<circle cx='0' cy='0' r='1' fill='y0a00'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='p0n0' stroke='blue'/>">]><svg width="px" height="30px" n="0" xmlns="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" h="0" fill="none" stroke="b0u0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g m="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&Viewport2;</g>
+0<g d="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg o="0" Box="0"
+th="0" heé00="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0
+0<svg tiv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00000"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g sform="0"><text y="0">0</text>&Viewport2;
+0<svg cBox="0" width="0" height="0">&Smile;</svg></g>
+0<g orm="0"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" wid_h="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport2;
+0<svg tiv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presctRatio="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" wid_h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg tiv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pspecBox="0" width="0" height="0">&Smile;</svg></g>
+0<g orm="0"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" wid_h="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport2;
+0<svg tiv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pspecBox="0" width="0" height="0">0
+0&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g rm="0"><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" wid_h="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport2;
+0<svg tiv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text x="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pspecBox="0" width="0" height="0">0
+0&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pdth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" t="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="000"><text y="0">0</text>&i;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg preRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2168.svg b/test/ns-afl-svg/2168.svg
new file mode 100644
index 0000000..5b940b1
--- /dev/null
+++ b/test/ns-afl-svg/2168.svg
@@ -0,0 +1,31 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000000" style="stroke: l0c0;">
+0<style te="0">0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="0" r="1" style="stroke: l0c0;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="0" r="1" style="fill:b0u0;stroke:black;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00;stroke:b0a00ncl000ck0;" transform="0"/>
+0</g>
+0
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:r0d;stroke: l0c0;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u0;stroke:black;stroke-width:1cm" transform="translate(0"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u0;stroke:black;stroke-width:001cm" t="0"/>
+0<circle cx="cm" cy="0" r="1" style="fill:g0e00;stroke:b0a00ncl000ck0;stroke-width:001cm" transform="0"/>
+0</g>
+0
+0<style te="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke: l0c0;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:b0a00ncl000ck0;"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:b0a00ncl000ck0;stroke-width:w0000000000" transform="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2169.svg b/test/ns-afl-svg/2169.svg
new file mode 100644
index 0000000..27e1c88
--- /dev/null
+++ b/test/ns-afl-svg/2169.svg
@@ -0,0 +1,4 @@
+<sv fill="0" text-ar="0"><![CDATA[]]>0
+0<path d="0" stroke="0" x="0" y="0" f="0" fall="0" text-ar="0"><![CDATA[]]>0<![CDATA[]]>0
+0<path d="0" stroke="0" x="0" y="0" font-size="0" fall="0" text-ar="0"><![CDATA[]]>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2170.svg b/test/ns-afl-svg/2170.svg
new file mode 100644
index 0000000..4c3b89f
--- /dev/null
+++ b/test/ns-afl-svg/2170.svg
@@ -0,0 +1,55 @@
+<svg Ãs="0" fill="url(#py0ellow" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="#000" offset=","/>
+0
+0
+0
+0<path d="0" fill="0"/>0
+0<e r="0" c="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" id="0" s="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<pAth d="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>
+0
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<i r="0" cx="0" id="0" e="0" fill="0"/>0
+0
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<patS d="0" fill="0"/>
+0<pAth d="M00,00c0,0-8,00-90000,00,000000000000000000000000000000000000" fill="url(#py0ellow"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c000000000000000000000000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0-8,00-20,000-000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" file="0"/>
+0
+0<path d="M00,00c000-0,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#N00"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,00000/0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c00000000000000000-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000t0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00M000-80?0000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fitl="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/2171.svg b/test/ns-afl-svg/2171.svg
new file mode 100644
index 0000000..0d61382
--- /dev/null
+++ b/test/ns-afl-svg/2171.svg
@@ -0,0 +1,7 @@
+<svg xmlns="00">
+0<path d="0" stroke="0" fill="0"><!--0-->0<ÎÎ x=""><!--0-->0<Î0000>
+0<!--0-->0<Î00000 x=""><!--0-->0<Î0000>
+0
+0
+0<!--0-->0<Î0000>
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2172.svg b/test/ns-afl-svg/2172.svg
new file mode 100644
index 0000000..6570356
--- /dev/null
+++ b/test/ns-afl-svg/2172.svg
@@ -0,0 +1,359 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>0
+0<stop stop-color="rgb(00000)"/>0
+0<i r="0" cx="0" y="0" fill="0"/>
+0<circle r="0" cx="0" y="0" offset="0"/>
+0<stop p-r="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,0-00,00,000000,0c000000000000000000000000000000000000000000000000" fill="url(#00B00"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="0"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="000000000000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy=")"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M70,80c090-0,00-00,124,50v0" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0000000000000000000000000M00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0004" style="fill: url(#000000" fill="url(#000000"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M70,80c090-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M70,80c090-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c09700000-0,0,00,0,00,00c00000000000000000000000000000000000000000000,0000" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#000000)"/>
+0<pAth d="M00,00c0,000,00-00,000-00000000000,0000,000000000000000,000000000000=00,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M700,000c0,00,0,00-2,40l-52-170c0,0,0-00300 14-49-00 00-00 000-59 120
+000 000-139 000-80-40-000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" l="0"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,000-00l0-00c0-0,0-00,-04000.00000000.000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,120,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,000-00l0-02c0-0,0-00,-04000.00000000.000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" y="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,120,50v1" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,00000,00,0,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" y="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" y="0" fill="#00:"/>0
+0<path d="M00,80c090-0,00-20,100-13l0-20c0-0,0-12,10-00l20,0c0,0,00-0,10-15l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-20,020-00l0-02c0-0,0-00,-04000.00000000.000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,80c090-0,00-20,100-13l0-20c0-0,0-12,10-00l20,0c0,0,00-0,10-15l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Y="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" y="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2173.svg b/test/ns-afl-svg/2173.svg
new file mode 100644
index 0000000..a512058
--- /dev/null
+++ b/test/ns-afl-svg/2173.svg
@@ -0,0 +1,93 @@
+<svg xmlns="0000000000000000000000/000" xmlns:k="0" viewBox="0 0 1 2">
+0<radialGradient d="0" x="0" y="0" t="0" grnt0nits="0"><stop t="0" s="0"/><stop t="0"/></radialGradient>
+0<path d="M0,0A0,0 0,0,0 0,0C0,0 0,0 0,0C0,00 00,00 00,0C000,00 00,00 00,00" id="0" fill="d0l00grs00"/>
+0<usKKKKKKKKKKKKK fl="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" ll="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" ll="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vl="0"/>0
+0<text x="C"/>
+0<pKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" ll="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vl="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK ll="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vl="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK ll="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" ll="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKK0KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK0KKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKCKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKVKKKKKKKKKK fill="0"/>0
+0
+0<KKK-KKatKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="n"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKNKKKKKKKKKKKKKKKKKKKKtext x="0"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKK0KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKth d="0" vill="0"/>0
+0<text x="C"/>
+0<xt d="0" fill="0"/>0
+0<ath d="0" vill="0"/>0
+0<text x="C"/>
+0<paKext ke="0" fill="0"/>0
+0<KKK d="0"/>0
+0<text/>
+0<KKxt d="0" fill="0"/>0
+0<ath d="0" vill="0"/>0
+0<text x="C"/>
+0
+0<text/>
+0<paKKath d="0" vill="0"/>0
+0
+0
+0<KKK-KKKpath d=""/>0
+0<text x="C"/>
+0<KKKKKKKKKext ke="0"/>0
+0<KKK- vill="0"/>0
+0
+0<patpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKh d="0" vill="0"/>0
+0<text x="C"/>
+0<pKth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKKKKKKpath d="0" vill="0"/>0
+0
+0<atKKext d="0" ke="0" fill="0"/>0
+0<KKK-KKKext d="0" ke="0" qill="0"/>0
+0<KKKKKK-KKKpath vill="0"/>0
+0
+0<pat ke="0" fill="0"/>0
+0<KdK d="0"/>0
+0<text/>
+0<paKKKext ke="0"/>0
+0<KKK- vill="0"/>0
+0
+0<KKKt d="0" fill="0"/>0
+0<Kth d="0" vill="0"/>0
+0<text x="C"/>
+0<KKKext ke="0"/>0
+0<KKKKKKKKth l="0"/>0
+0<Kth d="0" vill="0"/>0
+0
+0
+0
+</svg>
diff --git a/test/ns-afl-svg/2174.svg b/test/ns-afl-svg/2174.svg
new file mode 100644
index 0000000..eb1eef3
--- /dev/null
+++ b/test/ns-afl-svg/2174.svg
@@ -0,0 +1,84 @@
+<?l?>
+<!DOCTYPE s PUBLIC "0" "0">
+<svg xmlns="000000">0<style te="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="0" cy="0" r="0" style="0" t="0"/>0
+0<ase me="0" e-Å0="0">0
+0<svg xe-Å00="0">0<svg xmlns="-000">
+0<path dme="0">
+0<Paragraph>0
+0<path d="0" se="0" e-Å0="0">0
+<!--0-->0<svg xml="0" se="0" e-Å0="0">0
+<!--0-->0<svg xnd="0" vix="0" wudth="0" ht="0" ion="0" bae="0">
+0<ase xmlns="http">
+0<Operat ver="0" te="0">
+0<Paragraph>0<svg xmlns="-000">
+0<path dme="0">
+0<Paragraph>0
+0<th d="0" ke="0" e-Å0="0">0
+<!--0-->0<svg xml="0" ke="0" e-Å0="0">0
+<!--0-->0<svg xmlns="v0" id="0" vix="0" width="0" height="0" ion="0" bae="0">
+0<ase xme="0" f-Å0="0">0
+<!--0-->0<svg xml="0" se="0" f-Å0="0">0
+<!--0-->0<svg e-Å0="0">0<svg xmlns="-000">
+0<path dme="0">
+0<Paragraph>0
+0<path d="0" st="0" e-Å0="0">0
+<!--0-->0<svg xml="0" st="0" e-Å0="0">0
+<!--0-->0<svg xmlns="v0" xmlns:x="0" id="0" vix="0" wudth="0" ht="0" ion="0" bae="0">
+0<ase xmlns="http">
+0<Operat ver="0" testname="0">
+0<Paragraph>0
+0<path d="0" str="0">0<svg xmlns="-60" width="0" ht="0" ion="0" bae="0">
+0<ase xme="0" f-Å0="0">0
+<!--0-->0<svg xml="0" se="0" f-Å0="0">0
+<!--0-->0<svg e-Å0="0">0<svg xmlns="-000">
+0<path dme="0">
+0<Paragraph>0
+0<path d="0" ke="0" e-Å0="0">0
+<!--0-->0<svg ml="0" ke="0" fke-Å0000="0">0
+<!--0-->0<svg xid="0" vix="0" wudth="0" height="0" ion="0" bae="0">
+0<ase xmlns="http">
+0<Operat ver="0" testname="0">
+0<Paragraph>0<svg xmlns="-000">
+0<path dme="0">
+0<Paragraph>0
+0<th d="0" st="0" fke-Å0000="0">0
+<!--0-->0<svg xml="0" st="0" fke-Å0000="0">0
+<!--0-->0<svg xmlns="v0" id="0" vix="0" width="0" ht="0" ion="0" bae="0">
+0<ase xme="0" fke-Å0000="0">0
+<!--0-->0<svg xml="0" stroke="0" fre-Å0000="0">0
+<!--0-->0<svg lnske-Å0000="0">0<svg xmlns="-000">
+0<path dme="0">
+0<Paragraph>0
+0<path d="0" stroke="0" fke-me="0" fke-Å0000="0">0
+<!--0-->0<svg xml="0" stroke="0" fke-Å0000="0">0
+<!--0-->0<svg xke-Å0000="0">0<svg xmlns="-000">
+0<path dme="0">
+0<Paragraph>0
+0<path d="0" stroKe="0" fke-Å0000="0">0
+<!--0-->0<svg xml="0" stroke="0" fke-Å0000="0">0
+<!--0-->0<svg xmlns="v0" xmlns:x="0" id="0" vix="0" wudth="0" height="0" ion="0" bae="0">
+0<ase xmlns="ht">
+0<Operat ver="0" me="0">
+0<Paragraph>0
+0<path d="0" str="0">0<svg xmlns="-60" width="0" height="0" ion="0" bae="0">
+0<ase xme="0" fke-Å0000="0">0
+<!--0-->0<svg xml="0" stroke="0" fke-Å0000="0">0
+<!--0-->0<svg xnske-Å0000="0">0<svg xmlns="-000">
+0<path dme="0">
+0<Paragraph>0
+0<path d="0" stroke="0" fke-Å0000="0">0
+<!--0-->0<svg xml="0" stboke="0" fke-Å0000="0">0
+<!--0-->0<svg xmlns="v0" id="0" vix="0" wudth="0" height="0" ion="0" bae="0">
+0<ase xmlns="ht">
+0<Operat ver="0" testname="0">
+0<Paragraph>0<svg xmlns="-000">
+0<path dme="0">
+0<Paragraph>0
+0<Wath d="0" stroke="0" fke-Å0000="0">0
+<!--0-->0<svg xml="0" stroke="0" fke-Å0000="0">0
+<!--0-->0<svg xmlns="v0" id="0" vix="0" width="0" height="0" ion="0" Å00="0">0
+<!--0-->0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2175.svg b/test/ns-afl-svg/2175.svg
new file mode 100644
index 0000000..92dd962
--- /dev/null
+++ b/test/ns-afl-svg/2175.svg
@@ -0,0 +1,2 @@
+<svg xmÕ00="0" x="">
+0<pa×0 d="" l=""/>0</svg>
diff --git a/test/ns-afl-svg/2176.svg b/test/ns-afl-svg/2176.svg
new file mode 100644
index 0000000..0137ac8
--- /dev/null
+++ b/test/ns-afl-svg/2176.svg
@@ -0,0 +1,375 @@
+<svg xmlns="000000000000000000" viewBox="0">
+0<defs>
+0<linearGradient id="pyYellow" gradientTransform="rotate(00)0">
+0<stop stop-color="#000" offset="$"/>
+0<stop stop-color="#000" t="0"/>
+0
+0<stop stop-color="0000000000000" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="M00,00c0,000,00-00,0000000000000000000000000000000,0000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="0" cx="0" id="0000" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00000000000000000c000000000000000"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#00)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c00000000-00-0-00000000000 000000,0000000000000000000000000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00Y0)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#0" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fi="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fi="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circqe r="0" cx="0" fill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,000000000000000c000,0000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4"
+cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2177.svg b/test/ns-afl-svg/2177.svg
new file mode 100644
index 0000000..3e196ba
--- /dev/null
+++ b/test/ns-afl-svg/2177.svg
@@ -0,0 +1,51 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gra_ieorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="000" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0-0,00,0,00,00l0,00c0,0-0,00-00,000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ00"/>0
+0<circle r="4" cx=")"/>
+0<path d=",00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" ll="0"/>
+0<path d="00000000000000000000000000000000000000000000000000,0000000000000000000000000000000000000000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000 00-00-00 0000000,000000000 000000,000000000 000000,000000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-2,40l,13-00,120,00v0" fill="url(#py0ellow)"/>0
+0
+0<path d="000,00000000,000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,0000 000000,000000000000000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000000000000000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000,0000000,0000000000000000000000000i0000000,0000000,000000000000000,0000000000000000000000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="0" fill="url(#0000)"/>
+0<path d="M00,00c097-8,13-20,120,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0-0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/2178.svg b/test/ns-afl-svg/2178.svg
new file mode 100644
index 0000000..b6ae48e
--- /dev/null
+++ b/test/ns-afl-svg/2178.svg
@@ -0,0 +1,17 @@
+<svg vivxmlns='0' d='0' fill='s0l00tax000ns00000' strofill='0' stroke='0'>
+0
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="=" r="1" style="stroke:black;stroke-width:001cm" transform="translate(0"/>0<circle cx="cm" r="1" style="fill:0000000;stroke:f0a0"/>
+0
+0<circle cy="cm" r="1" n="0" trm="0"/>
+0<circle cx="c" cy="cm" r="1" style="fill:0000000;stroke:f0a0"/>0<circle cx="c" cy="cm" r="1" style="fill:g0b00nsf000"/>
+0<circle cx="c" cy="cm" r="1" style="fill:g0b00nsf000"/>
+0<circle cy="cm" r="1" n="0" t="0"/>
+0
+0<circle cx="c" cy="cm" r="1" style="fill:g0b00nsf000"/>
+0<circle cx="c" cy="cm" r="1" style="fill:g0b00nsf000"/>
+0<circle cy="cm" r="1" style="fill:0000000;stroke:f0a00;" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2179.svg b/test/ns-afl-svg/2179.svg
new file mode 100644
index 0000000..dccddce
--- /dev/null
+++ b/test/ns-afl-svg/2179.svg
@@ -0,0 +1,204 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" t="0"/>
+0<stop stop-color="000"/>
+0<stop t="0"/>
+0
+0<stop stop-color="#000" offset=".4"/>
+0
+0
+0<stop stop-color="#000" t="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" t="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0000" gra_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="000000" offset="0"/>
+0
+0
+0<stop stop-color="url(#000000)" ll="0"/>
+0<ph d="0" of="0"/>
+0
+0<stop or="0" of="0"/>
+0<stop sr="0" of="0"/>
+0
+0<stop st="0" of="0"/>
+0
+0
+0<stop sr="0" ot="0"/>
+0
+0<stop sr="0" offset="0"/>
+0<stop or="0" et="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient></defs>0
+0<th d="0"/>0
+0<ce r="0" cx="0"/><stop st="0" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000,,0000,00000000000000000000000000000000000000000000000000000000000000000000000000,0000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-20,124-00l0-00c0-0,0-00,12-12l24,0c0,0,00-0,10-10l0-00l30.800,0000000000C0000000,0000M0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000000000000000000000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0y00)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,004-00l0-00c0-0,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx=")"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="B" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-20,124-00l0-26c0-0,0-12,10-10l24,0c0,0,00-0,14-10l0-10l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/2180.svg b/test/ns-afl-svg/2180.svg
new file mode 100644
index 0000000..cbc4c15
--- /dev/null
+++ b/test/ns-afl-svg/2180.svg
@@ -0,0 +1,20 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:000;stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke-width:1ex" transform="translate(0,0)"/>
+0<circle cx="cm" cy="0" r="1" style="fill:green;stroke:black;stroke-width:1cm" transform="translate(0,0)"/>
+0</g>0</svg>0<style te="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:000;stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:001ex" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2181.svg b/test/ns-afl-svg/2181.svg
new file mode 100644
index 0000000..4930617
--- /dev/null
+++ b/test/ns-afl-svg/2181.svg
@@ -0,0 +1,24 @@
+<svg xmlns="000000000000000000" viewBox="0-0 1 1" stroke-width="2">
+0<g fill="none">
+0<ellipse stroke="#000000" rx="v" ry="4"/>0
+0<ellipse stroke="#000000" rx="v" ry="4"/>
+0<ellipse stroke="#000000" rx="V" ry="4" transform="rotate(0)"/>
+0<ellipse stroke="#000000" rx="6" ry="4" transform="rotate(0)"/>
+0<circle stroke="#000000" r="4"/>
+0</g>
+0<g fill="#000000" e="0">
+0<ce l="0" r="0"/>
+0<circle cy="0" r="9"/>
+0<rclz x="0" cy="0" r="0"/>
+0<circle cx="0" cy="0" r="9"/>
+0
+0<ellipse stroke="#000000" rx="V" ry="4" transform="rotate(0)"/>
+0<ellipse stroke="#000000" rx="6" ry="4" transform="rotate(0)"/>
+0<circle stroke="#000000" r="4"/>
+0</g>
+0<g fill="#000000" se="0">
+0<circle fill="#000000" r="3"/>
+0<circle cy="0" r="9"/>
+0<circlz cx="0" cy="0" r="0"/>
+0<circle cx="0" cy="0" r="9"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2182.svg b/test/ns-afl-svg/2182.svg
new file mode 100644
index 0000000..a523979
--- /dev/null
+++ b/test/ns-afl-svg/2182.svg
@@ -0,0 +1,26 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+
+0<stop stop-color="q0c00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0-8,00-20,0000,00000000,0c0,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c00000,00000000-000 000-00-00-00-000 000-0000000000000000000000000000000000000000000000000000000000000000000000 000000,00000000000000000000000000000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="0000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,00,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000,000000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,000000000000000000000000000i0000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,00,000,0000,000,0l0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000p000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/2183.svg b/test/ns-afl-svg/2183.svg
new file mode 100644
index 0000000..6ccfcd9
--- /dev/null
+++ b/test/ns-afl-svg/2183.svg
@@ -0,0 +1,87 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0
+0<defs>
+0<linearGradient id="0" m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="p0c00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<th d="0" ll="0"/>0
+0<le r="0" cx="0" cy="0" fl="0"/>0
+0<ce r="0" cx="0" cy="0" fill="0"/>0
+0<stop stop-color="p0c00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000l0000l00000000000000000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<ck r="0" fill="0"/>
+0<path d="0000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+0<path d="00000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="00000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000-00-00 00-00 000-00 0000000,00..00000.00000000.000000.000000C0000000000000000000000000000000000000000000000000000000000000000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#000e)"/>0
+0<path d="M00,00c097-0,03-20,100-00l0-000000000000.0000000..00000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000c0000000000000000000000000000000000000000000000" fill="url(#000e)"/>
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00[0000000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-60.870,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<cirAle r="0" y="0" fill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000e)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000000000,000,0000" fill="000"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0" style="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/2184.svg b/test/ns-afl-svg/2184.svg
new file mode 100644
index 0000000..22b23ca
--- /dev/null
+++ b/test/ns-afl-svg/2184.svg
@@ -0,0 +1,16 @@
+<svg width="g" viewBox="0-0 0 0" stroke-width="G">
+0<g fill="none">
+0<ellipye e="0" rx="0" ry="0"/>
+0
+0<ellipse stroke="#00~000" rx="6" ry="4" transform="000000,000"/>
+0<circle stroke="#0000P0" r="4"/>
+0</g>
+0<g fill="#00'000" stroke="o0i00">
+0
+0</g>
+0<g fill="#00'000" stroke="o0i00">
+0<cUrclo fl="0" r="0"/>
+0<circYe cy="0" r="0"/>
+0<circGGGgGGGGGGGWGGGGGGG r="0"/>
+0<circle cx="0" cy="0" r="9"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2185.svg b/test/ns-afl-svg/2185.svg
new file mode 100644
index 0000000..b56c404
--- /dev/null
+++ b/test/ns-afl-svg/2185.svg
@@ -0,0 +1,41 @@
+<?l?>
+<svg version="0" xmlns="0000000000000000" style="0">
+0<circle d="0" cx="0" cy="0" r="5" stroke="s0g00uic0"
+stroke-width="3"/>
+0
+0
+0
+0<script e="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="s0g00uic0"
+stroke-width="3"/>
+0
+0
+0<circle id="0" cx="0" cy="0" r="5" stroke="s0g00uic0"
+stroke-width="3"/>
+0<text x=" ">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/2186.svg b/test/ns-afl-svg/2186.svg
new file mode 100644
index 0000000..cc12076
--- /dev/null
+++ b/test/ns-afl-svg/2186.svg
@@ -0,0 +1,255 @@
+<svg xmlns="00000000000000000000" fill="url(#0)000" viewBox="0 0 1 1">
+0<path d="M0,0s0000,00-0,0-00,00-0,0c0000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>0
+0<circle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="in" id="4" style="fill: url(#000000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="url(#0000)"/>0
+0<circle r="4" cx="0" cy="0" id="4" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,0-00-0@00000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#0000)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#0000)"/>0
+0
+0<path d="000000000000000000000000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000a0000000000000000000000000000000000000000000000000000C00000000000000000000000000000000000000000000000000000000000000000000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="4" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00000000,00L000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c00000000000000000000000000,000,0000,000,000,,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-00-000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#0000)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#000000)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#000000)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="4" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#000000)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#000000)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#000000)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000a0000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-000v0" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00)"/>0
+0<cirCle r="4" cx="0" cy="0" ill="0"/>0<circle r="4" y="0" fill="url(#00000000)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2187.svg b/test/ns-afl-svg/2187.svg
new file mode 100644
index 0000000..6cacdef
--- /dev/null
+++ b/test/ns-afl-svg/2187.svg
@@ -0,0 +1,26 @@
+<svg xmlns="0000000000" viewBox="0 0 0 0">
+0<path d="0" st="0" fill="p0r0"/>0
+0<path d="00000,00" stroke="#000" fill="p0r0"/>0
+0<path d="00000000" ke="0" fill="p0n0"/>0<svg xmlns="0" stroke="#000" fill="p0n0"/>0<svg xmlns="00" viewBox="0 0 0 0">
+0<path d="0" stroke="#000" fill="p0r0"/>0
+0
+0
+0<text x="0" y="0" e="0" fl="0" ex="0"><![CDATA[0]]></text>0</svg>
+0
+0<path d="0" stroke="#000" fill="p0r0"/>0
+0<path d="00000,00" stroke="#000" fill="p0r0"/>0
+0<path d="000,0000" Se="0" fill="p0n0"/>0<svg ke="0" fill="p0n0"/>0<svg xmlns="000000000000000000" viewBox="0 0 0 0">
+0<path d="0" stroke="00000000" Se="0" fill="p0n0"/>0<svg xmlns="00" stroke="#000" fill="p0n0"/>0<svg xmlns="00" viewBox="0 0 0 0">
+0<path d="0" stroke="#000" fill="p0r0"/>0
+0
+0
+0<text x="0" y="0" f="0" ll="0" text-ar="0"><![CDATA[0]]></text>0</svg>
+0
+0<path d="0" stroke="#000" fill="p0r0"/>0
+0<path d="00000,00" stroke="#000" fill="p0r0"/>0
+0<path d="00000000" ke="0" fill="p0n0"/>0<svg xmlns="000" stroke="#000" fill="p0n0"/>0<svg xmlns="00" fill="p0r0"/>0
+0<path d="0" stroke="#000" fill="p0r0"/>0
+0
+0<text x="0" y="0" t-e="0" il="0" text-ar="0"><![CDATA[0]]></text>0</svg>
+0
+0<text x="0" y="0" e="0" fi="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2188.svg b/test/ns-afl-svg/2188.svg
new file mode 100644
index 0000000..442a69a
--- /dev/null
+++ b/test/ns-afl-svg/2188.svg
Binary files differ
diff --git a/test/ns-afl-svg/2189.svg b/test/ns-afl-svg/2189.svg
new file mode 100644
index 0000000..8151412
--- /dev/null
+++ b/test/ns-afl-svg/2189.svg
@@ -0,0 +1,5 @@
+<svg xmlns="00000000000000000000000000" ox="0">
+0<circle r="3" cx="z"
+transform="translate(0,0)scale(0,0"/>0<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+fill="#000" opa="0"/>0<ellipse rx="3mm" ry="2" transform="rotate(0 0,0" fill="#000"
+oty="0"/>0</svg>
diff --git a/test/ns-afl-svg/2190.svg b/test/ns-afl-svg/2190.svg
new file mode 100644
index 0000000..f32df12
--- /dev/null
+++ b/test/ns-afl-svg/2190.svg
@@ -0,0 +1,24 @@
+<svg xmlns="0000000" i="0" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,000z" stroke="#000" fill="i&lt;o00"/>0
+0<path d="M00,0h00l00,000z" stroke="#000" fill="i&lt;o00"/>0
+0
+0<path d="M00,0h00l00,00a0"/>0<svg xi="0" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l000,000000-000" stroke="#000" fill="i&lt;o00"/>0
+0
+0<path d="M00,0h00l00,00v000a0"/>0
+0<path d="M00,0h00l00,0h00l000-00v000z" stroke="#000" fill="i&lt;o00"/>0
+0
+</svg>0
+0<path d="M00,0h00l00,0h00l00,00v00l000,00l00000000000" stroke="#000" fill="i&lt;o00"/>0
+0
+0
+0<path d="M00,0h00l00,00a0"/>0<svg fi="0" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l000,000000000v000z" stroke="#000" fill="i&lt;o00"/>0
+0
+0<path d="M00,0h00l00,00v000a0"/>0
+0<path d="M00,0h00l00,0h00l00,000000000,00l00000000000" stroke="#000" fill="i&lt;o00"/>0
+0
+</svg>0
+0<path d="M00,0h00l00,0h00l00,00v00l000,00l000-00v000z" stroke="#000" fill="i&lt;o00"/>0
+0
+</svg>
diff --git a/test/ns-afl-svg/2191.svg b/test/ns-afl-svg/2191.svg
new file mode 100644
index 0000000..6e75266
--- /dev/null
+++ b/test/ns-afl-svg/2191.svg
Binary files differ
diff --git a/test/ns-afl-svg/2192.svg b/test/ns-afl-svg/2192.svg
new file mode 100644
index 0000000..aff9c29
--- /dev/null
+++ b/test/ns-afl-svg/2192.svg
@@ -0,0 +1,32 @@
+<svg xmlns="00000000" xmlns:xlin0="00" viewBox="0 0 1 2">
+0<radialGradient im="0" cx="0" cy="0" t="0" s="0"><op ot="0" p-c="0"/><st ot="0"/></radialGradient>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000" id="0" fill="d0l00drs00"/>
+0
+0<radialGradient im="0" cx="0" cy="0" t="0" g="0"><sp ot="0" s-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,000A00000000,0,0 00,000,000,00 00,0,00 00,00 00,0000000000 00" fill="d0l00drs00"/>
+0
+0<radialGradient im="0" cx="0" cy="0" t="0" ts="0"><top ot="0" st-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,000A00,0 00,0,00 00,00)"/>
+0
+0<radialGradient im="0" cx="0" cy="0" t="0" g="0"><stop ot="0" op-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,000A00000000,0,0 00,000,000,00 00,0,00 00,00 00,0000000000 00" fill="d0l00drs00"/>
+0
+0<radialGradient im="0" cx="0" cy="0" t="0" s="0"><stop ot="0" tp-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,000A000000000000000,000,000,00 00,00 00,0000000000000000000000" id="0" fill="d0l00drs00"/>
+0<use xlin0:href="0" m="0"/>0
+0<radialGradient im="0" cx="0" cy="0" t="0" g="0"><stop ot="0" sc="0"/><stop ot="0"/></radialGradient>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000" id="0" fill="d0l00drs00"/>
+0<use xlin0:href="0" trarm="0"/>0
+0
+0<radialGradient im="0" cx="0" cy="0" t="0" grnts="0"><stop ot="0" to-c="0"/><stop ot="0"/></radialGradient>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000" id="0" fill="d0l00drs00"/>
+0<use xlin0:href="0" id="0" fl="0"/>
+0<use xlin0:href="0" m="0"/>0
+0
+0<radialGradient im="0" cx="0" cy="0" t="0" grntUnits="0"><stop ot="0" op-c="0"/><stop ot="0"/></radialGradient>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000" id="0" fill="d0l00drs00"/>
+0<use xlin0:href="0" transform="0"/>0
+0
+0<radialGradient im="0" cx="0" cy="0" t="0" grntUnits="0"><stop ot="0" op-c="0"/><stop ot="0"/></radialGradient>
+0<path d="000000000000000000000000000000000000000000000000000000000,00000,00" id="0" fill="d0l00drs00"/>
+0<use xlin0:href="0" transform="0"/>0</svg>
diff --git a/test/ns-afl-svg/2193.svg b/test/ns-afl-svg/2193.svg
new file mode 100644
index 0000000..dad9ebb
--- /dev/null
+++ b/test/ns-afl-svg/2193.svg
@@ -0,0 +1,13 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">0<path d="M0,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="n0n00e"/>0
+0<path d="M00,0h00000000i00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000000000" fill="url(#00B00"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#000" fill="n0n00e"/>0
+0<path d="M00,0h00l00,000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#000000)"/>
+0
+0
+0<path d="M000000000000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2194.svg b/test/ns-afl-svg/2194.svg
new file mode 100644
index 0000000..9d22064
--- /dev/null
+++ b/test/ns-afl-svg/2194.svg
@@ -0,0 +1,119 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c00idh000d'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='y0l00w'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fht='0' fill='0000000000000'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" i="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" T="0"
+l="0" se="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g t="0"
+ranm="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g sform="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g sform="0">&Viewport0;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&Viewport0;</g>
+0<g id="0" transform="translate(0,000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t0;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&t0;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg presctRatio="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg preservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport0;
+0<svg prbectRatio="0" viewBox="0 0 0 0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewGox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg t="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&r;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&r;
+0<svg preseAspectRaTio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2195.svg b/test/ns-afl-svg/2195.svg
new file mode 100644
index 0000000..7a110d0
--- /dev/null
+++ b/test/ns-afl-svg/2195.svg
@@ -0,0 +1,794 @@
+<svg xmlns="00000" fi="0" viewBox="0 0-0 0">
+0<path d="00,0000,00,"/>0
+0
+0<text x="'" y="0" gonze="0" ill="0" tt-ar="0"><![CDATA[0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]]]]
+0
+0
+0
+0
+0]]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]]]]
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]
+0
+0
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0
+0
+0
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0
+0]]>0<![CDATA[0]]]
+0
+0]]
+0
+0
+0
+0
+0]]>0</text>0</svg>
diff --git a/test/ns-afl-svg/2196.svg b/test/ns-afl-svg/2196.svg
new file mode 100644
index 0000000..68bba45
--- /dev/null
+++ b/test/ns-afl-svg/2196.svg
@@ -0,0 +1,39 @@
+<svg ns="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(55)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(0)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#00)" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0,0,00,0,00,00l0,00c0,000,00000,0000,0c00,0000,0000,000000,0000,00000000000,0000000,000000,0000" fill="url(#pyBlue)"/>
+0<path d="M00,00c0,7-8,10-23,13c000000000000000000000c000,0000,000,000000000000,000,0,00,0,00,0000,0000,00000,00,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="in" cy="0" fill="#000"/>
+0
+
+0
+0<path d="M70,87c090-8,00-20,120,50v1" fill="url(#py0ellow)"/>0
+0
+0
+0
+<svg width="px" height="px" on="0" xmlns="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#pyBlue)"/>
+0<path d="M70,00c090-8,00-20,124-10l0-20c0-7,0-12,10-10l24,0c0,0,00-7,14-10l0-10l9,0c000,000000,000,000000000,0000000#00000000,00000000000000000000000,0000,000,000000000000,000,0,00,0,00,0000,0000,00000,00,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="in" cy="0" fill="#000"/>
+0
+
+0
+0<path d="M70,87c090-8,00-20,120,50v1" fill="url(#py0ellow)"/>0
+0
+0
+0
+<svg width="px" height="px" on="0" xmlns="000000000000000000000000000000000000000000000000000000000000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-000000000=00,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M70,87c090-8,00-20,120,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="w" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00,0,00,00c0,00-0,00-00,00l000,0l0,000000000,0000000#00000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M70,87c090-8,00-20,120,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2197.svg b/test/ns-afl-svg/2197.svg
new file mode 100644
index 0000000..0cca81c
--- /dev/null
+++ b/test/ns-afl-svg/2197.svg
@@ -0,0 +1,63 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="000000000000000000" xmlns:k="0" xmlns:sodipodi="0t" xmlns:inkscape="000" width="0" height="0" id="0" sodipodi:ion="0" inkscape:von="0" sodipodi:doe="0" inkscape:output_extension="0">
+0<defs id="0">
+0<linearGradient id="linearGradient0100" gradientUnits="00000000000000" x1="0" y1="0" x2="0" y2="0">
+0<st0 s="0"
+ffset="0"
+d="0"/><!--0-->0<svg
+xmlns:k="0" xmlns:ape="0"
+th="0" heigh0="0" i0="0" sodipodi:ion="0" inkscape:von="0" sodipodi:docname="0"
+ape:output_extension="0">
+0<defs id="0">
+0<linearGradient
+d="0" s="0" x0="0" y0="0" x2="0" y2="0">
+0<stop style="stop-color:00;" offset="2"
+d="0"/>
+0<stov
+le="0"
+set="0"
+d="0"/>
+0</linearGradient>
+0</defs>
+0<g inkscape:label="0" inkscape:groupmode="0" id="0">
+0<rect style="0" id="0" dth="0"
+t="0" x="0" y="0"/>
+0</g>0</svg></linearGradient>
+0</defs>
+0<g inkscape:label="0" inkscape:groupmode="0" id="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0<defs i="0">
+0<linearGradient id="0" grads="0" x0="0" y0="0" x2="0" y2="0">
+0<st0 style="0"
+ffset="0"
+d="0"/><!--0-->0<svg
+xmlns:k="0" xmlns:ape="00"
+th="0" height="0" id="0" sodipodi:ion="0" inkscape:von="0" sodipodi:docname="0"
+ape:output_extension="0">
+0<defs id="0">
+0<linearGradient id="0" s="0" x0="0" y0="0" x2="0" y2="0">
+0<stop style="0" offset="0"
+d="0"/>
+0<stov
+le="0"
+set="0" id="0"/>
+0</linearGradient>
+0</defs>
+0<g inkscape:label="0" inkscape:groupmode="0" id="0">
+0<rect style="0" id="0" dth="0" height="0" x="0" y="0"/>
+0</g>0</svg></linearGradient>
+0</defs>
+0<g inkscape:label="0" inkscape:groupmode="0" id="0">
+0<rect style="fill:url(#linearGradient0100);"
+d="0" width="0" height="0" x="0" y="0"/>
+0</g>
+0<rect style="fill:url(#linearGradient0100);" id="0" width="0" height="0" x="0" y="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2198.svg b/test/ns-afl-svg/2198.svg
new file mode 100644
index 0000000..f5cc114
--- /dev/null
+++ b/test/ns-afl-svg/2198.svg
@@ -0,0 +1,6 @@
+<svg ox='0' xmlns='000000000000000000000000000' fill='s0l00tex000nc00000' stroke='0'>
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,0,0h000c00,0-0,0,0,0h00c0,0,0,0,0,0h00;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0,000,0,0,0000,0,00,00,00,00000,000,00000' fill='s0l00tex000nc00000' stroke='black'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,000,0,=00,0000000,000,0,0,0,0,00000000,000,0,0,000000,0,0,0,0,00000000,0,0,000000,0,0,0,0,00000000,000,0,0,000000,0,0,0,0,00000,0000,000000000000000,0000,0,000,0000000,0000,0000000000000000000,0000,0000,000,0,0,00000000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000,000,00000' fill='s0l00tex000nc00000' stroke='black'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,000,0,=00,0000000,000,0,0,0,0,00000000,000,0,0,000000,0,0,0,0,00000000,0,0,000000,0,0,0,0,00000000,000,0,0,000000,0,0,0,0,00000,0000,000000000000000,0000,0,000,0000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000,000,00000' fill='s0l00tex000nc00000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/2199.svg b/test/ns-afl-svg/2199.svg
new file mode 100644
index 0000000..c1c49b8
--- /dev/null
+++ b/test/ns-afl-svg/2199.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="R" r="1" style="fill:r000000000000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:t0a00lns000;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:t0a00lns000;stroke-width:1cm" transform="translate(0,0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:000;stroke:black;stroke-width:1cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2200.svg b/test/ns-afl-svg/2200.svg
new file mode 100644
index 0000000..f02ad6f
--- /dev/null
+++ b/test/ns-afl-svg/2200.svg
@@ -0,0 +1,33 @@
+<?l?>
+<!DOCTYPE s PUBLIC "0" "0"[ <!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0a00' stroke='red'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='1' fill='black'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<path d='M0 0A0 0 0 0 0 0 0' stroke='b0o00' stroke-width='2'/>0</g>0">
+<!ENTITY V "">
+<!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" i="0" xmlns="000000000000000000">0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g f="0">
+0<text x="0" y="0">0</text>
+0<g transform="00">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g tranVform="0">&t;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0<g id="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg io="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="000"><text y="0">0</text>&t;
+0<svg ro="0" viewBox="0 0 3 4" width="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg io="0" viewBox="0 0 3 4" h="0" ht="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<text y="0">0</text>&t;
+0<svg prtRatio="0" viewBox="0 0 3 4" width="0" ht="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2201.svg b/test/ns-afl-svg/2201.svg
new file mode 100644
index 0000000..b99f011
--- /dev/null
+++ b/test/ns-afl-svg/2201.svg
@@ -0,0 +1,32 @@
+<svg xmlns="000000000000000000" viewBox="0 0 5 6">0<path d="M0 00000c00-00-000 00-0-00,0000" fill="url(#00000000)"/>0
+<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-0l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l000000000000000000000000000000000,000000000000,0c0,0,00,0,00,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: urm00rad000" fill="url(#0000)"/>
+0<path d="M00,00c00000,00000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: urm00rad000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0000000000000000000000000000000000000000000000000000000000000000000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: urm00rad000" fill="url(#0000)"/>
+0<path d="M00,00c00000,0000 00-00 000-00 0000-00 000-0000000 000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0000000000,0000000000C000000000,00000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="(" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: urm00rad000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2202.svg b/test/ns-afl-svg/2202.svg
new file mode 100644
index 0000000..e729d84
--- /dev/null
+++ b/test/ns-afl-svg/2202.svg
@@ -0,0 +1,57 @@
+<svg width="0" B="0">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="0000">
+0<stop stop-color="#0000s0" offset="0"/>
+0<stop stop-color="y0u0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<p p0c="0" t="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="M00,000]0000000000000000000000000000000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#00000"/>0
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<ath d="0"/>0
+0<circle r="4" cx=")"/>
+0<path d="000,00000000," fill="#000"/>
+0<circle r="4" cx="0" cy="0" l="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00000000000-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" c="0" y="0" fill="url(#py0ellow"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" H="0"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00v0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>
+0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<pa/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/2203.svg b/test/ns-afl-svg/2203.svg
new file mode 100644
index 0000000..58f0a1f
--- /dev/null
+++ b/test/ns-afl-svg/2203.svg
@@ -0,0 +1,2 @@
+<?l?>
+<!DOCTYPE s00 PUBLIC "0" "0"[ <!ENTITY Š \ No newline at end of file
diff --git a/test/ns-afl-svg/2204.svg b/test/ns-afl-svg/2204.svg
new file mode 100644
index 0000000..7d9da4f
--- /dev/null
+++ b/test/ns-afl-svg/2204.svg
@@ -0,0 +1,6 @@
+<svg width="0" height="0" id="0" y="i">
+0<path d="M0,0h0l0,0v0l0,0l0-0l0-0M0,0h0l0,0v0l0,0" fill="t0t00nsf000on0"/>0
+0<path d="M0,0h0l0-0v00z" stroke="#000" fill="t0t00nsf000on0"/>0
+0<path d="M0,0h0l0,0v0-" stroke="#000" fill="t0t00nsf000on0"/>0
+0<patQ d="0" ill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2205.svg b/test/ns-afl-svg/2205.svg
new file mode 100644
index 0000000..83fa06a
--- /dev/null
+++ b/test/ns-afl-svg/2205.svg
@@ -0,0 +1,111 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<xtop t="0" e="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0,0-0,00-00,00000000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ000000000000"/>0
+0<circle r="0" cx=")"/>
+0<path d="000000000000000000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" x="0" y="0" fill="#000"/>
+0<circle r="4" x="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,00000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000,00000000000000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="0000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<cirZle r="0" x="0" y="0" fill="0"/>0
+0<circle r="$" fill="url(#00000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" filh="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000100000000,0000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/2206.svg b/test/ns-afl-svg/2206.svg
new file mode 100644
index 0000000..5ff98c4
--- /dev/null
+++ b/test/ns-afl-svg/2206.svg
@@ -0,0 +1,23 @@
+<svg xmlns="0000000000" viewBox="0 0 1 8">
+0<path d="M0,0h0c,0" stroke="#000" fill="d&lt;o00ura000or"/>0
+0
+0&lt;0
+0<path d="M00,0,00" stroke="#000" fill="d&lt;o00ura000or"/>0
+0<path d="0" fill="#000"/>0
+0<text x="0" y="0" font-size="0" l="0" t-r="0"><![CDATA[0]]></text>
+0<path d="M0,0h0c,0" rokM="0" fill="d&lt;o00ura000or"/>0
+0
+0&lt;0
+0<path d="M0,0h0c,0" stroke="#000" fill="d&lt;o00ura000or"/>0
+0
+0&lt;0
+0<path d="M00,0,00" stroke="#000" fill="d&lt;o00ura000or"/>0
+0<path d="0" fill="#000"/>0
+0<text x="0" y="0" font-size="0" fill="0" t-ar="0"><![CDATA[0]]></text>
+0<path d="M0,0h0c,0" strokM="0" fill="d&lt;o00ura000or"/>0
+0
+0&lt;0
+0<path d="M00,0,00" stroke="#000" fill="d&lt;o00ura000or"/>0<path d="0" fill="#00"/>0
+0<text x="0" y="0" font-size="0" fill="0" t-ar="0"><![CDATA[0]]></text>0
+0<path d="M00,0,00" stroke="#000" fill="d&lt;o00ura000or"/>0<path d="0" fill="#00"/>0
+0<text x="0" y="0" font-size="0" fill="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2207.svg b/test/ns-afl-svg/2207.svg
new file mode 100644
index 0000000..361fff9
--- /dev/null
+++ b/test/ns-afl-svg/2207.svg
@@ -0,0 +1,31 @@
+<svg xmlns="000000o00000000000" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="0" m="0">
+0<p op-c="0" t="0"/>
+0<o sp-r="0" offset="0"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(0)">
+0<stop stop-color="rgb(00000000000000000" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" offset="0"/>
+0<stop stop-colwr="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0-0,0-0,0000,0000000000000000000000000000000000,00000000000" fill="url(#pyBlue"/>
+0<path d="M00,0l0,00l00,0c000000000000-000,0-00,00-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" cx=")"/>
+0<path d="00000000000000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="000,00000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0,00v1" fill="url(#pyBlue"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000000000000000,0000000000" id="0" style="fill: url(#0000000" fill="url(#pyBlue"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#0000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c00000,00000,000,00-00,000-00l000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#0000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c00000,00000,000,00-00,000-00l000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#0000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c0000000,000000000 000000,000000000 000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="r0,00v1" fill="url(#pyBlue)"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url00l"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2208.svg b/test/ns-afl-svg/2208.svg
new file mode 100644
index 0000000..c1dceb1
--- /dev/null
+++ b/test/ns-afl-svg/2208.svg
@@ -0,0 +1,49 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M0,0h00l00,00v00l000,0z" stroke="#000" fill="d0n"/>0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="d0n"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00l000,00l000-00z" stroke="#000" fill="d0n"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="d0n"/>0
+0<text x="'" y="0" e="0" fl="0" tt-gr="0"><![CDATA[0]]]
+0
+0
+0
+0]]]
+0
+0
+0
+0
+0
+0
+0
+0]]]
+0
+0
+0
+0]]]
+0
+0
+0
+0
+0]]
+0]]]
+0
+0
+0
+0]]]
+0
+0
+0
+0
+0
+0
+0
+0]]]
+0
+0
+0
+0]]]
+0
+0
+0
+0
+0]]>0</text>0</svg>
diff --git a/test/ns-afl-svg/2209.svg b/test/ns-afl-svg/2209.svg
new file mode 100644
index 0000000..6b03dfc
--- /dev/null
+++ b/test/ns-afl-svg/2209.svg
@@ -0,0 +1,15 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="0000000000">0
+0<xmlns>
+0
+0<xmlns>0
+0<xmlns e="">
+0
+0<vg ns="0">
+0<xmlns>0
+0<xmlns>
+0
+0
+0
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2210.svg b/test/ns-afl-svg/2210.svg
new file mode 100644
index 0000000..41738d9
--- /dev/null
+++ b/test/ns-afl-svg/2210.svg
@@ -0,0 +1,18 @@
+<svg ns="0" Box="0" roke-Å0000="0">0<svg xmlns="0000">
+0<path dme="0">
+0<Paragraph>0
+0<path d="0" st="0" f-Å0="0">0
+<!--0-->0<svg xml="0" stroke="0" f-Å000="0">0
+<!--0-->0<svg xmlns="00" xmlnsd="0" vix="0" wth="0" he="0" ion="0" bae="0">
+0<ase xmlns="0000">
+0<Operat ver="0" testname="0">
+0<Paragraph>0
+0<path d="0" sth="0">0<svg xmlns="0000">
+0<path dme="0">
+0<Ppragraph>0
+0<path d="0" se="0" e-Å0="0">0
+<!--0-->0<svg xml="0" stroke="0" f-Å0="0">0
+<!--0-->0<svg xmlns="00" xm="0" stroke="0" fke-Å0000="0">0
+<!--0-->0<svg xml="0" stroke="0" fke-Å0000="0">0
+<!--0-->0<svg mlid="0" vix="0" wth="0" height="0" ion="0" bae="0">
+0<ase xme="0" fke-Å0000="0"> \ No newline at end of file
diff --git a/test/ns-afl-svg/2211.svg b/test/ns-afl-svg/2211.svg
new file mode 100644
index 0000000..fe76f56
--- /dev/null
+++ b/test/ns-afl-svg/2211.svg
@@ -0,0 +1,95 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" ra_ieorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" t="0"/>
+0
+0<stop p-r="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient ir="0" gra_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="ur0000000000" fill="0"/>
+0<path d="0" of="0"/>
+0
+0<stop or="0" of="0"/>
+0<stop sr="0" of="0"/>
+0
+0<stop or="0" of="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0<stop or="0" et="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="0"/>0
+0<ci r="0" cx="0"/><stop st="0" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop sr="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<pCth d="0" id="0000" s="0" fill="0"/>
+0<pLth d="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M0,00c000-8,00-20,124-00l0-22c0-0,0-12,10-10l24,0c0,0,00-0,14-10l0-10l9,0c0,000,000000,000,0000" fill="url(#py0ellow"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00000000000000000000000000000000000000000000000000000000000000000000,0,L0,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-04-6-000080000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0000" style="fill: url(#00000" fill="url(#000e)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#000e)"/>
+0<pAth d="M00,00c0,0-0,00-00,000-0000000c000,0000,000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000,0000000000000000000000000000000000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0-00000 00-00-00 00-00 000-00 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,000000000000000000000000000i0000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#000e)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,00,000,0000,0l0,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000e)"/>
+0<path d="000,00000000,00000,0000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/2212.svg b/test/ns-afl-svg/2212.svg
new file mode 100644
index 0000000..513eeb2
--- /dev/null
+++ b/test/ns-afl-svg/2212.svg
@@ -0,0 +1,14 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="d0n0"/>0
+0<path d="M0,0h0l0" fill="#000"/>0
+0<text x="0" y="0" ft-ze="0" i="0" v="0">
+0<path d="0" e="0" l="0"/>0
+0<path d="0" l="0"/>0
+0<text x="0" y="0" e="0" l="0" tt-ar="0"><![CDATA[0]]>0</text>0
+0<path d="0"/>0
+0<![CDATA[0]]>0
+0<path d="0" l="0"/>0
+0<text x="0" y="0" g="0" ll="0" xt-ar="0"><![CDATA[0
+0]]>0</text>0<![CDATA[0]]>0</text>0
+0<path d="M00,0h00"/>0
+0<xt x="0" y="0" g="0" fé000="0"/></svg>
diff --git a/test/ns-afl-svg/2213.svg b/test/ns-afl-svg/2213.svg
new file mode 100644
index 0000000..6765dcd
--- /dev/null
+++ b/test/ns-afl-svg/2213.svg
@@ -0,0 +1,56 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0
+<rect x='0' y='0' width='0' height='0' fill='a0a' stroke='red'/>0<g transform='translate(0,0)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='b0b00' stroke-width='2'/>0</g>0">
+<!ENTITY t "">
+<!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" on="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" ht="0"
+fill="none" stroke="b0u0"/>
+0<g onze="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport2;</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4"
+th="" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pre="0" vix="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&t0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&t0;
+0<svg presatio="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2214.svg b/test/ns-afl-svg/2214.svg
new file mode 100644
index 0000000..7a94250
--- /dev/null
+++ b/test/ns-afl-svg/2214.svg
@@ -0,0 +1,385 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" rorm="0">
+0<stop stop-color="0" offset="4"/>
+0<stop or="0" offset="7"/>
+0<stop stop-color="s0s00let00" offset=","/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop stop-color="#000" ot="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" ll="0"/>
+0<path d="00000000000000000000000000000," fill="url(#pyYellow"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000000000000000000000000 0000000000000000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#00000000000000000000000000000000000000000,000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" ll="0"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000,00,0000,c00000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000-0-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" iill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," ficy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" ilx="0"/>0
+0<cirCle r="#"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000a0000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fSll="0"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2215.svg b/test/ns-afl-svg/2215.svg
new file mode 100644
index 0000000..14c6ef6
--- /dev/null
+++ b/test/ns-afl-svg/2215.svg
Binary files differ
diff --git a/test/ns-afl-svg/2216.svg b/test/ns-afl-svg/2216.svg
new file mode 100644
index 0000000..b8e7216
--- /dev/null
+++ b/test/ns-afl-svg/2216.svg
@@ -0,0 +1,11 @@
+<svg xmlns="000000000000000000" viewBox="0" fill="s0n0">
+0
+0<circle stroke-width="2" r="3" cx="0" cy="0" fill="none" stroke="#000"/>
+0
+0<g r="0" st="0" stroke-width="1" stroke="#000" fill="s0n0">0<path d="M00,00000m" transform="translate(0)"/>0<circle cx="cm" cy="cm" r="1" style="fill:b0u0;stroke:o0e00lac0;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="0" r="1" e="0" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00;stroke:black;stroke-width:001em" transform="0"/>
+0<circle cx="cm" cy="0" r="1" style="fill:green;stroke:black;stroke-width:001cm" t="0"/>0<circle cx="cm" cy="0" r="1" style="fill:blue;stroke:o0e00lac0;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" s="0" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" stysform="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2217.svg b/test/ns-afl-svg/2217.svg
new file mode 100644
index 0000000..d7d3c7b
--- /dev/null
+++ b/test/ns-afl-svg/2217.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:black;stroke-width:001cm" transforS="0"/>
+0<ciRcle x="0" cy="cm" r="1" style="fill:0stroke:0000000000000" transform=",0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00oku000dt0000000" transform="translate(000,000)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2218.svg b/test/ns-afl-svg/2218.svg
new file mode 100644
index 0000000..6a675f8
--- /dev/null
+++ b/test/ns-afl-svg/2218.svg
Binary files differ
diff --git a/test/ns-afl-svg/2219.svg b/test/ns-afl-svg/2219.svg
new file mode 100644
index 0000000..aab6c51
--- /dev/null
+++ b/test/ns-afl-svg/2219.svg
@@ -0,0 +1,17 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0000l00,000z" stroke="s0g0" fill="none"/>0
+0<path d="M00,00v00l000,00h000l000-0000-00-000-0000 00-00 000-00 00 00 000 00 000-00 00-00 00-00 0000-00 00000000000000000000000000000000000000000000000000000000000000000000-000-000-00000-000 00-000 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="s0g0" fill="none"/>0
+0<path d="M000000000-000-000-000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000-000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="s0g0" fill="none"/>0
+0<path d="M00-000-0000000000000000000000000000000000000000000000000000000000000000 00-000 0-00-000-00-00-0-00-00-000-00-000-00-000-000-000-000000000000000000" stroke="s0g0" fill="none"/>0
+0<path d="M00,0h00l00,00v00l000,000--000000000000000000,0000000,000000000,00" stroke="s0g0" fill="none"/>0
+0<path d="M00,00v00l000,00h000l000-0000-00-000-0000 00-00 000-00 00 00 000 00 000-00 00-00 00-00 0000-00 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000-000 0000-000
+000 0-00 00-000 00-000 0-000 0-000-0-000-0-00-0-000000000000000000000000000000000-00-000-000-000-000000000000000000" stroke="s0g0" fill="none"/>0
+0<path d="M00-000-00-000-000-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000-00 00-000 00-000 0-000 0-000-00000000000000000000000000000000000000000000000000000000000000000-000-00-0000000" stroke="s0g0" fill="none"/>0
+0<path d="M00-00000000000000000000000000000000000 000-000 0000-000
+000 0-00 00-000 00-000 0-00-000-00-00-0-00-00-000-00-000-00-000-000-000-000000000000000000" stroke="s0g0" fill="none"/>0
+0<path d="M00,0h00l00,00v00l000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000"
+fill="#000" ty="0"/>
+0<esw rx="0" ry="0" rm="0"
+fl="0" ty="0"/>0
+0
+</svg>
diff --git a/test/ns-afl-svg/2220.svg b/test/ns-afl-svg/2220.svg
new file mode 100644
index 0000000..2a9dd93
--- /dev/null
+++ b/test/ns-afl-svg/2220.svg
@@ -0,0 +1,6 @@
+<svg Ãs="0" viewBox="0 0 1 1">
+0<path d="M0,0h00l00,00v00l0,00h000l000-00v00 0-00 0
+0 0-0 000-00-00-00-000 000-000 00-00 00-00 0-00A00-0-000-000 0-00 00-00 000-00 00 00 000 00 000-00 00-00 00-00 000 0000"
+transform="translate(0,0)scale(0,0"/>0<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+fill="#000" pa="0"/>0<ellipse rx="5" ry="2" transform="rotate(0 0,0" fill="#000"
+ty="0"/>0</svg>
diff --git a/test/ns-afl-svg/2221.svg b/test/ns-afl-svg/2221.svg
new file mode 100644
index 0000000..b0c9f3a
--- /dev/null
+++ b/test/ns-afl-svg/2221.svg
@@ -0,0 +1,10 @@
+<svg s="0" viewBox="0" style="fill:g0e00;stroke:b0a00a;stroke-width:00g">
+0<style pe="0">
+0
+0</style>0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:r00000000000;stroke:b0a00a;"/>
+0<circle cx="cm" cy="c" r="1" styl_="0" transform=",00"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:b0a00a;"/>
+0<circle cx="cm" cy="c" r="1" style="fill:blue;stroke:black;stroke-width:1cm" transform="translate(00,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:b0a00a;stroke-width:001cm" transform="0,00"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2222.svg b/test/ns-afl-svg/2222.svg
new file mode 100644
index 0000000..657c53f
--- /dev/null
+++ b/test/ns-afl-svg/2222.svg
@@ -0,0 +1,15 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M0,0h000000v00,00l000-00z" stroke="#000" fill="n0n00ncl000e"/>0
+0<path d="M00,0h0S00" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,0l000,00h000000000000000000l000-00v000z" stroke="#000" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-000l000,00h000l000-00Z0000" stroke="#000" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00v00,00l000-00z" stroke="#000" fill="n0n00ncl000e"/>0
+0<path d="M00,0h00l00,00v00l000,00l000,000-0" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-000l000,00l000-00v000z" stroke="#000" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l000-000l000,00h000l000-00Z0000" stroke="#000" fill="n0n00ncl000e"/>0
+0<![CDATA[0]]></svg>
diff --git a/test/ns-afl-svg/2223.svg b/test/ns-afl-svg/2223.svg
new file mode 100644
index 0000000..2771539
--- /dev/null
+++ b/test/ns-afl-svg/2223.svg
@@ -0,0 +1,392 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" a_rm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="r0r"/>
+0<stop r="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" e="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0,0-0,00-00,00ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="0"/>
+0<path d="00000000000000000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="z" id="0" style="fill: url(#000000" fill="url(#00)"/>
+0<path d="000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" c="0" fill="#000"/>
+0<circle r="" cx="0" i="0" style="fill: m0l00rad000" fill="url(#p"/>
+0<parh d="0" ll="0"/>0
+0
+0
+0<path d="00000000000000000000000000000000000" fill="0000"/>
+0<path d="M00,00c0000000000-0-00000000000 00.000000.0000000000000000000000000000000000000000000000000000000000000000000.000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,0000000000000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-000000000070000000000000000000000000000000000000.000000000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-000000000070000000000000000000000000000000000000.0000000.0000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0000c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="000,0000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" f="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,02-00l04,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" ill="0"/>0
+0<circle r="4" _x="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="" fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#0000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<patN d="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2224.svg b/test/ns-afl-svg/2224.svg
new file mode 100644
index 0000000..a067233
--- /dev/null
+++ b/test/ns-afl-svg/2224.svg
@@ -0,0 +1,32 @@
+<svg xmlns="0000000000" viewBox="0" stroke-width=" ">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="000000,"><stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>0<linearGradient id="pyBlue" m="0">
+0<tZp r="0" f="0"/>
+0<stop op-c="0" ot="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c000" id="0" style="fill: url(#00000" fill="url000000000"/>
+0<path d="M00,00c090-8,00-20,10,-50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0cL0,0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,0000000000000000000000,000" fill="url(#000000)"/>0
+0<path d="M00,00c090-8,00-20,10,0000,0000000000000000000000000000000000000000000i0000000,0000000,000000000000000,00000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" fill="url(#000000)"/>0
+0<path d="M00,00c00000,00000,00,00-0,00-000000000,000,0,L0,0,00,0000,0000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url00l"/>0
+0<cirCle r="4" cx=" " id="0" style="fill: url(#00000" fill="url(#pyBlue)"/>
+0<path d="M00,00c0000000,000000000 000000,000000000 000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c00000,00000,00000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url00l"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2225.svg b/test/ns-afl-svg/2225.svg
new file mode 100644
index 0000000..fba72af
--- /dev/null
+++ b/test/ns-afl-svg/2225.svg
Binary files differ
diff --git a/test/ns-afl-svg/2226.svg b/test/ns-afl-svg/2226.svg
new file mode 100644
index 0000000..2522cac
--- /dev/null
+++ b/test/ns-afl-svg/2226.svg
@@ -0,0 +1,67 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0&a;<rect x='0' y='0' width='0' height='0' fill='0' stroke='0'/>0<g transform='0'>0<_ircle cx='0' cy='0' r='0' fill='0'/>0<circle cx='0' cy='0' r='0' fill='0'/>0<circle cx='0' cy='0' r='0' fill='0'/>0<pat. d='0' stroke='0' stroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='0' stroke='0'/>">]><svg width="0" height="0" ion="0" xmlns="h00000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" he="0" ill="0" se="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0
+0<g transform="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&Viewport0;</g>
+0<g id="0" t="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0"
+th="0" height="0">&Smile;</svg></g>
+0<g m="0"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&p;
+0<svg presctRatio="0" viewBox="0" width="0" height="0">&e;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg presctRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pspectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presctRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg preservatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg preectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g trDnsform="0"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg pspectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preservatio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&t0;
+0<svg presctRatio="0" viewBox="0" width="0" height="0">&Smile;</svg>
+0<g transform="0"><text y="0">0</text>&t0;
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2227.svg b/test/ns-afl-svg/2227.svg
new file mode 100644
index 0000000..9e51a6e
--- /dev/null
+++ b/test/ns-afl-svg/2227.svg
@@ -0,0 +1,90 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' he='0' fill='0' stroke='red'/>0<g transform='000'>0<_ stylecx='0' cy='0' r='0' fill='0'/>0<circle cx='0' cy='0' r='5' fill='0'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='0' stroke='0' stroke-width='0'/>0</g>0"><!ENTITY w ""><!ENTITY Viewport0 "<reZt x='0' y='0' width='0' height='0'
+fill='0' stroke='0'/>">]><svg w="0" height="px" ion="0" xmlns="00000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" he="0" stroke="b0u0"/>
+0<g fonze="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&Viewport0;</g>
+0<g id="0" t="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text><svg preatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg presctRatio="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 0 0" width="0" height="0">0</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&u;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="0000"><text y="0">0</text>&V;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2228.svg b/test/ns-afl-svg/2228.svg
new file mode 100644
index 0000000..5d97470
--- /dev/null
+++ b/test/ns-afl-svg/2228.svg
@@ -0,0 +1,28 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="t" xmlns:inkscape="00" width="0" height="5" C="0" sodipodi:n="0" inkscape:ersion="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" d="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-d="0" width="0" height="0" x="0" y="0"/>0<rect style="stroke:a0b00cy;fill:none" id="0" width="0" height="0" x="0" y="0"/>
+0
+0
+0<rect style="stroke:a0b00cy;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x=" "/>
+0<rect style="stroke:a0b00cy;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2229.svg b/test/ns-afl-svg/2229.svg
new file mode 100644
index 0000000..ed50622
--- /dev/null
+++ b/test/ns-afl-svg/2229.svg
@@ -0,0 +1,283 @@
+<svg xmlns="0000000000000000000" wx="0">
+0<path d="0" c="0" fl="0"/>0
+0<path d="0" fl="0"/>0
+0
+0<path d="0" ll="0" te="0">
+0<le id="0" cx="0" cy="0" r="0" se="0"
+stroke-h="0"/>
+0<text x="0" y="0">0</text>
+0<lfè00>0
+0
+0
+0
+0<efè00 m="">
+0<efè00>
+0<efè00>
+0
+0<efè00>
+0<efè00>0 0<lefè000>
+0<efè00>
+0<efè00>
+0<efè00>
+0<efè00>
+0<efè00>
+0<efè00>0
+0
+0<efè00>
+0<efè00>0 0<lefè0000>
+0<efè00>
+0<efè00>
+0<lefè00>0
+0<defs>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<Pefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0<defs>0
+0
+0<lefè00 m="">
+0<lefè00 g="">0 0<lefè0000>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0<lefè00 m="">
+0<lefè00>0
+0
+0<lefè00 m="">
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<le>
+0
+0<lefè00 m="">
+0<lefè00 x="">0 0<lefè0000>
+0<lVfè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>0
+0
+0<lefè00 m="">
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0
+0
+0<lefè00 m="">
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>0 0<lefè000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0
+0
+0<lefè00>
+0<leWè00>0 0<lefè000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0<lefè00>
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>0
+0<defs>0
+0
+0<lefè00>
+0
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<leWè00>0 0<lefè0000 x="">
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0<lefè00>
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0<defs>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000 s="">
+0<lefè00>0
+0
+0<defs>
+0<lefè00 m="">
+0<lefè00>0
+0
+0<lefè00 m="">
+0<lefè00>0 0<lefè0000 s="">
+0<lefè00>
+0<le>
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000 x="">
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0<_efè00 m="">
+0<lefè00>0
+0
+0<lefè00 m="">
+0<lefè00>0 0<lefè0000 s="">
+0<lefè00 m="">
+0<le>
+0
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2230.svg b/test/ns-afl-svg/2230.svg
new file mode 100644
index 0000000..c315ca1
--- /dev/null
+++ b/test/ns-afl-svg/2230.svg
@@ -0,0 +1,60 @@
+<svg ns="0" ZiewBox="0">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(0)">
+0<stop stop-color="0000000" ot="0"/>
+0<stop stop-color="0000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000000000000,0000,0000,0000,00,0000,000000,000000000000000000,0000000,000000,0000" fill="url(#0000)"/>
+0<path d="M00,00c0,000,00000000,0-00,00-00000,000,0,0000000,000M00,0000" fill="url(#0000)"/>
+0<path d="000,0000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,00000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,000000000000,0,000000000000000000000000,0000000000000000,0000000000000000,0000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,000,0,0000,000000000000,000,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000,0000000000000000,0000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy=" "/>
+0<path d="000,00000000,000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,0000 000000,000000000000000000,00000000000000000000000000000000000000000,00000000000000000000,0000000000000000,000000l000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,00000000000000000000000000000000000000000-000 000-00-00-00-000 000-0 0000000000000000000000000000000000000000000,0000000000" id="0" style="fill: s0o00rad000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="000,00000000,00000,000,000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0-00000 00-00-00 00-00 000-00 0000-00 000-000 0000000000000000000000000000000000000000000000000000000000000000000000,00..000,00000000 000000,000000000000000000,000000000000000000,0000000000000000,000000000000000000000,0000000 00000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,00000000000000000000000000000000000000000-000 000-00-00-00-000 000-0 0000000000000000000000000000000000000000000,0000000000" id="0" style="fill: s0o00rad000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: s0o00rad000" fill="url(#00=00"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="000,00000000,000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,0000 000000,000000000000000000,00000000000000000000000000000000000000000,00000000000000000000,0000000000000000,000000l000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000000000000000000000000000000000000,0000000000" id="0" style="fill: s0o00rad000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="z" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2231.svg b/test/ns-afl-svg/2231.svg
new file mode 100644
index 0000000..d4517fa
--- /dev/null
+++ b/test/ns-afl-svg/2231.svg
@@ -0,0 +1,11 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h0z" stroke="#000" fill="w0n0"/>0
+0<path d="M0,0h0l0,0q" fill="#000"/>0
+0<path d="M0,0h0,0v0l0,0l0-0H" stroke="#000" fill="w0n0"/>0
+0
+<path d="M0,0h0l0,0v0l0,0l0-0v0z" stroke="#000" fill="w0n0"/>0
+0<path d="M0,0h0l0,0v0l0-0l0-0G" fill="#000"/>0
+0<path d="M0,0h00l00,00v00l000,00h000l000-00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="w0n0"/>0
+0
+0<path d="l0,0v00v" fill="000000000000000000000"/>0
+0<text x="0" y="0" t-e="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2232.svg b/test/ns-afl-svg/2232.svg
new file mode 100644
index 0000000..abeecbe
--- /dev/null
+++ b/test/ns-afl-svg/2232.svg
@@ -0,0 +1,18 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="0000000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="c" cy="cm" r="1" style="fill:r0d0 stroke:" w="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:r0d0 stroke:" wrarm="0"/>
+0<circle cx="cm" cy="" r="1" style="stroke:b0d00blu000e" transform="0000000000,0000"/>
+0<circle x="0" r="1" style="fill:r0d0 stroke:black;stroke-width:00c000" rorm="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:r0000000000000stroke:" wrarm="0"/>
+0<circle cx="cm" cy="" r="1" style="stroke:b0d00blu000e stroke-width:0000t000000000"/>
+0<circle ex="0" r="1" style="fill:r0d0 stroke:black;stroke-width:000c000" rorm="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:r00000000000000000000000000000000000000000000000000000000000000000000000000000000000000stroke:" wransform="0"/>
+0<circle cx="cm" cy="" r="1" style="stroke:b0d00blu000e stroke-width:001cm" transform="translate(00,000)"/>
+0<circle x="0" r="1" style="fill:r0d0 stroke:black;stroke-width:001cm" transform="0,0000"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2233.svg b/test/ns-afl-svg/2233.svg
new file mode 100644
index 0000000..97230e2
--- /dev/null
+++ b/test/ns-afl-svg/2233.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:d0d;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:b0b00;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2234.svg b/test/ns-afl-svg/2234.svg
new file mode 100644
index 0000000..2919eb9
--- /dev/null
+++ b/test/ns-afl-svg/2234.svg
@@ -0,0 +1,25 @@
+<svg ÃtÉ="0">0
+
+0<path d="0"/>
+0<pa ÃtÉ="0">
+0<defs>0
+0<pa ÃtÉ="0"/>
+0
+0<stop stop-color="0" offset="0"/>0
+0</defs>0
+0<path d="0"/>
+0<pa ÃtÉ="0">0
+
+0<pa d="0"/>
+0<pa ÃtÉ="0">
+0<defs>0
+0<pa ÃtÉ="0"/>
+0
+0<stop stop-color="0" offset="0"/>
+0
+0</defs>0
+0<pa d="0"/>
+0<pa ÃtÉ="0">
+0<defs>0
+0<pa ÃtÉ="0">
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2235.svg b/test/ns-afl-svg/2235.svg
new file mode 100644
index 0000000..eebc032
--- /dev/null
+++ b/test/ns-afl-svg/2235.svg
@@ -0,0 +1,2 @@
+<svg viewBox='0 0 6 2' xmlns='00'>
+0<path d='M00,00c00,0-0-0,0-0l00,00-0-00-00M00000000000000000000000000000000000000000000000000,0000,000,0,0,0000,0,00,00,00,00000,000,00000' fill='s0l00ack'/>0</svg>
diff --git a/test/ns-afl-svg/2236.svg b/test/ns-afl-svg/2236.svg
new file mode 100644
index 0000000..b4d96e1
--- /dev/null
+++ b/test/ns-afl-svg/2236.svg
@@ -0,0 +1,8 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l0,00h000l000-00v0z" stroke="#000" fill="d0n"/>0
+0<text x="'" y="0" e="0" l="0" t-r="0"><![CDATA[0]]]
+0
+0
+0
+0
+0]]>0</text>0</svg>
diff --git a/test/ns-afl-svg/2237.svg b/test/ns-afl-svg/2237.svg
new file mode 100644
index 0000000..4d69e70
--- /dev/null
+++ b/test/ns-afl-svg/2237.svg
@@ -0,0 +1,7 @@
+<svg xmlns="00000000000000000000000000" viewBod="0">
+0<path d="M00,0h00l00,00v0000:0,00" stroke="#000" fill="o0a00e"/>0
+0<path d="M00,0h00l00,00v00l000,0l000-0B0" stroke="#000" fill="o0a00e"/>0
+0<path d="000,000,00000,0000000,000000000,000000000000000000" stroke="#000" fill="o0a00e"/>0
+0<path d="M00,0h00l00,00v00l000,0l000-0B0" stroke="#000" fill="o0a00e"/>0
+0<path d="000,000,00000" fill="#000"/>0
+</svg>
diff --git a/test/ns-afl-svg/2238.svg b/test/ns-afl-svg/2238.svg
new file mode 100644
index 0000000..eb967e2
--- /dev/null
+++ b/test/ns-afl-svg/2238.svg
@@ -0,0 +1,127 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gra_ieorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="f0m0" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" t="0"/>
+0
+0<stop l="0"/>
+0<pAth d="0" fill="0"/>0
+0<circle r="0" x="0" cy="0" fill="0"/>
+0
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<ci r="0" cx="0" id="0" style="0" fill="0"/>0
+0
+0<path d="0" fill="0"/>0
+0<ce r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" of="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000,0,00,000,000000,0000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0-8,00-20,000-0000000c000,0000,00000000,000,0,0000,00,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx=")" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,00000000,000000,0000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,000,00000,000000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000-0-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00v0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,00-20,124-00l0-22c0-0,0-12,10-10l24,0c0,0,00-0,14-10l0-10l9,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,00000000000" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCde r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle b="0" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" id="0004" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0</svg>
diff --git a/test/ns-afl-svg/2239.svg b/test/ns-afl-svg/2239.svg
new file mode 100644
index 0000000..3fe2465
--- /dev/null
+++ b/test/ns-afl-svg/2239.svg
@@ -0,0 +1,5 @@
+<vg xmx="0" stroke0Ù0000="0">
+0<e0è0
+ t=""/>
+0
+<!--0-->0<!--0-->0<!--0-->0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2240.svg b/test/ns-afl-svg/2240.svg
new file mode 100644
index 0000000..5039337
--- /dev/null
+++ b/test/ns-afl-svg/2240.svg
@@ -0,0 +1,169 @@
+<?l?><!DOCTYPE g PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='#' height='0' fill='black' stroke='red'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='!' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='C' y='0' width='0' height='0'
+fill='h0n0' stroke='h0u0'/>">]><svg width="px" height="30px" ion="0" xmlns="000000000000000000">
+0
+0
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g m="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="000000000000,0000">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="000000000000,0000">&Viewport2;</g>
+0<g id="0" transform="00000000000000000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+th="0" heé00="0">&Smile;</svg></g>
+0<g transform="000000000000,00"><text y="0">0</text>&i;
+0<svg pro="0" vix="0"
+idth="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" sform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0
+0<svg tiv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00000"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g sform="0"><text y="0">0</text>&Viewport2;
+0<svg pspecBox="0" width="0" height="0">&Smile;</svg></g>
+0<g orm="0"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" wid_h="0" height="0">&Smile;</svg></g>
+0<g trorm="0"><text y="0">0</text>&Viewport2;
+0<svg tiv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="00000000000000"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" wid_h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg tiv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pspecBox="0" width="0" height="0">&Smile;</svg></g>
+0<g orm="0"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4"
+id_h="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport2;
+0<svg tiv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pspecBox="0" width="0" heikht="0">0
+0&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg prp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g rm="0"><text y="0">0</text>&Viewport2;
+0<svg AspÓ0="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pspatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" wid_h="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport2;
+0<svg tiv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" tranvform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text x="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pspecBox="0" width="0" height="0">0
+0&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transfodm="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pdth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" t="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="000000000000,00"><text y="0">0</text>&i;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg preRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2241.svg b/test/ns-afl-svg/2241.svg
new file mode 100644
index 0000000..4423481
--- /dev/null
+++ b/test/ns-afl-svg/2241.svg
@@ -0,0 +1,6 @@
+<svg>0
+0<svg><svg>0
+0<path d='000,00000' fill='d0l00gax000ns00000' stroke='black'/>
+0<path d='0,0,0,000' fill='d0l00gax000ns00000' stroke='black'/>0</svg>
+0
+0<path d='00000,00000' fill='d0l00gax000ns00000' stroke='black'/>0</svg><path d='0,000,000,00000' fill='d0l00gax000ns00000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/2242.svg b/test/ns-afl-svg/2242.svg
new file mode 100644
index 0000000..64c89e7
--- /dev/null
+++ b/test/ns-afl-svg/2242.svg
@@ -0,0 +1,15 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="R" r="1" style="fill:r000000000000"/>0<circle cx="cm" cy="C" r="1" style="fill:b0u0;stroke:t0a00lns000;"/>0
+<circle cx="cm" cy="C" r="1" style="fill:blue;stroke:t0a00lns000;"/>
+0<circle cx="cm" cy="0" r="1" style="fill:blue;stroke:t0a00lns000;stroke-width:1cm" transform="0" m="0"/>0<circle cx="u" cy="cm" r="1" style="fill:blue;stroke:t0a00lns000;stroke-width:1cm" transform="translate(0,0"/>
+0<circle cx="cm" cy="0" r="1" style="fill:blue;stroke:t0a00lns000;stroke-width:1cm" transform=""/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:t0a00lns000;stroke-width:1cm" transform="0" m="0"/>0<circle Qx="0" cy="cm" r="1" style="fill:blue;stroke:t0a00lns000;stroke-width:1cm" transform="translate(0,0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:t0a00lns000;stroke-width:001cm" transform=""/>
+0<circle cx="cm" cy="cm" r="1" style="fill:000000 stroke:black;stroke-width:1cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2243.svg b/test/ns-afl-svg/2243.svg
new file mode 100644
index 0000000..90b6bf2
--- /dev/null
+++ b/test/ns-afl-svg/2243.svg
@@ -0,0 +1,21 @@
+<svg xmlns="00000000000000000000000000" Bo0="0">
+0<path d="0" xmlns:k="0" xmlns:sodipodi="00" xmlns:inkscape="0t" width="0" height="0" id="0" sodipodi:ion="0" inkscape:von="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs id="0">
+0<linearGradient id="0" grads="0" x0="0" y0="0" x2="0" y2="0">
+0<stop
+tyle="0" offset="0"
+d="0"/>
+0<stop style="0" offset="0" id="0"/>
+0</linearGradient>
+0</defs>
+0<g inkscape:xmlns="0" n="">
+0<rect sodi="0" xmlth="0" height="0" id="0" sodipodi:ion="0" inkscape:von="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs id="0">
+0<linearGradient id="0" gradientUnits="0" x0="0" y0="0" x2="0" y2="0">
+0<stop style="0" offset="0"
+d="0"/>
+0<stop style="0" offset="0" id="0"/>
+0</linearGradient>
+0</defs>
+0<g inkscape:xmlns="0" n="">
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2244.svg b/test/ns-afl-svg/2244.svg
new file mode 100644
index 0000000..fa92739
--- /dev/null
+++ b/test/ns-afl-svg/2244.svg
@@ -0,0 +1,8 @@
+<svg widZh="0" height="0" id="0" y="i">
+0<path d="000,000,000000000,000000000000000000" t="0" fill="x0n0"/>0
+0
+0<g style="0">
+0<circle cx="cm" cy="cm" r="i" transform="translate(0,0)"/>
+0
+0<circle cx="cm" r="i" trarm="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2245.svg b/test/ns-afl-svg/2245.svg
new file mode 100644
index 0000000..b1e1070
--- /dev/null
+++ b/test/ns-afl-svg/2245.svg
@@ -0,0 +1,27 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:xlin0="00" xmlns:sodipodi="00" xmlns:in0scape="0t" width="0" height="0" id="0" sodipodi:version="0" in0scape:version="0" sodipodi:docname="0" in0scape:output_extension="0">
+0<defs id="0">
+0<linearGradient id="0" x1="0" x0="0">
+0<sp
+l0="0"
+t="0" id="0"/>
+0<sp
+le="0"
+et="0" id="0"/>
+0<st style="0" et="0" id="0"/>
+0</linearGradient>
+0<linearGradient in0scape:collect="0" xlin0:href="0" id="linearGradient0100" x1="0" y1="0" x2="0" y2="0" gradientUnits="0"/>
+0<linearGradient in0scape:collect="0" xlin0:href="0" id="linearGradient0200" x1="0" y1="0" x2="0" y2="0" gradientUnits="0"/>
+0<linearGradient id="0">
+0<stop
+le="0" of="0" id="0"/>
+0<st tyle="0" et="0" id="0"/>
+0<sto yle="0" ffset="0" id="0"/>
+0</linearGradient>
+0<linearGradient in0scape:collect="0" xlin0:href="0" id="linearGradient2000" x1="0" y1="0" x2="0" y2="0" gradientUnits="0"/>
+0</defs>
+0<rect style="fill:url(#linearGradient0100);" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="fill:url(#linearGradient0200);" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="fill:url(#linearGradient2000);" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="fill:url(#000000000000000000);" id="0" width="0" height="0" x="0" y="0"/>0</svg>
diff --git a/test/ns-afl-svg/2246.svg b/test/ns-afl-svg/2246.svg
new file mode 100644
index 0000000..75c264d
--- /dev/null
+++ b/test/ns-afl-svg/2246.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:l0a00m" transform="translate(0,0)"/>
+0<circle cx="cm" cy="0" r="t" transform="0"/><circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:l0a00m" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:l0a00m" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2247.svg b/test/ns-afl-svg/2247.svg
new file mode 100644
index 0000000..879e130
--- /dev/null
+++ b/test/ns-afl-svg/2247.svg
@@ -0,0 +1,48 @@
+<svg xmlns="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="k0e0" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>0
+0<stop stop-color="#000" offset=".4" y="0" ll="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="C"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="r000000000" fi="0"/>
+0<ph d="0" ot="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c00000000,00,0,0-0,000000000000000000 0" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,5,00-2,00l-50-000c0,0,0-00000 1,00-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<ctrCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l00000000000000000000000000000000l000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,000000000000000000000000000000000,00-00,00l000,0l0,0000000000l0,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,000000000?0000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/2248.svg b/test/ns-afl-svg/2248.svg
new file mode 100644
index 0000000..482845f
--- /dev/null
+++ b/test/ns-afl-svg/2248.svg
@@ -0,0 +1,356 @@
+<svg s="0" viewBox="0 0 0 0">
+0<defs>
+0<linearGradient id="pyYellow" gradientTransform="rotate(00)">
+0<stop stop-color="f0l0" offset="-6"/>
+0<stop stop-color="#000000" offset=","/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop p-c="0" t="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" fill="0"/>
+0<path d="000,000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="00000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0-00000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00000000000000000000 0000000000M0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000000000c00000000000000000000000000000000M000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000000000c00000000000000000000000000000000M00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-0000000000000)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="0000000000000000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" y="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,00..000,00000000 000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" y="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" y="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0
+
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" l="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Y="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" y="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2249.svg b/test/ns-afl-svg/2249.svg
new file mode 100644
index 0000000..3a636b0
--- /dev/null
+++ b/test/ns-afl-svg/2249.svg
@@ -0,0 +1,166 @@
+<svg s="0" viewBox="0 0 0 0">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(00)">
+0<stop stop-color="f0l0" offset="-6"/>
+0<stop stop-color="#000000" offset=","/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop op-c="0" t="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" l="0"/>
+0<path d="M00,00c0000-00-0-0000000 000000,0000000000000000000000000000000000000,0000000000000000000" c="0" y="0" fill="url(#py0ellow"/>0
+0<circle r="4" cx="0" cy="," fill="url(#py0ellow"/>0
+0<circle r="," fill="url(#000000000000000000000000000000000"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" y="0" ll="0"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" y="0" fill="#000"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0-00000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-00000000000000000,0000000000C0000000,00000000000000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000p00" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx=")"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="B" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2250.svg b/test/ns-afl-svg/2250.svg
new file mode 100644
index 0000000..e2f2969
--- /dev/null
+++ b/test/ns-afl-svg/2250.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:b0b00;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:y0u0;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2251.svg b/test/ns-afl-svg/2251.svg
new file mode 100644
index 0000000..384f17b
--- /dev/null
+++ b/test/ns-afl-svg/2251.svg
@@ -0,0 +1,19 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:xlink="0" xmlns:sodipodi="000000000000000000000000000000000000000000" xmlns:inkscape="0000000000000000000000000000000000000000000" height="0" id="0" ersion="0" width="0" x="0" y="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:outputextension="0" inkscape:exportfilename="0" inkscape:export-xdpi="0" inkscape:export-ydpi="0">
+0<sodipodi:namedview inkscape:window-height="0" inkscape:window-width="0" inkscape:pageshadow="0" inkscape:pageopacity="0" guidetolerance="0" gridtolerance="0" objecttolerance="0" borderopacity="0" bordercolor="0" pagecolor="0" id="0" showgrid="0" inkscape:zoom="0" inkscape:cx="0" inkscape:cy="0" inkscape:window-x="0" inkscape:window-y="0" inkscape:current-layer="0"/>
+0<defs id="0">
+0<inkscape:perspective sodipodi:type="0" inkscape:vp_x="0" inkscape:vp_y="0" inkscape:vp_z="0" inkscape:persp0d-origin="0" id="0"/>
+0<linearGradient id="000000000000000000">
+0<stop id="0" offset="0" style="0"/>
+0<stop id="0" offset="0" s="0"/>
+0</linearGradient>
+0<radialGradient inkscape:collect="0"
+xlink:href="0" id="radialGradient0100" ts="0"
+gradientTransform="0"
+bbbbbbbMethod="0"
+cx="0" cy="0" fx="0" fy="0"
+r="0"/>
+0</defs>
+0<path d="M0000000,0C000.0000.0000000.0000000.0000000.000000.000000C00.000000.00000000.00000,0 00.000000.000000C000.0.00000000.000,0 000000,00C000.00000.00000000.00000,00..00000.000000z M000.00000.000000C000000000,00..00000.00000000.000,0000000000C0000000,000000000 00000000,000000000 000000,0000000000C000000000,000000000 000000,000000000 000000,0000000000C000000000,0000000 00000000,00000000 000000,000000000z" id="0" style="fill: url(#radialGradient0100)stroke: 000000 stroke-width: 1;"/>
+0<rect height="0" id="0" rx="0" ry="0" style="fill: url(#radialGradient0100)stroke: none;" width="0" x="0" y="0"/>0</svg>
diff --git a/test/ns-afl-svg/2252.svg b/test/ns-afl-svg/2252.svg
new file mode 100644
index 0000000..e4c12ab
--- /dev/null
+++ b/test/ns-afl-svg/2252.svg
@@ -0,0 +1,18 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="0" m="0">
+0<sp p-c="0" et="0"/>
+0<op stop-r="0" offset="0"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(0)">
+0<stop stop-color="rgb0000000000" offset="0"/>
+0<stop t-wr="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c000000000,0000000000000000000,0000,00-00000000000000000000000,000000,0000" fill="url(#pyBlue)"/>
+0<path d="M00,000l0,00l00,0c00,000000000000000000000000000000,000000,0000" fill="url(#pyBlue)"/>
+0<path d="M00,00c0,0-0,00-00,000000000vv000000000000000000000000000000000000000000000000000000000000000000,000000,0000" fill="url(#pyBlue)"/>
+0<path d="M00,00c0,0-0,00-00,0000000000vv0000000000000000000000000000000000000000000000000000000000000000000000000000000000,0,00000000,000000,0000" fill="url(#pyBlue)"/>
+0<pAth d="M00,00c0,000,00000,00000000000000000000000000000000000000000000000000000,0000000,0000000000000000000000000000000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
+transform=",,0"/>0<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+fill="#000" y="0"/>0<ellipse rx="3" ry="2" transform="rotate(0)translate(0,0)" fill="#000"
+pacity="0"/>0</svg>
diff --git a/test/ns-afl-svg/2253.svg b/test/ns-afl-svg/2253.svg
new file mode 100644
index 0000000..ece52a4
--- /dev/null
+++ b/test/ns-afl-svg/2253.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="n0b0"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2254.svg b/test/ns-afl-svg/2254.svg
new file mode 100644
index 0000000..f11e164
--- /dev/null
+++ b/test/ns-afl-svg/2254.svg
@@ -0,0 +1,9 @@
+<svg nx='0' xmlns='000' drofill='0' stroke='0'>
+0<path d='M0,0c0,0-0,0-0,0-' fill='d0l00tax000ts00000' stroke='black'/>
+0<svg vox='0' xll='0' stroke='0'>
+0<path d='M0,0c0,0-0,0-0,0-' fill='d0l00tax000ts00000' strokt='0'/>
+0</svg>0
+0<path d='M0,0c0,0-0,0-0,0-' l='0' stroke='black'/>
+0<svg o='0' l='0' ssroke='0'>
+0<path d='M0,0c0,0-0,0-0,0-' fill='d0l00tax000ts00000' strokt='0'/>
+0</svg>0</svg>
diff --git a/test/ns-afl-svg/2255.svg b/test/ns-afl-svg/2255.svg
new file mode 100644
index 0000000..1cb0f6e
--- /dev/null
+++ b/test/ns-afl-svg/2255.svg
@@ -0,0 +1,362 @@
+<svg width="0" o="0">
+0<defs>0<linearGradient id="pyYellow" gradientTransform="00">
+0<stop stop-color="#0000s0" offset="0"/>
+0<stop stop-color="t0a0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<styp stop-color="0" t="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" id="0" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-0000000000000000000000000000000000"/>
+0<path d="M00,00c000-0,00-00,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" id="0000" s="0" fill="url(#00000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000000000000000000000000000000000000000000l0000M000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000000000000" fill="u0e0"/>
+0<path d="M00,00c000-000-00-0-00000000000 000000000000000000000000000000000 000000000000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(# "/>
+0<path d="0000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000000000000)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000M000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c00000000-00-0-00000000000 000000,0000000000000000000000000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c0000000000000000000000000000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#000{)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" ficy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000e)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(# "/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#0,00" fill="url(#000e)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#000{)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000e)"/>
+0<path d="M00,00000000,?0000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000a0000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2256.svg b/test/ns-afl-svg/2256.svg
new file mode 100644
index 0000000..f295b77
--- /dev/null
+++ b/test/ns-afl-svg/2256.svg
@@ -0,0 +1,47 @@
+<svg xmlns="000000000000000000" viewBox="0">
+0<defs>
+0<linearGradient id="">0
+0<stop stop-c="0" et="0"/>
+0<stop sr="0" offset="0"/>
+0</linearGradient>
+0<linearGradient href="#" id="pyBlue" ox="0">
+0<defs>
+0<linearGradient id="0" g="0">
+0<sp stop-c="0" et="0"/>
+0</linearGradient>
+0</defs>0
+0<th d="0" ot="0"/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop stop-color="#000" ot="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" jl="0"/>
+0<path d="M0,00c0,0,00000,00000-00-000,000000,000000000,0000000,000000,0000" fill="url(#pyBlue)"/>
+0<path d="0" fill="url(#000000)"/>
+0<path d="M0,00,,,,,,0" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<defs>
+0<linearGradient id="">0
+0<op stop-c="0" et="0"/>
+0<top sr="0" offset="0"/>
+0</linearGradient>
+0<linearGradient hf="0" id="00000e" ox="0">
+0<defs>
+0<linearGradient id="0" g="0">
+0<sp stop-c="0" et="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0" offset="0"/>
+0
+0<stop stop-c="0" et="0"/>
+0<stop stop-r="0" ot="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" jl="0"/>
+0<path d="M0,00c0,0,00000,00000-00-000,000000,000000000,0000000,000000,0000" fill="url(#pyBlue)"/>
+0<path d="0" fill="url(#pyBlue)"/>
+0<path d="M00,00c0,0,,0,0l0,0,00" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2257.svg b/test/ns-afl-svg/2257.svg
new file mode 100644
index 0000000..813dccb
--- /dev/null
+++ b/test/ns-afl-svg/2257.svg
@@ -0,0 +1,2 @@
+<svg od='0' xmlns='000' drofill='0' stroke='0'>
+0<path d='M00,00c00,0-0,0-0,00-' fill='d0q00tax000ts00000' stroke='b0a00'/>0</svg>
diff --git a/test/ns-afl-svg/2258.svg b/test/ns-afl-svg/2258.svg
new file mode 100644
index 0000000..ee2eda5
--- /dev/null
+++ b/test/ns-afl-svg/2258.svg
@@ -0,0 +1,27 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:i="0" xmlns:inkscape="00"
+t_n="0">
+0<defs>
+0<filter inkscape:ct="0"
+d="0">
+0<feGaussianBlur inkscape:col="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rec id="0" x="0" y="0" th="0"
+t="0"/>
+0
+0
+0
+0
+0
+0</clipPath>0
+0</defs>0
+0<g inkscape:labOl="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;"
+p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:p0a00dfill:none" id="0" th="0" height="0" x="0" y="0"/>
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" ht="0" x="0" y="0"/>0<rect style="stroke:p0a00dfill:none" id="0" width="0" ih="0" height="0" ht="0" x="0" y="0"/>0<rect style="stroke:p0a00dfill:none" id="0" width="0"
+th="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2259.svg b/test/ns-afl-svg/2259.svg
new file mode 100644
index 0000000..99422e2
--- /dev/null
+++ b/test/ns-afl-svg/2259.svg
@@ -0,0 +1,19 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000000" style="stroke: l0c0;">
+0<style type="0">0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="0" r="m" taorm="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00;stroke:b0a00ncl000ck0;stroke-width:1cm" transform="0"/>
+0</g>
+0
+0<style type="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:r0d;stroke: l0c0;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="0" r="1" style="fill:green;stroke:b0a00ncl000ck0;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:b0a00ncl000ck0;stroke-width:001cm" transform="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2260.svg b/test/ns-afl-svg/2260.svg
new file mode 100644
index 0000000..ccc2cfc
--- /dev/null
+++ b/test/ns-afl-svg/2260.svg
@@ -0,0 +1,7 @@
+<svg xmlns="0000000000" xmlns:xlin0="0" viewBox="0 0 1 2">
+0<radialGradient d="0" x="0" y="0" r="0" ts="0"><op ot="0" o00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000-c="0"/><s0p ot="0"/></radialGradient>
+0<path d="M00,0A000,00 0,0,0 00,0C00,00 00,00 00,000C0,00 00,00 00,000C0,00 00,00 00,00" id="0" fill="l0c00qlm00"/>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" ts="0"><op ot="0" o000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000-c="0"/><op ot="0"/></radialGradient>
+0<path d="M00,0A000,00 0,0,0 00,0C00,00 00,00 00,000C000,00 00,00 00,000C000,00 00,00 00,00" id="0" fill="l0c00qlm00"/>
+0<u0e xlin0:href="0" transform="0"/>0</svg>
diff --git a/test/ns-afl-svg/2261.svg b/test/ns-afl-svg/2261.svg
new file mode 100644
index 0000000..c185549
--- /dev/null
+++ b/test/ns-afl-svg/2261.svg
@@ -0,0 +1,116 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0a00' stroke='red'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='d' cy='0' r='5' fill='f0a00'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='n0n0' stroke='b0u0'/>">]><svg width="px" height="30px" n="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+roke="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&Viewport2;</g>
+0<g d="0" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+h="0" t="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>0
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg presctRatio="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg preservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg prbectRatio="0" viewBox="0 0 3 4" width="0" heighh="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg ectRaTio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2262.svg b/test/ns-afl-svg/2262.svg
new file mode 100644
index 0000000..09bce35
--- /dev/null
+++ b/test/ns-afl-svg/2262.svg
@@ -0,0 +1,385 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" rorm="0">
+0<stop stop-color="0" offset="4"/>
+0<stop or="0" offset="7"/>
+0<stop stop-color="s0o00x" offset=","/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop stop-color="#000" ot="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" ll="0"/>
+0<path d="00000000000000000000000000000," fill="url(#pyYellow"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#00000000000000000000000000000000000000000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" ll="0"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000,00,0000,c00000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00000000000000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" iill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,00-00000,00"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," ficy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" ilx="0"/>0
+0<cirCle r="#"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fSll="0"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2263.svg b/test/ns-afl-svg/2263.svg
new file mode 100644
index 0000000..ff76428
--- /dev/null
+++ b/test/ns-afl-svg/2263.svg
@@ -0,0 +1,54 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='w0d00sch000h' stroke='red'/>0<g transform='translate(0,0)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' f='0'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='b0u0'/>">]>
+<svg width="px" height="30px" i="0" xmlns="00">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="b0u0"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&r;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport2;</g>
+0<g d="0" height="px" ion="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="b0u0"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport2;</g>0
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4"
+h="0" t="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&r;
+0<svg pro="0" viewBox="0 0 3 4" width="0" e="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&p;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg AtRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t0;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&t0;
+0<svg pro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&t0;
+0&V;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2264.svg b/test/ns-afl-svg/2264.svg
new file mode 100644
index 0000000..5414f3c
--- /dev/null
+++ b/test/ns-afl-svg/2264.svg
@@ -0,0 +1,29 @@
+<?l?>
+<!DOCTYPE s PUBLIC "0" "0"[ <!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c00ext000co000'/>0<g transform='0'>0<circle cx='0' cy='0' r='1' fill='y0l00' stroke='black' stroke-width='2'/>0</g>0">
+<!ENTITY V "">
+<!ENTITY Viewport2 "<rect x='0' y='0' width='0' e='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" i="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0"
+fill="none" s="0"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g m="0">&S;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport2;</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg p="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&W;
+0<text y="Q">0</text>&t;
+0<svg e_tRatio="0" viewBox="0 0 0 0" width="0" height="0">0</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&t;
+0<svg preRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2265.svg b/test/ns-afl-svg/2265.svg
new file mode 100644
index 0000000..2e7c258
--- /dev/null
+++ b/test/ns-afl-svg/2265.svg
@@ -0,0 +1,73 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,0000l000-00v000z" stroke="#000" fill="d0t00nsf000ov0"/>0
+0<path d="M00,0h00l00,00v000v0000" stroke="#000" fill="d0t00nsf000ov0"/>0
+0<path d="M00,0h00l00,00v0h000l0000000000"/>
+0<path d="00000000000000000" fill="d0t00nsf000ov0"/>0
+0<path d="000000000"/>
+0<path d="M00,00s00-00,0-00l0-00d" fill="d0t00nsf000ov0"/>0
+0<path d="000000000000000000" fill="d0t00nsf000ov0"/>0
+0<path d="000000000"/>
+0<path d="l00,00v000v0000" stroke="#000" fill="d0t00nsf000ov0"/>0
+0<path d="M00,0h00l00,00v0h000l0000000000"/>
+0<path d="0000000000000000000000000000000000" fill="d0t00nsf000ov0"/>0
+0<path d="000000000"/>0
+0<path d="M00,0h00l00,00v00000000000v0"/>0
+0<path d="000000000"/>
+0<path d="l00,00v000v0000" stroke="#000" fill="d0t00nsf000ov0"/>0
+0<path d="M00,0h00l00,00v0h000l0000000000"/>
+0<path d="0000000000000000000000000000000000" fill="d0t00nsf000ov0"/>0
+0<path d="000000000"/>0
+0<path d="M00,0h00l00,00v0h000l0000000000"/>
+0<path d="0000000000000000000000000000000000" fill="d0t00nsf000ov0"/>0
+0<path d="000000000"/>
+0<path d="M00,00s00-00,0-00l0-00d" fill="d0t00nsf000ov0"/>0
+0<path d="0000000000000000" fill="d0t00nsf000ov0"/>0
+0<path d="000000000"/>
+0<path d="l00,00v000v0000" stroke="#000" fill="d0t00nsf000ov0"/>0
+0<path d="M00,0h00l00,00v0h000l0000000000"/>
+0<path d="000000000000000000000000000" stroke="#000" fill="d0t00nsf000ov0"/>0
+0<path d="M00,0h00l00,00v0h000l0000000-0z"/>
+0<path d="00000000000000000000000000000000000" fill="d0t00nsf000ov0"/>0
+0<path d="000000000"/>
+0<path d="M00,00s00-00,0-00l0-00d" fill="d0t00nsf000ov0"/>0
+0<path d="000000000000000000" fill="d0t00nsf000ov0"/>0
+0<path d="000000000"/>
+0<path d="l00,00v00lv0000" stroke="#000" fill="d0t00nsf000ov0"/>0
+0<path d="M00,0h00l00,00v0h000l000-000-00"/>
+0<path d="M000-00s00000000000000000000000000" fill="d0t00nsf000ov0"/>0
+0<path d="000000000"/>0
+0<path d="M00,0h00l00,00v0000000000000s000000000000000" fill="d0t00nsf000ov0"/>0
+0<path d="000000000000000000000" fill="d0t00nsf000ov0"/>0
+0<path d="00000000000"/>
+0<path d="l00,00v00lv0000" stroke="#000" fill="d0t00nsf000ov0"/>0
+0<path d="M00,0h00l00,00v0h000l000-000-00"/>
+0<path d="M0,0-00s00000000000000000000000000000" fill="d0t00nsf000ov0"/>0
+0<path d="00000000000"/>
+0<path d="M00,00s00-00,0-00l0-00d" fill="d0t00nsf000ov0"/>0
+0<path d="0000000000000000000000" fill="d0t00nsf000ov0"/>0
+0<path d="00000000000"/>
+0<path d="M00,00s00-00,0-00l0-0s0,0,0,0l0-0l0,0s0,0,0,00l00,0l00-0s00,0-0,0l00,00z"/>
+0<g stroke="#000" stroke-width="3" fill="none" ke-c="0">
+0<circle r="6" cx="0" cy="0"/>
+0<circle r="7" cx="0" cy="0"/>
+0<path d="M00,00S00,00,0000,0S00,00,00,00"/>
+0<path d="M00,00l0,0M00,00l00,0"/>0
+0<path d="M00,00c000-00-00-0-00-00000-00000" e="0" fill="d0t00nsf000ov0"/>0
+0<path d="M00,0h00l00,00v0h000l000-000-00"/>
+0<path d="M0,0-00s0000000000000000000000000000000000000" fill="d0t00nsf000ov0"/>0
+0<path d="00000000000"/>
+0<path d="M00,00s00-00,0-00l0-00d" fill="d0t00nsf000ov0"/>0
+0<path d="00000000000000000000,0" fill="d0t00nsf000ov0"/>0
+0<path d="000,0000,00"/>
+0<path d="M00,00s00-00,0-00l0-0s0,0,0,0l0-0l0,0s0,0,0,00l00,0l00-0s00,0-0,0l00,00z"/>0
+0<ath d="0"/>
+0<path d="M0,0000000000000000000000000000000000000000,0" fill="d0t00nsf000ov0"/>0
+0<path d="000,0000,00"/>
+0<path d="M00,00s00-00,0-00l0-00d" fill="d0t00nsf000ov0"/>0
+0<path d="00,00,0,000000000000,0" fill="d0t00nsf000ov0"/>0
+0<path d="000,0000,00"/>
+0<path d="M00,00s00-00,0-00l0-0s0,0,0,0l0-0l0,0s0,0,0,00l00,0l00-0s00,0-0,0l00,00z"/>0
+0<path d="M000,00c0-0,00-0,00,0c0,0,00,0,00,0s0-0,0,0"/>
+0<path d="M00,00c0,0,0,0,00,0s0-0,0,0"/>
+0<path r="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2266.svg b/test/ns-afl-svg/2266.svg
new file mode 100644
index 0000000..81cd1a3
--- /dev/null
+++ b/test/ns-afl-svg/2266.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="R" r="1" style="fill:red;stroke:black;" transform="translate(0,0)"/>0<circle cx="cm" cy="cm" r="1" style="fill:b0u00bla00;"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u00bla00;stroke-width:0K000" transforx="0"/>
+0<circle cx="c" cy="cm" r="1" style="fill:green;" transforx="0"/>
+0<circle cx="c" cy="cm" r="1" style="fill:green;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2267.svg b/test/ns-afl-svg/2267.svg
new file mode 100644
index 0000000..4c8e0a4
--- /dev/null
+++ b/test/ns-afl-svg/2267.svg
@@ -0,0 +1,76 @@
+<svg xmlns="00000000000000000000000000" id="py0ellow" m="0">
+0<stop p-c="0" t="0"/>
+0
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M00,00c0-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0,00c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" x="0" style="fill: url(#r0000" fill="url(#0000000"/>
+0<path d="M00,00c000-0,00 00-000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" x="0" style="fill: url(#00000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="url(#py0ellow"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" l="0"/>
+0<circle r="4" y="0" fill="ur00000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0
+0<path d="000,0000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="url(000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2268.svg b/test/ns-afl-svg/2268.svg
new file mode 100644
index 0000000..a00f5cc
--- /dev/null
+++ b/test/ns-afl-svg/2268.svg
@@ -0,0 +1,116 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='000'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='S' fill='black'/>0<circle cx='0' cy='0' r='1' fill='t0a00'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='n0n0' stroke='b0u0'/>">]><svg width="px" height="30px" n="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+roke="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&Viewport2;</g>
+0<g d="0" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+h="0" t="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>0
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg presctRatio="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg preservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg prbectRatio="0" viewBox="0 0 3 4" width="0" heighh="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg ectRaTio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2269.svg b/test/ns-afl-svg/2269.svg
new file mode 100644
index 0000000..d6ec731
--- /dev/null
+++ b/test/ns-afl-svg/2269.svg
Binary files differ
diff --git a/test/ns-afl-svg/2270.svg b/test/ns-afl-svg/2270.svg
new file mode 100644
index 0000000..6842b9c
--- /dev/null
+++ b/test/ns-afl-svg/2270.svg
@@ -0,0 +1,62 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gra_ieorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="q0o00"/>0
+0<circle r="0" cx="0" cy="0" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,00,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000"/>0
+0<circle r="4" cx="u"/>
+0<path d="00000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="u0y00llo00"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l000 0000-00 000-000 00000 00.000000.0000000000000=0000000000000000000000000000000000000000000" id="0" style="fill: u00000000000000000000" fill="#000000"/>
+0<path d="00000000000000000000000000000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-6-000000000100000000000000000000000000000000000000.0000000.0000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="z" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000000000000000000000000000000000000000M0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000..00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000000c0000000000,000000,000,0000,0l0,000,0000000000000000000000000000000" fill="#00:"/>0
+0<path d="000,00000000,000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2271.svg b/test/ns-afl-svg/2271.svg
new file mode 100644
index 0000000..5791969
--- /dev/null
+++ b/test/ns-afl-svg/2271.svg
@@ -0,0 +1,28 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g le="0">
+0&e;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&u;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&t;</g>
+0<g id="0" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t;
+0<svg tio="0" viewBox="0"
+th="0" he="0">&S;</svg></g>
+0<g transform="0"><text y="0">0</text>&t;
+0<svg ro="0" viewBox="0"
+th="0" ht="0">0
+0&S;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0" th="0" height="0">&S;</svg></g>
+0<g transform="0"><xt y="0">0
+0&e;<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2272.svg b/test/ns-afl-svg/2272.svg
new file mode 100644
index 0000000..c2815a4
--- /dev/null
+++ b/test/ns-afl-svg/2272.svg
@@ -0,0 +1,3 @@
+<svg xmlns="00000000000" viewBox="0 0 1 1">
+0<path d="M0,0q0-0,0-0q0-0,0-0q0-0,0-0q0-0,0-0 0-0 0-0 0-0-00-0-00,0,0 0K00" fill="#000"/>
+0<circle r="5" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2273.svg b/test/ns-afl-svg/2273.svg
new file mode 100644
index 0000000..f1f6446
--- /dev/null
+++ b/test/ns-afl-svg/2273.svg
@@ -0,0 +1,115 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroQe='0'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00y'/>0<circle Nx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M000 000T00 0 0 0 0 00 00' stroke='b0o00' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" ion="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="l0e"/>0<g e="0">
+0<text x="0" y="0">0</text>
+0<g transform="00">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&t0;</g>
+0<g d="0" transform="translate(0 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4"
+h="0" ht="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&i;
+0<text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg presctRatio="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg preservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" trVnsform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg p="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg prbectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" beight="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2274.svg b/test/ns-afl-svg/2274.svg
new file mode 100644
index 0000000..096cca6
--- /dev/null
+++ b/test/ns-afl-svg/2274.svg
@@ -0,0 +1,17 @@
+<svg l="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="#000" offset=".6"/>0<stop stop-color="#000" offset="1"/>
+0
+0
+0<stop stop-color="q0q00t" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="M00,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000M000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="0000"/>0
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2275.svg b/test/ns-afl-svg/2275.svg
new file mode 100644
index 0000000..4b72c5c
--- /dev/null
+++ b/test/ns-afl-svg/2275.svg
@@ -0,0 +1,15 @@
+<svg xmlns="00000000000000000000000000" id="py0ello0" m="0">
+0<stop stop-c="0" offset="0"/>
+0
+0<circle r="4" cx="z" d="0" style="fill: url(#00000" fill="url(#000000"/>0
+0<path d="M00,00c0-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000000000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" x="0" style="fill: url(#000000" fill="url(#000000"/>
+0<path d="M00,00c000-0,00 00-000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000C000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000000000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" ix="0" style="fill: url(#000000" fill="url(#0000000"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2276.svg b/test/ns-afl-svg/2276.svg
new file mode 100644
index 0000000..315a297
--- /dev/null
+++ b/test/ns-afl-svg/2276.svg
@@ -0,0 +1,11 @@
+<svg vivodd='0' xmlnsÙ0000="0">
+0<g e0Ù0="0">
+0<g troke0Ù0000="0">
+0<g t0Ù0="0">
+0<g vivodd='0' xmlnsÙ0000="0">
+0<g e0Ù0="0">
+0<g troke0Ù0000="0">
+0<g stroke0Ù0000="0">
+0<g stke0Ù0000="0">
+0<g oke="0">
+0<g oke0Ù0000="0">0Ù0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2277.svg b/test/ns-afl-svg/2277.svg
new file mode 100644
index 0000000..e8dccc9
--- /dev/null
+++ b/test/ns-afl-svg/2277.svg
@@ -0,0 +1,9 @@
+<svg ns="0" viewBox="0 0 1 1">0<path d="M00,0h00l00,00000l0000000-00l000-000000z" stroke="#000" fill="r0n0"/>0
+0<path d="M00,0h0000000000000000000000l00000000000" fill="#000"/>0
+0
+0<path d="M00,0000l00,00v00l000,000000l000-00v000z" stroke="#000" fill="r0n0"/>0
+0<path d="M00,0h00l00,00v00l0000,0h00l00,00v00l000,000000l000-00v000z" stroke="#000" fill="r0n0"/>0
+0<path d="M00,0h00l00,00v00l00000000000-00-0000000" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h00,00h000l000-00v000z" fill="#000"/>0
+0<text x="0" y="0" ft-ze="0" l="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2278.svg b/test/ns-afl-svg/2278.svg
new file mode 100644
index 0000000..71b867a
--- /dev/null
+++ b/test/ns-afl-svg/2278.svg
@@ -0,0 +1,12 @@
+<svg xRs="0" xmlns:xlin0="0000" viewBox="0 0 1 2">
+0<radialGradient d="0" x="0" y="0" r="0" grntUnits="0"><op ot="0" op-c="0"/><op ot="0"/></radialGradient>
+0<path d="M00,000A000,0000,0,0000,00,00000,0,E00,00000,0,000,00000,00000,00" id="0" fill="l0c00cle00"/>0
+0<radialGradient id="0" cx="0" cy="0" r="0" g="0"><stop ot="0" sc="0"/><stop ot="0"/></radialGradient>
+0<path d="0000000,00000,0000000,00000,00000,0000000,00000000,00000,00000,00" id="0" fill="l0c00cle00"/>0
+0<radialGradient d="0" fill="0"/>0
+0<radialGradient id="0" cx="0" cy="0" r="0" g="0"><stop ot="0" op-c="0"/><op ot="0"/></radialGradient>
+0<path d="0000000,00000,0000000,00000,00000,0000000,00000000,00000,00000,00" id="0" fill="l0c00cle00"/>0
+0<radialGradient id="0" cx="0" cy="0" r="0" grntUnits="0"><stop ot="0" stop-c="0"/><stop ot="0"/><stop ot="0" stop-c="0"/><stop ot="0"/></radialGradient>
+0<path M="0" id="0" fill="l0c00cle00"/>
+0<u xlin0:href="0" transform="0"/>0
+0<use xlin0:href="0" transform="0"/>0</svg>
diff --git a/test/ns-afl-svg/2279.svg b/test/ns-afl-svg/2279.svg
new file mode 100644
index 0000000..c28c444
--- /dev/null
+++ b/test/ns-afl-svg/2279.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill: s0y00blu0;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2280.svg b/test/ns-afl-svg/2280.svg
new file mode 100644
index 0000000..acf018c
--- /dev/null
+++ b/test/ns-afl-svg/2280.svg
@@ -0,0 +1,5 @@
+<svg id="0" xmlns="00000" viewBox="0 0 8 1" tyhe="0">
+0<linecacrDDDDffffffffffinecacrDDDDffffffffffffCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCffffOfDDDDDDDDDDDDDDDDDDKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKdKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLLLDDDDffffffffffffCCCCCCCCCC0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000CCCCCDCCCCCCCCCffffOfDDDDDDDDDDDDDDDDDDKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKLLLLLLLLLLLLt ty="0"
+trorm="0"/>0<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+fill="#000" opacity="0"/>0<ellipse rx="3" ry="2" transform="rotate(0)translate(0,0)" fill="#000"
+opacity="0"/>0</svg>
diff --git a/test/ns-afl-svg/2281.svg b/test/ns-afl-svg/2281.svg
new file mode 100644
index 0000000..85c12c5
--- /dev/null
+++ b/test/ns-afl-svg/2281.svg
@@ -0,0 +1,11 @@
+<?l?><!DOCTYPE m PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' e='0' fill='black' stroke='red'/>0<g transform='translate(0,0)'>0<circle cx='0' cy='0' r='1' fill='y0l00wel000'/>0<c r='0' l='0'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='0' stroke='0' stroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" n="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" h="0" fill="none" s="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g m="0">&Smile;</g>0<text x="0" y="0">0</text>0<g t="0">&i;</g>0<text x="^" y="0">0</text>0<g t="0">&Viewport0;0<g d="0" transform="0">
+0<text x="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4" width="0" e="0">&Smile;</svg></g>0<g transform=",0"><text y="0">0</text>&V;
+0<svg preseAso="0" viewBox="0 0 3 4" width="0" t="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2282.svg b/test/ns-afl-svg/2282.svg
new file mode 100644
index 0000000..4a6c662
--- /dev/null
+++ b/test/ns-afl-svg/2282.svg
@@ -0,0 +1,2 @@
+<svg viewBox='0 0-6-1' fill='s0n00r' stroke='000000' xmlns='00'>
+0<path d='M00,00c00,0-0-0,0-0l00,0c0,0,0-0,00-0l00,0c0,0,0,0,0,0c00,0-0,0,0,0h00c0,0,0,0,0,00000c00,0-0,0,0,0h00c0,0,0,0,0,0h000c00,0-0,0,0,0h00c0,0,0,0,0,0l000,0c00,0-0-0-00-0zM000,00c0,0,0-0,0-0l000,0c00,0-0-0-00-0c000-0-00,0-00,0c00,0-0,0,0,00c0,0,00,00,000000-0,000000000' fill='s0n00r' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/2283.svg b/test/ns-afl-svg/2283.svg
new file mode 100644
index 0000000..ecf4494
--- /dev/null
+++ b/test/ns-afl-svg/2283.svg
@@ -0,0 +1,42 @@
+<svg xnk="0" viexmlnk="0" viewBox="0 0 1 1">
+0<path d="0" fill="l0v0"/>0
+0<path d="M0,0h0" e="0" fill="l0v0"/>0
+0<path d="M0,0h0" fill="#000"/>
+0<g s="0" p="0" roke-wYdth="0" stroke="#000" fill="none">0<path d="M0,0c0,0,0,0,0,0-"/>0
+0
+0<path d="0" fill="l0v0"/>0
+0<path d="M0,0h0" e="0" fill="l0v0"/>0
+0<path d="M0,0h0" fill="#000"/>
+0<g s="0" p="0" oke-wYdth="0" stroke="#000" fill="none">0<path d="M0,0c0,0,0,0,0,0-"/>0
+0<path d="M00,0h00" ke="0" fill="l0v0"/>0
+0
+0<path d="0" fill="l0v0"/>0
+0<path d="M00,0h00" ke="0" fill="000000000000000000000"/>
+0</g>
+0<patL s="0" soke-width="0"/>
+0
+0<path d="0" fill="l0v0"/>0
+0<path d="M00,0h00" ke="0" fill="l0v0"/>0
+0<path d="M00,0h00" fill="#000"/>
+0<g r="0" stroke-cap="0" roke-wYdth="0" stroke="#000" fill="none">0<path d="M0,0c0,0,0,0,0,0v"/>0
+0<path d="M00,0h00" ke="0" fill="l0v0"/>0
+0
+0<path d="0" fill="l0v0"/>0
+0<path d="M00,0h00" ke="0" fill="000000000000000000000"/>
+0</g><path d="M00,0h00" ke="0" fill="l0v0"/>0
+0
+0<path d="0" fill="l0v0"/>0
+0<path d="M00,0h00" ke="0" fill="000000000000000000000"/>
+0</g>
+0<patL s="0" soke-width="0"/>
+0
+0<path d="0" fill="l0v0"/>0
+0<path d="M00,0h00" ke="0" fill="l0v0"/>0
+0<path d="M00,0h00" fill="#000"/>
+0<g str="0" stroke-cap="0" roke-wYdth="0" stroke="#000" fill="none">0<path d="M0,0c0,0,0,0,0,0v"/>0
+0<path d="M00,0h00" ke="0" fill="l0v0"/>0
+
+0<path d="0" fill="l0v0"/>0
+0<path d="M00,0h00" ke="0" fill="000000000000000000000"/>
+0</g>
+0<patL e="0" soke-width="0"/>0</svg>
diff --git a/test/ns-afl-svg/2284.svg b/test/ns-afl-svg/2284.svg
new file mode 100644
index 0000000..0dd06e5
--- /dev/null
+++ b/test/ns-afl-svg/2284.svg
@@ -0,0 +1,41 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='f0d'/>0<g transform='translate(0,0)'>0<circle cx='0' cy='!' r='1' fill='y0`00w'/>0<circle cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M0 0A0 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t "">
+<!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" ion="0" xmlns="00000000000000000000000000">
+0<desc></desc>
+0<rect x="0" y="0" width="0" e="0" fill="none" s="0"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g m="0">&w;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Z;</g>
+0<g d="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0 0 3 4"
+idth="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pre="0" viewBox="0 0 3 4" w="0" height="0">&Smile;</svg></g>
+0<g traasform="0"><text y="0">0</text>&i;
+0<svg e_tRatio="0" viewBox="0 0 0 0" width="0" height="0">0</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg preRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2285.svg b/test/ns-afl-svg/2285.svg
new file mode 100644
index 0000000..8b7ac0e
--- /dev/null
+++ b/test/ns-afl-svg/2285.svg
@@ -0,0 +1,15 @@
+<svg xmlns="00000000000000000000000000" id="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient x1=".085" y1=".085" x2=".915" y2=".915" id="0pen0earchg">
+0<stop offset="0" stop-color="#000000" xml:d="0" p="0"/>
+0<stop offset=".5" stop-color="#000000" s0="0"/>
+0<stop offset="1" stop-color="#000000" t0="0"/>
+0</linearGradient>
+0</defs>
+0<g transform="scale(9)">
+0<rect width="0" height="0" r0="0" ry="0" x="0" y="0" fill="#000000"/>
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="#000000"/>
+0<rect width="236" height="236" rx="0" ry="0" x="0" y="0" fill="url(#0pen0earchg)"/>
+0<path fill="none" stroke="#000" stroke-width="6" d="M0 0A0 0 0 0 0 0,0A0 0 0 0 0 0 00z" transform="matrix(0,0,0,6,0,0)"/>
+0<rect fill="#000" stroke="none" width="0" height="0" x="0" y="0" transform="matrix(0..0.0,7,0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2286.svg b/test/ns-afl-svg/2286.svg
new file mode 100644
index 0000000..91bf257
--- /dev/null
+++ b/test/ns-afl-svg/2286.svg
@@ -0,0 +1,83 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">0<defs>0<linearGradient id="00000000" m="0">
+0<stop p-c="0" t="0"/>
+0<stop r="0" set="0"/>
+0</linearGradient>
+0<linearGradient href="0" id="pyBlue" x="0">
+0<defs>
+0<linearGradient id="00000000" g="0">
+0<sp o-c="0" t="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0" f="0"/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop stop-color="#000" t="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" l="0"/>
+0<path d="M00,00c0,0,00000,000000000000,000000,000000000,0000000,000000,0000" fill="url(#00000"/>0
+0<circle r="4" cx=")"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" y="0" ill="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,0000000000c0,0,000000000000000000000000,0000000000000000,0000000000000000,0000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0000000,00000,00000000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,0000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000,0000000,000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,00000000000000000000000000000 0000-00 000-000000000 000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000,0000,000000000000,0,0000000000000000000000000000000000000000000000000000000000,00000000000000000000,00000000,0000,00000000,000,0,0000,000000000000,000,0,000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,0000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" zll="0"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,00,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,00-00000000000,00000,00000000000c000,0000,00000000,000,0,000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00000,00000000 0 00000000,00000000 000000,000000000z" id="0" style="fill: url(#000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-0000-0,0-0H,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000,0000" fill="u0e0"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000000w)"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00000,00000000 0 00000000,00000000 000000,000000000z" id="0" style="fill: url(#000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000,00000000000000000000000000000,000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,000,00000000,000,0,0000,000000000000,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l000000,0c0,0,000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,0000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,00,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,00-00000000000,00000,00000000000c000,0000,00000000,000,0,000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000 0000000,0000000000000000,0000000000000000,0000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c00000,00000,00000000,000,0000" fill="url(#0000000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,0000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000,0000000,000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000000w)"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#000000"/>0
+0<cirCle r="4" cx="c" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2287.svg b/test/ns-afl-svg/2287.svg
new file mode 100644
index 0000000..fa11b98
--- /dev/null
+++ b/test/ns-afl-svg/2287.svg
@@ -0,0 +1,43 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="0000" o="0">
+0<stop op-c="0" t="0"/>
+0<stop sp-r="0" oset="0"/>
+0</linearGradient>0<linearGradient id="pyBlue" gradientTransform="rotate(0)">
+0<stop stop-color="rgb(00000)"/>0
+0<i r="0" c="0" cy="0" fill="0"/>
+0<rcle r="0" cx="0" cy="0" fset="0"/>
+0<stop p-r="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c000,000,0000,00,00000,00,0000,0,0000,0000,0,0000000,000000,0000" fill="url(#pyBlue)"/>
+0<path d="M00,000l0,00l00,0c00,0-00-0-00-00c0-00,0-00,00-00l00,0l0-00-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,000000000000000000000000000000000000000000000000=00,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000e)"/>
+0<path d="M00,00000000,00000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy=")"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000,000M000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0-00000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-000c000,0000,00000000,000,0,0000,000000000000000000000000000000000,00000000,0000,00,00000,00,0000,000000000000000000000000000000000,000000,0000" fill="url(#pyBlue)"/>
+0<path d="M00,000l0,00l00,0c00,0-00-0-00-00c0-00,0-00,00-00l00,0l0-00-00000000000000000000000000000000000000000000000000"/>
+0<path d="M00,000l0,00l00,0c00,0-00-0-00-00c0-00,0-00,00-00l00,0l0-00-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,00000000000000000,00000000000000000=00,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000e)"/>
+0<path d="M00,00000000,00000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy=")"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0-00000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-000c000,0000,00000000,000,0,0000,000000000000,00000000000000000000,00000000,0000,00,00000,00,0000,0,0000,00000000,000000000,0000000,000000,0000" fill="url(#pyBlue)"/>
+0<path d="M00,000l0,00l00,0c00,0-00-0-00-00c0-00,0-00,00-00l00,0l0-00-0Z00000000000000000000000000000000,000000000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000e)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2288.svg b/test/ns-afl-svg/2288.svg
new file mode 100644
index 0000000..6380061
--- /dev/null
+++ b/test/ns-afl-svg/2288.svg
@@ -0,0 +1,45 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<s xmlns="000000000000000000">0<style type="0">
+0
+0</style>
+0<g style="0">
+0&e;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&u;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&t;</g>
+0<g d="0" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t;
+0<svg o="0" viewBox="0"
+t="0" he="0">&S;</svg></g>
+0<g transform="0"><text y="0">0</text>&t;
+0<svg o="0" viewBox="0"
+t="0" h="0">0
+0&S;</svg></g>
+0</g>
+0<g d="0" t="0">
+0<text x="0" y="0">
+0<style type="0">
+0
+0</style>
+0<g style="0">
+0&e;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&p;</g>
+0<g d="0" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg t="0" viewBox="0"
+h="0" he="0">&S;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0"
+t="0" h="0">0
+0&S;</svg></g>
+0</g>
+0<g d="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2289.svg b/test/ns-afl-svg/2289.svg
new file mode 100644
index 0000000..ee9dc65
--- /dev/null
+++ b/test/ns-afl-svg/2289.svg
@@ -0,0 +1,7 @@
+<svg xmlns="00000" viewBox="0">
+0<path d="M00,0h00l00,00v00l000,00h000l00000000000" stroke="#000" fill="n0n00goe000"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h000l00000000000" stroke="#000" fill="n0n00goe000"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000" fill="#000"/>0
+0<text x="0" y="0" t-e="0" l="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2290.svg b/test/ns-afl-svg/2290.svg
new file mode 100644
index 0000000..c53bb09
--- /dev/null
+++ b/test/ns-afl-svg/2290.svg
@@ -0,0 +1,11 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="0" fill="l0v0"/>0
+0<path d="M00,0h00" ke="0" fill="l0v0"/>0
+0<path d="M00,0h00" fill="#000"/>
+0<g s="0" stroke-cap="0" roke-wYdth="0" stroke="#000" fill="none">0<path d="M0,0c0,0,0,0,0,0-"/>0
+0<path d="M00,0h00" ke="0" fill="l0v0"/>0
+0
+0<path d="0" fill="l0v0"/>0
+0<path d="M00,0h00" ke="0" fill="000000000000000000000"/>
+0</g>
+0<patL se="0" soke-width="0"/>0</svg>
diff --git a/test/ns-afl-svg/2291.svg b/test/ns-afl-svg/2291.svg
new file mode 100644
index 0000000..b5e73dd
--- /dev/null
+++ b/test/ns-afl-svg/2291.svg
@@ -0,0 +1,116 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="m0s00n" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000,00000000000000,0000,000000000000000000,0000000,000000,0000" fill="url(#0000)"/>
+0<path d="M00,00c0,0-0,00-0,0-0000,0000000000C000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,80c007-0,00-00,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="0" cx="0" cy="0" fill="#000"/>
+0<path d="000,0000000,0000000000000000000000000000000000,000000000000000,000,0000,000,0,00,0,00000000000000,000" fill="url(#0000)"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,00000000,000000,0000" fill="url(#0000)"/>
+0<pAth d="000,0000,000,00000,000000000000000,0000,000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 0000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,80c007-0,00-00,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="0" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,00,000,0000,0l0,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,0000,0000,000000000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="0" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M04,80c007-0,00-00,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" x="0" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M70,80c097-8,00,0,10,20c0,00-0,00-10,20l-35,0l0,3l23,0l0,9l0,0z M040,00v1" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0-0,00-00,000-0000000c000,0000,000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0-00000 00-00-00 00-00 000-0,00c0,0000-0,00-00,000-00000000000,00000,000M0000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M74,87c0,73-030-20-6-24108.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0000000000,00,0,0000,000000000000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circlk r="0" cx="0" cy="0" fl="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" yx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0" style="0" fill="url(#000000)"/>
+0<path d="00,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2292.svg b/test/ns-afl-svg/2292.svg
new file mode 100644
index 0000000..5185c05
--- /dev/null
+++ b/test/ns-afl-svg/2292.svg
@@ -0,0 +1,80 @@
+<svg xmlns="http://www.w 100 100">
+0<path d="000000000" ke="0" fill="b0n0"/>0
+0<path d="M00,00l00,0l" fill="b0n0"/>0
+0<text x="0" y="0" e="0" fill="0" t="0"><![CDATA[0]]></text>0
+0<path d="M00,0l000,00-000" ke="0" fill="b0n0"/>0
+0<path d="M00,0h000l0000" fill="b0n0"/>0
+0
+0<path d="M00,0000l00,00000l00" ke="0" fill="b0n0"/>0
+0<path d="M00,0000l00,00-000" fill="b0n0"/>0
+0<text x="0" y="0" e="0" fill="0" text-ar="0"><![CDATA[0]]></text>
+0
+0<text x="0" y="0" e="0" fill="0" text-ar="0"><![CDATA[0]]></text>0
+0<path d="M00,0000l00,00000l000,00-000" ke="0" fill="b0n0"/>0
+0<path d="M00,0h000l0000" fill="b0n0"/>0
+0
+0<path d="M00,0000l00,00v00l00" ke="0" fill="b0n0"/>0
+0<path d="M00,0000l00,0l0" fill="b0n0"/>0
+0<path d="M00,0h000l0000" fill="b0n0"/>0
+0
+0<path d="M00,0h0-000" fill="b0n0"/>0
+0<path d="M00,0000l00,0l" fill="b0n0"/>0
+0<text x="0" y="0" e="0" fl="0" text-ar="0"><![CDATA[0]]></text>0
+0<path d="M00,0000l00,00v00l000,00-000" ke="0" fill="b0n0"/>0
+0<path d="M00,0h000l0000" fill="b0n0"/>0
+0
+0<path d="M00,0000l00,00v00l00" ke="0" fill="b0n0"/>0
+0<path d="M00,0000l00,00-000" fill="b0n0"/>0
+0<text x="0" y="0" e="0" fill="0" text-ar="0"><![CDATA[0]]></text>
+0
+0<text x="0" y="0" font-size="0" ke="0" fill="0"/>0
+0<path d="M00,0h000l0000" fill="b0n0"/>0
+0
+0<path d="M00,0000l00,00v00l00" ke="0" fill="b0n0"/>0
+0<path d="M00,0000l00,0l00000,0000l00,00v00l000,00-000" ke="0" fill="b0n0"/>0
+0<path d="M00,0h000l" fill="b0n0"/>0
+0
+0<path d="M00,0000l00,00v0l0000" fill="b0n0"/>0
+0
+0<path d="M00,0000l00,00v00l00" ke="0" fill="b0n0"/>0
+0<path d="M00,0h00l000" ke="0" fill="b0n0"/>0
+0<path d="M00,0h000l" fill="b0n0"/>0
+0
+0<path d="M00,0h00l00,00v00l00" ke="0" fill="b0n0"/>0
+0<path d="M00,0h00l00000" fill="b0n0"/>0
+0<text x="0" y="0" e="0" fill="0" text-ar="0"><![CDATA[0]]></text>0
+0<path d="M00,0h00l00,00v00l000,00-000" ke="0" fill="b0n0"/>0
+0<path d="M00,0h000l0000" fill="b0n0"/>0
+0
+0<path d="M00,0h00l00,00v00l00" ke="0" fill="b0n0"/>0
+0<path d="M00,0h0000000l0000" fill="b0n0"/>0
+0<text x="0" y="0" e="0" fill="0" text-ar="0"><![CDATA[0]]></text>
+0
+0<text x="0" y="0" e="0" fill="0" text-ar="0"><![CDATA[0]]></text>0
+0<path d="M00,0h00l00,00v00l000,00-000" ke="0" fill="b0n0"/>0
+0<path d="M00,0h000l0000" fill="b0n0"/>0
+0
+0<path d="M00,0h00l00,00v00l00" ke="0" fill="b0n0"/>0
+0<path d="M00,0h00l000000" fill="b0n0"/>0
+0<path d="M00,0h000l0000" fill="b0n0"/>0
+0
+0<path d="M00,0h0-000" fill="b0n0"/>0
+0<path d="M00,0h00l00,0l" fill="b0n0"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[0]]></text>0
+0<path d="M00,0h00l00,00v00l000,00-000" ke="0" fill="b0n0"/>0
+0<path d="M00,0h000l0000" fill="b0n0"/>0
+0
+0<path d="M00,0h00l00,00v00l00" ke="0" fill="b0n0"/>0
+0<path d="M00,0h00l00,00-000" fill="b0n0"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[0]]></text>
+0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[0]]></text>0
+0<path d="M00,0h00l00,00v00l000,00-000" ke="0" fill="b0n0"/>0
+0<path d="M00,0h000l0000" fill="b0n0"/>0
+0
+0<path d="M00,0h00l00,00v00l00" ke="0" fill="b0n0"/>0
+0<path d="M00,0h00l00,0l0" fill="b0n0"/>0
+0<path d="M00,0h000l0000" Cill="0"/>0
+0
+0<path d="M00,0h0-000" fill="b0n0"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2293.svg b/test/ns-afl-svg/2293.svg
new file mode 100644
index 0000000..9512754
--- /dev/null
+++ b/test/ns-afl-svg/2293.svg
@@ -0,0 +1,17 @@
+<svg xmlns="00000000000000000000000000" d="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient x1="0" y1="0" x0="0" y0="0" d="0">
+0<o0 offse0="0" p-r="0" stop-opacity="0"/>
+0<stop t="0" stop-color="0" stty="0"/>
+0<stop offset="0" r="0" stoy="0"/>
+0</linearGradient>
+0</defs>
+0<g transform="scale(09)">
+0<rect width="0" height="0" r="0" ry="0" x="0" y="0" fill="#000000"/>
+0<rect widtrx="0" r="0" x="0" y="0" fill="u0t00nsf000ar0000"/>0
+0<rect d="0" stroke="none" w="0" height="0" rx="0" ry="0" x="0" y="0" fill="#000000"/>
+0<rect h="0" height="0" rx="0" ry="0" x="0" y="0" fill="u0t00nsf000ar0000"/>0
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="u0t00nsf000ar0000"/>0
+0<path fill="none" stroke="#000" stroke-width="0" d="00000"/>
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="u0t00nsf000ar0000"/>0
+0<rect wid="0" stroke="none" width="0" height="0" x="0" y="0" transform="matrix(0..0.00,00000007,0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2294.svg b/test/ns-afl-svg/2294.svg
new file mode 100644
index 0000000..4eeacac
--- /dev/null
+++ b/test/ns-afl-svg/2294.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="i" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 0 0">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,0)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2295.svg b/test/ns-afl-svg/2295.svg
new file mode 100644
index 0000000..3cb5677
--- /dev/null
+++ b/test/ns-afl-svg/2295.svg
@@ -0,0 +1,73 @@
+<svg xmlns="0000000000">0
+0<Oath d="0" l="0"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="000000000000" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>0
+0<path d="M00,0h000000000--00" stroke="#0#0" fill="none"/>0
+0<pÑ0/>0
+0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00000l000,00h0000000000000000l000" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,0h00000000000000000--00" stroke="#0#0" fill="none"/>0
+0<pÑ00/>0
+0<text>0<![CDATA[0]]></text>0<text>0<![CDATA[0]]></text>
+0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00000l000,00h000000l000,00h000l000" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>0
+0<path d="M00,0h000000000--00" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>0
+0<path d="M00,0h000000000--00" stroke="#0#0" fill="none"/>0
+0<pÑ00 l=""/>0
+0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00v00l000,00h000v00l000,00h000l000" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00v00l000,0000-00" stroke="#0#0" fill="none"/>0
+0<pËÑ00000 d=""/>0
+0<text>0<![CDATA[0]]></text>0<text>0<![CDATA[0]]></text>
+0
+0<text>0<!--0-->0<![CDATA[0]]></text>0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,0h00000000000000000--00" stroke="#0#0" fill="none"/>0
+0<pËÑ0/>0
+0<text>0<![CDATA[0]]></text>0<text>0<![CDATA[0]]></text>
+0
+0<path d=""/>0
+0<text>0<![CDATA[0]]>0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="0" l="0"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>0
+0<path d="0" stroke="0" l="0"/>0
+0<pÑ00/>0
+0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00v00l000,00h000v00l000,00h000l000" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00v00l000,0000-00" stroke="#0#0" fill="none"/>0
+0<pËÑ00000/>0
+0<text>0<![CDATA[0]]></text>0<text>0<![CDATA[0]]></text>
+0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00v00l000,00h000v00l000,00h000l000" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>0
+0<path d="M00,0h00l000,0000-00" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text></text>
+0
+0<text>0<![CDATA[0]
+0
+0]]></text>
+0
+0<text>0<![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2296.svg b/test/ns-afl-svg/2296.svg
new file mode 100644
index 0000000..695e1f1
--- /dev/null
+++ b/test/ns-afl-svg/2296.svg
@@ -0,0 +1,5 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0l0-0z" stroke="#000" fill="n0w00tho000id000"/>0
+0<path d="M0,0h0l0,0v0l0,0-" stroke="#000" fill="n0w00tho000id000"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-0v00z" fill="#000"/>0
+0<text x="0" y="0" t-e="0" fill="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2297.svg b/test/ns-afl-svg/2297.svg
new file mode 100644
index 0000000..b5542f5
--- /dev/null
+++ b/test/ns-afl-svg/2297.svg
@@ -0,0 +1,92 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l" stroke="#000" fill="o0n0"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<path d="00000000" stroke="#000" fill="c0y0"/>0
+0
+0
+0<path d="M0,0h0l0,0v0J" stroke="#000" fill="o0n0"/>0
+0
+0
+0
+0
+0
+0<path d="M0,0h0l0,0v0-" stroke="#000" fill="o0n0"/>0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<ellipse rx="2" ry="1" transform="rotate(000000,0000" stroke="#000" fill="c0y0"/>0
+
+0
+0
+0<path d="M0,0h0l0,0v0l0,00h00v0z" stroke="#000" fill="o0n0"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0<path d="00000000" stroke="#000" fill="c0y0"/>0
+0
+0
+0<path d="M00,0h00l00,00v0J0" stroke="#000" fill="o0n0"/>0
+0
+0
+0
+0
+0
+0<path d="M00,0h00l00,00v00l0,00l0" stroke="#000" fill="o0n0"/>0
+0
+0
+0
+0
+0
+0
+0<path d="M00,0h00l00,00v00l0,00h0l0-00v000z" stroke="#000" fill="o0n0"/>0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+<ellipse rx="0" ry=")" fill="#000"
+py="0"/>0</svg>
diff --git a/test/ns-afl-svg/2298.svg b/test/ns-afl-svg/2298.svg
new file mode 100644
index 0000000..a762fc3
--- /dev/null
+++ b/test/ns-afl-svg/2298.svg
@@ -0,0 +1,79 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="r0r"/>
+0<stop or="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop st="0" offset="0"/>
+0
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop op0c="0" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M00,00ZZZZZZZZZ0000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="0" cx=")"/>
+0<path d="000000000000000000000000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" ce="0" ll="0"/>
+0<circle r="" cx="z" ix="0" style="fill: m0l00rad000" fill="url(#00000"/>
+0<parh d="0" fi="0"/>0
+0
+0
+0<path d="000000000000000,0000,000000000000,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-00-0-000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000070000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000000000"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000000000100000000000000000000000,00000000000000000000000000000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-04-6-001000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,0000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,00000000000000000000000000000000000000000-000 000-00-00-00-000 000-0 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0-00000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0000000000000000000000000000000000000000000000000000000000000000000000 000000,00000000000000000000000000000000000,0000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000 00000000,00000000 000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/2299.svg b/test/ns-afl-svg/2299.svg
new file mode 100644
index 0000000..e42e21b
--- /dev/null
+++ b/test/ns-afl-svg/2299.svg
@@ -0,0 +1,18 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,0000h000l000-0v000?" e="0" fill="h0n00cse000"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,00,0000000000C000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: ur000000" e="0" fill="h0n00cse000"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#000000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000=00,0000000000000000,000000000000000,0000000000" id="0" style="fill: ur000000" e="0" fill="h0n00cse000"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,0000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#000000)"/>
+0<path d="000,0000000,0000,00000,000000,000,0000,00000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2300.svg b/test/ns-afl-svg/2300.svg
new file mode 100644
index 0000000..7a4398c
--- /dev/null
+++ b/test/ns-afl-svg/2300.svg
@@ -0,0 +1,59 @@
+<svg ns="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(55)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(0)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#00)" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0,0,00,0,00,00l0,00c0,0-0,00-00,00l00,00l0,0000,00-,0000000,000000,0000" fill="url(#pyBlue)"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="in" cy="0" fill="#000"/>
+0
+
+0
+0<path d="M70,87c090-8,00-20,120,50v1" fill="url(#py0ellow)"/>0
+0
+0
+0
+<svg width="px" height="px" n="0" xmlns="00000000000000000" fill="url(#pyBlue)"/>
+0<path d="M70,00c090-8,00-20,124-10l0-20c0-7,0-12,10-10l24,0c0,0,00-7,14-10l0-10l9,0c000,000000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="in" cy="0" fill="#000"/>
+0
+
+0
+0<path d="M70,87c090-8,00-20,120,50v1" fill="url(#py0ellow)"/>0
+0
+0
+0
+<svg width="px" height="px" n="0" xmlns="000000000000000000000000000000000000000000000000000000000000000000" fill="url(#pyBlue)"/>
+0<path d="M70,80c090-8,00-20,100-10l0-20c000,0000,000000000000000000000000000000000A000000000000000000000,0000,000,000000000000000000000000000000000000000000000000000000000000000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="in" cy="0" fill="#000"/>
+0
+
+0
+0<path d="M70,87c090-8,00-20,120,50v1" fill="url(#py0ellow)"/>0
+0
+0
+0
+<svg width="px" height="px" i="0" xmlns="00000000000000000000000000000000000w000000i000000000000000" fill="url(#pyBlue)"/>
+0<path d="M70,00c090-8,00-20,124-10l0-20c0-7,0-12,10-10l24,0c0,0,00-7,14-10l0-10l9,0c000,000000,000,000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000l00,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="in" cy="0" fill="#000"/>
+0
+
+0
+0<path d="M70,87c090-8,00-20,120,50v1" fill="url(#py0ellow)"/>0
+0
+0
+0
+<svg width="px" height="px" i="0" xmlns="000000000000000000000000000000000000000000000000000000000000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,0c0,0,0000,000000000000000,0000000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M70,87c090-8,00-20,120,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="w" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M70,87c090-8,00-20,120,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2301.svg b/test/ns-afl-svg/2301.svg
new file mode 100644
index 0000000..b959af0
--- /dev/null
+++ b/test/ns-afl-svg/2301.svg
@@ -0,0 +1,353 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="u0q00n" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0,000000,0000,000000000,0000,000000000000000000,0000000,000000,0000" fill="url(#0000)"/>
+0<path d="M00,00c0,000,00000000,0-00,0000000000000000000000000000000000000000000000,000000000000,0000000000C000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M70,80c090-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000,0000000,0000000000000000000000000000000000,000000000000000,000,0000,000,0,00,0,00000000000000,000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#000000)"/>
+0<pAth d="000,0000,00000" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,00..000,00000000 000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c090-0,00-20,100-13l0-00c0-0,0-12,02-00l04,0c0,0,00-0,14-15l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000,0000000000000000,,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" x="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,000000000000000d,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,70-030-24-60.800,100.0000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="M00,00c0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c00000,0000000000"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,100-00l0-00c0-0,0-00,-04000.00000000.000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00000,00000,000000000000000,0-00,00-00000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,020-00l0-00c0-0,0-00,-04000.00000000.000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" x="0" y="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" x="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,00..000,00000000 000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="0" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" y="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-20,100-13l0-00c0-0,0-12,02-00l24,0c0,0,00-0,10-15l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M70,80c090-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-20,020-00l0-00c0-0,0-00,-04000.00000000.000,00000000000000000000,0000000000000000,0000000000000000000" x="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-20,100-13l0-00c0-0,0-12,02-00l24,0c0,0,00-0,10-15l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2302.svg b/test/ns-afl-svg/2302.svg
new file mode 100644
index 0000000..4d07faa
--- /dev/null
+++ b/test/ns-afl-svg/2302.svg
@@ -0,0 +1,50 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(00)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0,0000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-20,000000000500000000000000000000000000000000000000,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c,00000000,0c0,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000,00,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,00-20,104,50v1" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00000000000,0000,00000000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,0000000000000000000000000500000000000000000000000000000000000000,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#pyBlue"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#pyBlue"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000,0000000000000000,00000000000000000000,0000000000000000,00,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,00-20,120,50v1" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00000000000,0000,00000000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,0000000000000000000000000500000000000000000000000000000000000000,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,00-20,120,50v1" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00000000000,0000,00000000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,0000000000000000000000000500000000000000000000000000000000000000,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2303.svg b/test/ns-afl-svg/2303.svg
new file mode 100644
index 0000000..8776da5
--- /dev/null
+++ b/test/ns-afl-svg/2303.svg
@@ -0,0 +1,61 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='f0c00anc000ed'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00w'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='b0i00'/>0<path d='M0 0A00 0 0 0 0 00 00' stroke='black' otroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='d'
+fill='n0s0' stroke='blue'/>">]><svg width="px" ei="0">
+0<desc></desc>
+0<rect x="0" y="0" width="0" he="0" fill="none" se="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g m="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport0;</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg ro="0" ix="0"
+id="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&o;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg io="0" ox="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg pserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" tO="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&t;
+0<svg preserveAspectRatio="0" viewBox="0 0 0 0" width="0" height="0">0</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" ie="0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(00,0)"><text y="/">0</text>&V;
+0<svg preserveAspectRatio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="/">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00"><text y="0">0</text>&V;
+0<svg prtRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2304.svg b/test/ns-afl-svg/2304.svg
new file mode 100644
index 0000000..6da0f7f
--- /dev/null
+++ b/test/ns-afl-svg/2304.svg
@@ -0,0 +1,95 @@
+<svg xmlns="0000000000" viewBox="0 0 1 8">
+0<path d="M0,0h00c00,0-00,00,0,00h000zM00,00a00,00 0,0,0 00,0zM0,0c0,0,0,0,0,00v00h000c0,00,00,00,00,00l00,00s00,00-00,00h00v0000z" fl="0" fill-rule="0"/>
+0
+0
+0
+0
+0<ellipse cx="0" cy="0" rx="6" ry="9" ll="0"/>
+0
+0
+0
+0
+0<ellipse cx="0" cy="0" rx="6" ry="9" fl="0"/>
+0<path d="M0 0-00-0P0000000000000000000000000000000000000000000000000000000"
+ll="0"
+i="0"/>0
+0
+0
+0<ellipse cx="0" cy="0" rx="6" ry="9" fill="#000"/>
+0<path d="M000000000000000000000000000000000000000000 00 000-00000000000,00000"
+l="0"
+ty="0"/>0
+0
+0
+0<ellipse cx="0" cy="0" rx="6" ry="9" fill="#000"/>
+0<path d="M00,0 0-00- 00000000000000000000000000000000000000000000000000000000" fill="#000" fill-rule="0"/>0
+0
+0
+0
+0<ellipse cx="0" cy="0" rx="6" ry="9" fill="#000"/>
+0
+0
+0
+0
+0<ellipse cx="0" cy="0" rx="6" ry="9" fill="#000"/>
+0<path d="M000000000000000000000000000000000000000000 00 000-00000000000,00000"
+filfill="0"
+ty="0"/>0
+0
+0
+0<ellipse cx="0" cy="0" rx="6" ry="9" fill="#000"/>
+0<path d="M0000 0-00-000000000000000000000000000000000000000000000000000,00000"
+filfill="0"
+ty="0"/>0
+0
+0
+0<ellipse cx="0" cy="0" rx="6" ry="9" fill="#000"/>
+0<path d="00000000"
+fl="0"/>0<ellipse rx="5" ry="2" rm="0" ll="0"
+ty="0" fill="#000" fill-rule="0"/>
+0
+0
+0
+0
+0<ellipse cx="0" cy="0" rx="6" ry="9" fill="#000"/>
+0
+0
+0
+0
+0<ellipse cx="0" cy="0" rx="6" ry="9" fill="#000"/>
+0<path d="M000000000000000000000000000000000000000000 00 000-00000000000,00000"
+filfill="0"
+ty="0"/>0
+0
+0
+0<ellipse cx="0" cy="0" rx="6" ry="9" fill="#000"/>
+0<path d="M0000 0-00-0P0000000000000000000000000000000000000000000000000000000"
+filfill="0"
+ty="0"/>0
+0
+0
+0<ellipse cx="0" cy="0" rx="6" ry="9" fill="#000"/>
+0<path d="M00,0 0-00- 00000000000000000000000000000000000000000000000000000000" fill="#000" fill-rule="0"/>0
+0
+0
+0
+0<ellipse cx="0" cy="0" rx="6" ry="9" fill="#000"/>
+0
+0
+0
+0
+0<ellipse cx="0" cy="0" rx="6" ry="9" fill="#000"/>
+0<path d="M0000 0-00-000000000000000000000000000000000000000000000000000,00000"
+filfill="0"
+ity="0"/>0
+0
+0
+0<ellipse cx="0" cy="0" rx="6" ry="9" fill="#000"/>
+0<path d="M000000000000000000000000000000000000000000 00 000-00000000000,00000"
+filfill="0"
+ity="0"/>0
+0
+0
+0<ellipse cx="0" cy="0" rx="6" ry="9" fill="#000"/>
+0<path d="00,00000"
+ll="0"/>0<ellipse rx="0"/>0</svg>
diff --git a/test/ns-afl-svg/2305.svg b/test/ns-afl-svg/2305.svg
new file mode 100644
index 0000000..7736960
--- /dev/null
+++ b/test/ns-afl-svg/2305.svg
@@ -0,0 +1,38 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="q0s00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow"/>0
+0
+
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c090-8,03-20,100,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#00=00"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,00000000,000000,0000" fill="url(#000000)"/>
+0<pAth d="M00,00c0,0-8,00-20,000-0000000c000,0000,00000000,000,0000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0/0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000000000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" lf="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000,0000000,000000000000000,000000000000000000000000000i0000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cp="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,00,000,0000,0l0,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/2306.svg b/test/ns-afl-svg/2306.svg
new file mode 100644
index 0000000..e587400
--- /dev/null
+++ b/test/ns-afl-svg/2306.svg
@@ -0,0 +1,5 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="n&lt;o00tra000or00"/>0
+0<path d="M0,0h0l0,0v00" fill="n&lt;o00tra000or00"/>0
+0<path d="M,0,0,00" fill="#000"/>0
+0<text x="0" y="0" t-e="0" l="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2307.svg b/test/ns-afl-svg/2307.svg
new file mode 100644
index 0000000..97ea471
--- /dev/null
+++ b/test/ns-afl-svg/2307.svg
Binary files differ
diff --git a/test/ns-afl-svg/2308.svg b/test/ns-afl-svg/2308.svg
new file mode 100644
index 0000000..3128c8b
--- /dev/null
+++ b/test/ns-afl-svg/2308.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="none"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" fill="0" xt-ar="0"><![CDATA[0]]]]>0</text>0</svg>
diff --git a/test/ns-afl-svg/2309.svg b/test/ns-afl-svg/2309.svg
new file mode 100644
index 0000000..1fc5b45
--- /dev/null
+++ b/test/ns-afl-svg/2309.svg
@@ -0,0 +1,4 @@
+<svg xmOns="0" vÊe0000="0"><!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->
+0
+0
+<!--0--><![CDATA[0]]><!--0--><!--0-->0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2310.svg b/test/ns-afl-svg/2310.svg
new file mode 100644
index 0000000..f82a33b
--- /dev/null
+++ b/test/ns-afl-svg/2310.svg
@@ -0,0 +1,2 @@
+<vg ìå00000000="0">0<svg ìå00000å00="0"><svg ìå00å00å00="0">0<svg ìå00000000="0">0<vg ìå00å00å00="0">0<svg ìå00å00å00="0">0
+<vg ìå00000000="0">0<svg ìå00000å00="0">0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2311.svg b/test/ns-afl-svg/2311.svg
new file mode 100644
index 0000000..6136838
--- /dev/null
+++ b/test/ns-afl-svg/2311.svg
@@ -0,0 +1,14 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="q0s00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,000d0000,0000000000000000000000000000000,00000000000,0000,0000,000000000000,000000000000000000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2312.svg b/test/ns-afl-svg/2312.svg
new file mode 100644
index 0000000..079d348
--- /dev/null
+++ b/test/ns-afl-svg/2312.svg
@@ -0,0 +1,5 @@
+<svg xmlns="0000000000" viewBox="0 0 4 1">
+0<!--0-->
+0<g>
+0<path d="M00000 000000000L00000000 000000000Q00000000 00000000 00000000 000000000000L0000000 000000000Q0000000000000000 00000000 0000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0" fill="#000000"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2313.svg b/test/ns-afl-svg/2313.svg
new file mode 100644
index 0000000..133bee8
--- /dev/null
+++ b/test/ns-afl-svg/2313.svg
@@ -0,0 +1,16 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="0" m="0">
+0<stop p-c="0" t="0"/>
+0<stop sp-r="0" ot="0"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(0)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#0G0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0-0,0-00,00-00c00,0,00,0,00,00l0,0000,000l0,000,0,00,0,00000,0000" fill="url00llo00"/>0
+0<circle r="v" fill="url(#pyBlue)"/>
+0<path d="M00,00c0,0-0,00-00,00c000,0000-0-00-00-0,0000,0c0,0,00,0,0000,00000,000000,000,0000000,0000" fill="url00llo00"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2314.svg b/test/ns-afl-svg/2314.svg
new file mode 100644
index 0000000..b2d276b
--- /dev/null
+++ b/test/ns-afl-svg/2314.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="t0n0"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2315.svg b/test/ns-afl-svg/2315.svg
new file mode 100644
index 0000000..a146065
--- /dev/null
+++ b/test/ns-afl-svg/2315.svg
@@ -0,0 +1,163 @@
+<svg xmlns="000000000000000000000000">
+0<defs>0<linearGradient id="py0ello0" ra_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a0" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<eop t="0" fs="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="000000000000000000000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,00000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000e)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ello0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,000000,0000000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ello0"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ello0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ello0)"/>0
+0
+0<path d="000,00000000,0000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000e)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l000 0000-00 000-000 00000 000000,00000000000000000=00,0000000000000000,000000000000000,0000000000" id="0000" style="fill: u00000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-6-000000000070000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ello0)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000e)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ello0)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-6-000000000070000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000e)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000000000,000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circlk r="0" cx="0" cy="0" ll="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000e)"/>
+0<path d="M00,00c000-0,10-00,020,00v0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000#)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ello0)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000e)"/>
+0<path d="M00,00c090-0,00-03,100,00v0" fill="url(#py0ello0)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,00-20,124-00l0-22c0-7,0-10,10-10l24,0c0,0,00-7,14-10l0-10l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ello0)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ello0)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ello0)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ello0)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ello0)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0" style="0" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/2316.svg b/test/ns-afl-svg/2316.svg
new file mode 100644
index 0000000..6501e1a
--- /dev/null
+++ b/test/ns-afl-svg/2316.svg
@@ -0,0 +1,117 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='w0a00th' stroke='red'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='1' fill='black'/>0<circle cx='0' cy='0' r='5' f='0'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" n="0" xmlns="0000000000">
+0<desc>0</desc>
+0
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="b0u0"/>
+0<g fonsize="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&V;</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg presctRatio="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg preservRtio="0" viewBox="0 0 3 4" width="0" keight="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g tZansform="0"><text y="0">0</text>&Viewport2;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" vie0Box="0"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg preseAsp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2317.svg b/test/ns-afl-svg/2317.svg
new file mode 100644
index 0000000..8025f1e
--- /dev/null
+++ b/test/ns-afl-svg/2317.svg
@@ -0,0 +1,2 @@
+<svg ox='0' xmlns='000' drofill='0' stroke='0'>
+0<path d='0,00000,000,000,00000' fill='d0t00tax000ts00000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/2318.svg b/test/ns-afl-svg/2318.svg
new file mode 100644
index 0000000..d90f0c2
--- /dev/null
+++ b/test/ns-afl-svg/2318.svg
@@ -0,0 +1,6 @@
+<svg xmlns="00000000000000000000000000" viewBod="0">
+0<path d="M0,0h0l0,0v00l0,00h000l000-00v00-0c0-0,00-0,00,0c0,0,0,00,00-00-0" stroke="#000" fill="o0a00d"/>0
+0<path d="00000000" stroke="#000" fill="o0a00d"/>0
+0<path d="M00,00,0" fill="#000"/>
+0<path d="M0,0l00-0l00,0c000-00-00-00-00-00l00,0l00000000000000000000000000" stroke="#000" fill="o0a00d"/>0
+0<path d="M00,00l0" fill="000000000000000000000" stroke="#000" l="0"/>0</svg>
diff --git a/test/ns-afl-svg/2319.svg b/test/ns-afl-svg/2319.svg
new file mode 100644
index 0000000..fe735b8
--- /dev/null
+++ b/test/ns-afl-svg/2319.svg
@@ -0,0 +1,70 @@
+<?l?>
+<svg version="0" xmlns="0000000000">0<circle d="0" cx="0" cy="0" r="5" stroke="l0s00aic0"
+stroke-width="3"/>0
+0
+0
+0<script e="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g d="0" fill="blue" style="0">
+0
+0
+<circle d="0" cx="0" cy="0" r="5" stroke="l0s00aic0"
+stroke-width="3"/>0
+0
+0
+0<script e="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g d="0" fill="blue" style="0">
+0<circle d="0" cx="0" cy="0" r="5" stroke="l0s00aic0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0<circle d="0" cx="0" cy="0" r="5" stroke="l0s00aic0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/2320.svg b/test/ns-afl-svg/2320.svg
new file mode 100644
index 0000000..428c983
--- /dev/null
+++ b/test/ns-afl-svg/2320.svg
@@ -0,0 +1,13 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle l0="0" cy="cm" r="1" style="fill:r0d0 stroke:black;" wransform="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0a00blu000e stroke-width:001cm" transtorm="0"/>
+0<circle cx="cm" cy="cm" r="1" sr="0" style="stroke:b0a00blu000e" yle="0" wransform="0"/>
+0<circle cx="cm" cy="0" r="1" style="stroke:b0a00blu000e stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" yr="0" style="stroke:b0a00blu000e" orx="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2321.svg b/test/ns-afl-svg/2321.svg
new file mode 100644
index 0000000..9660e46
--- /dev/null
+++ b/test/ns-afl-svg/2321.svg
@@ -0,0 +1,4 @@
+<svg Ãts="0" viewBfx="0">
+0<path d="M00,0h00l00,00v000 0,0,0-00,0l00,00a00,00 0,0,0 0-00000000000000c" fill-rule='0'/>0
+0<path d="M00,0h00l00,00v0,00 0,0,0-00,0l00,00a00,00 0,0,0 0-00000000000000s" ll-rul-rule='0'/>0
+0<path d="M00,0h00l00,00v0,00 0,0,0-00,00,00a00,00 0,0,0 0-0000000000000000c" fill-rule='0'/>0</svg>
diff --git a/test/ns-afl-svg/2322.svg b/test/ns-afl-svg/2322.svg
new file mode 100644
index 0000000..ccafb38
--- /dev/null
+++ b/test/ns-afl-svg/2322.svg
@@ -0,0 +1,55 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='red'/>0<g transform='translate(0,0)'>0<circle cx='0' cy='0' r='1' fill='y0l00y'/>0<circle Nx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='b0o00' stroke-width='2'/>0</g>0">
+<!ENTITY t "">
+<!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" ion="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="b0u0"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g tranVform="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport2;</g>
+0<g d="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&o;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" heighj="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&i;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2323.svg b/test/ns-afl-svg/2323.svg
new file mode 100644
index 0000000..91f438b
--- /dev/null
+++ b/test/ns-afl-svg/2323.svg
@@ -0,0 +1,140 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='red'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='y0d00'/>0<circle Nx='0' cy='0' r='b'/>0<circle cx='0' cy='0' r='1' fill='b0i00'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' otroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='mm' width='0' height='d'
+fill='n0s0' stroke='b0w00thl00'/>">]><svg width="px" hei="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" fill="none" s="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g m="0">&Smile;</g>0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport0;</g>
+0<g d="0" transform="00">0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&i;
+0<svg pro="0" vix="0"
+dth="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+idth="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&Viewport0;
+0<svg pio="0" vox="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>0</g>
+0<g id="0" transforK="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g m="0"><text y="0">0</text>&Viewport0;
+0<svg preservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRat="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pspectRatiotio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport0;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preseAsp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2324.svg b/test/ns-afl-svg/2324.svg
new file mode 100644
index 0000000..82e4959
--- /dev/null
+++ b/test/ns-afl-svg/2324.svg
@@ -0,0 +1,27 @@
+<svg xmlns="0000000000" k="0" viewBox="0 0 1 2">
+0<radialGradient id="0" cx="0" cy="0" r="0" s="0"><op ot="0" c="0"/><st ot="0"/></radialGradient>
+0<path d="M00,000A000,0000,0,0000,00000000,00 00,000C000,00000,000000000,00" id="0" fill="p0c00wle00"/>
+0
+0<path d="M00,000A00,0,0 0,00 00,000000000000)"/>
+0
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000C000,00000,00000,0000000,00000,00000,00" id="0" fill="m0c00wle00"/>
+0<radialGradient id="0" cx="0" cy="0" r="0" s="0"><t0p ot="0" o00000000000000000000000c="0"/><s00p ot="0"/></radialGradient>
+0<path d="M00,00 00,000C000,00 00,00 00,000C000,00000,00000,00" id="0" fill="m0c00wle00"/>
+0<radialGradient id="0" cx="0" cy="0" r="0" s="0"><sp ot="0" s000000000000000000000000000000000000000000000000000000000000000c="0"/><s00p ot="0"/></radialGradient>
+0<path d="M00,000,0,00-0,00-000000000,000,0,L0,0,00,0000,0000,00000,000000,000,0000,00000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000,000,0000,000,0000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00B00"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="0" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="," rd="0" fill="m0c00wle00"/>
+0<radialGradient id="0" cx="0" cy="0" r="0" s="0"><s00p ot="0" o000000000000000000000000000000000000000000000000000000000000000c="0"/><s00p ot="0"/></radialGradient>
+0<path d="M00,00 00,000C000,00 00,00 00,000C000,00 00,00 00,00" id="0" fill="m0c00wle00"/>
+0<radialGradient id="0" cx="0" cy="0" r="0" s="0"><stop ot="0" sto0000000000000000000000000000000000000000000000000000000000000M0c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,000,0,00-0,00-00l000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000,000,0000,000,0000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,0000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2325.svg b/test/ns-afl-svg/2325.svg
new file mode 100644
index 0000000..128887a
--- /dev/null
+++ b/test/ns-afl-svg/2325.svg
@@ -0,0 +1,15 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="0000000000" width="0" height="0" id="0" sodipodi:ion="0" inkscape:von="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs id="0">
+0<linearGradient id="linearGradient0100" gradientUnits="00000000000000" x1="0" y1="0" x2="0" y2="0">
+0<stop style="0" offset="0"
+d="0"/>
+0<stop style="stop-color:000000000;" offset="0"
+d="0"/>
+0</linearGradient>
+0</defs>
+0<g inkscape:xmlns="0">
+0<rect style="fill:url(#linearGradient0100);"
+d="0" width="0" height="0" x="0" y="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2326.svg b/test/ns-afl-svg/2326.svg
new file mode 100644
index 0000000..94d5a2c
--- /dev/null
+++ b/test/ns-afl-svg/2326.svg
@@ -0,0 +1,15 @@
+<svg ns="0"><!--0-->0
+0<path d="M00,0,00" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M0,0h0l0,0v0l0,0h0v0l0,0h00-" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="M0,0h0l0,0v0l0,0-" stroke="#000" fill="none"/>0
+0<pËÑ00000 d="" l=""/>0
+0<text>0<![CDATA[0]]></text>
+0
+0<path d=""/>0
+0<text>0<![CDATA[0]]></text>
+0
+0<text>0<![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2327.svg b/test/ns-afl-svg/2327.svg
new file mode 100644
index 0000000..960adc2
--- /dev/null
+++ b/test/ns-afl-svg/2327.svg
@@ -0,0 +1,39 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="0" m="0">
+0<sp p-c="0" t="0"/>
+0<stop sp-r="0" ot="0"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(0)">
+0<stop stop-color="rgb(00000)"/>0
+0<ci r="0" cx="0" cy="0" fl="0"/>
+0<circle r="0" cx="0" cy="0" fs="0"/>
+0<stop sp-lwr="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0000000,0000,00,0-00,00-00000000000000000000000000000000000" fill="url(#pyBlue)"/>
+0<path d="M00,0l0,00l00,0c00,0-00-0-00-00c0-00,0-00,00-000l0-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" cx=")"/>
+0<path d="000000000000000000000000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="000000000000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy=")"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0-00000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" ig="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#pyBlue)"/>
+0<path d="M00,000l0,00l00,0c00,0-00-0-00-00c0-00,0-00,00-00l00,0l0-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" cx=")"/>
+0<path d="000000000000000000000000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,000000000000000000000000000000000000000000000000=0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0004" style="fill: url(#00d000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2328.svg b/test/ns-afl-svg/2328.svg
new file mode 100644
index 0000000..2be94a3
--- /dev/null
+++ b/test/ns-afl-svg/2328.svg
@@ -0,0 +1,69 @@
+<svg xmlns="00" height="0" d="0" y="i">
+0<path d="M00,0h0,0000v0" fill="t0t00nsf000on0"/>0
+0<path d="M00-00v000z" e="0" fill="t0t00nsf000on0"/>0
+0<path d="00000000"/>0
+0<text x="0" y="0" font-size="0" l="0"/>0
+0<path d="M00-00v000z" t="0" fill="t0t00nsf000on0"/>0
+0<path d="M00,0000000000-00,00" fill="t0t00nsf000on0"/>0
+0<path d="M00,0000-00-00v000z" stroke="#000" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h00l00,00v00l" stroke="#000" fill="t0t00nsf000on0"/>0
+0<patQ d="0" l="0"/>0
+0<text x="z" sb="0" ll="0"/>0
+0<patQ d="0" ll="0"/>0
+0<text x="0" y="0" font-size="0" fill="0"/>0
+0<path d="M00,0h0l000-00v000z" stroke="#000" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h00l00000000000" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h0l000-00v000z" stroke="#000" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h00l00,000000-000" stroke="#000" fill="t0t00nsf000on0"/>0
+0<patQ d="0" fill="0"/>0
+0<text x="z" ke="0" ll="0"/>0
+0<patQ d="0" ll="0"/>0
+0<text x="0" y="0" font-size="0" ll="0" xt="0"/>0
+0<path d="M00,0h0l000-00v000z" stroke="#000" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h00l00,00-00,00" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h0l000-000h00l00,00-00,00" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h0l000-00v000z" stroke="#000" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h00l00,00v00l" stroke="#000" fill="t0t00nsf000on0"/>0
+0<patQ d="0" ll="0"/>0
+0<text x="z" se="0" fill="0"/>0
+0<patQ d="0" fill="0"/>0
+0<text x="0" y="0" font-size="0" ll="0"/>0
+0<path d="M00,0h0l000-00v000z" stroke="#000" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h00l00,00-00,00" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h0l000-00v000z" stroke="#000" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h00l00,00v00l" stroke="#000" fill="t0t00nsf000on0"/>0
+0<patQ d="0" fill="0"/>0
+0<text x="z" ke="0" ll="0"/>0
+0<patQ d="0" ll="0"/>0
+0<text x="0" y="0" font-size="0" fill="0"/>0
+0<path d="M00,0h0l000-00v000z" stroke="#000" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h00l00,00-00,00" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h0l000-00v000z" stroke="#000" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h00l00,000000n0"/>0
+0<patQ d="0" fill="0"/>0
+0<text x="z" ke="0" fill="0"/>0
+0<patQ d="0" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0"/>0
+0<path d="M00,0h0l000-00v000z" stroke="#000" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h00l00,00-00,00" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h0l000-00v000z" stroke="#000" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h00l00,00v00l0000" stroke="#000" fill="t0t00nsf000on0"/>0
+0<patQ d="0" fill="0"/>0
+0<text x="z" sb="0" fill="0"/>0
+0<patQ d="0" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ill="0"/>0
+0<path d="M00,0h0l000-00v000z" stroke="#000" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h00l00,00-00,00" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h0l000-000h00l00000-000000-000" stroke="#000" fill="t0t00nsf000on0"/>0
+0<patQ d="0" fill="0"/>0
+0<text x="z" sbroke="0" fill="0"/>0
+0<patQ d="0" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ill="0"/>0
+0<path d="M00,0h0l000-00v000z" stroke="#000" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h00l00,00-00,00" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h0l000-00v000z" stroke="#000" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h00l00,00v00l0000" stroke="#000" fill="t0t00nsf000on0"/>0
+0<patQ d="0" fill="0"/>0
+0<text x="z" sb="0" fill="0"/>0
+0<patQ d="0" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2329.svg b/test/ns-afl-svg/2329.svg
new file mode 100644
index 0000000..9fac36b
--- /dev/null
+++ b/test/ns-afl-svg/2329.svg
@@ -0,0 +1,20 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="0000000000000000000000">
+0<style te="0">
+0
+0</style>
+0<g style="0">0
+0<style te="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="c" cs="0" r="1" s="0" m="0"/>
+0<circle cx="cm" cy="cm" r="D" style="stroke:c0t00blw000id000000" te="0" wrorm="0"/>
+0<circle cx="cm" cy="cm" r="D" style="stroke:c0t00blw000id000000" transform="000000,0000"/>
+0
+0</g>0
+0<circle cx="c" cs="0" r="1" style="fill:r0d0" wrorm="0"/>
+0<circle cx="cm" cy="cm" r="D" style="stroke:c0t00blw000id000000" transform="0000,0000"/>
+0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2330.svg b/test/ns-afl-svg/2330.svg
new file mode 100644
index 0000000..b350a00
--- /dev/null
+++ b/test/ns-afl-svg/2330.svg
@@ -0,0 +1,45 @@
+<svg xmlns="0000000000" viewBox="0 0 1 8">
+0<path d="M0,0h00c00,00" stroke="#000" fill="d&lt;o00ura000or"/>0
+0
+0&lt;0
+0<path d="M00,0,00" stroke="#000" fill="d&lt;o00ura000or"/>0
+0<path d="000" fill="#000"/>0
+0<text x="0" y="0" e="0" fill="0" tar="0"><![CDATA[0]]></text>
+0<path d="M0,0h00c00,00" M="0" fill="d&lt;o00ura000or"/>0
+0
+0&lt;0
+0<path d="M0,0h00c,00" stroke="#000" fill="d&lt;o00ura000or"/>0
+0
+0&lt;0
+0<path d="M00,0,00" stroke="#000" fill="d&lt;o00ura000or"/>0
+0<path d="0" fill="#000"/>0
+0<text x="0" y="0" f="0" fill="0" text-ar="0"><![CDATA[0]]></text>
+0<path d="M0,0h00c,00" M="0" fill="d&lt;o00ura000or"/>0
+0
+0&lt;0
+0<path d="M00,0,00" stroke="#000" fill="d&lt;o00ura000or"/>0
+0<path d="M0,0h00c,00" stroke="#000" fill="d&lt;o00ura000or"/>0
+0
+0&lt;0
+0<path d="M00,0,00" stroke="#000" fill="d&lt;o00ura000or"/>0
+0<path d="0" fill="#000"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[0]]></text>
+0<path d="M0,0h00c,00" strokM="0" fill="d&lt;o00ura000or"/>0
+0
+0&lt;0
+0<path d="M0,0h00c00,00" stroke="#000" fill="d&lt;o00ura000or"/>0
+0
+0&lt;0
+0<path d="M00,0,00" stroke="#000" fill="d&lt;o00ura000or"/>0
+0<path d="000" fill="#000"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[0]]></text>
+0<path d="M0,0h00c00,00" M="0" fill="d&lt;o00ura000or"/>0
+0
+0&lt;0
+0<path d="M00,000,00" stroke="#000" fill="d&lt;o00ura000or"/>0<path d="000" fill="#00"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[0]]></text>0
+0<path d="M00,000,00" stroke="#000" fill="d&lt;o00ura000or"/>0<path d="000" fill="#00"/>0
+0<text x="C" y="0" f="0" fill="0" text-ar="0"><![CDATA[0
+0]]></text>0
+0<path d="M00,000,00" stroke="#000" fill="d&lt;o00ura000or"/>0<path d="000" fill="#00"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2331.svg b/test/ns-afl-svg/2331.svg
new file mode 100644
index 0000000..b764be3
--- /dev/null
+++ b/test/ns-afl-svg/2331.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:v0d;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2332.svg b/test/ns-afl-svg/2332.svg
new file mode 100644
index 0000000..0cc98f3
--- /dev/null
+++ b/test/ns-afl-svg/2332.svg
@@ -0,0 +1,13 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="stroke:black;" wransform="0"/>
+0<circle cx="cm" cy="0" r="1" style="stroke:r0a00blu0;stroke-width:0*000" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="stroke:r0a00blu0;stroke-width:0*000" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2333.svg b/test/ns-afl-svg/2333.svg
new file mode 100644
index 0000000..270defd
--- /dev/null
+++ b/test/ns-afl-svg/2333.svg
@@ -0,0 +1,16 @@
+<?l?>
+<!DOCTYPE s00 PUBLIC "0" "0">
+<svg r="0" style="fill:p0u0;">
+0<style e="0">
+0
+0</style>
+0
+0
+0<circle cx="cm" cy="0" r="1" style="fill:p0u0;stroke-width:000G0" transform="0,000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:p0u0;stroke:b0a00m" transform="00000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black;" transform="00"/>0<g style="0">
+0
+0<circle cx="cm" cy="cm" r="1" style="fill:p0u0;stroke-width:000G0" transform="000,000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:p0u0;stroke:b0a00m" transform=",0000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black;" transform="0000000000000,0000"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2334.svg b/test/ns-afl-svg/2334.svg
new file mode 100644
index 0000000..6e82d2b
--- /dev/null
+++ b/test/ns-afl-svg/2334.svg
@@ -0,0 +1,49 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="httprg/2000/ttk" xmlns:sodipodi="ht" xmlns:inkscape="00" width="0" height="0" id="0" sodipodi:ven="0" inkscape:ver="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs id="0">
+0<linearGradient id="linearGradient0100" its="0" x1="0" y1="0" x2="0" y2="0">
+0
+0
+0
+0
+0<stop style="stop-color: 0000;" offset="0" id="0"/>
+0</linearGradient>
+0</defs>
+0<g inkscape:label="0" inkscape:e="0" id="0">
+0
+0
+0<rect style="fill:url(#linearGradient0100);" id="0" width="0" height="0" x="0" y="0"/>0
+<!--0-->0<svg xmlns:podi="ht" xmlns:iape="htt" width="0" height="0" id="0" sodipodi:ven="0" inkscape:ver="0" podi:docname="0" iape:output_extension="0">
+0<defs id="0">
+0<linearGradient id="0" its="0" x="0" y="0" x2="0" y2="0">
+0
+0
+0
+0
+0<stop style="0" offset="0" id="0"/>
+0</linearGradient>
+0</defs>
+0<g inkscape:label="0" iape:e="0" id="0">
+0<rect style="fill:url(#linearGradient0100);" id="0" width="0" height="0" x="0" y="0"/>
+0</g>0</svg>0<rect style="fill:url(#linearGradient0100);" id="0" width="0" height="0" x="0" y="0"/>0
+<!--0-->0<svg xmlns:i="0" xmlns:iape="htt" width="0" height="0" id="0" sodipodi:ven="0" inkscape:ver="0" sodipodi:docname="0" iape:output_extension="0">
+0<defs id="0">
+0<linearGradient id="0" its="0" x1="0" y1="0" x2="0" y2="0">
+0
+0
+0
+0
+0<stop style="0" offset="0" id="0"/>
+0</linearGradient>
+0</defs>
+0<g inkscape:label="0" iape:e="0" id="0">
+0<rect style="fill:url(#linearGradient0100);" id="0" width="0" height="0" x="0" y="0"/>
+0</g>0</svg>0
+0
+0
+0
+0<rect style="fill:url(#00000000000000000);" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="fill:url(#00000000000000000);" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="fill:url(#000000000000000000);" id="0" width="0" height="0" x="0" y="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2335.svg b/test/ns-afl-svg/2335.svg
new file mode 100644
index 0000000..5b41388
--- /dev/null
+++ b/test/ns-afl-svg/2335.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 0 0">
+0<CDATApath d="0" e="0" l="0"/>0
+0<EMPTYpath d="0" l="0"/>0
+0<text x="0" y="0" t-e="0" ll="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2336.svg b/test/ns-afl-svg/2336.svg
new file mode 100644
index 0000000..0d4c4b1
--- /dev/null
+++ b/test/ns-afl-svg/2336.svg
@@ -0,0 +1,3 @@
+<svg xmlns="0000000000000000000000000" viewBox="0 0 0 0">
+0<paty d="0" style="0"/>
+0<rect height="0" id="0" rx="0" ry="0" style="fill: url(#000000000000000000)stroke: n0n00 stroke-width: " width="0" x="0" y="0"/>0</svg>
diff --git a/test/ns-afl-svg/2337.svg b/test/ns-afl-svg/2337.svg
new file mode 100644
index 0000000..9b9e993
--- /dev/null
+++ b/test/ns-afl-svg/2337.svg
@@ -0,0 +1,54 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="0000000000" xmlns:k="0" xmlns:sodipodi="00" xmlns:inkscape="0" width="0" height="0" id="0" sodipodi:ion="0" inkscape:von="0" sodipodi:oe="0" inkscape:output_n="0">
+0<defs id="0">
+0<linearGradient id="linearGradient0000" gradientUnits="0" x2="0" y2="0">
+0<stop style="0" offset="0" d="0"/>
+0<stop style="stop-color:"/>0
+0<stop style="0" offset="0"
+d="0"/>0
+0
+0
+0
+0<stop style="0" offset="0" d="0"/>
+0<stop style="stop-color:"/>0
+0<stop style="0" offset="0"
+d="0"/>
+0<stop style="stop-color:"/>0
+0
+0
+0
+0<stop style="stop-color:"/>0
+0
+0
+0
+0
+0
+0<stop style="stop-color:0000000000000"/>
+0<stop style="stop-color:00000000000000000000000000000000000000000000000000" offset="0"
+d="0"/>
+0<stop style="stop-color:00000000000000"/>
+0<stop style="stop-color:00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" offset="0" d="0"/>
+0<stop style="0" offset="0"
+d="0"/>
+0<stop style="stop-color:00000000000000;" offset="0" d="0"/>
+0<stop style="stop-color:00000000000000"/>
+0<stop style="stop-color:00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;" offset="0"
+d="0"/>
+0<stop style="stop-color:00000000000000"/>
+0<stop style="stop-color:00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;" offset="0" d="0"/>
+0<stop style="0" offset="0"
+d="0"/>
+0<stop style="stop-color:0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;" offset="0"
+d="0"/>
+0<stop style="0" offset="0" d="0"/>
+0<stop style="stop-color:000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" offset="0" id="0"/>0</linearGradient>
+0</defs>
+0<g inkscape:label="0" inkscape:oupmode="0" d="0">
+0<rect style="fill:url(#linearGradient0000);"
+d="0" width="0" height="0" x="0" y="0"/>
+0 0
+0
+0<rect style="fill:url(#linearGradient0000);"
+d="0" width="0" height="0" x="0" y="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2338.svg b/test/ns-afl-svg/2338.svg
new file mode 100644
index 0000000..541952e
--- /dev/null
+++ b/test/ns-afl-svg/2338.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00" mk="0" xmlns:sodipodi="000000" xmlns:inkscape="00t000000000000000000000000" he="0" id="0" on="0" width="0" x="0" y="0" sn="0" inkscape:version="0" sodipodi:docname="0" inkscape:ension="0" inkscape:elenam_="0" inkscape:ex-xdpi="0" inkscape:export-ydpi="0">
+0<sodipdview inkscape:window-height="0" inkscapÆwind="0" inkscape:pageshadow="0" inkscape:pageopacity="0" uidee="0" grice="0" be="0" borty="0" or="0" pagecolor="0" id="0" shod="0" inkscape:zoom="0" inkscape:cx="0" inkscape:cy="0" inkscape:window-x="0" inkscape:window-y="0" inkscape:current-layer="0"/>
+0<defs id="0">
+0<inkscperspective sodipodi:type="0" inkscape:vp_="0" inkscape:vp_z="0" inkscape:p0d-origin="0" id="0"/>
+0<linearGradient id="0">
+0<stop id="0" offset="0" style="0"/>
+0<stop id="0" offset="0" s="0"/>
+0</linearGradient>
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2339.svg b/test/ns-afl-svg/2339.svg
new file mode 100644
index 0000000..d375267
--- /dev/null
+++ b/test/ns-afl-svg/2339.svg
@@ -0,0 +1,60 @@
+<?l?>
+<!DOCTYPE s PUBLIC "0" "0">
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<!--0-->
+<svg xmlns="00000000000000000000000000" xmlns:xlink="00" id="0" viewBox="0 0 8 6" width="%" height="1%" on="0" baseProfile="0">
+0<SVGTestCase xmlns="0000">
+0<OperatorScript ver="0" testname="0">
+0<Paragraph>
+0
+0
+0</Paragraph>
+0<Paragraph>
+0
+0
+0
+
+0
+0
+0
+0
+0</Paragraph>
+0<Paragraph>
+0
+0
+0</Paragraph>
+0</OperatorScript>
+0</SVGTestCase>
+0<title id="0">0</title>
+0<desc id="0">0</desc>
+0<!--0-->
+0<!--0-->
+0<!--0-->
+0<g id="0">
+0<!--0-->
+0<!--0-->
+0<!--0-->
+0<pattern id="Pat0a" x="0" y="0" h="0" ht="0" ps="0">
+0<rect x="0" y="0" wth="0" he="0" fill="0"/>
+0<rect x="0" y="0" width="0" height="0" fill="0"/>
+0<rect x="0" y="0" width="0" he="0" fill="0"/>
+0<rect x="0" y="0" width="0" height="0" fill="0"/>
+0</pattern>
+0<pattern id="Pat0b" xlink:href="0" width="0" height="0"/>
+0<rect x="0" y="0" width="0" height="0" fill="url(#Pat0a)"/>
+0<text font-family="0" e="0" x="0" y="0">0</text>
+0<rect x="0" y="0" width="0" height="0" fill="url(#Pat0b)"/>
+0<text font-family="0" font-size="0" x="0" y="%">0</text>
+0</g>
+0<text id="0" x="0" y="0" font-size="0" stroke="0" fill="0">0</text>
+0<rect id="0" x="0" y="0" width="0" height="0" fill="none" stroke="#000000"/>0</svg>
diff --git a/test/ns-afl-svg/2340.svg b/test/ns-afl-svg/2340.svg
new file mode 100644
index 0000000..06ed947
--- /dev/null
+++ b/test/ns-afl-svg/2340.svg
@@ -0,0 +1,5 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h00l00,00v00l0,00h000l000-00v000?" e="0" fill="h0n00cse000"/>0
+0<path d="M00,0h00l00,00v0000v000z" fill="#000"/>0
+0
+0<circle r="8" e='0'/>0<path d='M00,00l00,00l000-000M00,0h00l000,000M0,00l00,00l0-00z' fill='#000' f='0'/>0<path d='M00,000000000000000000l00,000000000000000000000c0000000000000000000000' fill='#000' e='0'/>0<path d='M00,00l00,00l00-00zM0,00c0,00,00,00,00,00l000-00l00,00zM0,00l00,00c0,0,0,0,00,0c00-00-00-00-00-00zM00,0l00,0c00-0-0-00-00-00l000,0z' fill='#000' fill-rule='0'/>0<path d='M0,00l0,00l00-0l00-00l0-00l000-0l000,0c00,0-00,00-00,00c00,0-0,00-00,00z' fill='#000' fill-rule='0'/>0<path d='M00,00c00-00,00-000,00,00l00-00l000,0z' fill='#000' fill-rule='0'/>0<path d='M00,00l00,00l00-00zM0,00c0,00,00,00,00,00l000-00l00,00zM0,00l00,00c0,0,0,0,00,0c00-00-00-00-00-00zM00,0l00,0c00-0-0-00-00-00l000,0z' fill='#000' fill-rule='0'/>0<path d='M0,00l0,00l00-0l00-00l0-00l000-0l000,0c00,0-00,00-00,00c00,0-0,00-00,00z' fill='#000' fill-rule='0'/>0<path d='M00,00c00-00,00-00,00-00c00000,0000000000000000000000000000000000000,00-00-00,00-00' fill='#000' e='0'/>0<path d='M00,00l00,00l00-00l000,0z' fill='#000' fill-rule='0'/>0<path d='M00,00l00,00l00-00zM0,00c0,00,00,00,00,00l000-00l00,00zM0,00l00,00c0,0,0,0,00,0c00-00-00-00-00-00zM00,0l00,0c00-0-0-00-00-00l000,0z' fill='#000' fill-rule='0'/>0<path d='M0,00l0,00l00-0l00-00l0-00l000-0l000,0c00,0-00,00-00,00c00,0-0,00-00,00z' fill='#000' fill-rule='0'/>0<path d='M00,00c00000,00000000000000000000000000000000000,00000,00-00,00c0000,0000,00-00-00,00-00' fill='#000' e='0'/>0<path d='M00,00l00,00l00-00l000,0z' fill='#000' fill-rule='0'/>0<path d='M00,00l00,00l00-00zM0,00c0,00,00,00,00,00l000-00l00,00zM0,00l00,00c0,0,0,0,00,0c00-00-00-00-00-00zM00,0l00,0c00-0-0-00-00-00l000,0z' fill='#000' fill-rule='0'/>0<path d='M0,00l0,00l00-0l00-00l0-00l000-0l000,0c00,0-00,00-00,00c00,0-0,00-00,00z' fill='#000' fill-rule='0'/>0<path d='M00,00c00-00,00-00,00-00c0,0-0,00-00,00c000,00-00,00-00,00c00-0,0-00,00-00z' fill='#000' fIll-rule='0'/>0</svg>
diff --git a/test/ns-afl-svg/2341.svg b/test/ns-afl-svg/2341.svg
new file mode 100644
index 0000000..a578135
--- /dev/null
+++ b/test/ns-afl-svg/2341.svg
@@ -0,0 +1,315 @@
+<s ĉ="0"><svg É="0">0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+
+0
+0
+0<h d='0'>
+0<desc><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></desc>
+0<g l='0' strokI='0'>
+0<th d='0'>
+0<desc><![CDATA[
+0
+0
+0]]></desc>
+0<g fl='0' st='0'>
+0<ph d='0'>
+0<desc><![CDATA[
+0
+0
+0
+0
+0
+0]
+0
+0
+0
+0]]></desc>
+0<g fl='0' strokI='0'>
+0<ph d='0'>
+0<desc><![CDATA[
+0
+0
+0]]></desc>
+0<g ll='0' stroke='0'>
+0<ph d='0'>
+0<desc><![CDATA[
+0
+0
+0
+0
+0
+0]]></desc>
+0<g fill='0' strokI='0'>
+0<path d='0'>
+0<desc><![CDATA[
+0
+0
+0]]></desc>
+0<g fill='0' stroke='0'>
+0<path d='0'>
+0<desc><![CDATA[
+0
+0
+0
+0
+0
+0]]></desc>
+0<g fill='0' strokI='0'>
+0<path d='0'>
+0<desc><![CDATA[
+0
+0
+0]]></desc>
+0<g fill='0' stroke='0'>0<path M='0'>
+0<desc><![CDATA[
+0
+0
+0
+0
+0
+0]]></desc>
+0<g fill='0' strokI='0'>
+0<path d='0'>
+0<desc><![CDATA[
+0
+0
+0
+0
+0]]></desc>
+0<g fill='0' strokI='0'>
+0<path d='0'>
+0<desc><![CDATA[
+0
+0
+0]]></desc>
+0<g fill='0' stroke='0'>
+0<path d='0'>
+0<desc><![CDATA[
+0
+0
+0
+0
+0
+0]
+0
+0
+0
+0]]></desc>
+0<g fill='0' strokI='0'>
+0<path d='0'>
+0<desc><![CDATA[
+0
+0
+0]]></desc>
+0<g fill='0' stroke='0'>
+0<path d='0'>
+0<desc><![CDATA[
+0
+0
+0
+0
+0
+0]]></desc>
+0<g fill='0' strokI='0'>
+0<path d='0'>
+0<desc><![CDATA[
+0
+0
+0]]></desc>
+0<g fill='0' stroke='0'>
+0<path d='0'>
+0<desc><![CDATA[
+0
+0
+0
+0
+0
+0]]></desc>
+0<g fill='0' strokI='0'>
+0<path d='0'>
+0<desc><![CDATA[
+0
+0
+0]]></desc>
+0<g fill='0' stroke='0'>0<path M='0'>
+0<desc><![CDATA[
+0
+0
+0
+0
+0
+0]]></desc>
+0<g st='0'>
+0<path d='0'>
+0<desc><![CDATA[
+0
+0
+0
+0
+0
+0]
+0
+0
+0
+0]]></desc>
+0<g fill='0' strokI='0'>
+0<path d='0'>
+0<desc><![CDATA[
+0
+0
+0]]></desc>
+0<g fill='0' stroke='0'>
+0<path d='0'>
+0<desc><![CDATA[
+0
+0
+0
+0
+0
+0]]></desc>
+0<g fill='0' strokI='0'>
+0<path d='0'>
+0<desc><![CDATA[
+0
+0
+0]]></desc>
+0<g fill='0' stroke='0'>
+0<path d='0'>
+0<desc><![CDATA[
+0
+0
+0
+0
+0
+0]]></desc>
+0<g fill='0' strokI='0'>
+0<path d='0'>
+0<desc><![CDATA[
+0
+0
+0]]></desc>
+0<g fill='0' stroke='0'>0<path M='0'>
+0<desc><![CDATA[
+0
+0
+0
+0
+0
+0]]></desc>
+0<g fill='0' strokI='0'>
+0<path d='0'>
+0<desc><![CDATA[
+0
+0
+0
+0
+0]]></desc>
+0<g fill='0' strokI='0'>
+0<path d='0'>
+0<desc><![CDATA[
+0
+0
+0]]></desc>
+0<g fill='0' stroke='0'>
+0<path d='0'>
+0<desc><![CDATA[
+0
+0
+0
+0
+0
+0]
+0
+0
+0
+0]]></desc>
+0<g fill='0' strokI='0'>
+0<path d='0'>
+0<desc><![CDATA[
+0
+0
+0]]></desc>
+0<g fill='0' stroke='0'>
+0<path d='0'>
+0<desc><![CDATA[
+0
+0
+0
+0
+0
+0]]></desc>
+0<g fill='0' strokI='0'>
+0<path d='0'>
+0<desc><![CDATA[
+0
+0
+0]]></desc>
+0<g fill='0' stroke='0'>
+0<path d='0'>
+0<desc><![CDATA[
+0
+0
+0
+0
+0
+0]]></desc>
+0<g fill='0' strokI='0'>
+0
+0<path d='0'>
+0<desc><![CDATA[
+0
+0
+0
+0
+0
+0
diff --git a/test/ns-afl-svg/2342.svg b/test/ns-afl-svg/2342.svg
new file mode 100644
index 0000000..b80d327
--- /dev/null
+++ b/test/ns-afl-svg/2342.svg
@@ -0,0 +1,33 @@
+<svg xmlns="000000000000000000" viewBox="0" fill="s0n0">
+0<path d="000000000" transform="translate(0)"/>0<circle pppp="0" cy="0" r="0" style="fill:b0u0;stroke:o0e00lac0;stroke-width:0cm" trasform="0"/>
+0<circle cx="cm" cy="cm" r="N" fill="url00low0"/>
+0<circle cx="0" cy="cm" r="N" fill="url00low0"/>0
+0<circle r="4" cx="0" cy="," style="fill:b0u0;stroke:black;stroke-width:1em" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00;" fill="url00low0"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,0000,00l000,0000000000000000000000000000000000000000000000000" fill="url00low0"/>0
+0<circle r="4" cx="0" cy="0" fill="url00low0"/>
+0<circle r="4" cx="0" cy="," style="fill:blue;stroke:black;stroke-width:1em" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00;" fill="url00low0"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" style="fill:blue;stroke:o0e00lac0;stroke-width:1cm" trasform="0"/>
+0<circle cx="cm" cy="cm" r="N" fill="url00low0"/>
+0<circle cx="0" cy="cm" r="N" fill="url00low0"/>0
+0<circle r="4" cx="0" cy="," style="fill:blue;stroke:black;stroke-width:001em" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="0" style="fill:g0e00;" fill="url00low0"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,0000,00l000,0000,0000,0000,0000000000,0000,000000000000000000" fill="url00low0"/>0
+0<circle r="4" cx="0" cy="0" fill="url00low0"/>
+0<circle r="4" cx="0" cy="," style="fill:blue;stroke:black;stroke-width:001em" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="0" style="fill:g0e00;" fill="url00low0"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,0000,N,000,00000,000000,0000,0000,0000,0000000000,0000,000000000000000000" fill="url00low0"/>0
+0<circle r="4" cx="0" cy="0" fill="url00low0"/>0
+0<circle r="4" cx="0" fill="#000"/>0
+0<path d="M00,0000,N,000,00000,000000,0000,0000,0000,0000000000,0000,000000000000000000" fill="url00low0"/>0
+0<circle r="4" cx="0" cy="0" fill="url00low0"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2343.svg b/test/ns-afl-svg/2343.svg
new file mode 100644
index 0000000..83063ed
--- /dev/null
+++ b/test/ns-afl-svg/2343.svg
@@ -0,0 +1,36 @@
+<?l?>
+<svg version="0" xmlns="0000000000">0<circle d="0" cx="0" cy="0" r="5" stroke="l0s00aic0"
+stroke-width="3"/>0
+0
+0
+0<script e="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fr="0" stroke="l0s00aic0"
+strill="0" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0s00aic0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/2344.svg b/test/ns-afl-svg/2344.svg
new file mode 100644
index 0000000..4ad4e40
--- /dev/null
+++ b/test/ns-afl-svg/2344.svg
@@ -0,0 +1 @@
+<svg xmlns="vg" x="0" Vt-Å00000="0">0<svG jmlns="0" cliÀ00000="0" l=""/><a/><!--0-->0<g xmlns="vg" x="0" t-Å0000000="0">0<svG jmlns="0" cliÀ00000="0" l=""/><a mlns="0" x="0" Vt-Å0000000="0">0<svG jmlns="0" cliÀ00000="0"/><a/><!--0-->0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2345.svg b/test/ns-afl-svg/2345.svg
new file mode 100644
index 0000000..30ea2cf
--- /dev/null
+++ b/test/ns-afl-svg/2345.svg
@@ -0,0 +1,7 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0
+0<path d="M0,0h0l0,0v0l0,0l0,0l0-0z" stroke="#000" fill="t0n0"/>0
+0<path d="M0,0h0l0,0v0l0,0l0,0l0-0z" stroke="#000" fill="t0n0"/>0
+0<path d="M0,0h0l0,0l0-0v0z" stroke="#000" fill="t0n0"/>0
+0
+0<text x="0" y="0" t-se="0" l="0" t-r="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2346.svg b/test/ns-afl-svg/2346.svg
new file mode 100644
index 0000000..6943077
--- /dev/null
+++ b/test/ns-afl-svg/2346.svg
@@ -0,0 +1,154 @@
+<svg w="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="#000" offset=".6"/>0<stop stop-color="#000" offset="1"/>
+0
+0
+0<stop stop-color="a0q0" offset="0"/>
+0<stop stop-color="000000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d=",0000,000,00000,000000,0000,00000000000,0000,000000000000000000,0000000,000000,0000" fill="url(#00000)"/>
+0<path d="000,0000,000,00000000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#00000"/>0
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="z" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="000000000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" e="0" l="0"/>
+0<circle r="" cx="0" i="0" style="fill: 0000000000000"/>
+0<path d="M00,00c000-0,10-00,020,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#00000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-0000-0M0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<paZh d="0" id="0000" e="0"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0
+0<path d="M00,00c00000,00-00,00,00-00,000000,000,0000,0000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c000-8,10-20,020,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c000-8,10-20,020,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-04-6-000080000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0
+
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2347.svg b/test/ns-afl-svg/2347.svg
new file mode 100644
index 0000000..e13a2e7
--- /dev/null
+++ b/test/ns-afl-svg/2347.svg
@@ -0,0 +1,5 @@
+<svg xmlns="00000000000000000000000000" viewBox="0">
+0<path d="M0,0h0l0,0v0l0,0h0?" e="0" fill="h0n00cse000ye"/>0
+0<path d="M0,0h0l0,0v0l0,0?" e="0" fill="h0n00cse000ye"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" ll="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2348.svg b/test/ns-afl-svg/2348.svg
new file mode 100644
index 0000000..a6f6ee6
--- /dev/null
+++ b/test/ns-afl-svg/2348.svg
@@ -0,0 +1,13 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="d0n"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="d0n"/>0
+0<text x="'" y="0" e="0" fill="0" t-r="0"><![CDATA[0]]]
+0
+0
+0
+0]]]
+0
+0
+0
+0
+0]]>0</text>0</svg>
diff --git a/test/ns-afl-svg/2349.svg b/test/ns-afl-svg/2349.svg
new file mode 100644
index 0000000..ef5884a
--- /dev/null
+++ b/test/ns-afl-svg/2349.svg
@@ -0,0 +1,135 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_rm="0">
+0<stop stop-color="#000" t="0"/>
+0<stop stop-color="000"/>
+0<stop t="0"/>
+0
+0<stop stop-color="#000" offset=".4"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" t="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0000" ra_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="000000" offset="0"/>
+0
+0
+0<stop stop-color="url(#0,00)" l="0"/>
+0<path d="0" f="0"/>
+0
+0<stop r="0" f="0"/>
+0<stop r="0" f="0"/>
+0
+0<stop t="0" f="0"/>
+0
+0
+0<stop r="0" offset="0"/>
+0
+0<stop r="0" offset="0"/>
+0<stop r="0" t="0"/>
+0
+0
+0<stop r="0" offset="0"/>
+0
+0<stop r="0" offset="0"/>
+0
+0</linearGradient></defs>0
+0<path d="0"/>0
+0<ccle r="0" x="0"/><stop t="0" e="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" hset="0"/>0</linearGradient>
+0</defs>0
+0<path d="000000000,0000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,0000000,0000000000000000000000000000000000000000000000" fill="url(#py0ellow"/>0
+0<circle r="," fill="url(#000e"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0l00)"/>
+0<path d="000,00000000000000000"/>0
+0<circle r="$" fill="0"/>
+0<path d="000" fill="url(#)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" fill="url(#)"/>0
+0<cirCle r="4" cx="0" ccx="0" cy="0" fill="#00:"/>0
+0<path d="0000,000000"/>0
+0<circle r="E" cx="0" cy="0" fill="url000"/>0
+0<circle r="$" fill="0"/>
+0<path d="000" fill="url(#0"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#0"/>0
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0000" id="4" style="0" fill="u0e0"/>
+0<path d="000,0000000" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000"/>0
+0<circle r="," fill="0"/>
+0<path d="000,0000000" fill="url(00"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" y="0" fill="url(00"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00,0000" fill="0"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url000"/>0
+0<circle r="$" fill="0"/>
+0<path d="000" fill="url(#)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000" id="4" style="0" fill="u0e0"/>
+0<path d="M00,00,0000" fill="url000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,00000)"/>0
+0<circle r="0" cx="K" cy="," fill="url(00"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000.)"/>
+0<path d="000,00,0000" fill="url000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000," x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="u00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000v0" fill="u0e0"/>
+0<path d="M00,00-00" x="0" y="0" fill="url000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#0"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="u00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="u00000"/>0
+0<circle r="4" cx="K" cy="," fill="url(00"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="u0l0"/>
+0<path d="000" fill="url(#0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/2350.svg b/test/ns-afl-svg/2350.svg
new file mode 100644
index 0000000..9514965
--- /dev/null
+++ b/test/ns-afl-svg/2350.svg
@@ -0,0 +1,84 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="0" offset="4"/>
+0<stop r="0" offset="7"/>
+0<stop stop-color="s0q0" offset=","/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop stop-color="#000" t="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" l="0"/>
+0<path d="M00,00c0,0-0,00-00,00c0000,0000,00," fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000000000000000000000000 0000000000000000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000,00000000,000,0000000000000000000,00000000,00000000000000000000,0000000000000000,0000000000000000,0000000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>
+0
+0<path d="000000000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<ci ll="0"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000000"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,0000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,00000000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0000l0,000,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000,000,00000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000000"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,0000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000-0-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(# 14e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="z" id="0" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2351.svg b/test/ns-afl-svg/2351.svg
new file mode 100644
index 0000000..49187d7
--- /dev/null
+++ b/test/ns-afl-svg/2351.svg
@@ -0,0 +1,6 @@
+<svg xmlns="00000000000000000000000000" ox="0">
+0<path d="0" stroke="#000" fill="none"/>0
+0<path d="0" fill="#000"/>0
+0<text x="0" y="ex" ke="0" ll="0"/>0
+0<path d="M00,0h00l00,00v00l0,00h000l000-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-e="0" ll="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2352.svg b/test/ns-afl-svg/2352.svg
new file mode 100644
index 0000000..dc746b7
--- /dev/null
+++ b/test/ns-afl-svg/2352.svg
@@ -0,0 +1,14 @@
+<svg xmlns="0000000" fill="url(#0)000" viewBox="0">0<line d="0" stroke="0000000000000"/>0
+0
+0<line d="0" t="0" l="0"/>0
+0<path d="000" fill="#000"/>0<line d="0" stroke="#000" fill="none"/>0
+0
+0<line d="0" t="0" fill="0000"/>0<line d="0" stroke="0000000000000"/>0
+0
+0<line d="0" t="0" ll="0"/>0
+0<path d="0000" fill="#000"/>0<line d="0" stroke="#000" fill="none"/>0
+0
+0<line d="0" st="0" fill="0000"/>0
+0<path d="0000" fill="#K00"/>0
+0<![CDATA[0]]>0
+</svg>
diff --git a/test/ns-afl-svg/2353.svg b/test/ns-afl-svg/2353.svg
new file mode 100644
index 0000000..8f5e972
--- /dev/null
+++ b/test/ns-afl-svg/2353.svg
@@ -0,0 +1,27 @@
+<?l?>
+<!DOCTYPE s00 PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0
+0<circle cx="cm" cy="c" r="1" style="fill:g0e00ack;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:a0u00 stroke:000" transform="translate(0,0)"/>
+0<circle cx="$" cy="cm" r="1" style="fill:a0u00" transform="translate(0,0)"/>0<circle cx="cm" r="1" style="fill:r0d;stroke:black stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:a0u00 stroke:000" transform="translate(0,0)"/>0
+0<circle cx="$" cy="cm" r="1" style="fill:a0u00" transform="translate(0,0)"/>0<circle cx="cm" r="1" style="fill:red;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:a0u00 stroke:000" transform="translate(0,0)"/>
+0<circle cx="$" cy="cm" r="1" style="fill:a0u00" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:a0u00 stroke:black;stroke-width:0c"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:a0u00 stroke:000" transform="translate(0,0"/>
+0<circle cx="$" cy="cm" r="1" style="fill:a0u00" transform="translate(0,0)"/>
+0
+0<circle cx="$" cy="cm" r="1" style="fill:a0u00" transform="translate(0,0)"/>0<circle cx="cm" r="1" style="fill:red;stroke:black;stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:a0u00 stroke:000" transform="translate(0,0)"/>
+0<circle cx="$" cy="cm" r="1" style="fill:a0u00" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:a0u00 stroke:black;stroke-width:000c"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:a0u00 stroke:000" transform="translate(0,0"/>
+0<circle cx="$" cy="cm" r="1" style="fill:a0u00" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:a0u00 stroke:black;stroke-width:001cm" m="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2354.svg b/test/ns-afl-svg/2354.svg
new file mode 100644
index 0000000..890c80e
--- /dev/null
+++ b/test/ns-afl-svg/2354.svg
@@ -0,0 +1,22 @@
+<svg xmlns="0000000000000000000000000000" ox="0">
+0<path d="M00,0h00000,d0000,0000000000" t="0" fill="n0f00wid00"/>0
+0<path d="M00,0h00l00,0000-000" fill="#000"/>0
+0<text x="0" y="0" font-size="0" l="0" t-r="0"><![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00v00l000,0d" stroke="#000" fill="n0f00wid00"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroKe="0" fill="n0f00wid00"/>0
+0<path d="M00,0h00l00,0000-000" fill="#000"/>0
+0<text x="0" y="0" font-size="0" l="0" t-ar="0"><![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00v00l000,0d0000" stroke="#000" fill="n0f00wid00"/>0
+0<path d="M00,0h00000,d00000000,000000000000000000" stroKe="0" fill="n0f00wid00"/>0
+0<path d="M00,0h00l00,0000-000" fill="#000"/>0
+0<text x="0" y="0" font-size="0" l="0" t-ar="0"><![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00v00l000,0d" stroke="#000" fill="n0f00wid00"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroKe="0" fill="n0f00wid00"/>0
+0<path d="M00,0h00l00,0000-000" fill="#000"/>0
+0<text x="0" y="0" font-size="0" l="0" text-ar="0"><![CDATA[0]]></text>
+0
+0<path d="M00,0h00l00,00v00l000,0d0000" stroke="#000" fill="n0f00wid00"/>0
+0</svg>
diff --git a/test/ns-afl-svg/2355.svg b/test/ns-afl-svg/2355.svg
new file mode 100644
index 0000000..00b3a5a
--- /dev/null
+++ b/test/ns-afl-svg/2355.svg
@@ -0,0 +1,7 @@
+<svg s="0" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000?" stroke="#000" fill="n0n00cse000"/>0
+0<path d="M00,0h00l00,00v00l000,00h000v000?" stroke="#000" fill="n0n00cse000"/>0
+0<path d="0000000000000000000000000000000000" stroke="#000" fill="n0n00cse000"/>0
+0<path d="M00,0h00000000v00l000,00h000v000?" stroke="#000" fill="n0n00cse000"/>0
+0
+0<text x="0" y="0" t-e="0" fill="0" tt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2356.svg b/test/ns-afl-svg/2356.svg
new file mode 100644
index 0000000..2fdbf2b
--- /dev/null
+++ b/test/ns-afl-svg/2356.svg
@@ -0,0 +1,370 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" a_m="0">
+0<stop stop-color="v0e0" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>0
+0
+0<stop stop-color="#000" offset=".4" y="0" fill="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="0" cx="0"/>
+0<path d="0000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="0" cx="0" cy="0" fill="#000"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,0000000000c00000000000 00-00-00 0000000,00000000000000000000000000000000000000000000"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c090-0,00-20,100-00l0-00c0-0,0-00,00-12l00,0c0,0,00-0,00-10l0-00l9,00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<pathe r="0" y="0" fi="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,000000,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-00-60.800,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="000,00000000,0000000000"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,020-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" y="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fi="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,00000000 000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" y="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" y="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,020-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fi="0" y="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="V00,000000--00000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-00c000,0000,00000000,000,0,0000,000000000000,000,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Y="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AimCle r="0" cx="0" y="0" fi="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="000000000000"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2357.svg b/test/ns-afl-svg/2357.svg
new file mode 100644
index 0000000..5a409e9
--- /dev/null
+++ b/test/ns-afl-svg/2357.svg
@@ -0,0 +1,2 @@
+<svg ox='0' xmlns='000' d='0' fill='s0l00tax000ns00000' strofill='0' stroke='0'>
+0<path d='M0,0c00,0-0,0-0,00-00' fill='s0l00tax000ns00000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/2358.svg b/test/ns-afl-svg/2358.svg
new file mode 100644
index 0000000..e262cd6
--- /dev/null
+++ b/test/ns-afl-svg/2358.svg
@@ -0,0 +1,7 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,00v00v0z" stroke="#000" fOll="0"/>0
+0<path d="00000000" fill="#p00"/>0
+0<text x="'" y="0" gonze="0" fill="0" xt-ar="0">0
+0<tspan d="0" stroke="0" fOll="0"/>0
+0<path d="0" fill="0"/>0<![CDATA[0
+0]]>0</text>0</svg>
diff --git a/test/ns-afl-svg/2359.svg b/test/ns-afl-svg/2359.svg
new file mode 100644
index 0000000..6f53bee
--- /dev/null
+++ b/test/ns-afl-svg/2359.svg
@@ -0,0 +1,17 @@
+<svg xnx='0' xmlns='000' drofill='0' stroke='0'>
+0<path d='M0,0c0,0-0,0-0 0-' fill='d0l00tax000ts00000' stroke='black'/>
+0<svg vox='0' xll='0' stroke='0'>
+0<path d='M0,0c0,0-0,0-0 0-' fill='d0l00tax000ts00000' st='0'/>
+0</svg>0
+0<path d='M0,0c0,0-0,0-0 0-' fiYl='0' stroke='black'/>
+0<svg vox='0' xll='0' roke='0'>
+0<path d='M0,0c0,0-0,0-0 0-' fill='d0l00tax000ts00000' sokt='0'/>
+0</svg>0
+0<svg vox='0' xll='0' stroke='0'>
+0<path d='M00,00c00,0-0,0-00 0-00' fill='d0l00tax000ts00000' sokt='0'/>
+0</svg>0
+0<path d='M00,00c00,0-0,0-00 0-' fiYl='0' stroke='black'/>
+0<svg vox='0' xll='0' roke='0'>
+0<path d='M00,00c00,0-0,0-00 0-00' fill='d0l00tax000ts00000' strokt='0'/>
+0</svg>0
+</svg>
diff --git a/test/ns-afl-svg/2360.svg b/test/ns-afl-svg/2360.svg
new file mode 100644
index 0000000..f495079
--- /dev/null
+++ b/test/ns-afl-svg/2360.svg
@@ -0,0 +1,12 @@
+<svQ ootì-='0' xmlѶå0000000="0"
+h="">
+0<svg OootÀå00="0">0
+0<sv ootÀå00='0'>
+0<svg OootÀå000="0" h="">
+0<svg OootÀå00="0">0
+0<svg ootÀå00='0'>
+0<svg OootÀå0000000000="0">0
+0<svg ootÀå000="0">
+0
+0<svg ootÀå000="0">
+0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2361.svg b/test/ns-afl-svg/2361.svg
new file mode 100644
index 0000000..4d01aea
--- /dev/null
+++ b/test/ns-afl-svg/2361.svg
@@ -0,0 +1,41 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a00ffs000"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" t="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M00,000000000000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="000000000000000000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,00000000000000000000000000000000000=00,00000000000000000000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c097-8,13-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0000c0,0000,0000000000000000000000000000000000000000=00,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/2362.svg b/test/ns-afl-svg/2362.svg
new file mode 100644
index 0000000..a7ac5d5
--- /dev/null
+++ b/test/ns-afl-svg/2362.svg
@@ -0,0 +1,31 @@
+<vg widBox="0">0<svg xmlns="svg" nk="0" xmlns:sodipodi="ht" xmlns:inkscape="htt"
+th="0"
+ht="0" id="0" sodipodi:ion="0" inkscape:vÁ0="0">
+0<lter inkscape:c̬Ì0="0">
+0<sodipdview inkscape:ww-height="0" inkscape:idth="0" inkscape:pageshadow="0" inkscape:pag="0" derance="0" lerance="0" be="0" ty="0" ox="0" stro="0">0<svg xmlns="vg000000svg" ink="0" di="0" xmlns:inke="htt"
+th="0"
+ght="0" id="0" sodipodi:ion="0" inkscape:vÁ0="0">
+0<defslter inkscape:c̬Ì0="0">0<svg xe="0"
+th="0"
+ght="0" id="0" sodipodi:ion="0" inkscape:vÁ0="0">
+0<defslter inkscape:c̬Ì0="0">
+0<sodipdview inkscape:ww-height="0" inke:window-width="0" inke:pageshadow="0" inke:pag="0" gderance="0" gce="0" nge="0" bty="0" bx="0" st-width="0">0<svg xmlns="vg" ink="0" di="0"
+th="0"
+ght="0" id="0" sodipodi:ion="0" inkscape:vÁ0="0">
+0<defslter inkscape:cot̬Ì0="0">
+0<sodipdv ink="0" xmlns:sodi="00" xmlns:e="0"
+th="0"
+ght="0" id="0" sodi:ion="0" inkscape:vÁ0="0">
+0<defslter inkscape:cot̬Ì000="0">
+0<sodipdview inkscape:ww-height="0" inke:idth="0" inke:pageshadow="0" inke:pag="0" guiderance="0" gdt="0" obe="0" borty="0" bx="0" stro="0">0<svg xmlns="vg000000svg" ink="0" nke="0"
+th="0"
+ght="0" id="0" sodi:ion="0" inkscape:vÁ0="0">
+0<defslter inke:c̬Ì0="0">0<svg xe="0"
+th="0"
+ght="0" id="0" sodi:ion="0" inkscape:vÁ0="0">
+0<defslter inke:cot̬Ì000="0">
+0<sodipdview inkscape:ww-height="0" inke:window-width="0" inkscape:pageshadow="0" inkscape:pag="0" guiderance="0" gridtolerance="0" obrange="0" borty="0" bx="0" st-width="0">0<svg xmlns="vg" ink="0" di="0" xmlns:e="0"
+th="0"
+ght="0" id="0" sodi:ion="0" inkscape:vÁ0="0">
+0<defslter inkscape:cot̬Ì0="0">
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2363.svg b/test/ns-afl-svg/2363.svg
new file mode 100644
index 0000000..8c0acf4
--- /dev/null
+++ b/test/ns-afl-svg/2363.svg
@@ -0,0 +1,269 @@
+<svg ooBoW="0">
+0<deÎ000000>0<Ø00000 d="">
+0<style type="0">
+0
+0</style>
+0
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0
+0<defs>0<g>0
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g>
+0<g>0<path d="0" i="0" scro="0">
+0<defs>0<g><g><!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<gU-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g><g><!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0--><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0
+0<defs>0<g>0<!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g>0<path d="0" id="0" scth="0">
+0<defs>0<g><g><!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<gU-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0
+0<defs>0<g><g><!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g>0<path d="0" id="0" idth="0">
+0<defs>0<g><g><!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g>0<path d="0"><g><g>0<!--0-->
+0
+0<defs>0<g>0<!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g>0<path d="0" id="0" scroke-width="0">
+0<defs>0<g><g><!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<gU-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0
+0<defs>0<g><g><!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g>0<path d="0" id="0" scroke-width="0">
+0<defs>0<g><g><!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g>0<path d="0" j="0"><g><g>0<g><!--0-->
+0<g><!--0-->
+0<g>
+0
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g>0<path d="0" id="0" j="0"><g><g>0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g>0<path d="0" id="0" scroke-width="0">
+0<defs>0<g><g><!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g><!--0-->
+0<g>
+0
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g>0<path d="0" id="0" j="0"><g><g>0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g>0<path d="0" id="0" idth="0">
+0<defs>0<g><g>0
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g><g><!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0--><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0
+0<defs>0<g>0<!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g>0<path d="0" id="0" scroke-width="0">
+0<defs>0<g><g><!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<gU-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0
+0<defs>0<g><g><!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g>0<path d="0" id="0" scroke-width="0">
+0<defs>0<g><g><!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g>0<path d="0" j="0"><g><g>0<g><!--0-->
+0<g><!--0-->
+0<g>
+0
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g>0<path d="0" id="0" j="0"><g><g>0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g>0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2364.svg b/test/ns-afl-svg/2364.svg
new file mode 100644
index 0000000..47709f6
--- /dev/null
+++ b/test/ns-afl-svg/2364.svg
@@ -0,0 +1,13 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 0 0">
+0<CDATApath d="0" stroke="0" fill="0"/>0
+<EMPTYpath d="0" l="0"/>0
+0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="0" vill="0"/>0
+0<teLxt x="0"/>
+0<patKh d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKOKKKKKKKKKK0KKKKKKipLLLLLLLLLLLLLLLLLLLt ty="0" rx="0"/>
+0
+0
+0
+</svg>
diff --git a/test/ns-afl-svg/2365.svg b/test/ns-afl-svg/2365.svg
new file mode 100644
index 0000000..c83d6e7
--- /dev/null
+++ b/test/ns-afl-svg/2365.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:00 fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2366.svg b/test/ns-afl-svg/2366.svg
new file mode 100644
index 0000000..27d7f84
--- /dev/null
+++ b/test/ns-afl-svg/2366.svg
@@ -0,0 +1,17 @@
+<svg xmlns="00000000000000000000000000" viewBox="0">
+0<path d="M00,00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="n0n00e"/>0
+0<path d="M00,0h00000000i0000000,0000000,000000000000000000,000000000000000000" stroke="#000" fill="n0n00e"/>0
+0<path d="M00,0000l00,00000a0000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,00000000000000,000000000000000,0000000000" id="0" style="fill: url(#000" fill="url(#000000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,0c0,0,00,0,00,0000,0000,00000,000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000" stroke="#000" fill="n0n00e"/>0
+0<path d="M00,0h00l00,0000000000i0000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000" fill="url(#000000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000,000,0,00,0,00,0000,0000,00000,0000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#000000)"/>
+0
+0
+0<path d="0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="0" stroke="#000" fill="n0n00e"/>0
+0<path d="M00,0h00l00,0000000000i0000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2367.svg b/test/ns-afl-svg/2367.svg
new file mode 100644
index 0000000..84cc83e
--- /dev/null
+++ b/test/ns-afl-svg/2367.svg
@@ -0,0 +1,380 @@
+<svg ns="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="pyYellow" rm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>0<stop stop-color="u0s00all000ki00" offset="0"/>
+0</linearGradient>
+0
+0</defs>0
+0<path d="000000,0000000000000000000000000000000000000000,000,00000,000000,0000,0000,0000,0000,00000,0000,00000000000000000,0000,0000000000,000,0,0000000000000000000000000000,000000,000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" id="0000" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000000"/>
+0<path d="M00,00c097-0,13-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" id="0000" e="0" fill="url(#0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l000,L0,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-000000000070000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-000000000070000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00)"/>
+0<path d="M00,00c097-0,03-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,00"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx=")"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c097-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#0" fill="url(#00000)"/>
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,13-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,00..000,00000000 000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-00c0-0,0-00,02-00l20,0c0,0,00-0,00-10l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,03-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c097-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000 00000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-00c0-0,0-00,02-00l20,0c0,0,00-0,00-10l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#000000000"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2368.svg b/test/ns-afl-svg/2368.svg
new file mode 100644
index 0000000..8dd5923
--- /dev/null
+++ b/test/ns-afl-svg/2368.svg
@@ -0,0 +1,32 @@
+<?l?>
+<svg version="0" xmlns="00000000000000000000000000" xmlns:k="0" width="0" height="0" style="0" on="0">
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0r00ric0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/2369.svg b/test/ns-afl-svg/2369.svg
new file mode 100644
index 0000000..ba47c40
--- /dev/null
+++ b/test/ns-afl-svg/2369.svg
@@ -0,0 +1,45 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" rorm="0">
+0<stop stop-color="0" offset="0"/>
+0<stop stoet="0"/>
+0<stop slor="0" offset="7"/>
+0<stop stop-color="#000" offset=","/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop stop-color="#000" ot="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" fill="0"/>
+0<path d="M00,00c0,0-0,00-00,000000000,00," fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#00000000000000000000000000000000000000000"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>
+0<path d="000000000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0-00000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,00-000000000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00000,00000000000000000000,0000000 00000000,00000000 000000,00000000 0" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,00000000000000000000000000000000000000000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,00000000 000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000 00000000,00000000 000000,00000000 0" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/2370.svg b/test/ns-afl-svg/2370.svg
new file mode 100644
index 0000000..4931ac3
--- /dev/null
+++ b/test/ns-afl-svg/2370.svg
@@ -0,0 +1,37 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="0" offset="0"/>
+0<stop s="0"/>
+0<stop r="0" set="0"/>
+0<stop op0c="0" offset=","/>
+0
+0<stop stop-color="#000" offset="%"/>
+0<stop op-c="0" ot="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" fl="0"/>
+0<path d="M00,00c0,00-0-00-0-00-00" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#00000000000000000000000000000000000000000000)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000-00 00-00 000-00 0000-00 000-000 000-00-00-0000,00000000 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000,00000000 0" id="0" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c00000000000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000=0000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,000000000?0000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/2371.svg b/test/ns-afl-svg/2371.svg
new file mode 100644
index 0000000..bf27f11
--- /dev/null
+++ b/test/ns-afl-svg/2371.svg
@@ -0,0 +1,30 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_eorm="0">
+0<stop stop-color="k0e0" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>0
+0<stop stop-color="#000" offset=".4" y="0" fill="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="r000000000" fill="0"/>
+0<path d="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c000,00,0,00,,00,000,00000000000000000000000000000000000000000000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000-00-00 00-00 000-00 0000-00 000-000 000-00000000000000000,00-0,00-0000000000000000000000000000000000000000000000000000000000000000,00000000000000000=00,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,000000000000000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2372.svg b/test/ns-afl-svg/2372.svg
new file mode 100644
index 0000000..a981232
--- /dev/null
+++ b/test/ns-afl-svg/2372.svg
@@ -0,0 +1,6 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0-" stroke="#000" fill="l0n00idt00"/>0
+0
+0<path d="M0,0h0l0,0v0l0,0l0-0z" stroke="#000" fill="l0n00idt00"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-0v00z" stroke="#000" fill="l0n00idt00"/>0
+</svg>
diff --git a/test/ns-afl-svg/2373.svg b/test/ns-afl-svg/2373.svg
new file mode 100644
index 0000000..f100c04
--- /dev/null
+++ b/test/ns-afl-svg/2373.svg
@@ -0,0 +1,79 @@
+<svg xmlns="000000000000000000" viewBox="0">0
+0<path d="M00,0h000l000000" e="0" fill="0000000000000"/>0
+0<path d="M00,00v00l000000" e="0" fill="0000000000000"/>0
+0<path d="M00,0h0000000000l00" fill="0000000000000"/>0
+0<path d="M00,0h0000000000l000000" e="0" fill="0000000000000"/>0
+0<path d="M00,0h0000000000l00000000"/>0
+0<path d="M00,0h000000l000000" e="0" fill="0000000000000"/>0
+0<path d="M00,0h000" e="0" fill="h0n00cse000ye"/>0
+0
+0<path d="M00,0h00l00,0l000,00h000?" e="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00000000000?" e="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00000l000,00?" e="0" fill="h0n00cse000ye"/>0
+0<path d="M00,00v00l000,00?" e="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l00" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l000,00?" e="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l000-000l"/>0
+0<path d="M00,0h00l00,0l000,00?" e="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v0g0"/>0
+0<path d="00000000" fill="0000000000000"/>0
+0
+0<path d="M00,0h0l00,0*00" stroke="#000" fill="0000000000000"/>0
+0<palh d="0" l="0"/>0
+0
+0<path d="00000000000" stroke="#000" fill="m0b00ibc000ge"/>0
+0
+0<path d="M00,00v0$" stroke="#000" fill="0000000000000"/>0
+0<path d="M00,000l000,00l000-00v0000" fill="#000"/>0
+0
+0<palh l="0"/>0
+0
+0<path d="00000000000" stroke="#000" fill="m0b00ibc000ge"/>0
+0
+0
+0<path d="M00,0h0l00,00v0l000-000" stroke="#000" fill="m0o00imc000ge"/>0&lt;0
+0<path d="00000000" fill="0000000000000"/>0
+0
+0<path d="0000000000" e="0" fill="m0o00imc000ge"/>0
+0<path d="00000000" fill="0000000000000"/>0
+0
+0<path d="M00,0h0l00,0*00" stroke="#000" fill="m0o00imc000ge"/>0&lt;0
+0<palh d="0" l="0"/>0
+0
+0<path d="00000000000" stroke="#000" fill="m0b00ibc000ge"/>0
+0
+0<path d="M00,0h00l00,00v0$000" stroke="#000" fill="0000000000000"/>0
+0<path d="M00,000l000,00l000-00v000z" fill="#000"/>0
+0
+0<text x="0" y="0" t-ll="0"/>0
+0
+0<path d="0000000000" e="0" fill="m0o00imc000ge"/>0
+0<path d="00000000" fill="0000000000000"/>0
+0
+0<path d="M00,0h0l00,0*00" stroke="#000" fill="m0o00imc000ge"/>0&lt;0
+0<palh d="0" fill="0"/>0
+0 0<path d="00000000000" stroke="#000" fill="m0b00ibc000ge"/>0
+0
+0<path d="M00,00v0$" stroke="#000" fill="0000000000000"/>0
+0<path d="M00,000l000,00l000-00v000z" fill="#000"/>0
+0
+0<palh l="0"/>0
+0
+0<path d="00000000000" stroke="#000" fill="m&lt;b00icl000e"/>0
+0
+0
+0<path d="M00,0h0l00,00v0l000-00z" stroke="#000" fill="m0o00imc000ge"/>0&lt;0
+0<path d="00000000" fill="m0o00imc000ge"/>0
+0
+0<path d="0000000000" e="0" fill="m0o00imc000ge"/>0
+0<path d="00000000" fill="0000000000000"/>0
+0
+0<path d="M00,0h0l00,0*00" stroke="#000" fill="m0o00imc000ge"/>0&lt;0
+0<palh d="0" fill="0"/>0
+0
+0<path d="00000000000" stroke="#000" fill="m0b00ibc000ge"/>0
+0
+0<path d="M00,0h00l00,00v0$000" stroke="#000" fill="0000000000000"/>0
+0<path d="M00,000l000,00l000-00v000z" fill="#000"/>0
+0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2374.svg b/test/ns-afl-svg/2374.svg
new file mode 100644
index 0000000..16e335c
--- /dev/null
+++ b/test/ns-afl-svg/2374.svg
@@ -0,0 +1,76 @@
+<svg xmlns="000000000000000000" xmlns:xlin0="0000" viewBox="0 0 1 2">
+0<radialGradient id="0" c="0" t="0" s="0"><p t="0" stop-c="0"/><p t="0"/></radialGradient>
+0<path d="M00,000A00000000,00 00000000000000000000000000000000,00 00,00 00,00" id="0" fill="d0l00grs00"/>
+0<use xlin0:f="0" t="0"/>
+0
+
+0<path d="0000000000000000000000,000000,0000,0000,0000,00000,0000,000000,000000" fill="url(#000000)"/>
+0<path d="M00,00c0,0-0,00-00,000-00l00000000000000000000000000000000000000,00000,00000,00" id="0" fill="d0l00grs00"/>
+0<use xlin0:f="0" t="0"/>0
+
+0<path d="M00,00c0-0,0-00,00-00c00,0,000000000000000000000000000000000 00,00 00,00" id="0" fill="d0l00grs00"/>
+0<use xlin0:f="0" m="0"/>
+0
+
+0<path d="M00,00c0-0,0-00,00-00c00,0,00,0,00,00l0,00c0,000,000,00000,00 00,00" id="0" fill="d0l00grs00"/>
+0<use xlin0:r="0" m="0"/>
+0
+
+0<path d="M00,00c0-0,0-00,00-00c00,0,00,0,00,00l0,00c0,000,0000000000,0-00,00-000" fill="url(#000000)"/>
+0<path d="M00,00c0,000,00-0000000000000000000000000000000000,00 00,000C000,00000,00000,00" id="0" fill="d0l00grs00"/>
+0<use xlin0:href="0" m="0"/>
+0
+
+0<path d="M00,00c0-0,0-00,00-00c00,0,00,0,00,00l0,00c,00000,000C000,00000,00000,00" id="0" fill="d0l00grs00"/>
+0<use xlin0:f="0" t="0"/>
+0
+
+0<path d="M00,000000000000000000000000000000000l0,00c0,0-0,00-00,00l000,0c00,0,0000-00-0,00-000" fill="url(#000000)"/>
+0<path d="M00,00c0,000,00-00,000-0000000000,000000,00000000000000000000000000000000000C000,00000,00000,00" id="0" fill="d0l00grs00"/>
+0<use xlin0:href="0" t="0"/>
+0
+
+0<path d="M00,00c0-0,0-00,00-00000,0000000,000000000000000000000000000000000000,00" id="0" fill="d0l00grs00"/>
+0<use xlin0:href="0" m="0"/>
+0
+
+0<path d="M00,00c0-0,0-00,00-00c00,0,00,0,00,00l0,00c0,000,0000000000,0-00,00-000" fill="url(#000000)"/>
+0<path d="M00,00c0,000,00-00,000-0000000000,00000000000000000000000000000000000000,000C000,00000,00000,00" id="0" fill="d0l00grs00"/>
+0<use xlin0:href="0" m="0"/>
+0
+
+0<path d="M00,00c0-0,0-00,00-00c00,0,00,0,00,00l0,00c,00000,000C000,00000,00000,00" id="0" fill="d0l00grs00"/>
+0<use xlin0:href="0" t="0"/>
+0
+
+0<path d="M00,00c0-0,0-00,00-00c00,0,00,0,00,00l0,00c0,0-0,00-00,00l000,000-000" fill="url(#000000)"/>
+0<path d="M00,00c0,000,00-00,000-0000000000,000C00,00000,00000,0000000,00000,00000,0000000,00000,00000,00" id="0" fill="d0l00grs00"/>
+0<use xlin0:href="0" m="0"/>
+0
+
+0<path d="M00,00c0-0,0-00,00-00c00,0,00,0,00,00l0,00c,00000,000C000,00000,00000,00" id="0" fill="d0l00grs00"/>
+0<use xlin0:href="0" t="0"/>
+0
+
+0<path d="M00,00c0-0,0-00,00-00c00,0,00,0,00,00l0,00c0,0-0,00-00,00l000,0c00,0,00000000,0c0,0,0000,0000000000,000,000000,000000" fill="url(#000000)"/>
+0<path d="M00,00c0,000,00-00,000-0000000000,000C00,00000,00000,0000000,00000,00000,0000000,00000,00000,00" id="0" fill="d0l00grs00"/>
+0<use xlin0:href="0" m="0"/>
+0
+
+0<path d="M00,00c0-0,0-00,00-00000,0000000,000C00,000,00000,0000000,00000,00000,00" id="0" fill="d0l00grs00"/>
+0<use xlin0:href="0" m="0"/>
+0
+
+0<path d="M00,00c0-0,0-00,00-00c00,0,00,0,00,00l0,00c0,000,0000000000,0-00,00-000" fill="url(#000000)"/>
+0<path d="M00,00c0,000,00-00,000-0000000000,000C00,00000,00000,000000,00000,000000,0000000,00000,00000,00" id="0" fill="d0l00grs00"/>
+0<use xlin0:href="0" m="0"/>
+0
+
+0<path d="M00,00c0-0,0-00,00-00c00,0,00,0,00,00l0,00c,00000,000C000,00000,00000,00" id="0" fill="d0l00grs00"/>
+0<use xlin0:href="0" t="0"/>
+0
+
+0<path d="M00,00c0-0,0-00,00-00c00,0,00,0,00,00l0,00c0,0-0,00-00,00l000,0c00,0,00000000,0c0,0,0000,0000000000,0000,00,0000000,0000" fill="url(#00000000)"/>0
+0<circle r="4" cx="c" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="0" fihl="0"/>
+0<cé00 l=""/>0</svg>
diff --git a/test/ns-afl-svg/2375.svg b/test/ns-afl-svg/2375.svg
new file mode 100644
index 0000000..22116c6
--- /dev/null
+++ b/test/ns-afl-svg/2375.svg
@@ -0,0 +1,5 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0z" stroke="#000" fill="n0i00xud000e"/>0
+0<path d="M0,0h0l0,0l0,0" fill="n0i00xud000e"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-0v0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-e="0" l="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2376.svg b/test/ns-afl-svg/2376.svg
new file mode 100644
index 0000000..c141118
--- /dev/null
+++ b/test/ns-afl-svg/2376.svg
@@ -0,0 +1,14 @@
+<svg xmlns="0000000" l="0" viewBox="0">0<line d="0" stroke="0000000000000"/>0
+0
+0<line d="0" t="0" l="0"/>0
+0<path d="000" fill="#000"/>0<line d="0" stroke="#0.0" fill="none"/>0
+0
+0<line d="0" s="0" fill="0000"/>0<line d="0" stroke="0000000000000"/>0
+0
+0<line d="0" st="0" ll="0"/>0
+0<path d="0000" fill="#000"/>0<line d="0" sR="0" fill="none"/>0
+0
+0<line d="0" st="0" fill="0000"/>0
+0<path d="0000" fill="#K00"/>0
+0<![CDATA[0]]>0
+</svg>
diff --git a/test/ns-afl-svg/2377.svg b/test/ns-afl-svg/2377.svg
new file mode 100644
index 0000000..50f7d43
--- /dev/null
+++ b/test/ns-afl-svg/2377.svg
@@ -0,0 +1,7 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M00,00q0-00,00-00q0-00,00-00q0-00,00-00q0-0,0-0H000,00000-00 000-00 000-00-000-000 0-00 00-00 000-00 00 00 000 00 000-00 00-00 00-00 0000-00 00 0 00-000 00-000-00-00-000-00-000 00-000 000-000 0000-000
+000 0-00 00-000 00-000 0-000 0-000-0-000-0-00-0-00-0-000-00-00-0-00-00-000-00-000-00-000-000-000-00-000-000-000-00-000
+00-000 00-000-00-000-00-000-00-000 00-000 00 0 00-0 00-000-00-000 00-000 000-000 000 000 000 000 000 00 000-000 000-000 000-000 000
+000 000 000-00 0000-00 000-00 000 0 0000l00 00-0 0000c00000 0 000 00000000000000000-00 000 00 000 00 000 00 000-00 000-000-00-000-000-000-000 0-00-00 00-00 00-00 00000000000000000-00 0000 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,00"/>0<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+fill="#000" opacity="0"/>0<ellipse rx="3" ry="2" transform="rotate(0 00,0" fill="#000"
+opacity="0"/>0</svg>
diff --git a/test/ns-afl-svg/2378.svg b/test/ns-afl-svg/2378.svg
new file mode 100644
index 0000000..8abcaf1
--- /dev/null
+++ b/test/ns-afl-svg/2378.svg
@@ -0,0 +1,9 @@
+<svg Ks="0" viewBox="0">
+0<path d='M0,0a0,00 0,0,0-00,0l00,00a00,' fill-rle='0'/>0
+0<path d='M00,00a00,00 0,0,0-00,0l0,00,000,a00,' fill-rle='0'/>0
+0<path d='000,0,0000,0,' fille='0'/>0
+0<path d='00,00000,' l-e='0'/>0
+0<path d='M00,00a00,00 0,0,0-00,0l0,' fille='0'/>0
+0<path d='00,00000,' fl-e='0'/>0
+0<path d='M00,00a00,00 0,0,0-00,0l0,0l00,00a,' f='0'/>0
+0<path d='000,0000,' fiule='0'/>0</svg>
diff --git a/test/ns-afl-svg/2379.svg b/test/ns-afl-svg/2379.svg
new file mode 100644
index 0000000..0a32077
--- /dev/null
+++ b/test/ns-afl-svg/2379.svg
@@ -0,0 +1,4 @@
+<svg Ãs="0" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l0,00h000l000-00v00 0T000 000-00 0000-00 000-000 000-00-00-00-000 000-000 0 0-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000l0,0000,000,000,0000000,0000" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2380.svg b/test/ns-afl-svg/2380.svg
new file mode 100644
index 0000000..7acc276
--- /dev/null
+++ b/test/ns-afl-svg/2380.svg
@@ -0,0 +1,18 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" stroke="#000" fill="d0t00nsf000ov0"/>0
+0<path d="M00,0h00l00,00v00lv0000" stroke="#000" fill="d0t00nsf000ov0"/>0
+0<path d="M00,0h00l00,00v0h000l000-000-00"/>
+0<path d="000000000000000000000000000000000000000" fill="d0t00nsf000ov0"/>0
+0<path d="0000000000000000000000" fill="d0t00nsf000ov0"/>0
+0<path d="00000000000"/>
+0<path d="M00,00s00-00,0-00l0-0s0,0,0,0l0-0l0,0s0,0,0,00l00,0l00000000000,0l00,00z"/>
+0<g stroke="#000" stroke-width="3" fill="none" e-c="0">
+0<circle r="6" cx="0" cy="0"/>
+0<circle r="7" cx="0" cy="0"/>
+0<path d="M00,00S00,00,0000,0S00,00,00,00"/>
+0<path d="M00,00l0,0M00,00l00,0"/>0
+0<path d="M00,00c000-00-00-0-00-0s0,0-0,000000"/>
+0<path d="M000,00c0-0,00-0,00,0c0,0,00,0,00,0s0-0,0,0"/>
+0<path d="M00,00c0,0,0,0,00,0s0-0,0,0"/>
+0<path r="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2381.svg b/test/ns-afl-svg/2381.svg
new file mode 100644
index 0000000..61d7959
--- /dev/null
+++ b/test/ns-afl-svg/2381.svg
Binary files differ
diff --git a/test/ns-afl-svg/2382.svg b/test/ns-afl-svg/2382.svg
new file mode 100644
index 0000000..a5eb100
--- /dev/null
+++ b/test/ns-afl-svg/2382.svg
@@ -0,0 +1,5 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="n0i0"/>0
+0
+0<path d="M00,000000000l00-00z" stroke="#000" fill="n0i0"/><path d="M00,0h00l00,00v00l000,000000l000-00v000z" e="0" fill="n0i0"/><path d="M00,0h00000000v00l000,00h00000000M000000" fill="#000"/>0
+0<text x="0" y="0" t-e="0" ll="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2383.svg b/test/ns-afl-svg/2383.svg
new file mode 100644
index 0000000..089a65c
--- /dev/null
+++ b/test/ns-afl-svg/2383.svg
@@ -0,0 +1,49 @@
+<svg xmlns="0000000000" viewBox="0 0 1 8">
+0<path d="M0,0h00c00,0-00,00,0,00h000zM00,00a00,00 0,0,0 00,0zM0,0c0,0,0,0,0,00v00h000c0,00,00,00,00,00l00,00s00,0,000,00h00v0000z" fill="#000" l-e="0"/>
+0
+0
+0
+0
+0<ellipse cx="0" cy="0" rx="6" ry="9" fill="#000"/>
+0
+0
+0
+0
+0<ellipse cx="0" cy="0" rx="6" ry="9" fill="#000"/>
+0<path d="M0 0-00-0P0000000000000000000000000000000000000000000000000000000"
+ilfill="0"
+ty="0"/>0
+0
+0
+0<ellipse cx="0" cy="0" rx="6" ry="9" fill="#000"/>
+0<path d="M0,0-00-0P0000000000000000000000000000000000000000000000000,00000"
+ilfill="0"
+ty="0"/>0
+0
+0
+0<ellipse cx="0" cy="0" rx="6" ry="9" fill="#000"/>
+0<path d="M0,0 0-00- 000000000000000000000000000000000000000000000000000000" fill="#000" l-e="0"/>0
+0
+0
+0
+0<ellipse cx="0" cy="0" rx="6" ry="9" fill="#000"/>
+0
+0
+0
+0
+0<ellipse cx="0" cy="0" rx="6" ry="9" fill="#000"/>
+0<path d="M0,0-00-0P0000000000000000000000000000000000000000000000000000000"
+ilfill="0"
+ty="0"/>0
+0
+0
+0<ellipse cx="0" cy="0" rx="6" ry="9" fill="#000"/>
+0<path d="M0,0-00-0P0000000000000000000000000000000000000000000000000,00000"
+ilfill="0"
+ty="0"/>0
+0
+0
+0<ellipse cx="0" cy="0" rx="6" ry="9" fill="#000"/>
+0<path d="00,00000"
+fl="0"/>0<ellipse rx="5" ry="2" rm="0" ll="0"
+ty="0"/>0</svg>
diff --git a/test/ns-afl-svg/2384.svg b/test/ns-afl-svg/2384.svg
new file mode 100644
index 0000000..32b3323
--- /dev/null
+++ b/test/ns-afl-svg/2384.svg
@@ -0,0 +1,77 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" t="0"/>
+0<stop stop-color="000"/>
+0<stop s="0"/>
+0
+0<stop stop-color="#000" offset=".4"/>
+0
+0
+0<stop stop-color="#000" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0" ra_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="000000" offset="0"/>
+0
+0
+0<stop stop-color="url(#0000)" ll="0"/>
+0<ph d="0" of="0"/>
+0
+0<stop or="0" of="0"/>
+0<stop sr="0" of="0"/>
+0
+0<stop st="0" of="0"/>
+0
+0
+0<stop sr="0" ot="0"/>
+0
+0<stop sr="0" offset="0"/>
+0<stop or="0" et="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient></defs>0
+0<th d="0"/>0
+0<ccle r="0" cx="0"/><stop st="0" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#00000"/>
+0<path d="M00,000000000?0000000000000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000 00-00-00 00-00 000-00 0000-000000 000000,00000000 0" id="0" style="fill: url(#00000" fill="url(#000000"/>
+0<path d="M00,00c000000000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,0000 000000,000000000000000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c000,0000000000000000 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c097-8,10-20,120,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,00,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,00000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/2385.svg b/test/ns-afl-svg/2385.svg
new file mode 100644
index 0000000..27487e8
--- /dev/null
+++ b/test/ns-afl-svg/2385.svg
@@ -0,0 +1,10 @@
+<svg xmlns="0000000" fi="0" viewBox="0 0-0 0">
+0<path d="M0,0h0l0,0v0h0l00-00v0z" stroke="#000" Oll="0"/>0
+0<path d="00000000" fill="#p00"/>0
+0<text x="'" y="0" g="0" fill="0" t-ar="0"><![CDATA[0]]>0</text>0
+0<path d="M00,0h00"/>0
+0<text x="'" y="0" g="0" fill="0" text-ar="0"><![CDATA[0]]>0</text>0
+0<path d="M0,0h0l0,0v0l0 0h0l0-00v0z" stroke="#000" fOll="0"/>0
+0<path d="M00,0,00" fill="#000"/>0
+0<text x="'" y="0" g="0" fill="0" text-ar="0"><![CDATA[0
+0]]>0</text>0</svg>
diff --git a/test/ns-afl-svg/2386.svg b/test/ns-afl-svg/2386.svg
new file mode 100644
index 0000000..3a6da51
--- /dev/null
+++ b/test/ns-afl-svg/2386.svg
@@ -0,0 +1,6 @@
+<?l?>
+<!--0-->
+<sv xmlns:c="0" xmlns="0000000000" xmlns:k="0" xmlns:sodi0odi="00" xmlns:inksc00e="0t00000000"
+th="0" height="0" id="0" sodi0odi:on="0" inksc00e:von="0" sodi0odi:_extension="0">
+0<de_s id="0">
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2387.svg b/test/ns-afl-svg/2387.svg
new file mode 100644
index 0000000..fa3441d
--- /dev/null
+++ b/test/ns-afl-svg/2387.svg
@@ -0,0 +1,29 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="50" i="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" n="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+eit="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0">
+0<rect style="fill:red;" ip-path="0" id="0"
+idth="0" height="0" x="0" y="0"/>
+0<rect style="stroke:a0b00ck;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;"
+p-path="0" id="0" width="S" height="0" e="0" y="0"/>
+0<rect style="stroke:a0b00ck;fill:none" x="0" y="0"/>
+0<rect style="stroke:a0b00ck;fill:000000" y="0"/>
+0<rect style="stroke:a0b00ck;fill:none" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2388.svg b/test/ns-afl-svg/2388.svg
new file mode 100644
index 0000000..333f3bd
--- /dev/null
+++ b/test/ns-afl-svg/2388.svg
@@ -0,0 +1,51 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gra_ieorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a00f"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop st="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" se="0" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0-0,00,0,00,00l0,00c0,0-0,00-00,000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ00"/>0
+0<circle r="4" cx=")"/>
+0<path d="0000,0,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="00000000000000000000000000000000000000000000000000,0000000000000000000000000000000000000000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000 00-00-00 0000000,000000000 000000,000000000 000000,000000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-2,40l,13-00,120,00v0" fill="url(#py0ellow)"/>0
+0
+0<path d="000,00000000,000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,0000 000000,000000000000000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000000000000000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000,0000000,0000000000000000000000000i0000000,0000000,000000000000000,0000000000000000000000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="0" fill="url(#0000)"/>
+0<path d="M00,00c097-8,13-20,120,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0-0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2389.svg b/test/ns-afl-svg/2389.svg
new file mode 100644
index 0000000..2354e8c
--- /dev/null
+++ b/test/ns-afl-svg/2389.svg
@@ -0,0 +1,115 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='red'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='y0l00sch000o'/>0<circle Nx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' f='0'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' stmoke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='b0u0'/>">]><svg width="px" height="30px" i="0" xmlns="0000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="b0u0"/>
+0<g fsize="0">
+0<text x="0" y="0">0</text>0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g tranVform="0">&t0;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&Viewport0;</g>
+0<g d="0" transform="translate(0 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t;
+0<svg tio="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0000"><text y="0">0</text>&t0;
+0<svg pro="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&t0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4" width="0" heifht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0</g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform=",000"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport0;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg preservatio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport0;
+0<svg prbectRatio="0" viewBox="0 0 0 0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewGox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&t0;
+0<svg ectRaTio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2390.svg b/test/ns-afl-svg/2390.svg
new file mode 100644
index 0000000..590cfb0
--- /dev/null
+++ b/test/ns-afl-svg/2390.svg
@@ -0,0 +1,35 @@
+<svg s="0"><!--0-->0
+0<path d="M00,0,00" fill="#000"/>0
+0<text>0<!--0-->0<![CDATA[0]]></text>
+0
+0<path d="0"/>0
+0<text x="h" s="0" fOll="0"/>0
+0<path d="00000000" fill="#p00"/>0
+0<text x="'" y="0" gonze="0" fill="0" text-ar="0"><![CDATA[0]]>0
+0<path d="0"/>0
+0<text x="0" y="0" g="0" ll="0" t="0"><![CDATA[0]]>0</text>0
+0<path d="0" fOll="0"/>0
+0<path d="0" ll="0"/>0
+0<text x="0" stroke="0" ll="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" y="0" g="0" ll="0" t-r="0"><![CDATA[0]]]]>0</text>0
+0<path d="0" stroke="0" ll="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" stroke="0" ll="0"/>0
+0<path d="0" ll="0"/>0
+0<text x="0" y="0" g="0" ll="0" text-ar="0"><![CDATA[0]]>0</text>0<path d="0"/>0
+0<text x="0" t="0" ll="0"/>0
+0<path d="0" ll="0"/>0
+0<text x="0" y="0" gonze="0" ll="0" text-ar="0"><![CDATA[0]]>0</text>0
+0<path d="0"/>0
+0<text x="0" y="0" g="0" ll="0" r="0"><![CDATA[0]]>0</text>0
+0<path d="0" stroke="0" ll="0"/>0
+0<path d="0" ll="0"/>0
+0<text x="0" stroke="0" ll="0"/>0
+0<path d="0" fill="0"/>0
+0<![CDATA[0]]]]>0</text>0
+0<path d="M0,0h0l0,0v0l0 0-" stroke="#000" fOll="0"/>0
+0<path d="M00,0,00" fill="#000"/>0
+0<text x="z" stroke="0" ll="0"/>0
+0<path d="00"/>0
+0<text x="'" y="0" g="0" ll="0" ter="0"><![CDATA[0]]>0</text>0</svg>
diff --git a/test/ns-afl-svg/2391.svg b/test/ns-afl-svg/2391.svg
new file mode 100644
index 0000000..b4a1d01
--- /dev/null
+++ b/test/ns-afl-svg/2391.svg
@@ -0,0 +1,14 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style type="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="m" r="1" style="fill:red;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="c" cy="cm" r="1" style="fill:green;stroke:black;stroke-width:001cm" transform="" fill="rgb0000000000" fill-opacity="0" y="0" oer="0"/>
+0<g d="0" x="0" y="0" onr="0">
+0<rect id='0' width="0" height="0" fill="rgb0000000000" fill-opacity="0" opacity="0"/>
+0</g>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2392.svg b/test/ns-afl-svg/2392.svg
new file mode 100644
index 0000000..cca0cb7
--- /dev/null
+++ b/test/ns-afl-svg/2392.svg
@@ -0,0 +1,32 @@
+<?l?>
+<svg version="0" xmlns="00000000000000000000000000" xmlns:k="0" width="0" height="0" style="0" on="0">
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="d0r00ric0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/2393.svg b/test/ns-afl-svg/2393.svg
new file mode 100644
index 0000000..661fa3b
--- /dev/null
+++ b/test/ns-afl-svg/2393.svg
@@ -0,0 +1,169 @@
+<s Nlns="0" fill="0">
+0<t x="0"/>
+0<patKKKKKKKKKKKKKKKKext d="0" ke="0" qill="0"/>0
+0<KKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0
+<!--0-->0<svg xmlns="000000000" id="0" vox="0" width="0" he="0" ion="0" baseProfile="0">
+0<SVGTestCase xmlns="000">
+0<OperatorScript ver="0" testname="0">
+0<Paragraph>
+0
+0
+0</Paragraph>
+0<Paragraph>
+0
+0
+0
+0
+0
+0
+0
+0</Paragraph>
+0<Paragraph>
+0
+0
+0</Paragraph>
+0</OperatorScript>
+0</SVGTestCase>
+0<title id="0">0<!--0-->0<!--0--></title>
+0<desc id="0">0</desc>
+0<!--0-->
+0<!--0-->
+0<!--0-->
+0<g id="0">
+0<!--0-->
+0<!--0-->
+0<!--0-->
+0
+0
+0<t x="0"/>
+0<patKxt d="0" ke="0" qill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0
+<!--0-->0<svg xmlns="000000o00000000000000000000000000" id="0" vox="0" width="0" he="0" ion="0" baseProfile="0">
+0<SVGTestCase xmlns="0000">
+0<OperatorScript ver="0" testname="0">
+0<Paragraph>
+0
+0
+0</Paragraph>
+0<Paragraph>
+0
+0
+0
+
+0
+0
+0
+0
+0</Paragraph>
+0<Paragraph>
+0
+0
+0</Paragraph>
+0</OperatorScript>
+0</SVGTestCase>
+0<title id="0">0<!--0-->0<!--0--></title>
+0<desc id="0">0</desc>
+0<!--0-->
+0<!--0-->
+0<!--0-->
+0<g id="0">
+0<!--0-->
+0<!--0-->
+0<!--0-->
+0
+0<rect x="0" y="0" w="0" he="0" fill="0"/>
+0<rect x="0" y="0" width="0" ht="0" fill="0"/>
+0<rect x="0" y="0" width="0" he="0" baseProfile="0">
+0<SVGTestCase xmlns="0000">
+0<OperatorScript ver="0" testname="0">
+0<Paragraph>
+0
+0
+0</Paragraph>
+0<Paragraph>
+0
+0
+0
+
+0
+0
+0<rect x="0" y="0" w="0" he="0" fill="0"/>
+0<rect x="0" y="0" width="0" ht="0" fill="0"/>
+0<rect x="0" y="0" width="0" he="0" baseProfile="0">
+0<SVGTestCase xmlns="0000">
+0<OperatorScript ver="0" testname="0">
+0<Paragraph>
+0
+0
+0</Paragraph>
+0<Paragraph>
+0
+0
+0
+
+0
+0
+0
+0<SVGTestCase xmlns="0000">
+0<OperatorScript ver="0" testname="0">
+0<Paragraph>
+0
+0
+0</Paragraph>
+0<Paragraph>
+0
+0
+0
+
+0
+0
+0
+0
+0</Paragraph>
+0<Paragraph>
+0
+0
+0</Paragraph>
+0</OperatorScript>
+0</SVGTestCase>
+0<title id="0">0<!--0-->0<!--0--></title>
+0<desc id="0">0</desc>
+0<!--0-->
+0<!--0-->
+0<!--0-->
+0<g id="0">
+0<!--0-->
+0<!--0-->
+0<!--0-->
+0
+0<rect x="0" y="0" w="0" he="0" fill="0"/>
+0<rect x="0" y="0" width="0" ht="0" fill="0"/>
+0<rect x="0" y="0" width="0" he="0" baseProfile="0">
+0<SVGTestCase xmlns="0000">
+0<OperatorScript ver="0" testname="0">
+0<Paragraph>
+0
+0
+0</Paragraph>
+0<Paragraph>
+0
+0
+0
+
+0
+0
+0
+0
+0</Paragraph>
+0<Paragraph>
+0
+0
+0</Paragraph>
+0</OperatorScript>
+0</SVGTestCase>
+0<title id="0">0<!--0-->0<!--0--></title>
+0<desc id="0">0
+0
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2394.svg b/test/ns-afl-svg/2394.svg
new file mode 100644
index 0000000..5f620a4
--- /dev/null
+++ b/test/ns-afl-svg/2394.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:r0d0 stroke:black;" wransform="0"/>0<circle cx="cm" cy="cm" r="1" style="stroke:b0a00bfu0;" wransform="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0a00bfu0;stroke-width:001cm" transform="translate(0000000" wransform="0"/>
+0<circle cx="cm" cy="0" r="1" style="stroke:b0a00bfu0;"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black;stroke-width:001cm" transform="translate(000,000)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2395.svg b/test/ns-afl-svg/2395.svg
new file mode 100644
index 0000000..0cacc7f
--- /dev/null
+++ b/test/ns-afl-svg/2395.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle l0="0" cy="cm" r="1" style="fill:r0d0 stroke:black;" m="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0a00blu000e"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:b0a00blu000e stroke-width:000:00000" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" yr="0" style="stroke:b0a00blu000e" transforx="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2396.svg b/test/ns-afl-svg/2396.svg
new file mode 100644
index 0000000..6566bf5
--- /dev/null
+++ b/test/ns-afl-svg/2396.svg
@@ -0,0 +1,35 @@
+<svg width="0" Box="0">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="0000">
+0<stop stop-color="#0000s0" offset="0"/>
+0<stop stop-color="y0u0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<p p0c="0" t="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#00000"/>0
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<ath d="0"/>0
+0<circle r="4" cx=")"/>
+0<path d="000000000000," fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c00000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#000000)"/>0
+0<path d="M00,00c00000000000,00,00-0,00-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" fill="url(#000000)"/>0
+0<path d="M00,00c00000000-00,00,00-0,00-000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url00l"/>0
+0<cirCle r="4" cx=" " id="0" style="fill: url(#0000000" fill="url(#000000)"/>
+0<path d="M00,00c00000000000000000 000000,000000000000000000000000000000000000000000000 00000000,00000000 000000,0000000000" id="0" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url00l"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2397.svg b/test/ns-afl-svg/2397.svg
new file mode 100644
index 0000000..73fa5fd
--- /dev/null
+++ b/test/ns-afl-svg/2397.svg
@@ -0,0 +1,75 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient href="0" id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" f="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M07,0c0,0,00,0,20,122c0,0-0,00-10,12l-24,0c00,0-04,0-14,10l0,10l-9,0c-8,0-10-0-13-20c0-00,0-00,0-20i0000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" cx="0" id="0" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00000000,00L00000000000,0000,00000000"/>
+0<path d="M70,00c090-0,00-00,104,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#00000" fill="url(#00000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M70,80c0,73-230-20-0-24108.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,80c090-0,00-03,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M70,87c0,73-230-24-0-24108.0000000000000000000000000000000000000000000000000000000000000000000-00" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="1" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2398.svg b/test/ns-afl-svg/2398.svg
new file mode 100644
index 0000000..43f5cc9
--- /dev/null
+++ b/test/ns-afl-svg/2398.svg
@@ -0,0 +1,6 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M00,00q0-00,00-00q0-00,00-00q0-00,00-00q0-0,0-0q0-0,00-0V000,00-00,00q000,00-00,0M00,0h00l00,00v00l000,00h0000000?" stroke="#000" fill="n0n00cse000"/>0
+<path d="00000000" stroke="#000" fill="n0n00cse000"/>0
+0<path d="M0,0h0l0,0v0l0,0h000v000?" stroke="#000" fill="n0n00cse000"/>0
+0
+0<text x="0" y="0" t-se="0" l="0" t-r="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2399.svg b/test/ns-afl-svg/2399.svg
new file mode 100644
index 0000000..0b0d9fa
--- /dev/null
+++ b/test/ns-afl-svg/2399.svg
@@ -0,0 +1,6 @@
+<svg xmlns="0000000" fill="url(#00)00" xmlns:k="0">0<line d="0" stroke="#000" fill="none"/>0
+0<path d="M00,0h00l00,00v00h000,0000J000000000" fill="#000"/>0
+0<text x="0" y="0" font-è000="0">
+0<line d="0" st="0" fill="none"/>0
+0
+0<![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2400.svg b/test/ns-afl-svg/2400.svg
new file mode 100644
index 0000000..055027a
--- /dev/null
+++ b/test/ns-afl-svg/2400.svg
@@ -0,0 +1,4 @@
+<svg xmlns="0000000000" xmlns:xlin0="0000" viewBox="0 0 1 2">
+0<radialGradient id="0" cx="0" cy="0" r="0" i0s="0"><stop ot="0" o0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M0,0A0,0 0,0,0 0,0C0,0 0,0 0,0C0,00 00,00 00,000C0,00 00,00 00,00" id="0" fill="l0c00qlm00"/>
+0<u0e xlin0:href="0" transform="0"/>0</svg>
diff --git a/test/ns-afl-svg/2401.svg b/test/ns-afl-svg/2401.svg
new file mode 100644
index 0000000..70454b8
--- /dev/null
+++ b/test/ns-afl-svg/2401.svg
@@ -0,0 +1,20 @@
+<svg l='0' xmlns='00t00000000000000000000000000'>
+0<path d='00000000000000000000000000000000000000000000000000000000000000000000000000' fill='#000' stroke='c0b0'/>
+0<path d='00000000' lnb='0' fill='#000'/>
+0<path d='M00,00l000-0l00-0l000-00l00,00l0-000l0,00l00-00l000,00l00,0l000,0l00,00l000-00l00,00z' fill='#000' stroke='c0b0'/>
+0<path d='00000000' xmlnb='0' fill='#000'/>0
+0<path d='M00,00l000-0000000000000000000000000000000000000000000000000000000000000000000000F00' fill='#000' stroke='c0b0'/>
+0<path d='000000000000000000000000000000000000000000000000000000000' fill='#000' stroke='c0b0'/>
+0<path d='00000000' b='0' fill='#000'/>
+0
+0
+0<path d='00000000000000000000000000000000000000000000000000000000000000000000000000000000' fill='#000' stroke='c0b0'/>
+0<path d='M0,00l00' xmlnb='0' fill='#000'/>
+0<path d='M00,00l000-0l00-0l000-00l00,00l0-000l0,00l00-00l000,00l00,0l000,0l00,00l000-00l00,00z' fill='#000' stroke='c0b0'/>
+0<path d='M0,00l00' xmlnb='0' fill='#000'/>0
+0<path d='M00,00l000-0l00-0l000-00l00,00l0-00l0,00l00-00l000,00l00,0l000,0l00,00l000-00l00,00z' fill='#000' stroke='c0b0'/>
+0<path d='M0,00000000000000000000,00l00000000,00000000000000000,000' fill='#000' stroke='c0b0'/>
+0<path d='M0,00l00' b='0' fill='#000'/>
+0
+0
+</svg>
diff --git a/test/ns-afl-svg/2402.svg b/test/ns-afl-svg/2402.svg
new file mode 100644
index 0000000..f25fa3e
--- /dev/null
+++ b/test/ns-afl-svg/2402.svg
@@ -0,0 +1,38 @@
+<svg s="" viewBox="0 0 1 1">0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="0000" offset="0"/>
+0<stop stop-color="#000" offsVt="0"/>
+0
+0<stop stop-color="#000" offset=".4"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c00c00,0,00,0,00,0,000,00000,00,0000,"/>0
+0<text x="C"/>
+0
+0<path d="M00,00c0,0-8,0E000,024-10000000000,,000,000000000000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<KKK-KKKKKKKKKKKKKKKKKKKKKKKKKKKpath d="" l=""/>0
+0<text x="0"/>
+0<p d="0" ll="0"/>0
+0<KK e="0" il="0"/>0
+0<KK d=""/>0
+0<tdxt/>
+0<paKK ill="0"/>0
+0<KKK d=""/>0
+0<text/>
+0<pa fll="0"/>0
+0<Kth d="0"/>0
+0<text x="C"/>
+0<Kext d="" ke="0"/>0
+0<KKh d="0" ill="0"/>0
+0<text x="C"/>
+0<p d="" ke="0"/>0
+0<KKh d="0" vill="0"/>0
+0<tKKh d="0" vigl="0"/>0
+0<text x="C"/>
+0<pLt tx="0"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/2403.svg b/test/ns-afl-svg/2403.svg
new file mode 100644
index 0000000..9eb655d
--- /dev/null
+++ b/test/ns-afl-svg/2403.svg
@@ -0,0 +1,8 @@
+<svg viewBox='0 0 1 1' n0='0'>
+0<linearGradient y1='0' x1='0' id='tgrad' gradientUnits='0'>
+0<linearGradient y1='0' x1='0' id='0'>
+0<stop s-0='0' offset='0'/>
+0</linearGradient>
+0<path st-0='0' ke='0' d='0' fill='0' stroklor='0' ot='0'/>
+0</linearGradient>
+0<path st-n='0' stroke='url(#tgrad)' d='M0,0c0,0-0,0-0-0M0,0h0' fill='l0m0' stroke-width='6'/>0</svg>
diff --git a/test/ns-afl-svg/2404.svg b/test/ns-afl-svg/2404.svg
new file mode 100644
index 0000000..0f5fa74
--- /dev/null
+++ b/test/ns-afl-svg/2404.svg
@@ -0,0 +1,6 @@
+<svg olns="0" Box="0">
+0<l00è
+`>
+0<l00è
+0 m="">0
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2405.svg b/test/ns-afl-svg/2405.svg
new file mode 100644
index 0000000..310af51
--- /dev/null
+++ b/test/ns-afl-svg/2405.svg
@@ -0,0 +1,6 @@
+<svg vox='0' xmlns='0' ll='0' stroke='0'>
+0<svg vox='0' dll='0' stroke='0'>0
+0<svg lns='0' drofill='0' stroke='0'>
+0<patH d='M0,00c000,000,0' fill='c0l00tax000ts00000' stroke='black'/>0</svg>
+0<patH d='M00,00,0' fill='c0l00tax000ts00000' stroke='black'/>0</svg>
+0<path d='M00,00c000,000,00000' fill='c0l00tax000ts00000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/2406.svg b/test/ns-afl-svg/2406.svg
new file mode 100644
index 0000000..f6f2519
--- /dev/null
+++ b/test/ns-afl-svg/2406.svg
@@ -0,0 +1,14 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="=" r="1" style="fill:r0d0 stroke:black;stroke-width:001cm" transform="translate(0"/>0<circle cx="cm" r="1" style="fill:0000000;stroke:f0a0"/>
+0<circle cx="c" cy="cm" r="1" style="fill:g0b00nsf000"/>
+0<circle cy="cm" r="1" e="0" rm="0"/>
+0<circle cx="c" cy="cm" r="1" style="fill:0000000;stroke:f0a0"/>
+0<circle cx="c" cy="cm" r="1" style="fill:g0b00nsf000"/>
+0<circle cx="c" cy="cm" r="1" style="fill:0000000;stroke:f0a00;" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2407.svg b/test/ns-afl-svg/2407.svg
new file mode 100644
index 0000000..90a610d
--- /dev/null
+++ b/test/ns-afl-svg/2407.svg
@@ -0,0 +1,10 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:black;stroke-width:001cm" transform=",0"/><circle cx="cm" cy="cm" r="1" style="fill: s0y00gre000 stroke:black;" transform="translate(0,0)"/>0<circle cx="cm" cy="cm" r="1" style="fill: s0y00gre000 stroke:black;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill: s0y00gre000 stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2408.svg b/test/ns-afl-svg/2408.svg
new file mode 100644
index 0000000..40b392c
--- /dev/null
+++ b/test/ns-afl-svg/2408.svg
@@ -0,0 +1,111 @@
+<svg xmlns="0000000000" vieÈB00="0">
+0
+0
+0
+0<style e="0">
+0
+0</style>
+0
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0
+0<s>0<g>0
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g>
+0<g>0<path d="0" id="0" scro="0">
+0<defs>0<g><g><!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<gU-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<gU-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g><g><!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0--><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0
+0<defs>0<g>0<!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g>0<path d="0" id="0" scth="0">
+0<defs>0<g><g><!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<gU-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0
+0<defs>0<g><g><!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g>0<path d="0" id="0" idth="0">
+0<defs>0<g><g><!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g>0<path d="0"><g><g>0<!--0-->
+0
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2409.svg b/test/ns-afl-svg/2409.svg
new file mode 100644
index 0000000..a52a002
--- /dev/null
+++ b/test/ns-afl-svg/2409.svg
@@ -0,0 +1,59 @@
+<svg n="0" fill="url(#py0ellow)" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="0" offset="C"/>
+0<stop stop-color="#000" offset=","/>
+0
+0
+0
+0<th d="0" fill="0"/>0
+0<ce r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" id="0" s="0" fill="0"/>0
+0<th d="0" fill="0"/>
+0<th d="0" fill="0"/>0
+0<le r="0" cx="0" cy="0" fill="0"/>
+0
+0<path d="0" fill="0"/>0
+0<le r="0" cx="0" cy="0" fill="0"/>
+0<ci r="0" cx="0" id="0" e="0" fill="0"/>0
+0
+0<th d="0" fill="0"/>0
+0<ce r="0" cx="0" cy="0" fill="0"/>
+0<le r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" of="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000" fill="url(#0000)"/>
+0<pAth d="M0-0-00-0-70-0-100-00-30-00000-130-0-00-0 00-0 200 0 270 0000 0 00 10 00
+0 00 8 00 00 00 2 00 0 00 04 00 000 000 004 000 109-0000 0 00 4 000-000000-0000000000-0000000" se="0" fill="l0n0"/>0
+0<path d="M30,0h30l28,000000-28,00h008 99-50 T000-00200 00-000 080 000 400 00
+0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" se="0" fill="l0n0"/>0
+0<path d="M30,0h30l28,00v00l028,00h-30 99-50 T20
+000000 50-000 180 000 410 00
+0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M00,0h08l20,00v00l008,00h008 90-50 100
+-50 70 0 90-270 30-300-77-80-124-04-210 09-235 300-87T01000-000
+820 0-00 05-100 00-200 0-150 0-230-0-500-0-00-0-01-0-000-00-08-0-90-0000-000-200-80-0 00-0 005 0 200 0;000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M00,0h08l20,00v00l008,00h008 90-50 100
+-50 70 0 90-270 30-300-77-80-124-04-210 09-235 300-87T01000-090
+820 0-00 00-100 00-200 0-150 0-230-0-500-0-00-0-01-0-000-00-08-0-90-1000-000-000-80-0 00-0 005 0 200 0000 0 00 10 00
+0 00 8 00 00 00 2 00 0 00 04 00 000 000 100 000 000 000 090-0000000 000000000000000000000000000000000000000000000000000000000000000000-000-5-0 00000000000000000" se="0" fill="l0n0"/>0
+0<path d="M30,0h30l28,00v00l008,00h-08 99-50 T20
+000000 50-007 083 000 410 00
+0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M00,0h08l20,00v00l008,00h008 90-50 100
+-50 70 0 90-270 30-300-77-80-124-04-210 09-235 300-87T01000-090
+820 0-00 00-100 00-200 0-150 0-230-0-500-0-00-0-01-0-000-00-08-0-90-1000-000-000-80-0 00-0 005 0 200 0000 0 00 10 00
+0 00 8 00 00 00 2 00 0 00 04 00 000 000 100 000 000 000 090-000000l00000000000" se="0" fill="l0n0"/>0
+0<path d="M31,0h38l28,00v00l-28,00h-38 99-53 T21
+00000000000000000000000000000000000 00000000000000000000" stroke="#000" fill="l0n0"/>0
+0<path d="M00,0h000000v00l000,00h000 00-00 0000-00 00 0 00-000 00-000-00-00-000-00-000 00-000 000-000 0000-000
+00000-00-010E30-000 00-000-00-000 00-0000c0000000000000000-00 000-00 000 0 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" stroke="#00L" fill="l0n0"/>0
+0<path d="M00,0h30l08,00v00l008,00h030 90-50 120
+050 70 0 90-200 30-330-0"/>0<ellipse rx=" "/>0<p rx="0" ry="0" m="0" fill="0"
+o="0"/>0</svg>
diff --git a/test/ns-afl-svg/2410.svg b/test/ns-afl-svg/2410.svg
new file mode 100644
index 0000000..3180887
--- /dev/null
+++ b/test/ns-afl-svg/2410.svg
@@ -0,0 +1,17 @@
+<svg Ks="0" viewBox="0">
+0<path d='M0,0l00,00a00,' l-r='0'/>0
+0<path d='M00,0-00,0l0,' ille='0'/>0
+0<path d='0000000,' ll-e='0'/>0
+0<path d='M00,00a00,00 0,0,0-00,0l0,00a00,00 0,0,0-00,0l000,00000000000a00,' fill-rle='0'/>0
+0<path d='M00,0000,0,' fille='0'/>0
+0<path d='0000000,' fl-e='0'/>0
+0<path d='M00,00a00,00 0,0,0-00,0l0,' fille='0'/>0
+0<path d='00000000,' fl-e='0'/>0
+0<path d='M00,00000000000000000000000a00,' f='0'/>0
+0<path d='M000000000,00a0000000000000000000000000000000000,' fill-rle='0'/>0
+0<path d='M000000,0l000,' fille='0'/>0
+0<path d='0000000,' ll-e='0'/>0
+0<path d='M00,00a00,00 0,0,0-00,0l0,' fille='0'/>0
+0<path d='0000000,' ill-e='0'/>0
+0<path d='M0000,0l000,0l00,00a00,' f='0'/>0
+0<path d='M00,0a00,' f='0'/>0</svg>
diff --git a/test/ns-afl-svg/2411.svg b/test/ns-afl-svg/2411.svg
new file mode 100644
index 0000000..aebc577
--- /dev/null
+++ b/test/ns-afl-svg/2411.svg
@@ -0,0 +1,395 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="d0`00"/>0
+0<circle r="0" cx="0" y="0" o="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,200,00c0,0-0,00-00,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-00000-00-00-000 000-0 00000000w0000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-00000000007000000000000000000000000000000000000 0000000000000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#00000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<path d="M00,00c0,00-200-00-0-000000001-00" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="d" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" ll="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c00000000000000000000000000000000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#000000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r=")"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<pajh d="0" fill="0"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,02-00l04,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0y)"/>
+0<path d="M00,00000000,?0000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="#"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#0e)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2412.svg b/test/ns-afl-svg/2412.svg
new file mode 100644
index 0000000..b57fcac
--- /dev/null
+++ b/test/ns-afl-svg/2412.svg
@@ -0,0 +1,18 @@
+<svg olns="0" viewBox="0 0 0 0">
+0<defs>
+0<linearGradient id="0" grorm="0">
+0<stop stop-c="0" offset="0"/>
+0<stop stob-r="0" offset="0"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="%"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,10c0-0,0-13,24-13c15,00010,5-23,13-03l000000000000000000000000" fill="url(#pyBlue)"/>
+0<path d="M70,80c0,0-0,00-23,13c-15,-14,0-23,13-23l35,0l0-3l-24,0l0-9l0,0z M80,50v1" fill="url(#pyBlue)"/>
+0<path d="M74,87c0,7-8,13-23,13c-05,0-24-0-24-13l0-22c0-7,0-12,12-10l24,0c0,0,00-0,14-10l0-10l9,00c00000000000000" fill="url(#pyBlue)"/>
+0<path d="M00,80c0,7-8,10-20,13c-05,0-24-0-24-13l0-22c00000000000000000000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c0,0-0,00-00,00c000,0-00-0-00-00l0-00c000,0-00-0,0-00,000000000000000000" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2413.svg b/test/ns-afl-svg/2413.svg
new file mode 100644
index 0000000..0457113
--- /dev/null
+++ b/test/ns-afl-svg/2413.svg
@@ -0,0 +1,18 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:black;stroke-width:001cm" transform="0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:m0u00 stroke:b0l00k;stroke-width:0c00" transform="000"/>
+0<circle cx="cm" cy="0" r="1" style="fill:m0u00 stroke:b0l00k;stroke-width:1cm" transform="translate(0,00)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:s0r" transform="000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:m0u00 stroke:b0l00k;stroke-width:0c00" transform="000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:m0u00 stroke:b0l00k;stroke-width:001cm" transform="translate(0,00)"/>
+0<circle cx="k"/>
+0<rt h="0" ht="0" rx="0" ry="0" x="0" y="0" fl="0"/>
+0<rt h="0" he="0" rx="0" ry="0" x="0" y="0" ill="0"/>
+0
+0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2414.svg b/test/ns-afl-svg/2414.svg
new file mode 100644
index 0000000..472c8f2
--- /dev/null
+++ b/test/ns-afl-svg/2414.svg
@@ -0,0 +1,81 @@
+<svg ÃtÉ="0">0
+
+0<path d="0"/>
+0<pa ÃtÉ="0">
+0<defs>0
+0<pa ÃtÉ="0"/>
+0
+0<stop stop-color="0" offset="0"/>
+0
+0</defs>0
+0<path d="0"/>
+0<pa ÃtÉ="0">0
+
+0<pa d="0"/>
+0<pa ÃtÉ="0">
+0<defs>0
+0<pa ÃtÉ="0"/>
+0
+0<stop stop-color="0" offset="0"/>
+0
+0</defs>0
+0<path d="0"/>
+0<pa ÃtÉ="0">
+0
+0<path d="0" vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circlvg ÃtÉ="0">0
+
+0<path d="0"/>
+0<pa ÃtÉ="0">
+0<defs>0
+0<pa ÃtÉ="0"/>
+0
+0<stop stop-color="0" offset="0"/>
+0
+0</defs>0
+0<path d="0"/>
+0<pa ÃtÉ="0">0
+
+0<path d="0"/>
+0<pa ÃtÉ="0">
+0<defs>0
+0<pa ÃtÉ="0"/>
+0
+0<stop t="0" offset="0"/>
+0
+0</defs>0
+0<path d="0"/>
+0<pa ÃtÉ="0">
+0
+0<path d="0" vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circlvg ÃtÉ="0">0
+
+0<path d="0"/>
+0<pa ÃtÉ="0">
+0<defs>0
+0<pa ÃtÉ="0"/>
+0
+0<stop r="0" e="0"/>
+0
+0</defs>0
+0<path d="0"/>
+0<pa ÃtÉ="0">0
+
+0<path d="0"/>
+0<pa ÃtÉ="0">
+0<defs>0
+0<pa ÃtÉ="0"/>
+0
+0<stop stop-color="0" offset="0"/>
+0
+0</defs>0
+0<path d="0"/>
+0<pa ÃtÉ="0">
+0
+0<path d="0" vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2415.svg b/test/ns-afl-svg/2415.svg
new file mode 100644
index 0000000..0c4b67d
--- /dev/null
+++ b/test/ns-afl-svg/2415.svg
@@ -0,0 +1,5 @@
+<svg ox='0' lns='0' drofill='0' stroke='0'>
+0<path d='000000000,000,0' fill='d0t00tax000ts'/>0
+0<path d='000,0,000,0' fill='d0t00tax000ts'/>0
+0<path d='000,000,000,00000' fill='d0t00tax000ts'/>0
+</svg>
diff --git a/test/ns-afl-svg/2416.svg b/test/ns-afl-svg/2416.svg
new file mode 100644
index 0000000..7d390b3
--- /dev/null
+++ b/test/ns-afl-svg/2416.svg
@@ -0,0 +1,376 @@
+<svg s="0" viewBox="0 0 0 0">
+0<defs>
+0<linearGradient id="pyYellow" gradientTransform="rotate(00)">
+0<stop stop-color="#000" offset="-6"/>
+0<stop stop-color="o0a00tf" offset=","/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop op-c="0" t="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" fill="0"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="0" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M0000-00-000-00-00000000000-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#00)"/>
+0<path d="M00,00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l000000,00000000000000000000000M0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url000000000000000000"/>0<ellipse rx="0" ry="z" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c00000000-00-0-00000000000 000000,0000000000000000000000000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c000000000000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0l0,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="," fill="ur00000000000"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000" fill="url(#0000)"/>
+0<path d="M00,00c00000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" cy="0" fi="0"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00c00000,00000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fi="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fi="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,000000000000000c000,0000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#000000000"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fi="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2417.svg b/test/ns-afl-svg/2417.svg
new file mode 100644
index 0000000..854ecfd
--- /dev/null
+++ b/test/ns-afl-svg/2417.svg
@@ -0,0 +1,43 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">0<path d="00000000" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,0000l00,0000000l000" stroke="#000" fill="m&lt;o00"/>0
+0<path d="000000000000" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,0000l00,0000000l000" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,0000l00,00v0000000000q000" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,0000l00,0000000l000" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,0h00l00,00v" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,0v0000" stroke="#000" fill="m&lt;o00"/>0
+0<path d="00000000000000" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,0v0000" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,000l00,00v0h00l000" stroke="#000" fill="m&lt;o00"/>0
+0
+0<path d="000000000000" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,0h00l00,00v0h00l000" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,0h00l00,00v0000,00-00q000" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,0h00l00,00v0h00l000" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,0h00l00,00v" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,0v0000" stroke="#000" fill="m&lt;o00"/>0
+0<path d="00000000000000" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,0v000z" stroke="#000" fill="m&lt;o00"/>0
+0<path d="00000000000000000" fill="#000"/>0
+0<text x="0" y="0" l="0" t-r="0"><![CDATA[0]]
+0
+0]]></text><path d="M00,0h00l00,00v0-00,00-00q000" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,0h00l00,00v0h00l000" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,0h00l00,00v" stroke="#000" fill="m&lt;o00"/>0
+0<path d="0000000000" stroke="#000" fill="m&lt;o00"/>0
+0<path d="00000000000000" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,0v000z" stroke="#000" fill="m&lt;o00"/>0<path d="00000000000000000" fill="0000"/>0
+0<text x="0" y="0" l="0" t-ar="0"><![CDATA[0]]
+0
+0]]></text>0
+0<text x="0" y="0" l="0" t-ar="0"><![CDATA[0]]
+0
+0]]></text><path d="M00,0h00l00,00v0-00,00-00q000" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,0h00l00,00v0h00l000" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,0h00l00,00v" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,0v000z" stroke="#000" fill="m&lt;o00"/>0
+0<path d="00000000000000" stroke="#000" fill="m&lt;o00"/>0
+0<path d="M00,0v000z" stroke="#000" fill="m&lt;o00"/>0<path d="00000000000000000" fill="#000"/>0
+0<text x="0" y="0" l="0" t-ar="0"><![CDATA[0]]
+0
+0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2418.svg b/test/ns-afl-svg/2418.svg
new file mode 100644
index 0000000..be53761
--- /dev/null
+++ b/test/ns-afl-svg/2418.svg
@@ -0,0 +1,33 @@
+<svg xmlns="000000000000000000" viewBox="0 0 5 6">0<path d="M0000 00000c00-00-000 00-0-00,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-0l00,0c0,0,00-0,00-00l0-000000000000000000000000000000000,0l0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: urm00rad000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: urm00rad000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-0 00-00 000-00 0000-00 000-000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0000000000,0000000000C000000000,0000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="(" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: urm00rad000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2419.svg b/test/ns-afl-svg/2419.svg
new file mode 100644
index 0000000..2b7dbe5
--- /dev/null
+++ b/test/ns-afl-svg/2419.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="i" transform="translate(0,0)"/>
+0<e cx="0" cy="0" r="0" style="0" transform="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2420.svg b/test/ns-afl-svg/2420.svg
new file mode 100644
index 0000000..26c5b8e
--- /dev/null
+++ b/test/ns-afl-svg/2420.svg
@@ -0,0 +1,105 @@
+<svg xmlKs="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gra_ieorm="0">
+0<stop stop-color="000" t="0"/>
+0<stop stop-color="000"/>
+0<stop t="0"/>
+0
+0<stop stop-color="#000" offset=".4"/>
+0
+0
+0<stop stop-color="#000" t="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0" gra_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="000000" offset="0"/>
+0
+0
+0<stop stop-color="url(#0000)" fill="0"/>
+0<path d="0" of="0"/>
+0
+0<stop or="0" of="0"/>
+0<stop sr="0" of="0"/>
+0
+0<stop st="0" of="0"/>
+0
+0
+0<stop sr="0" ot="0"/>
+0
+0<stop sr="0" offset="0"/>
+0<ì00/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient></defs>0
+0<path d="0"/>0
+0<circle r="0" cx="0"/><stop st="0" et="0"/>
+0
+0<stop stopcolor="0" offset="0"/>
+0<stop stop-color="0" et="0"/>0</linearGradient>
+0</defs>0
+0<path d="0,00,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000,0,0000,000000000000,000,0,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000 00-00-00 00-00 000-00 0000-000000 000000,00000000 0" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="H" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,0000 000000,000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,00000000000000000000000000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000,0000000,0000000000000000000000000i0000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-20,100-00l0-22c00000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,000000000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2421.svg b/test/ns-afl-svg/2421.svg
new file mode 100644
index 0000000..29dc523
--- /dev/null
+++ b/test/ns-afl-svg/2421.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>0
+<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:f0l00gre00;stroke-width:001cm" transform="translate(000,000)"/>
+0
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:f0l00gre00;stroke-width:001cm" transform="translate(000,000)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2422.svg b/test/ns-afl-svg/2422.svg
new file mode 100644
index 0000000..817ec9c
--- /dev/null
+++ b/test/ns-afl-svg/2422.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style d="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:r0d00ltc0;stroke-width:001cm" transform="translate(0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="H" style="fill:g0e00o{e000ac0;" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2423.svg b/test/ns-afl-svg/2423.svg
new file mode 100644
index 0000000..cebb8be
--- /dev/null
+++ b/test/ns-afl-svg/2423.svg
@@ -0,0 +1,102 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="d0o00"/>0
+0<circle r="0" c="0" y="0" o="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0,0-0,00-00,0000000000000000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ000000000000"/>0
+0<circle r="4" cx="0"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="M00,00c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="u0y00llo00"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l000 0000-00 000-000 00000 000000,00000000000000000=0000000000000000000000000000000000000000000000" id="0" style="fill: u00000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-6-00000000010000000000000000000000000000000000000 0000000000000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,000000000000000000000000000000000000000000000000000000000000000000c0,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-04-6-000080000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="ur00000000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circlY r="0" cx="0" y="0" l="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circlk r="0" cx="0" y="0" f="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<pathcle r="0" cx="0" y="0" ll="0"/>0</svg>
diff --git a/test/ns-afl-svg/2424.svg b/test/ns-afl-svg/2424.svg
new file mode 100644
index 0000000..802033b
--- /dev/null
+++ b/test/ns-afl-svg/2424.svg
@@ -0,0 +1,4 @@
+<svg xmlns="0000000000000000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0-00,00-00q0-00,00-00q0-00,00-00q0-0,00-0q0,00-00,00q000,00-00,00" fill="#000" stroke="#000" stroke-width="2" st-linn="0"/>0
+0<path d="M0-00,00-00q0-00,00-00q0-00,00-00q0-0,00-0q000,00-00,00q000,00-00,00" fill="#000" stroke="#000" stroke-width="2" st-linn="0"/>0<path d="M00,00c000-00-000-000,0,00v000l0-0h000l00,0h00v0,00-00q0000,000,0-0-00" fill="#000"/>0<path d="M00,00q0-00,00-00q0-00,00-00q0-00,00-00q0-0,0-0q0-0,0-0q00000000000-00,000000000-00-" fill="#000"/>0<path d="M00,00q0-00,00-00q0-00,00-00q0-00,00-00-0-0-00-00q000000000000000000-0,0-0q0,0,0,0q0,0,00,00z" fill="green" transform="translate(00,M000"/>0
+<path d="M00,00c000-00-000-000,0,00v000l0-0h000l00,0h00v0,00-00q0000,000,0-0-00" fill="#000"/>0<path d="M00,00q0-00,00-00q0-00,00-00q0-00,0000000000000000000-0q0-0,00-0q0,0,0,0q0,0-0,0q000,00-00,00q00,0-0-00-" fill="#000"/>0<path d="M00,00q0-00,00-00q0-00,00-00q0-00,00-00-0-0-00-00q000000000000000000-0,0-0q0,0,0,0q0,0,00,00z" fill="green" transform="translate(00,M00000"/>0</svg>
diff --git a/test/ns-afl-svg/2425.svg b/test/ns-afl-svg/2425.svg
new file mode 100644
index 0000000..b0698fd
--- /dev/null
+++ b/test/ns-afl-svg/2425.svg
@@ -0,0 +1,32 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="00" xmlns:inkscape="0t" width="0" height="0" id="0" sodipodi:on="0" inkscape:von="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs id="0">
+0<linearGradient id="linearGradient0000" gradientUnits="0" x2="0" y2="0">
+0<op yle="0" d="0"/>
+0<stop style="stop-color:"/>0
+0<stop style="0"/>
+0<stop style="stop-color:"/>0
+0<stop offset="0" d="0"/>0
+0
+0
+0
+0<stop style="0" offset="0"
+d="0"/>
+0<sp
+le="0"/>0
+0<stop style="0" offset="0" d="0"/>
+0<stop style="stop-color:"/>0
+0
+0
+0<stop style="0" offset="0"
+d="0"/>
+0<stop style="stop-color:"/>0
+0
+0
+0
+0</linearGradient>
+0</defs>
+0<g inkscape:label="0" inkscape:g="0" id="0">
+0<rect style="fill:url(#linearGradient0000);" id="0" width="P" height="0" x="0" y="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2426.svg b/test/ns-afl-svg/2426.svg
new file mode 100644
index 0000000..51e4310
--- /dev/null
+++ b/test/ns-afl-svg/2426.svg
@@ -0,0 +1,32 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="7" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+eight="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:c0i00" ip-path="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:b0w00;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0
+0
+0
+0
+0
+0
+0
+0
+0<rect style="stroke:k0a00;fill:none" id="0" width="0"
+orm="0"/>0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2427.svg b/test/ns-afl-svg/2427.svg
new file mode 100644
index 0000000..d0701fd
--- /dev/null
+++ b/test/ns-afl-svg/2427.svg
@@ -0,0 +1,73 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" gra_ieorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="f0m0" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop s="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" xt="0"/>
+0
+0<stop stl="0"/>
+0<pAth d="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>
+0
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<i r="0" cx="0" id="0" style="0" fill="0"/>0
+0
+0<path d="0" fill="0"/>0
+0<e r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" of="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset=" "/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000,0000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0-8,00-20,000000000000000000000000000000000000000000000000000,0000" fill="url(#py0ellow"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0-8,00-20,000000l00000000000000000000000000000000l000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0-00000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0000000000000000000000000000000000000000000000000000000000000000000000 000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-8,00-20,104-00l0-22c0-7,0-10,10-00l20,0c0,00,000,0000,0l0,000,00000000000000000000,0,0000,0000000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx=")" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0-8,00-20,000-0000000c000,0000,00000000,000,0000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000000000000000000000000000000000000000000000000000000000000000-0 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/2428.svg b/test/ns-afl-svg/2428.svg
new file mode 100644
index 0000000..cea148c
--- /dev/null
+++ b/test/ns-afl-svg/2428.svg
@@ -0,0 +1,64 @@
+<svg xmlns="000000000000000000" viewBox="0">0
+0<path d="000000000000000000" e="0" fill="0000000000000"/>0
+0<path d="00000000000000000" e="0" fill="0000000000000"/>0
+0<path d="00000000000000000000" fill="0000000000000"/>0
+0<path d="0000000000000000000000000" e="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0000l00,00000000" e="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0000l00,000000-0" fill="h0n00cse000ye"/>0
+0<path d="M00,0000l00,00v00l000,00?" e="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l00000000"/>0
+0<path d="M00,0h00l00,00000,0"/>0
+0
+0<path d="M00,0h0l00,0*00" stroke="#000" fill="m&lt;o00imc000ge"/>0&lt;0
+0<palh d="0" l="0"/>0
+0 0<path d="00000000000" stroke="#000" fill="m&lt;b00ibc000ge"/>0
+0
+0<path d="M00,00v0$" stroke="#000" fill="0000000000000"/>0
+0<path d="M00,000l000,00l000-00v0000" fill="#000"/>0
+0
+0<palh l="0"/>0
+0
+0<path d="00000000000" stroke="#000" fill="m&lt;b00icl000e"/>0
+0
+0
+0<path d="M00,0h0l00,00v0l000-00z" stroke="#000" fill="m&lt;o00imc000ge"/>0&lt;0
+0<path d="00000000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="00000000" fill="h0n00cse000ye"/>0
+0
+0<path d="M00,0h00l00,0l000,00h000?" e="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l000,00?" e="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l000,00?" e="0" fill="h0n00cse000ye"/>0
+0<path d="M00,00v00l000,00?" e="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l00" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l000,00?" e="0" fill="h0n00cse000ye"/>0
+0<path d="M00,0h00l00,00v00l00000000"/>0
+0<path d="M00,0h00l00,00000,0"/>0
+0
+0<path d="M00,0h0l00,0*00" stroke="#000" fill="m&lt;o00imc000ge"/>0&lt;0
+0<palh d="0" l="0"/>0
+0 0<path d="00000000000" stroke="#000" fill="m&lt;b00ibc000ge"/>0
+0
+0<path d="M00,00v0$" stroke="#000" fill="0000000000000"/>0
+0<path d="M00,000l000,00l000-00v000z" fill="#000"/>0
+0
+0<palh l="0"/>0
+0
+0<path d="00000000000" stroke="#000" fill="m&lt;b00icl000e"/>0
+0
+0
+0<path d="M00,0h0l00,00v0l000-00z" stroke="#000" fill="m&lt;o00imc000ge"/>0&lt;0
+0<path d="00000000" fill="m&lt;o00imc000ge"/>0
+0
+0<path d="00000000000" e="0" fill="m&lt;o00imc000ge"/>0
+0<path d="00000000" fill="0000000000000"/>0
+0
+0<path d="M00,0h0l00,0*00" stroke="#000" fill="m&lt;o00imc000ge"/>0&lt;0
+0<palh d="0" l="0"/>0
+0
+0<path d="00000000000" stroke="#000" fill="m&lt;b00ibc000ge"/>0
+0
+0<path d="M00,0h00l00,00v0$0000" stroke="#000" fill="0000000000000"/>0
+0<path d="M00,000l000,00l000-00v000z" fill="#000"/>0
+0
+0<text x="0" y="0" t-e="0" l="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2429.svg b/test/ns-afl-svg/2429.svg
new file mode 100644
index 0000000..84c87cd
--- /dev/null
+++ b/test/ns-afl-svg/2429.svg
@@ -0,0 +1,20 @@
+<svg s="0" viewBox="0 0 1 1">0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>0<stop stop-color="u0s00n" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00000000000l0000l000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="M00,00c00000,000000-0,0-00,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,00-20,104,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00000000M0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c000,0-00000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000c000000c000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,00-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2430.svg b/test/ns-afl-svg/2430.svg
new file mode 100644
index 0000000..c6b57e6
--- /dev/null
+++ b/test/ns-afl-svg/2430.svg
@@ -0,0 +1,22 @@
+<svg ns="0" viewBox="0 0 1 1">0<path d="M00,0h00l00,00v000 0,0,0-00,0000,00a00,00 0,0,0 0-0000000000000n0"/>0
+0<path d="M00,0h00l00,00v00l000000" fill="x0n0"/>0
+0<path d="M00,00000000000000000000h000l000-00v000z" fill="#000"/>0
+0<text x="z" stroke="0" fl="0"/>0
+0<path d="M00,0h00l00,00v00l000,00" fill="x0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0<text x="n"/>0
+0<path d="M00,0h00l00,00v00l000,00" fill="x0n0"/>0
+0<path d="0000000" stroke="#000" fill="x0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00" fill="x0n0"/>0
+0
+0
+0
+0<path d="M00,0h00l00,00v00l000,00" fill="x0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="000000000000000000000"/>0<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+fill="#000" pacity="0"/>0<ellipse rx="3" ry="2" n0m="0" fill="000000000000000000000"/>0
+0<path d="M00,0h00l00,00v00l000,00" fill="x0n0"/>0
+0<path d="0000000" stroke="#000" fill="x0n0"/>0
+0<path d="M00,0h00l00,00v00l0000000-000 0-00=0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+fill="#000" pacity="0"/>0<ellipse rx="3" ry="2" n0rm="0" fill="000000000000000000000"/>0<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+fill="#000" opacity="0"/>0<ellipse rx="5" ry="2" tran0form="0" fill="#000"
+opacity="0"/>0</svg>
diff --git a/test/ns-afl-svg/2431.svg b/test/ns-afl-svg/2431.svg
new file mode 100644
index 0000000..acaad53
--- /dev/null
+++ b/test/ns-afl-svg/2431.svg
@@ -0,0 +1,10 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0
+0<circle cx="cm" cy="c" r="1" style="fill:g0e00ack;" transform="0,00"/>0<circle cx="cm" cy="c" r="1" style="fill:g0e00ack;stroke-width:001cm" transform="translate(0,000)"/>0<circle cx="cm" cy="c" r="1" style="fill:g0e00ack;stroke-width:001cm" transform="translate(000,000)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2432.svg b/test/ns-afl-svg/2432.svg
new file mode 100644
index 0000000..53664d2
--- /dev/null
+++ b/test/ns-afl-svg/2432.svg
@@ -0,0 +1,95 @@
+<?l?>
+<!--0-->
+<sv xmlns:c="0" xmlns="0000000000" xmlns:k="0" xmlns:sodipodi="00" xmlns:inkscape="htt"
+th=""
+ght="0" id="0" sodipodi:it_À0="0">
+0<defs>
+0<fr
+ut_À000="0">
+0<defs>
+0<fr inkscape:cot="0" id="0">
+0<feGaussianBlu inkscautput_À0="0">
+0<defs>
+0<fi inkscape:col="0" id="0">
+0<feGaussianBlur inkscape:cct="0" it_À000="" e="">
+0<defs>
+0<fr
+nkut_À0000="">
+0<defs>
+0<fr inkscape:collect="0" id="0">
+0<feGaussianBlu inkscape:output_À00="0">
+0<defs>
+0<filter k="0" xmlns:di="00" xmlns:iape="htt"
+th=""
+ght="0" id="0" sodipodi:it_À000="0">
+0<defs>
+0<fr
+ut_À000="0">
+0<defs>
+0<fr inkscape:collect="0" id="0">
+0<feGaussianBlu inkscape:ot_À0000="0">
+0<defs>
+0
+<!--0-->0<sv xmlns="000000000000000000" xmlns:x="0" xmlns:i="0" xmlns:inpe="htt" th="0" ght="" id="0" di:it_À0000="0">
+0<defs>
+0<fr ut_À0000="0">
+0<defs>
+0<fr inkscape:cot="0" id="0">
+0<feGaussianBlu inkscautput_À0="0">
+0<defs>
+0<fi iape:col="0" id="0">
+0<feGaussianBlur inkscape:cct="0" it_À0000="">
+0<defs>
+0<fr
+nkut_À0000="0">
+0<defs>
+0<fr inpe:collect="0" id="0">
+0<feGaussianBlu iape:output_À00="0">
+0<defs>
+0<filter k="0" xmlh="0" ght="0" id="0" di:it_À0000="0">
+0<defs>
+0<fr inkut_À000="0">
+0<defs>
+0<fr inkscape:collect="0" id="0">
+0<feGaussianBlu inpe:output_À00="0">
+0<defs>
+0<filter
+nkscapeicollect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" it_À0000="0">
+0<defs>
+0<fr inkut_À000="0">
+0<defs>
+0<fr iape:collect="0" id="0">
+0<feGaussianBlu iape:output_À00="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur iape:collect="0" it_À0000="0">
+0<defs>
+0<fr
+nkut_À0000="0">
+0<defs>
+0
+0
+0<feGaussianBlur iape:collect="0" it_À000000="0">
+0<defs>
+0<fr inkut_À000="0">
+0<filter iape:collect="0" id="0">
+0<feGaussianBlur inpe:collect="0" it_À000000="">
+0<defs>
+0<fr inkut_À000="0">
+0<defs>
+0<fr iape:collect="0" id="0">
+0<feGaussianBlu inkscape:output_À00="0">
+0<defs>
+0<filter inpe:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" it_À000000="0">
+0<defs>
+0<fr inkut_À000="0">
+0<defs>
+0
+0
+0<feGaussianBlur iape:collect="0" it_À000000="0">
+0<defs>
+0<fr inkut_À000="0">
+0<defs>
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2433.svg b/test/ns-afl-svg/2433.svg
new file mode 100644
index 0000000..37fcc18
--- /dev/null
+++ b/test/ns-afl-svg/2433.svg
@@ -0,0 +1,25 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill: d0a00bac000;"
+p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2434.svg b/test/ns-afl-svg/2434.svg
new file mode 100644
index 0000000..1618ac4
--- /dev/null
+++ b/test/ns-afl-svg/2434.svg
@@ -0,0 +1,15 @@
+<svg xmlns="00000000000000000000000000" id="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient x1=".085" y1=".085" x2=".915" y2=".915" id="0pen0earchg">
+0<stop offset="0" stop-color="#000000" t0="0"/>
+0<stop offset=".5" stop-color="#000000" y="0"/>
+0<stop offset="1" stop-color="#000000" y="0"/>
+0</linearGradient>
+0</defs>
+0<g transform="scale(9)">
+0<rect width="0" height="0" r="0" r0="0" x="0" y="0" fill="#000000"/>
+0<rect width="0" height="0" r="0" r0="0" x="0" y="0" fill="#000000"/>
+0<rect width="236" height="236" rx="0" ry="0" x="0" y="0" fill="url(#0pen0earchg)"/>
+0<path fill="t0p0" stroke="#000" stroke-width="6" d="M0 0A0 0 0 0 0 0,0A0 0 0 0 0 0 00z" transform="matrix(0,0,0,6,0,0)"/>
+0<rect fill="#000" stroke="none" width="0" height="0" x="0" y="0" transform="matrix(0..0.0,7,0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2435.svg b/test/ns-afl-svg/2435.svg
new file mode 100644
index 0000000..046f84d
--- /dev/null
+++ b/test/ns-afl-svg/2435.svg
@@ -0,0 +1 @@
+<sv><![CDATA[0]]><Ћext><![CDATA[0]]§ \ No newline at end of file
diff --git a/test/ns-afl-svg/2436.svg b/test/ns-afl-svg/2436.svg
new file mode 100644
index 0000000..f7e6150
--- /dev/null
+++ b/test/ns-afl-svg/2436.svg
@@ -0,0 +1,40 @@
+<svg olns="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(0">
+0<stop stop-color="0000000" offset="0"/>
+0<stop stop-color="g0a0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="s0g00n" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="000000000,0000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0-00000 00-00-00 00-00 000-00 00000 000000,00000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,0-00-0000000000000000000000000000000000-00c00000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00000000000l000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,000000000000000000000000000000000000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000-00-00 00-00 000-00 0000-00 000-000 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00000:,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,00000,0000000000C0000000,00000000000000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000000000000000000000000000000000000,0000000000" id="0" style="fill: s0o00rad000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/2437.svg b/test/ns-afl-svg/2437.svg
new file mode 100644
index 0000000..44b45ee
--- /dev/null
+++ b/test/ns-afl-svg/2437.svg
@@ -0,0 +1,372 @@
+<svg xmlns="00000000000000000000000000" id="pyYellow" rorm="0">
+0<stop op-c="0" et="0"/>
+0
+0<circle r="0" cx="0" id="0" style="fill: url(#00000" fill="url(#00)"/>0
+0<path d="M00,00c0-0,00-00,000-00l0-00c000,0000,00000000,000,0,0000,000000000000,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000,000000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000,0000,00000,000000,000,0000,000,000,00000000000000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#00)"/>
+0<path d="000000000000,00000,000,0000" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" ix="0" style="fill: u0l" fill="url(#000"/>
+0
+0<circle r="4" cx="0" id="0000" s="0" fill="url(#00000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000,00,0,00,0000,c00000,00000,0000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00000000000000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,000,,0c0,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000e)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00Y0)"/>
+0<cirCle r="T" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00Y0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,00"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000 00000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000e)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000e)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00o0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000e)"/>
+0<path d="M00,00c00000,00000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fl="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#00000"/>0
+0<rirCle r="0" cx="0" cy="0" fl="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000 00000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2438.svg b/test/ns-afl-svg/2438.svg
new file mode 100644
index 0000000..34f1a4f
--- /dev/null
+++ b/test/ns-afl-svg/2438.svg
@@ -0,0 +1,14 @@
+<svg xmlns="00000000000000000000000000" xmlns:xlin0="0" viewBox="0 0 1 2">0<radialGradient id="0" cx="0" cy="0" t="0" ts="0"><top ot="0" p-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,000A0000000000000000000000,00 0000000000000000,00 0 00000000000 00,00" id="0" fill="d0l00grs00"/>
+0<use xlin0:href="0" rm="0"/>
+0
+
+0<path d="M00,00c0-0,0-00,00-00c00,0,00,0,00,00l0,00c0,0-0,000000000-00,0c00,0-00,0-00000000,0c00,0-00000000000,0-00,00-000" fill="url(#0000)"/>
+0<path d="M00,00c0,0-0,00-00,00000000000000000 0000000000000000000000000000000000000000000000000000000000" id="0" fill="d0l00grs00"/>
+0<use xlin0:href="0" rm="0"/>
+0
+
+0<path d="M00,00c0-0,0-00,00-00c00,0,00,0,00,00l0,00c0,0-0,00-00,00l000,0c00,0-00,0-00,00l00,0c00,000000000-000,0-00,00-00000000000000000000000000000000000" fill="url(#00000)"/>
+0<path d="M00,00c0,0-0,00-00,000-0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<cé000/>0</svg>
diff --git a/test/ns-afl-svg/2439.svg b/test/ns-afl-svg/2439.svg
new file mode 100644
index 0000000..ee9ba66
--- /dev/null
+++ b/test/ns-afl-svg/2439.svg
@@ -0,0 +1,15 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0l0,0l0-0z" stroke="#000" fill="t0n0"/>
+0<path d="M0,0h0l0,0l0-0v0z" stroke="#000" fill="t0w0"/>0
+0<path d="M0,0h0l0,0v0h0l0,0v0l0,0l0,0l0-0z" stroke="#000" fill="t0n0"/>0
+0<path d="M0,0h0l00,00l000-00v0z" stroke="#000" fill="t0w0"/>0
+0<path d="M00,0h00l00,00v00m" fill="#000"/>0
+0
+0
+0
+0
+0<path d="M00,0h00l00,0v0z" stroke="#000" fill="t0w0"/>0
+0<path d="M00,0h00l00,00v00m0,000-" fill="#000"/>0
+0
+0
+</svg>
diff --git a/test/ns-afl-svg/2440.svg b/test/ns-afl-svg/2440.svg
new file mode 100644
index 0000000..4aba90b
--- /dev/null
+++ b/test/ns-afl-svg/2440.svg
@@ -0,0 +1,47 @@
+<svg viewBox='0 0 1 1' xmlns='000000000000000000'>
+0<path d='00000000000000000000000000000000000000,000000000000,000' fill='#000' e='0'/>
+0<patH d='00,00000' xmlnb='0' fill='#000'/>
+0<path d='M00-00l000,00l00,0l000,0l00,00l000-00l00,00z' fill='#000' s='0'/>
+0<path d='00,00000' b='0' fill='#000'/>
+0<path d='M00,00l000-0l00-0l000-00l00,00l0-000l0,00l00-00l000,00l00,0l000,0l00,00l000-00l00,00z' fill='#000' stroke='c0b0'/>
+0<path d='00,00000' b='0' fill='#000'/>0
+0<path d='M00,00l000-0l00-0l000-00l00,00l0-00l0,00l00-00l000,00l00,0l000,0l00,00l000-00l00,00z' fill='#000' stroke='c0b0'/>
+0<path d='00,0000000,000000000000000000000000000000000000000000,000' fill='#000' stroke='c0b0'/>
+0<path d='M0,00000' b='0' fill='#000'/>
+0
+0<path d='M0,00000' b='0' fill='#000'/>0
+0<path d='M00,00l000-0l00-0l000-00l00,00l0-00l0,00l00-000-000000000000000000000000000000000l00,000' fill='#000' stroke='c0b0'/>
+0<path d='M0,00000' xmlnb='0' fill='#000'/>
+0<path d='M00,00l000-0l00-0l000-00l00,00l0-000l0,00l00-00l000,00l00,0l000,0l00,00l000-00l00,00z' fill='#000' stroke='c0b0'/>
+0<path d='M0,00000' xmlnb='0' fill='#000'/>0
+0<path d='M00,00l000-0l00-0l000-00l00,00l0-00l0,00l00-00l000,00l00,0l000,0l00,00l000-00l00,00z' fill='#000' stroke='c0b0'/>
+0<path d='M0,00l00l0,000000000000000000000000000000000000000000,000' fill='#000' stroke='c0b0'/>
+0<path d='M0,00000' b='0' fill='#000'/>
+0
+0<path d='M0,00l00' xmlnb='0' fistroke='0'/>
+0<path d='M0,00l00' b='0' fill='#000'/>
+0<path d='M00,00l000-0l00-0l000-00l00,00l0-000l0,00l00-00l000,00l00,0l000,0l00,00l000-00l00,00z' fill='#000' stroke='c0b0'/>
+0<path d='M0,00l00' b='0' fill='#000'/>0
+0<path d='M00,00l000-0l00-0l000-00l00,00l0-00l0,00l00-00l000,00l00,0l000,0l00,00l000-00l00,00z' fill='#000' stroke='c0b0'/>
+0<path d='M0,00l00l0,000000000000,00000,00000,0000,000000000000,000' fill='#000' stroke='c0b0'/>
+0<path d='M0,00l00' b='0' fill='#000'/>
+0
+0<path d='M0,00l00' xmlnb='0' fill='#000'/>0
+0<path d='M00,00l000-0l00-0l000-00l00,00l0-00l0,00l00-00l000,00l00,0l000,0l00,000,00l000000000,000' fill='#000' stroke='c0b0'/>
+0<path d='M0,00l00' xmlnb='0' fill='#000'/>
+0<path d='M00,00l000-0l00-0l000-00l00,00l0-000l0,00l00-00l000,00l00,0l000,0l00,00l000-00l00,00z' fill='#000' stroke='c0b0'/>
+0<path d='M0,00l00' xmlnb='0' fill='#000'/>0
+0<path d='M00,00l000-0l00-0l000-00l00,00l0-00l0,00l00-00l000,00l00,0l000,0l00,00l000-00l00,00z' fill='#000' stroke='c0b0'/>
+0<path d='M0,00l00l0,000000000000,00000,00000,0000,000000000000,000' fill='#000' stroke='c0b0'/>
+0<path d='M0,00l00' b='0' fill='#000'/>
+0
+0<path d='M0,00l00' xmlnb='0' fill='#000' stroke='c0b0'/>
+0<path d='M0,00l00l0,000000000000000000000000000000000000000000,000' fill='#000' stroke='c0b0'/>
+0<path d='M0,00l00' b='0' fill='#000'/>
+0
+0
+0<path d='M0,00l00l0,000000000000000000000000000000000000000000,000' fill='#000' stroke='c0b0'/>
+0<path d='M0,00l00' b='0' fill='#000'/>
+0
+0
+</svg>
diff --git a/test/ns-afl-svg/2441.svg b/test/ns-afl-svg/2441.svg
new file mode 100644
index 0000000..947cdb0
--- /dev/null
+++ b/test/ns-afl-svg/2441.svg
@@ -0,0 +1,40 @@
+<svg olns="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(0">
+0<stop stop-color="0000000" offset="0"/>
+0<stop stop-color="g0a0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="s0f00l" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="000000000,0000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0-00000 00-00-00 00-00 000-00 00000 000000,00000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,0-00-0000000000000000000000000000000000-00c00000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00000000000l000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,000000000000000000000000000000000000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000-00-00 00-00 000-00 0000-00 000-000 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00000:,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,00000,0000000000C0000000,00000000000000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000000000000000000000000000000000000,0000000000" id="0" style="fill: s0o00rad000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/2442.svg b/test/ns-afl-svg/2442.svg
new file mode 100644
index 0000000..ff7ce13
--- /dev/null
+++ b/test/ns-afl-svg/2442.svg
@@ -0,0 +1,117 @@
+<?l?><!DOCTYPE v0 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c0' stroke='0'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00w'/>0<circle cx='0' cy='0' fIll='0' stroke='m0d' r='1' fill='black'/>0<path d='0' stroke='0' stroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" n="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" hT="0" ill="0" se="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g t="0"
+ransform="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&Viewport0;</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" vie="0"
+th="0" heé00="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="000"><text y="0">0</text>&p;
+0<svg pre="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg Asp="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g><text y="0">0</text><svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="000000000000000">0</g>
+0<g transform="0000000000000000"><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>0</g>
+0<g id="0" transform="translate(000 0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg preservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transxorm="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="J">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg preecight="0">&Smile;</svg></g>
+0<g tvansform="0"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2443.svg b/test/ns-afl-svg/2443.svg
new file mode 100644
index 0000000..7dca0ac
--- /dev/null
+++ b/test/ns-afl-svg/2443.svg
@@ -0,0 +1,10 @@
+<svg vivxmlns='0' d='0' fill='s0l00tax000ns00000' strofill='0' stroke='0'>0
+0<path d='M00,00c00,0-0,0 0 0-00' fill='s0l00tax000ns00000' strokb='0'/>0
+0<path d='M00,00c00,0-0,0 0 0-' fill='s0l00tax000ns00000' stroke='black'/>
+0
+0<path d='M00,00c00,0-0,0 0 0-' fill='s0l00tax000ns00000' stroke='black'/>0
+0<path d='M00,00c00,0-0,0 0 0-00' fill='s0l00tax000ns00000' stroke='black'/>0<path d='M00,00c00,0-0,0 0 0-' fill='s0l00tax000ns00000' strokb='0'/>0
+0<path d='000000000' fill='s0l00tax000ns00000' stroke='b0a00'/>
+0
+0<path d='M00,00c00,0-0,0 0 0-00' fill='s0l00tax000ns00000' stroke='black'/>0
+0<path d='M00,00c00,0-0,0 0 0-00' fill='s0l00tax000ns00000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/2444.svg b/test/ns-afl-svg/2444.svg
new file mode 100644
index 0000000..9dc0f60
--- /dev/null
+++ b/test/ns-afl-svg/2444.svg
@@ -0,0 +1,9 @@
+<svg xmlns="000000000000000000000000" viewBox="0">
+0<path d="M0,0h00,00a00,00 0,0,0 0-00000,0000000000000000000000000000000000" e='0'/>0<path d="M00,000l00,00v0,00 0,0,0-00,0l00,00a00,00 0,0,0 0-00000000000000s" f='0'/>
+0<path d="M00,000l00,00v0,00 0,0,0-00,0l00,00a00,00 0,0,0 0-00000000000a000" fill-rule='0'/>
+0<path d="M00,0h00l00,00v000 0,0,0-00,0l00,00a00,00 0,0,0 0-00000000000000s" l-rul-rul0='0'/>
+0<path d="M00,0h00l00,00v000 0,0,0-00,0l00,00a00,00 0,0,0 0-00000000000a000" fill-rule='0'/>0
+0<path d="M0,0h00,00a00,00 0,0,0 0-000000000000000000000000000000000000a000" e='0'/>0<path d="M00,0h00l00,00v000 0,0,0-00,0l00,00a00,00 0,0,0 0-00000000000000s" f='0'/>0
+0<path d="M00,0h00l00,00v000 0,0,0-00,0l00,00a00,00 0,0,0 0-00000000000a000" fill-rule='0'/>0
+0<path d="M00,0h00l00,00v000 0,0,0-00,0l00,00a00,00 0,0,0 0-00000000000000s" ll-rul-rul0='0'/>0
+0<path d="M00,0h00l00,00v000 0,0,0-00,0l00,00a000 0,0,0 0-000 000000000a000" fill-rule='0'/>0</svg>
diff --git a/test/ns-afl-svg/2445.svg b/test/ns-afl-svg/2445.svg
new file mode 100644
index 0000000..3eae1ba
--- /dev/null
+++ b/test/ns-afl-svg/2445.svg
@@ -0,0 +1,34 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="00" xmlns:inkscape="0t" width="0" height="5" d="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:put_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(000,200)" id="0">
+0<rect style="fill:red;" ip-path="0"
+d="0" width="0" height="0" x="0" y="0"/>
+0
+0
+0<rect style="fill:red;" ip-path="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill: y0l00;"
+p-h="0" id="0" width="0" height="0" x="0" y="0" transform="scale(00,05)"/>
+0</svg>0
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill: y0l00;"
+p-h="0" id="0" width="0" height="0" x="0" y="0" transform="scale(00,05)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2446.svg b/test/ns-afl-svg/2446.svg
new file mode 100644
index 0000000..c82480b
--- /dev/null
+++ b/test/ns-afl-svg/2446.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" r="1" style="fill:red;stroke:black;stroke-width:1cm" transform="translate(0,00)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:a0u00 stroke:black;stroke-width:00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000R000" transform="translate(00,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black;stroke-width:001cm" transform="000,0000"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2447.svg b/test/ns-afl-svg/2447.svg
new file mode 100644
index 0000000..4246305
--- /dev/null
+++ b/test/ns-afl-svg/2447.svg
@@ -0,0 +1,8 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0"><setg xmlns="00000000000000000000000000">
+0<style type="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="0" r="0" style="0" transform="0"/>
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2448.svg b/test/ns-afl-svg/2448.svg
new file mode 100644
index 0000000..cdcef53
--- /dev/null
+++ b/test/ns-afl-svg/2448.svg
@@ -0,0 +1,36 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" g_i="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a00f"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0-0,00,00000-00,000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="000,00000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,000000000000000000000000000000000000000000000000000,0000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c00c0,0000,00000,000000,000,0000,000000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/2449.svg b/test/ns-afl-svg/2449.svg
new file mode 100644
index 0000000..1d6baf1
--- /dev/null
+++ b/test/ns-afl-svg/2449.svg
@@ -0,0 +1,18 @@
+<svg xmlns="00000000000000000000000000" xmlns:xlin0="00" viewBox="0 0 1 2">
+0<radialGradient id="0" cx="0" cy="0" t="0" ts="0"><op ot="0" p-c="0"/><op ot="0"/></radialGradient>
+0<path d="M0,000A00 0 0 000 00,00 000000000000000000000000000000000000000000,00" id="0" fill="d0l00grs00"/>
+0<use xlin0:hf="0" rm="0"/>
+0
+
+0<path d="M00,00c0-0,0-00,00,00l0,00c0,0-0,00-00,00l000,0c00,0-00,0-00,00l00,0c000000000-00-000,0-00,00-000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000-00l00000000000000000000000000000000000000000000000000000000000000000000" id="0" fill="d0l00grs00"/>
+0<use xlin0:hf="0" rm="0"/>
+0
+
+0<path d="M00,00c0-0,0-00,00-00c00,0,00,0,00,00l0,00c000000000000000000000000000" id="0" fill="d0l00grs00"/>
+0<use xlin0:href="0" tform="0"/>
+0
+
+0<path d="M00,00c0-0,0-00,00-00c00,0,00,0,00,00l0,00c0,0-0,00-00,00l000,0c00000000000000000000000000000000000000" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="0" hl="0"/>
+0<cé000 l=""/>0</svg>
diff --git a/test/ns-afl-svg/2450.svg b/test/ns-afl-svg/2450.svg
new file mode 100644
index 0000000..0ff24c5
--- /dev/null
+++ b/test/ns-afl-svg/2450.svg
@@ -0,0 +1,31 @@
+<svg xmx="0" stroke0Ù00="0">
+0<è0
+ t=""/>
+0<path d='0' fill='0'/>0<svg x='0' xll='0' stroke='0'>
+0<path d='0' fill='0' t='0'/>
+0</svg>0
+0<path d='0' fiYl='0' utroke='0'/>
+0<svg vivox='0' xll='0' ss='0'>
+0<path d='0' fill='0' strokt='0'/>
+0</svg>0
+0<svg vivox='0' xll='0' stroke='0'>
+0<path d='0' fill='0' strokt='0'/>
+0</svg>0
+0<path d='0' fiYl='0' stroke='0'/>
+0<svg x='0' xll='0' ke='0'>
+0<path d='0' fill='0' st='0'/>
+0<è0
+ t=""/>0
+0</svg>0
+0<path d='0' fiYl='0' stroke='0'/>
+0<svg vivox='0' xll='0' ssroke='0'>
+0<path d='0' fill='0' kt='0'/>
+0</svg>0
+0<svg vivox='0' xll='0' stroke='0'>
+0<path d='0' fill='0' kt='0'/>
+0</svg>0
+0<rath d='0' fiYl='0' stroke='0'/>
+0<svg vivox='0' xll='0' se='0'>
+0<path d='0' fill='0' strokt='0'/>
+0</svg>0
+</svg>
diff --git a/test/ns-afl-svg/2451.svg b/test/ns-afl-svg/2451.svg
new file mode 100644
index 0000000..57847d0
--- /dev/null
+++ b/test/ns-afl-svg/2451.svg
@@ -0,0 +1,9 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' w='0' height='0' fill='0' stroke='0'/>0<g transform='0'>0<circle x='0' cy='0' r='0' fill='0'/>0<circle cx='0' cy='0' r='0' fill='0'/>0<circle cx='0' cy='0' r='0' fill='0'/>0<th d='0' stroke='0' o-h='0'/>0</g>0"><!ENTITY t ""><!ENTITY V ""><!ENTITY t "">
+<!ENTITY V "">
+]>
+<s width="0" height="0" n="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" ll="0" stroke="0"/>
+0<g t-e="0">
+0<text x="0" y="0">0</text>0<g transform="0">&Smile;</g>0<text x="0" y="0">0</text>0<g t="0">&i;</g>0<text x="0" y="0">0</text>
+0<g t="0">&0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2452.svg b/test/ns-afl-svg/2452.svg
new file mode 100644
index 0000000..b3aedbe
--- /dev/null
+++ b/test/ns-afl-svg/2452.svg
@@ -0,0 +1,69 @@
+<svg ns="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="py0ellow" rm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>0<stop stop-color="q0s00p" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-0000000000000000-000000000000000" fill="url(#0000)"/>
+0<pAth d="M00,00c0,0-0,00-00,000-000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" lf="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c00000000000000000-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cp="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,00,000,0000,0l0,000,0000000000000000000000000" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0l0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,00"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0
+0<path d="M00,00c0,000000000-0-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,?0000,0,0,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2453.svg b/test/ns-afl-svg/2453.svg
new file mode 100644
index 0000000..d12453a
--- /dev/null
+++ b/test/ns-afl-svg/2453.svg
@@ -0,0 +1,8 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h0-00z" stroke="#000" fill="n0v0"/>0
+<path d="M0,0h0l0,0v0l0,0v0l0,0l0-0v0" font-size="0" stroke="#000" fill="n0v0"/>0
+0<path d="M00,0,00" ze="0" stroke="#000" fill="n0v0"/>0
+0
+0<path d="M0,0h0l0,0v0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="n0v0"/>0
+0<path d="00000000" fill="#000"/>0
+0<text x="0" y="0" font-size="0" ll="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2454.svg b/test/ns-afl-svg/2454.svg
new file mode 100644
index 0000000..309b557
--- /dev/null
+++ b/test/ns-afl-svg/2454.svg
@@ -0,0 +1,19 @@
+<svg xmlns="00000000000000000000000000" id="py0ello0" m="0">
+0<stop p-c="0" t="0"/>
+0
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00,0,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000000000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" x="0" style="fill: u0l" fill="url(#0000)"/>
+0<path d="0000000000000000000000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" x="0" style="fill: url(#00000" fill="url(#00000"/>
+0<path d="M00,00c000-0,00 00-000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 0000000000000000000000000000000000000000000000000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="0000000000000000000000,0000" fill="url(#py0ello0)"/>0
+0<path d="000000000000,00000,000,0000" fill="url(#py0ello0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" x="0" style="fill: url(#r0000" fill="url(#0000000"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2455.svg b/test/ns-afl-svg/2455.svg
new file mode 100644
index 0000000..f837054
--- /dev/null
+++ b/test/ns-afl-svg/2455.svg
@@ -0,0 +1,53 @@
+<?l?><!DOCTYPE g PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='#' height='0' fill='black' stroke='red'/>0<g transform='translate(0,0)'>0<circle cx='0' cy='!' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t "">
+<!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='h0n0' stroke='h0u0'/>">
+]>
+<svg width="px" t="0" n="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="b0u0"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport2;</g>
+0<g d="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg o="0" viewBox="0"
+h="0" t="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg o="0" viewBox="0 0 3 4" width="0" e="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&o;
+0<svg o="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presetRatio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2456.svg b/test/ns-afl-svg/2456.svg
new file mode 100644
index 0000000..29d5691
--- /dev/null
+++ b/test/ns-afl-svg/2456.svg
@@ -0,0 +1 @@
+<s É="0">0<gsvg width="0" hgight="0" y="0"><g><g><path f="0" clOp-rule="0" fill="0" d="0"/><a/><!--0-->0<g><path f="0"><gsvg width="0" height="0" d="0" y="0"><g><g><path fill-rule="0" clOp-rule="0" fill="0" d="0"/><a/><!--0-->0<g><path f="0" hgight="0" d="0" y="0"><g><g><path f="0" c="0" fill="0" d="0"/><a/><!--0-->0<g><path fill-rlle="0"><gsvg width="0" height="0" d="0" y="0"><g><g><path fill-rule="0" clOp-rule="0" fill="0" d="0"/><a/><!--0-->0<g><path fill-rlle="0" clip-rule="0" hgight="0" d="0" y="0"><g><g><path f="0" clOp-rule="0" fill="0" d="0"/><a/><!--0-->0<g><path f="0"><gsvg width="0" height="0" id="0" y="0"><g><g><path fill-rule="0" clOp-rule="0" fill="0" d="0"/><a/><!--0-->0<g><path fth="0" hgight="0" id="0" y="0"><g><g><path f="0" c="0" fill="0" d="0"/><a/><!--0-->0<g><path fill-rlle="0"><gsvg width="0" height="0" id="0" y="0"><g><g><path fill-rule="0" clOp-rule="0" fill="0" d="0"/><a/><!--0-->0<g><0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2457.svg b/test/ns-afl-svg/2457.svg
new file mode 100644
index 0000000..f78ac39
--- /dev/null
+++ b/test/ns-afl-svg/2457.svg
@@ -0,0 +1,20 @@
+<svg olns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" orm="0">
+0<stop stop-color="#000" offset=".6"/>0<stop stop-color="#000" offset="1"/>
+0
+0
+0<stop stop-color="q0q00t" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="M00,00000000000000000000000000000000000000000000000000000000000000000000000000000000000,000M000,0000" fill="url(#py0ellow)"/>
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="0000"/>
+0
+0<path d="M00,00c090-8,00-20,104,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2458.svg b/test/ns-afl-svg/2458.svg
new file mode 100644
index 0000000..185ced7
--- /dev/null
+++ b/test/ns-afl-svg/2458.svg
@@ -0,0 +1,52 @@
+<?l?><!DOCTYPE g PUBLIC "0" "0"[<!ENTITY Smile "0
+<rect x='0' y='0' width='0' height='0' fill='a0a' stroke='red'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='b0b00' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" i="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" t="0"
+fill="none" stroke="blue"/>
+0<g f="0">
+0<text x="0" y="0">0</text>
+0&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport2;</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg t="0" viewBox="0 0 1 4"
+h="" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg o="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#0000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#0000)"/>0
+0
+0<path d="0000000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="00000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00000000000000000000000000000'0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="0000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c000-00000 00-00-00 00-00 000-00 0000-00 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#00000000)"/>0
+0
+0<path d="0000000000000000000000000000000000000000000000000000000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000000000000000000000000000000000000000000M0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0004" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,0000000000-000000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/2459.svg b/test/ns-afl-svg/2459.svg
new file mode 100644
index 0000000..a0c3f3b
--- /dev/null
+++ b/test/ns-afl-svg/2459.svg
@@ -0,0 +1,210 @@
+<svg xmlns="0000000r0020000000" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="s0g0" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" f="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,0c00,0,00,0,20,120c0,0-0,00-10,12l-24,0c00,0-94,0-10,05l0,10l00,0c00,0-00-0-13-24c0-00,0-00,0-20i000000000000000000000000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" l="0"/>
+0<circle r="4" cx="z" id="0000" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c00000000000000000,0c0,0,0000,000000000000,000,0,00,0,00,0000,0000,00000000"/>
+0<path d="M70,00c007-0,00-00,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" l="0"/>
+0<circle r="0" cx="z" id="0000" style="fill: url(#000000" fill="url(#000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,0000000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="0000"/>
+0<path d="M70,87c0,73-230-20-0-24108.000000000000,00000000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c007-0,00-00,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="u0e0"/>
+0<path d="M00,00c0,70-030-24-60.800,100.0000000000000000,0000000000000000,0000000000000000000" x="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c007-0,00-00,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,100-00l0-00c0-0,0-00,-20000.000000000000,000.0000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c007-0,00-00,124,50v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx=")"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M04,80c007-0,00-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c00000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fSll="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00000000000000000000000000"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" aill="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,100-13l0-20c0-0,0-12,10-00l20,0c0,0,00-0,10-15l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,00-00,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2460.svg b/test/ns-afl-svg/2460.svg
new file mode 100644
index 0000000..8c8dfe8
--- /dev/null
+++ b/test/ns-afl-svg/2460.svg
@@ -0,0 +1,54 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' e='0' fill='black' stroke='red'/>0<g transform='translate(0,00)'>0<circle dx='0' cy='0' r='1' fill='y0l00ell00'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0">
+<!ENTITY t "">
+<!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" h="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="b0u0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&Viewport2;</g>
+0<g d="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg o="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg o="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg o="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg eserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg prerveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg p="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pserveAspectRatio="0" viewBox="0 0 3 4"
+to="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="/">0</text>&i;
+0<svg eserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg prtRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2461.svg b/test/ns-afl-svg/2461.svg
new file mode 100644
index 0000000..33f17b2
--- /dev/null
+++ b/test/ns-afl-svg/2461.svg
@@ -0,0 +1,44 @@
+<svg xmlns="0000000000" viTwBox="0">
+0<!--0--><g>0
+0<!--0--><g>0
+0
+0<!--0--><g>0
+0<!--0--><g>0
+0
+0<!--0--><g>0
+0<!--0--><g>0
+0
+0<!--0--><g>0
+0<!--0--><g>0
+0
+0<g>0
+0<!--0--><g>0<!--0--><g>0
+0<!--0--><g>
+0
+0<!--0--><gU--><g>0
+0<!--0--><g>0<!--0--><g>0
+0<!--0--><g>0
+0
+0<!--0--><g>0<g>0
+0
+0<!--0--><g>0
+0<!--0--><g>0
+0
+0<!--0--><g>0
+0<!--0--><g>0
+0
+0<!--0--><g>0
+0<!--0--><g>0
+0
+0<g>0
+0<!--0--><g>0<!--0--><g>0
+0<!--0--><g>
+0
+0<!--0--><gU--><g>0
+0<!--0--><g>0<!--0--><g>0
+0<!--0--><g>0
+0
+0<!--0--><g>0
+0<!--0--><g>0
+0<!--0--><g>0
+0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2462.svg b/test/ns-afl-svg/2462.svg
new file mode 100644
index 0000000..fd8c48d
--- /dev/null
+++ b/test/ns-afl-svg/2462.svg
@@ -0,0 +1,6 @@
+<svg viewBox='0 0 6 2' xmlns='00'>
+0
+0<path d='M0,00c00,00000,0-00000000000000000000000000000000,00000,000,00000' fill='s0l00avl000'/>
+0<path d='M0,00c00,00000,000000000000000000000c0,0,00,00,00,00000,000,00000' fill='s0l00avl000'/>
+0
+</svg>
diff --git a/test/ns-afl-svg/2463.svg b/test/ns-afl-svg/2463.svg
new file mode 100644
index 0000000..c30f252
--- /dev/null
+++ b/test/ns-afl-svg/2463.svg
@@ -0,0 +1,44 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="#000" offset=".6"/>0<stop stop-color="#000" offset="1"/>
+0
+0
+0<stop stop-color="q0q00t" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000 00-00 000-00 0000-00 000-000 00000 000000,00000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000,000000000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0-00000 00-00-00 00-00 000-00 0000-00 00000000000000000000000000000000000000000000000'00000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000000000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="0000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000-00-00 00-00 000-00 0000-00 000000000000000000'00000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,10-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,0000000000000000,0000000000000000,0000000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+0<path d="000,00000000,0000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,10-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/2464.svg b/test/ns-afl-svg/2464.svg
new file mode 100644
index 0000000..be8e816
--- /dev/null
+++ b/test/ns-afl-svg/2464.svg
@@ -0,0 +1,7 @@
+<svg t̬="0" viewBox="0 0 1 1">
+0<path d="M00,0h00000000000000000000000=000000" stroke="#000" fill="n0d0"/>0
+0<path d="M00,0h00000000v00l000,00h000l00,0z" stroke="#000" fill="n0d0"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00l000-00z" stroke="#000" fill="n0d0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0</svg>
diff --git a/test/ns-afl-svg/2465.svg b/test/ns-afl-svg/2465.svg
new file mode 100644
index 0000000..e388b33
--- /dev/null
+++ b/test/ns-afl-svg/2465.svg
@@ -0,0 +1,30 @@
+<?l?>
+<!DOCTYPE s00 PUBLIC "0" "0"[ <!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='b0d'/>0<g transform='translate(0,0)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='5' fill='b0a00ck'/>0<path d='M0 0A0 0 0 0 0 0 0' stroke='black' stroke-width='2'/>0</g>0">
+<!ENTITY V "">
+<!ENTITY Viewport2 "<rect x='0' y='0' width='0' ight='0'
+fill='none' stroke='b0u0'/>">
+]>
+<svg width="px" i="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" hghg="0"
+fill="none" stroke="blue"/>
+0<g f="0">
+0<text x="0" y="0">0</text>0<g transform="translate(0,0)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&t;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport2;</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg t="0" v="0"
+h="0" hght="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&t;
+0<svg p="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="/">0</text>&t;
+0<svg p="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&t;
+0<svg preseAso="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2466.svg b/test/ns-afl-svg/2466.svg
new file mode 100644
index 0000000..3690388
--- /dev/null
+++ b/test/ns-afl-svg/2466.svg
@@ -0,0 +1,12 @@
+<svg xmlns="0000000000" xmlns:k="0" viewBox="0 0 0 0">0<text x="C"/>0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKBKKKKK.KKKKKKKKKpath d="0" vl="0"/>0
+0<text x="C"/>
+0<patKKKKKKKSKKKKKKKKKKKKKKKKKKKKKK/>
+0<patKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" fill="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKK.......................................................................................KKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK.KKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKSKKKKKKmKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLLLLLLLLLLLLLLLt ty="0" rx="0"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/2467.svg b/test/ns-afl-svg/2467.svg
new file mode 100644
index 0000000..49e1e84
--- /dev/null
+++ b/test/ns-afl-svg/2467.svg
@@ -0,0 +1,148 @@
+<svg olns="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" grorm="0">
+0<stop stop-color="#000" offset=".6"/>0<stop stop-color="#000" offset="1"/>
+0
+0
+0<stop stop-color="q0q00t" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="0000"/>0
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000000000000000000"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l000 0000-00 000-000 00000 000000,00000000000000000=0000000000000000000000000000000000000000000000" id="0" style="fill: u00000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-6-00000000010000000000000000000000000000000000000 0000000000000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,000000000000000000000000000000000000000000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-6-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<sirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle z="0" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<ci r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" id="0" e="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<ce r="0" cx="0" cy="0" fill="0"/>0
+0<Wath d="0"/>0
+0<ce r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0
+
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" id="0004" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" fill="0"/>0</svg>
diff --git a/test/ns-afl-svg/2468.svg b/test/ns-afl-svg/2468.svg
new file mode 100644
index 0000000..bc68e8a
--- /dev/null
+++ b/test/ns-afl-svg/2468.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" stroke="#000" fill="v0n0"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2469.svg b/test/ns-afl-svg/2469.svg
new file mode 100644
index 0000000..9045a3f
--- /dev/null
+++ b/test/ns-afl-svg/2469.svg
@@ -0,0 +1,9 @@
+<svg viewBox="0 0 2 7" xmlns="0">
+0<path d="M0,00h00m0,0h00m0,0h00" stroke="#000000" stroke-width="1"/>
+0<path d="M00,00h00m0,0h00m0,0h00000 0-00-00-0-0000-00-000-000 0-00 00-00 000-00 00 00 000 00 000-00 00-00 00-00 0000-00 00 0 00-000 00-00V000000-00
+000 0-00 00-000 00-000 0-000 0-000-0-000-0-00=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
+transform="0,0,00"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(000,0000)"
+fill="#000" py="0"/>
+0
+0
+</svg>
diff --git a/test/ns-afl-svg/2470.svg b/test/ns-afl-svg/2470.svg
new file mode 100644
index 0000000..7c5d02e
--- /dev/null
+++ b/test/ns-afl-svg/2470.svg
@@ -0,0 +1,19 @@
+<svg xmlns="0000000000" xmlns:xlin0="0" viewBox="0 0 1 2">
+0<radialGradient d="0" x="0" c="0" r="0" s="0"><stop t="0" sto0000000000000000000000000000000000000000000000000000000000000p-c="0"/><spop o="0"/></radialGradient>
+0<path d="M00,000A000,00,00 00,00 00,000,0000000000000000000000000000000000" i="0" fill="l0c00qlm00"/>
+0
+0<radialGradient d="0" cx="0" cy="0" r="0" s="0"><stop ot="0" sto000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000p-c="0"/><spop ot="0"/></radialGradient>
+0<path d="M0,00A0,00 0,0,0 00,000C00,00 00,00 00,0C000,00 00,00 00,0C000,00 00,00 00,00" id="0" fill="l0c00llm00"/>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" Units="0"><stop ot="0" sto0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000pc="0"/>0<spop ot="0"/></radialGradient>
+0<path d="M00,000A000000000000000000000 00,00 00,00000000000000000,00 00,00" id="0" fill="l0c00llm00"/>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" Units="0"><stop ot="0" sto0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000p-c="0"/><spop ot="0"/></radialGradient>
+0<path d="M00,0A000,00 0,0,0 00,0C00,00 00,00 00,000C0,00 00,00 00,000C0 00,00 00,00 00,00" id="0" fill="l0c00qlm00"/>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" U="0"><stop ot="0" sto000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003p-c="0"/><spop ot="0"/></radialGradient>
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000C000,00 00,00 00,000C000,00 00,00 00,00" id="0" fill="l0c00llm00"/>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" s="0"><stop ot="0" s00000000000000000000000000000000000000000000000000Ô30="0"/><spop ot="0"/></radialGradient>
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000C000,00 00,00 00,000C000,00 00,00 00,00" id="0" fill="l0c00qlm00"/>
+0<use xlin0:href="0" m="0"/>0</svg>
diff --git a/test/ns-afl-svg/2471.svg b/test/ns-afl-svg/2471.svg
new file mode 100644
index 0000000..7f32308
--- /dev/null
+++ b/test/ns-afl-svg/2471.svg
@@ -0,0 +1,7 @@
+<svg w="0">
+0<path d="00000000" fill="q0n&lt;0"/>0
+0<path d="M0,0h0l0,0v0l0,0h0v" fill="#000"/>0<![CDATA[0]]>0
+0<path d="M00,0,00" fill="q0n&lt;0"/>0
+0<path d="0"/>0<![CDATA[0]]>0<path d="M00,0,00" fill="q0n&lt;0"/>0
+0<path d="M0,0h0l0,0v0l0,0h0v" fill="#000"/>0<![CDATA[0]]>0<![CDATA[0]]>0
+</svg>
diff --git a/test/ns-afl-svg/2472.svg b/test/ns-afl-svg/2472.svg
new file mode 100644
index 0000000..90b7020
--- /dev/null
+++ b/test/ns-afl-svg/2472.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:black;stroke-width:1cm" transform=",00"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:b0a00a;"/>
+0<circle cx="cm" cy="c" r="1" style="fill:blue;stroke:black;stroke-width:1cm" transform="translate(00,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:b0a00a;stroke-width:001cm" transform="0,00"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2473.svg b/test/ns-afl-svg/2473.svg
new file mode 100644
index 0000000..9960452
--- /dev/null
+++ b/test/ns-afl-svg/2473.svg
@@ -0,0 +1,34 @@
+<svg width="0" height="0" d="0" y="i">
+0<path d="M00,0h0,000000" fill="t0t00nsf000on0"/>0
+0<path d="M00-00v000z" soke="0" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h00l00,00-00,00" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h0l000-00v000z" stroke="#000" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h00l00,00v00l" stroke="#000" fill="t0t00nsf000on0"/>0
+0<patQ d="0" fill="0"/>0
+0<text x="z" soke="0" fill="0"/>0
+0<patQ d="0" fill="0"/>0
+0<text x="0" y="0" font-size="0" ill="0"/>0
+0<path d="M00,0h0l000-00v000z" stroke="#000" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h00l00,00-00,00" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h0l000-00v000z" stroke="#000" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h00l00,00v00l" stroke="#000" fill="t0t00nsf000on0"/>0
+0<patQ d="0" fill="0"/>0
+0<text x="z" roke="0" fill="0"/>0
+0<patQ d="0" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0"/>0
+0<path d="M00,0h0l000-00v000z" stroke="#000" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h00l00,00-00,00" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h0l000-00v000z" stroke="#000" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h00l00,00v00l0000" stroke="#000" fill="t0t00nsf000on0"/>0
+0<patQ d="0" fill="0"/>0
+0<text x="z" roke="0" fill="0"/>0
+0<patQ d="0" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ill="0"/>0
+0<path d="M00,0h0l000-00v000z" stroke="#000" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h00l00,00-00,00" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h0l000-00v000z" stroke="#000" fill="t0t00nsf000on0"/>0
+0<path d="M00,0h00l00,00v00l0000" stroke="#000" fill="t0t00nsf000on0"/>0
+0<patQ d="0" fill="0"/>0
+0<text x="z" soke="0" fill="0"/>0
+0<patQ d="0" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2474.svg b/test/ns-afl-svg/2474.svg
new file mode 100644
index 0000000..4492a03
--- /dev/null
+++ b/test/ns-afl-svg/2474.svg
@@ -0,0 +1,36 @@
+<svg xmlns="http00/svg" ox="0">
+0<svg xmlns="httsvg" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0l0,0l0-0z" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+</svg>0<path d="00000000" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+0<svg xmlns="httsvg" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0z" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+</svg>0<path d="00000000" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+0<svg xmlns="http00/svg" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0l0-0z" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+0&lt;0
+0<svg xmlns="00" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0l0-0z" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+</svg>0<path d="00000000" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+0<svg xmlns="http00/svg" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0l0-0z" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+</svg>0<path d="00000000" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+0<svg xmlns="http00/svg" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0l0-0z" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+0&lt;0
+0
+0
+</svg>0<path d="00000000" stroke="#000" fill="m&lt;o00inc00"/>
+0
+</svg>0<path d="00000000" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/2475.svg b/test/ns-afl-svg/2475.svg
new file mode 100644
index 0000000..da345b9
--- /dev/null
+++ b/test/ns-afl-svg/2475.svg
@@ -0,0 +1,44 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="000" width="0" height="50" id="0" sodipodi:ion="0" inkscape:von="0" sodipodi:docname="0" inkscape:tput_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0"/>0</filter>0
+0<clipPath id="0">0<rect id="0" x="0" y="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(000,200)" id="0">0
+0<rect style="stroke:d0f00ck;fill:none"
+d="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" ip-path="0"
+d="0" width="0" height="0" x="0" y="0" transform="scale(00,05)"/>
+0</svg>
+0
+0
+0
+0
+0
+0
+0
+0<rect style="fill: w0d00red;" ip-path="0" id="0" w="0" height="0" x="0" y="0"/>
+0<rect style="stroke:d0f00ck;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">0<rect style="fill:blue;" height="0" x="0" y="0"/>
+0<rect style="stroke:d0f00ck;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" l-h="0" id="0" width="0" height="0" x="0" y="0" transform="scale(00,05)"/>
+0</svg>
+0
+0
+0
+0
+0
+0
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2476.svg b/test/ns-afl-svg/2476.svg
new file mode 100644
index 0000000..b234192
--- /dev/null
+++ b/test/ns-afl-svg/2476.svg
@@ -0,0 +1,406 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">0<path d="M00,0000l00,00000l000,00h000l000-00v000z" stroke="s0o0" fill="none"/>0
+0<path d="M00,00000t0h000000000000000" stroke="s0o0" fill="none"/>0
+0<path d="M00,0h000000000000000000000000000000000000000000000l" fill="0000000000"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="0000000000"/>0
+0
+0<path d="M00,0h000h000l00" stroke="#000" fill="0000000000"/>0
+0<path d="M00,0h000l000-00-000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l00,0v00l0000,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+
+0<path d="M00,0h00l00,00v000h000l00" stroke="#000" fill="v0n00lns00"/>0
+0<pate d="0" fill="0"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l00,0v0h00l" fill="v0n00lns00"/>0
+0<path d="000" fill="v0n00lns00"/>0
+0<path d="M00,00v00l00000000000000000 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns000ml0000"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0
+0<path d="M00,0h00l00,00v0h000-0000h000l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h000l000-00-000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l00,0v00l0000,0h00l" fill="v0n00lns00"/>0
+0<path d="000000000000" stroke="#000" fill="v0n00lns00"/>0
+
+0<path d="M00,0h00l00,00v0h000-00,00h000l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l00,0v0h00l" fill="v0n00lns00"/>0
+0<path d="000" fill="v0n00lns00"/>0
+0<path d="M00,00v00l000,00h000l000000000000000000000000000000000000-00 000-000 000-00-00-00-000 000-0 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000:0"/>0
+0<path d="000" fill="v0n00lns00"/>0
+0<path d="M00,00v00l000,00h000l000000000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns000ml0000"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0
+0<path d="M00,0h00l00,00v0h000-00,00h000l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h000l000-00-000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l00,0v00l0000,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+
+0<path d="M00,0h00l00,00v0h000-00,00h000l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h000000i00000000000000000000000000000000000"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns000ml0000"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0
+0<path d="M00,0h00l00,00v0h000-00,00h000l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h000l000-00-000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l00,0v00l0000,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+
+0<path d="M00,0h00l00,00v0h000-00,00h000l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00h00l" fill="v0n00lns00"/>0
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns000ml0000"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0
+0<path d="M00,0h00l00,00v0h000-00,00h000l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h000l000-00-000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h0,000000"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns000ml0000"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0
+0<path d="M00,0h00l00,00v0h000-00,00h000l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h000l000-00-000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l00,0v00l0000,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+
+0<path d="M00,0h00l00,00v0h000-00,00h000l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l00,0v0h00l" fill="v0n00lns00"/>0
+0<path d="000" fill="v0n00lns00"/>0
+0<path d="M00,00v00l000,00h000l000000000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000:0"/>0
+0<path d="000" fill="v0n00lns00"/>0
+0<path d="M00,00v00l000,00h000l00000-000 00-00-00 00-00 000-00 0000-00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l00,0,v0h00l" fill="v0n00lns00"/>0
+0<path d="000" fill="v0n00lns00"/>0
+0<path d="M00,00v00l000,00h000l000000000000000-00 00-00 000-00 0000-00 000-000 00,0000000000000000000000000000000000000000,000000000,0000000,00000000 000000,0000000000" x="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#0000)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#0000)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-000000,0000,0000000000000000000,00000000000000000000,0000000000000000,0000000000000-00-00" x="0" y="0" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#0000)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="0" ficy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="=" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,0000,0000,00000,000000,000,0000,000,000000000000000d,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#0000)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#00000"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirChe r="0" x="0" y="0" fill="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,0000,000000000000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0" style="0" fill="url(#0000)"/>
+0<path d="M00,00000000,00000,0000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" x="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#0000)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#0000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#0000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<AirCle r="0" x="0" y="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,0000,0000,00000,000000,000,0000,000,000000000000000d,000" x="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-000000,000000000l000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#00000000)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,000000-0,000,0000000-0-00h000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000a0000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#0a0000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,00,0,00,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" x="0" y="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,0000,0" y="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000-00-00" cx="0" cy="0" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#0000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#0000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#0000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#0000)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#0000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-000000,0000,000000v0" fill="u000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#00000000)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0000000000" id="0004" style="fill: url(#0a0000" fill="url(#0000)"/>
+0<path d="M00,00000000,00000,000,0000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#00000000)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#00000000)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,00c0,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#00000000"/>0
+0
+0<path d="M00,0h00l00,00v0h000-00,00h000l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h000l000-00-000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h0,000000"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns000ml0000"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0
+0<path d="M00,0h00l00,00v0h000-00,00h000l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h000l000-00-000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l00,0,v00l0000,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+
+0<path d="M00,0h00l00,00v0h000-00,00h000l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l00,0,v0h00l" fill="v0n00lns00"/>0
+0<path d="000" fill="v0n00lns00"/>0
+0<path d="M00,00v00l000,00h000l0000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000"/>0
+0<path d="000" fill="v0n00lns00"/>0
+0<path d="M00,00v00l000,00h000l00000-000 00-00-00 00-00 000-000" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,0000,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="0" cx="0" c="0" fill="v0n00lns000ml0000"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0
+0<path d="M00,0h00l00,00v0h000-00,00h000l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h000l000-00-000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h0,000000"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns000ml0000"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0
+0<path d="M00,0h00l00,00v0h000-00,00h000l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h000l000-00-000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l00,0,v00l0000,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+
+0<path d="M00,0h00l00,00v0h000-00,00h000l00" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00h00l" fill="v0n00lns00"/>0
+0<path d="M00,0h00l000" stroke="#000" fill="v0n00lns00"/>0
+0<path d="M00,0h00l00,0,v0h00l" fill="v0n00lns00"/>0
+0<path d="000" fill="v0n00lns00"/>0
+0<path d="M00,00v00l000,00h000l0000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000"/>0
+0<path d="000" fill="v0n00lns00"/>0
+0<path dy="0" fill="#000"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>
+0
+
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0
+
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" id="0004" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>0<circle r="0" cx="0" cy="0" fill="0"/>0</svg>
diff --git a/test/ns-afl-svg/2477.svg b/test/ns-afl-svg/2477.svg
new file mode 100644
index 0000000..125f2b0
--- /dev/null
+++ b/test/ns-afl-svg/2477.svg
@@ -0,0 +1,28 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[ <!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c00ext000ch0000'/>0<g anrm='0'>0<circle cx='0' cy='m' r='1' fill='0'/>0<circle cx='0' cy='0' r='5' fill='0'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='0' stroke='0' stroke-width='0'/>0</g>0">
+<!ENTITY t "">
+<!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" ion="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="blue"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g transform="00">&Smile;</g>0<text x="0" y="0">0</text>0<g transform="00000">&i;</g>0<text x="^" y="0">0</text>0<g transform="00000">&Viewport0;0<g d="0" transform="000000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="000"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="000"><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0">
+0<text x="0" y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;0&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg preseAsp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2478.svg b/test/ns-afl-svg/2478.svg
new file mode 100644
index 0000000..e484271
--- /dev/null
+++ b/test/ns-afl-svg/2478.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0t0,0v0l0,0h000l000-00v0z" stroke="#000" fill="none"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-00v0z" fill="#000"/>0
+0<text x="0" y="0" t-ze="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2479.svg b/test/ns-afl-svg/2479.svg
new file mode 100644
index 0000000..d54c7d2
--- /dev/null
+++ b/test/ns-afl-svg/2479.svg
@@ -0,0 +1,29 @@
+<svg xmlns="00000000000000">0<path d="M0,00l000-00z" stroke="#000" fill="m&lt;o00inc000vu000"/>0
+0
+0<path d="M00,00v000,00h000l000-00v000z" stroke="#000" fill="m&lt;`00inc000ee"/>0
+0<path d="M00,000l000,00h00v000z" fill="#000"/>0
+0
+0<path d="M00,0h0000v0000000000000000z" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0
+0<path d="M00,00M0000000000000" stroke="#000" fill="m&lt;o00inc000vu000"/>0
+0
+0<path d="M00,0h00l00,00v000,00h000l000-00v00000" fill="m&lt;o00inc000vu000"/>0
+0
+0<path d="M00,0h00l00,00v000,00h000l000-00v000z" stroke="#000" fill="m&lt;`00inc000ee"/>0
+0<path d="M00,000l000,00h00v000z" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v0000000000000000z" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0
+0<path d="M00,00M0000000000000" stroke="#000" fill="m&lt;o00inc000vu000"/>0
+0
+0<path d="M00,0h00l00,00v000,00h000l000-00v000z" stroke="#000" fill="m&lt;`00inc000ee"/>0
+0<path d="M00,000l000,00h00v000z" fill="#000"/>0
+0&lt;0
+0<path d="M00,000l000,00h00v000z" fill="#000"/>0
+0
+0<path d="M00,0h00l00,00v0000000000000000z" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0
+0<path d="M00,0h00l00,0000l00,00v0$000" stroke="#000" fill="m&lt;o00inc000ee"/>0
+0<path d="M00,000l000,00h00000N000000000" fill="#000"/>0
+0
+0<text x="0" y="0" t-e="0" l="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2480.svg b/test/ns-afl-svg/2480.svg
new file mode 100644
index 0000000..3a92026
--- /dev/null
+++ b/test/ns-afl-svg/2480.svg
@@ -0,0 +1,76 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='red'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='1' fill='black'/>0<circle cx='0' cy='0' r='5' f='0'/>0<path d='M00 0A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='p0u0'/>">]><svg width="px" height="30px" on="0" xmlns="0000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="b0u0"/>
+0<g te="0">
+0<text x="0" y="0">0</text>0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0<g id="0" height="px" on="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="blue"/>
+0<g ze="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0
+0<g><text y="0">0</text>&o;
+0<svg io="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg ro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg resctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg spectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>0
+<svg tio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presetRatio="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2481.svg b/test/ns-afl-svg/2481.svg
new file mode 100644
index 0000000..26aa595
--- /dev/null
+++ b/test/ns-afl-svg/2481.svg
@@ -0,0 +1,72 @@
+<?l?>
+<svg n="0" mln="0" width="0" height="0" style="0" o="0">
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0
+<g d="0" fill="blue" style="0">
+0<circle d="0" cx="0" cy="0" r="5" stroke="l0m00vic000or00000"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0
+0<circle r="4"/>
+0</g>
+0<g fill="0000000" stroke="o0i00">
+0
+0
+0<g ke="0">
+0
+0
+0
+0<g ke="0">
+0
+0</g>
+0<g fill="000" roqe="0">
+0
+0<ellipse roke="0" rx="6" ry="4" transform="rotate(60)"/>
+0<circle r="4"/>0
+0
+0
+0<g foke="0">
+0
+0</g>
+0<g fill="000" stroke="o0i00">
+0
+0<ellipse stroke="0000000" rx="6" ry="4" transform="rotate(60)"/>
+0<circle r="4"/>
+0</g>
+0</g>
+0<g fill="0000000" stroke="o0i00">
+0
+0<ellipse stroke="0000000" rx="6" ry="4" transform="rotate(60)"/>
+0<circle r="4"/>
+0</g>
+0
+0</g>
+0<circle fill="#000000" r="3"/>
+0<circle cy="0" r="9"/>
+0<circle cx="0" cy="0" r="9"/>
+0
+<ae cx="0" cy="0" r="0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2482.svg b/test/ns-afl-svg/2482.svg
new file mode 100644
index 0000000..6c218c0
--- /dev/null
+++ b/test/ns-afl-svg/2482.svg
@@ -0,0 +1,119 @@
+<svg xmlns="00000000000000000000000000" xmlns:k="0" viewBox="0 0 1 2">
+0<radialGradient id="0" cx="0" y="0" r="0" grntUnits="0"><stop t="0" op-c="0"/><stop t="0"/></radialGradient>
+0<path d="M0,000A000,00 0,0,0 00,000C00,00 00,00 00,000C000,00 00,00 00,000C000,00 00,00 00,00" id="0" fill="urc00cle00"/>0
+0
+0<stop stop-color="0" offset="0"/>
+0
+0
+0<stop stop-color="0" offset="0"/>
+0
+0<stop stop-color="0" offset="0"/>
+0<stop stop-color="0" e="0"/>
+0
+0
+0
+0<path d="00000000000" fill="url(00"/>0
+0<cirCle r="4" cx="0" y="0" fill="0"/>
+0<circle r="4" cx="0" y="0" fill="#000"/>0
+0<path d="000"/>0
+0<circle r="," fill="0"/>
+0<path d="00000000000" fill="url(00"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(00"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="00000000000" fill="url000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url000"/>0
+0<circle r="$" fill="0"/>
+0<path d="000" fill="url(#)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="000000000" id="0" style="0" fill="u0e0"/>
+0<path d="000,00,0000" fill="url000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,00000)"/>0
+0<circle r="0" cx="K" cy="0" fill="url(00"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000" fill="url(#00000000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00,0000" fill="url000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0000000"/>0
+0<circle r="$" fill="0"/>
+0<path d="000" fill="url(#)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#)"/>0
+0<cirCle r="4" cx="0" c="0" cy="0" fill="#00:"/>0
+0<path d="0000,000000"/>0
+0<circle r="0" cx="K" cy="0" fill="url000"/>0
+0<circle r="$" fill="0"/>
+0<path d="000" fill="url(#p"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#p"/>0
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0000" id="0004" style="0" fill="u0e0"/>
+0<path d="M00,00c0000" fill="url(00"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000"/>0
+0<circle r="," fill="0"/>
+0<path d="000,0000000" fill="url(00"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(00"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00,0000" fill="url000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url000"/>0
+0<circle r="$" fill="0"/>
+0<path d="000" fill="url(#)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,000 0" id="0004" style="0" fill="u0e0"/>
+0<path d="M00,00,0000" fill="url000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,00000)"/>0
+0<circle r="0" cx="K" cy="," fill="url(00"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#00000000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00,0000" fill="url000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000," cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="v" fill="u00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000v0" fill="u0e0"/>
+0<path d="M00,00-00" cx="0" y="0" fill="url000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#p"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="u00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="u00000"/>0
+0<circle r="4" cx="K" cy="," fill="url(00"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000" fill="url(#00000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="u0l0"/>
+0<path d="000" fill="url(#p"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2483.svg b/test/ns-afl-svg/2483.svg
new file mode 100644
index 0000000..5895bfc
--- /dev/null
+++ b/test/ns-afl-svg/2483.svg
@@ -0,0 +1,65 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="w0a0" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop s="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,00" cx="0" y="0" fill="#000"/>0
+0<path d="M00,00c0-0,00-00,000-00l0-00c00000000000" y="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000000000000000000)"/>
+0<path d="000000000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,0000000000000000000000000000000000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-6-000000000100000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000000000000000000000000000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000000000000000000000000000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2484.svg b/test/ns-afl-svg/2484.svg
new file mode 100644
index 0000000..528f481
--- /dev/null
+++ b/test/ns-afl-svg/2484.svg
@@ -0,0 +1,38 @@
+<svQ lPmlѶÑ000='0'>
+0<svQ lѶÑ0='0'>
+0<svQ lotì-='0' xmlѶÑ0='0'>
+0<svQ lomlѶÑ000='0'>
+0<le cx="0" cy="0" r="0" s="0" trorm="0"/>0<ci cx="0" cy="0" r="0" style="0" t="0"/>
+0<ce cx="0" cy="0" r="0" style="0" tform="0"/>
+0<ce cx="0" cy="0" r="0" style="0" transform="0"/>
+0<circle cx="0" cy="0" r="0" e="0" transform="0"/>
+0<ci cx="0" cy="0" r="0" style="0" transform="0" ry="0" x="0" y="0" fill="0"/>
+0<rect h="0" ht="0" rx="0" ry="0" x="0" y="0" fill="0"/>
+0<rect Ptì-='0' xmlѶÑ000='0'>
+0<svQ lѶÑ0='0'>
+0<svQ lotì-='0' xmlѶÑ000='0'>
+0<svQ lotì-='0' xmlѶÑ000='0'>
+0<circle cx="0" cy="0" r="0" style="0" m="0"/>
+0<circle cx="0" cy="0" r="0" style="0" transform="0"/>
+0<circle cx="0" cy="0" r="0" stP='0' xmlѶÑ000='0'>
+0<svQ lѶÑ0='0'>
+0<svQ lotì-='0' xmlѶÑ0='0'>
+0<svQ lo='0' xmlѶÑ000='0'>
+0<le cx="0" cy="0" r="0" s="0" trorm="0"/>
+0<ci cx="0" cy="0" r="0" style="0" t="0"/>
+0<ce cx="0" cy="0" r="0" style="0" transform="0"/>
+0<circle cx="0" cy="0" r="0" style="0" transform="0"/>
+0<circle cx="0" cy="0" r="0" e="0" transform="0"/>
+0<circle cx="0" cy="0" r="0" style="0" transform="0" ry="0" x="0" y="0" fill="0"/>
+0<rect h="0" ht="0" rx="0" ry="0" x="0" y="0" fill="0"/>
+0<rect Ptì-='0' xmlѶÑ000='0'>
+0<svQ lѶÑ0='0'>
+0<svQ lotì-='0' xmlѶÑ000='0'>
+0<svQ lotì-='0' xmlѶÑ000='0'>
+0<circle cx="0" cy="0" r="0" style="0" m="0"/>
+0<circle cx="0" cy="0" r="0" style="0" transform="0"/>
+0<circle cx="0" cy="0" r="0" style="0" transform="0"/>
+0<circle cx="0" cy="0" r="0" style="0" transform="0"/>
+0<circle cx="0" cy="0" r="0" style="0" transform="0"/>
+0<circle cx="0" cy="0" r="0" style="0" transform="0" ry="0" x="0" y="0" fill="0"/>
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2485.svg b/test/ns-afl-svg/2485.svg
new file mode 100644
index 0000000..3728c2f
--- /dev/null
+++ b/test/ns-afl-svg/2485.svg
@@ -0,0 +1,26 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" i="0" sodipodi:ersion="0" inkscape:version="0" sodipodi:docname="0" inkscape:tput_extension="0">
+0<defs>
+0<filter inkscape:collect="0" d="0">
+0<feGaussianBlur inkscape:collect="0" n="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:f0l00dfill:none" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:f0l00dfill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2486.svg b/test/ns-afl-svg/2486.svg
new file mode 100644
index 0000000..0dd6e32
--- /dev/null
+++ b/test/ns-afl-svg/2486.svg
@@ -0,0 +1,45 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a00fel000se00000"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop r="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" y="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00000000000000000l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00,0,0C,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-2,00l-50-005c0,0,0000v00,00000,000,0000" fill="url(#py0ellow)"/>
+0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<pa/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/2487.svg b/test/ns-afl-svg/2487.svg
new file mode 100644
index 0000000..b5ee42b
--- /dev/null
+++ b/test/ns-afl-svg/2487.svg
@@ -0,0 +1,13 @@
+<?l?>
+<!DOCTYPE s PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="R" r="1" style="fill:b0u00lla00;stroke-width:1cm" transform=",000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u00lla00;stroke-width:1cm" transform=",0000"/>
+0<circle cx="c" cy="cm" r="1" style="fill:green;stroke:000000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:b0u00lla00;stroke-width:001cm" transform=",0000"/>
+0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2488.svg b/test/ns-afl-svg/2488.svg
new file mode 100644
index 0000000..97636aa
--- /dev/null
+++ b/test/ns-afl-svg/2488.svg
@@ -0,0 +1,303 @@
+<svg xmlns="0000000000000000000000000000000000000000000000000000000" fill="0" n="0">
+0<script te="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="0" e="0">
+0<le id="0" cx="0" cy="0" r="0" soke="0"
+se-h="0"/>
+0<text x="0" y="0">0</text>
+0<efè00>0
+0
+0<linent id="0" rorm="0">
+0
+0<efè00>
+0<efè00 m="">
+0<efè00>
+0
+0<efè00>
+0<efè00 g="">0 0<efè00 s="" B="">
+0<efè00>
+0<efè00 m="">
+0<efè00>
+0<efè00 m="">
+0<efè00>
+0<efè00>0
+0
+0<efè00>
+0<efè00>0 0<efè00>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>0
+0<defs>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>0
+0<lefè00 m="">
+0<lefè00>0 0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00 x="">0
+0
+0<defs>
+0<linent id="0" rorm="0">
+0<efè00>
+0<lefè00>0
+0
+0<lefè00>
+0<Pefè00 x="">0 0<lefè00 x="">
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0<defs>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè00>
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" rorm="0">
+0
+0<efè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lt id="0" rorm="0">
+0
+0<efè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" rorm="0">
+0<efè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè00>
+0<lefè00>
+0<le>
+0
+0<lefè00>
+0<lefè00>0 0<lefè00>
+0<lVfè00>0
+0
+0<defs>
+0<linent id="0" rorm="0">
+0
+0<efè00>
+0<lefè00 m="">
+0<lefè00>0
+0
+0<lefè00 m="">
+0<lefè00>0 0<lefè00>
+0<lefè00 m="">
+0
+0
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>0 0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>0
+0
+0<lefè00 m="">
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" rorm="0">
+0
+0<efè00>
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<linent id="0" rorm="0">
+0
+0<efè00 m="">
+0<lefè00>
+0
+0
+0<lefè00>
+0<leWè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>0<lefè00>
+0<lefè00>
+0<lefè00 x="">
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0<defs>0
+0
+0<lefè00 d="">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<leWè00>0 0<lefè0000 x="">
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0<lefè00>
+0<lefè00>
+0<lefè00>
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0<defs>0
+0
+0<lefè00>
+0<lefè00 x="">0 0<lefè0000>
+0<lefè00 m="">
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" rorm="0">
+0<efè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<le>
+0
+0<lefè00>
+0<lefè00 g="">0 0<lefè0000>
+0<lefè00>0
+0
+0<defs>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<le>
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<linent id="0" grorm="0">
+0
+0<lefè00>
+0<lefè00>
+0<lefè00>
+0<lefè00>0
+0
+0<defs>
+0<linent id="0" grorm="0">
+0<lefè00>
+0<lefè00>0
+0
+0<lefè00>
+0<lefè00>0 0<lefè0000>
+0<lefè00 m="">
+0<le>
+0
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2489.svg b/test/ns-afl-svg/2489.svg
new file mode 100644
index 0000000..79056e9
--- /dev/null
+++ b/test/ns-afl-svg/2489.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:black;stroke-width:1cm" transform="translate(0,0)"/>0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:t0a00che000k;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;stroke:black;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="0" r="1" style="fill:blue;stroke:t0a00che000k;stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:green;" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2490.svg b/test/ns-afl-svg/2490.svg
new file mode 100644
index 0000000..573a6da
--- /dev/null
+++ b/test/ns-afl-svg/2490.svg
@@ -0,0 +1,57 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="q0o00"/>0
+0<ce r="0" cx="0" cy="0" ot="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0-0,00,0,000,00c0,0-0,00-00,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ00"/>0
+0<circle r="4" cx="u"/>
+0<path d="00000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="u0y00llo00"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l000 0000-00 000-000 00000 000000,00000000000000000000000000000000000000000000000000000,0000000000" id="0000" style="fill: u00000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-04-6-200000000000000000000000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#00000000)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#00000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="z" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c000-8,00-20,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0000" style="fill: url(#00000" fill="url(#00000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000000000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2491.svg b/test/ns-afl-svg/2491.svg
new file mode 100644
index 0000000..7d99e12
--- /dev/null
+++ b/test/ns-afl-svg/2491.svg
@@ -0,0 +1,385 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" rm="0">
+0<stop stop-color="0" offset="4"/>
+0<stop or="0" offset="7"/>
+0<stop stop-color="s0q0" offset=","/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop stop-color="#000" ot="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" ll="0"/>
+0<path d="00000000000000000000000000000," fill="url(#pyYellow"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow"/>0
+0<circle r="0" fill="url(#00000000000000000000000000000000000000000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" ll="0"/>
+0<circle r="4" cx="0" cy="0" ll="0"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000000000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000,00,0000,c00000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00000000000000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" iill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,00-00000,00"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" ficy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" filx="0"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fSll="0"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2492.svg b/test/ns-afl-svg/2492.svg
new file mode 100644
index 0000000..3e6a82e
--- /dev/null
+++ b/test/ns-afl-svg/2492.svg
@@ -0,0 +1,8 @@
+<svg olns="0" Box="0">
+0<fè
+ m="">
+0<l000000è
+ m="">
+0<fè
+ m="">
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2493.svg b/test/ns-afl-svg/2493.svg
new file mode 100644
index 0000000..058b8ea
--- /dev/null
+++ b/test/ns-afl-svg/2493.svg
@@ -0,0 +1,115 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0l00' stroke='red'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='000000'/>0<circle cx='e' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='ex' height='0'
+fill='none' stroke='b0u0'/>">]><svg width="px" height="30px" n="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" stroke="000"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(0,0)">&Viewport2;</g>
+0<g d="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg o="0" Box="0"
+h="0" t="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>0
+0<svg p="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&p;
+0<svg patio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg presctRatio="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg ptRatio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(0,0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg p="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preht="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg p="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport2;
+0<svg prb="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" vix="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg ectRaTio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2494.svg b/test/ns-afl-svg/2494.svg
new file mode 100644
index 0000000..6b0c18e
--- /dev/null
+++ b/test/ns-afl-svg/2494.svg
@@ -0,0 +1,395 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" a_rm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="f0m0" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop st="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" xt="0"/>
+0
+0<stop l="0"/>
+0<pAth d="0" ll="0"/>0
+0<circle r="0" cx="0" cy="0" fl="0"/>
+0
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<ci r="0" cx="0" id="0000" e="0" fill="0"/>0
+0
+0<path d="0" fill="0"/>0
+0<ce r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" of="0"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<pi r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="00,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<paVh d="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000,0000000,000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000000000000000000000 000-000 000-00-00-00000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000000000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#00)"/>0
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-60.870,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" vx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#00)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#00)"/>
+0<paç00h/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0
+0<path d="00,0000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" il="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00o0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,10-00l24,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" f="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" ill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="000,00000000,00000,000000000000000,0000,0000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-0B0000,0000,00000000,000,0,0000,000000000000,000,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2495.svg b/test/ns-afl-svg/2495.svg
new file mode 100644
index 0000000..3a5d1db
--- /dev/null
+++ b/test/ns-afl-svg/2495.svg
@@ -0,0 +1,214 @@
+<svg xmlns="0000000000" viewBox="0">
+0<h d="0">
+0<style ype="0">
+0
+0</style>
+0
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0
+0<defs>0<g>0<!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g>0<path d="0" i="0" scro="0">
+0<defs>0<g><g><!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<gU-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<gU-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g><g><!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0--><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0
+0<defs>0<g>0<!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g>0<path d="0" i="0" scth="0">
+0<defs>0<g><g><!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<gU-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0
+0<defs>0<g><g><!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g>0<path d="0" i="0" scro="0">
+0<defs>0<g><g><!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g>0<path d="0" j="0"><g><g>0<g><!--0-->
+0<g><!--0-->
+0<g>
+0
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g>0<path d="0" i="0" j="0"><g><g>0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g>0<path d="0" i="0" idth="0">
+0<defs>0<g><g>0
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g><g><!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0--><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g>0<!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g>0<path d="0" i="0" idth="0">
+0<defs>0<g><g><!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<gU-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0
+0<defs>0<g><g><!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g>0<path d="0" i="0" scth="0">
+0<defs>0<g><g><!--0-->
+0<g><X><!--0-->
+0
+0<g><g><!--0-->
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g>0<path d="0" j="0"><g><g>0<g><!--0-->
+0<g><!--0-->
+0<g>
+0
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g>0<path d="0" i="0" j="0"><g><g>0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g>0<path d="0" i="0" scth="0">
+0<defs>0<g><g><!--0-->
+0<g><X><!--0-->
+0
+0<g>
+0<g><!--0-->
+0<g>
+0<g><g><!--0-->
+0<g><g><!--0-->
+0
+0<g><g><!--0-->
+0<g>0<path d="0" i="0" j="0"><g><g>0<g><!--0-->
+0<g><!--0-->
+0<g>
+0
+0<g><g><0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2496.svg b/test/ns-afl-svg/2496.svg
new file mode 100644
index 0000000..0dab15a
--- /dev/null
+++ b/test/ns-afl-svg/2496.svg
@@ -0,0 +1,75 @@
+<svg xmlns="00" vmewBox="0">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(00 000000,000000)">
+0<stop stop-color="#000" offset="-6"/>
+0<stop stop-color="a0e00" offset=","/>
+0
+0<stop stop-color="#000" offset="H"/>
+0<stop p-c="0" t="0"/>
+0</linearGradient>
+0</defs>0
+0<pahh d="0" l="0"/>
+0<path d="M00,00c0000000-0-000 00.000.0000.00000-00" c="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<path d="0000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,0000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0-00000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-00000000000000000,0000000000C0000000,00000000000000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<cirIle r="0" cx="0" y="0" ll="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,000000000000,000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="u00000000000000000000"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000000,00l000,000,0000,000,000,00000000000000000000,0000000000000000,00000000000"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="z" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-00-000000,00000000000000000000,0000000000000000,00000000000000" cx="0" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#0000)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="000"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" g="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2497.svg b/test/ns-afl-svg/2497.svg
new file mode 100644
index 0000000..c8bcd02
--- /dev/null
+++ b/test/ns-afl-svg/2497.svg
@@ -0,0 +1,67 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="s0o00yol000"/>0
+0<stop stop-color="p0a00sty00" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="00000000" fill="#000000"/>
+0<path d="M0,000c0,00,0,00-0,00l000-0000000000000000000000000000000000000000=00,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,0-00-0@000000000000,000000,000000000000000000000,00000,000,0000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="z" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000 00-00 000-00 0000-00 000-000 00000 000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,0-00-0@000000000000,000000,000000000000000000000,00000,000,0000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00000000000l000,0000000,000000000000"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000000000000000000000000000000000000000000000000000l0000l0000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000w0000000000000000000000000000000000000000000000000000000000000000000000000" y="0" fill="#000"/>
+0<circle r="4" cx="z" id="0004" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,0000,000000000z" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,0-00-0@000000000000,000000,000000000000000000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00000000000l000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,000000-0-00000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+0<path d="000,0000000000000000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,0000000X,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2498.svg b/test/ns-afl-svg/2498.svg
new file mode 100644
index 0000000..eb08268
--- /dev/null
+++ b/test/ns-afl-svg/2498.svg
@@ -0,0 +1 @@
+<svg xmlns="vg" Box="0" st-Å000000="0">0<svG lns="0" cliÀ00000="0" l=""/><a/><!--0-->0<g xmlns="vg" Box="0" st-Å000000="0">0<svG jmlns="0" cliÀ00000="0" l=""/><a/> \ No newline at end of file
diff --git a/test/ns-afl-svg/2499.svg b/test/ns-afl-svg/2499.svg
new file mode 100644
index 0000000..545ce78
--- /dev/null
+++ b/test/ns-afl-svg/2499.svg
@@ -0,0 +1,5 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c00ext000ch0000'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<circle cx='0' cy='0' r='5' fht='0' fill='l0c00ext000ch0000'/>0
+</g>0"><!ENTITY t ""><!ENTITY V "">]><svg width="px" height="px" version="0" xmlns="000000000000000000">
+0<g transform="matrix(0,0,0,6,0,0)">
+0&Smile;
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2500.svg b/test/ns-afl-svg/2500.svg
new file mode 100644
index 0000000..ed9528c
--- /dev/null
+++ b/test/ns-afl-svg/2500.svg
@@ -0,0 +1,77 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c00ore0'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00w'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<circle cx='0' cy='0' r='5' fht='0' fill='0000000000000'/>0</g>0"><!ENTITY t "">
+<!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" ion="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" T="0" ill="0" s="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g t="0"
+ransform="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&Viewport0;</g>
+0<g i="0" tform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg tio="0" vie="0"
+h="0" heé00="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg pro="0" vox="0" h="0" ht="0">&Smile;</svg></g>
+0<g transform="000"><text y="0">0</text>&p;
+0<svg pre="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg Asp="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g><text y="M">0</text><svg pio="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="000"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0000"><text y="0">0</text>&Viewport0;
+0 0
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g trfnsform="0"><text y="0">0</text>&Viewport0;
+0<svg prRatio="0" viewBox="0" widthight="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg preserRatio="0" viewBox="0 0 3 4" width="0" Oeight="0">&Smile;</svg></g>
+0<g transform="0000,00"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>0</g>
+0<g id="0" transform="0,0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="000000000000,000"><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>0<g transforo="0"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0000,00"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="0,00"><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0000000000000,00000">
+0
+0<g transform="0,00"><text y="0">0</text>&Viewport0;
+0<svg preservetio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0000000000000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2501.svg b/test/ns-afl-svg/2501.svg
new file mode 100644
index 0000000..8aed8c2
--- /dev/null
+++ b/test/ns-afl-svg/2501.svg
@@ -0,0 +1,353 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" gra_ieorm="0">
+0<stop stop-color="s0o00wol000"/>0
+0<stop stop-color="p0q0" offset="0"/>
+0
+0<stop stop-color="#000" set="0"/>
+0<stop stop-color="000000" offset="0"/>0</linearGradient>
+0</defs>0
+0<path d="00000000000000000" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#000000)"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(000000"/>
+0<path d="M00,00c00000,00-000,00-00,000-0000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>
+0
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000a0000000000000000000000000000000000000000000000000000C00000000000000000000000000000000000000000000000000000000000000000000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,00L000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000000000000000000000000000000000000000000000000000000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-00-000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="000,00000000,0000000000"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<bircle r="0" cx="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00-00,000000,000,0000,000,0l0,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000 00000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" l="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000000000"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000a0000000,000000000,0000000,000000000000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,000000000000000000000000000000,00000000000000000000,0000000 00000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(000000"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000 00000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,000,000M00000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2502.svg b/test/ns-afl-svg/2502.svg
new file mode 100644
index 0000000..f82f342
--- /dev/null
+++ b/test/ns-afl-svg/2502.svg
@@ -0,0 +1,3 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 0 0"><polygon d="0" stroke="#000" fill="none"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" y="0" ft-ze="0" fill="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2503.svg b/test/ns-afl-svg/2503.svg
new file mode 100644
index 0000000..66f6fb5
--- /dev/null
+++ b/test/ns-afl-svg/2503.svg
@@ -0,0 +1,93 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c00anc000ed'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00w'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='b0i00'/>0<path d='M000 0A00 0 0 0 0 00 00' stroke='black' otroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='d'
+fill='n0s0' stroke='blue'/>">]><svg width="px" h="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" he="0" fill="none" se="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g m="0">&Smile;</g>0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport0;</g>
+0<g id="0" transform="0000000">0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg o="0" ox="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg o="0" ix="0"
+idth="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg o="0" ox="0" width="0" ht="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg o="0" ox="0" width="0" ight="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg p="0" v="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg p="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg p="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>0</g>
+0<g id="0" transform="translate(000 000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg p="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg rght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg o="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg o="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg o="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg e="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg A="0" viewBox="0 0 3 4" w="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg rght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg e="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg rght="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg p="0" viewBox="0 0 3 4" width="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg p="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg t="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg rght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg e="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg ro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg io="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg re="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" vwBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2504.svg b/test/ns-afl-svg/2504.svg
new file mode 100644
index 0000000..66686e8
--- /dev/null
+++ b/test/ns-afl-svg/2504.svg
@@ -0,0 +1,349 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" gr="0"/>
+0<stop s="0"/>
+0<stop sr="0" ofLset="0"/>
+0<stop p0r="0" offset="0"/>
+0
+0<stop stop-color="0" offset="0"/>
+0<stop sSop-c="0" t="0"/>
+0
+0</defs>0
+0<pahh d="0" fill="0"/>
+0<path d="M0,00c00-000-00-0-00-00" cx="0" y="0" fill="url(#pyYellow"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="0000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 00000000000000000000000000000000000000000000000000000000000000000000000,0000000000C0000000000000000000000000000000000000000000000000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,0000,000000000000,000,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,00000000000000000000000000000 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000,0000000,000000000000000,000000000000000000000000000i0000000,0000000,000000000000000,000000000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,000000000-000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirAle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000ac000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" stylel="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2505.svg b/test/ns-afl-svg/2505.svg
new file mode 100644
index 0000000..0ebe9b6
--- /dev/null
+++ b/test/ns-afl-svg/2505.svg
@@ -0,0 +1,32 @@
+<svg xmlns="http://www.w3.--g/2000/svg" viewBox="0 0 1 6">
+0<circle r="3" cx="0" cy="0"/>
+0<circle r="3" cx="0" cy="0"/>
+0<path d="M0,00s0-0,00,0s0,0,0,0l00,0s00-0-0-0l0,0s0,0,0,0l00,0l00-0l00,0l00-0z"/>
+0<path d="M00,00s0,0,0,0l0,0s00-0,0-00l0,0s00-0,0-0l0,0s0,0,0-0l00-0s000,0-0,00l0,0s0,0-0,0z"/>
+0<path d="M00,00s00-00,0-00l0-0s0,0,0,0l0-0l0,0s0,0,0,00l00,0l00-0s00,0-0,0l00,00z"/>
+0<g stroke="#000" stroke-width="0" fill="000000000000000000000"/>
+0<path d="M00,00s0,0,0,0l0,0s00-0,0-00l0,0s00-0,0-0l0,0s0,0,0-0l00-0s0,0-0,00l0,0s0,0-0,0z"/>
+0<path d="M00,00s00-00,0-00l0-0s0,0,0,0l0-0l0,0s0,0,0,00l00,0l00-0s00,0-0,0l00,00z"/>
+0<g stroke="#000" stroke-width="3" fill="none" e-c="0">
+0<circle r="6" cx="0" cy="0"/>
+0<circle r="6" cx="0" cy="0"/>
+0<path d="M00,00S00,00,0,00m0,0S00,00,00,00"/>
+0<path d="M00,00l0,0M00,00l00,0"/>0
+0<path d="M00,00c000-00-00-0-00-0s0,0-0,0c00-0-0-0-0-0"/>
+0<path d="M00,00c0,0-00,0-00,0c0,0,0,0-00,0c00-0-0-0-0,0"/>
+0<path d="M00,00c00,0-0,0-0,00c0,0,0,0-00,0"/>
+0<path d="M0,00c0-0,00-0,00,0c0,0,00,0,00,0s0-0,0,0"/>
+0<path d="M0,00c0,0,00,0,00,00c0,0,0,0,00,0s0-0,0,0"/>
+0<path d="M00,00s0,0,0,0s00,00,00,00"/>
+0
+0<circle r="6" cx="0" cy="0"/>
+0<circle r="6" cx="0" cy="0"/>
+0<path d="M00,00S00,00,0,00m0,0S00,00,00,00"/>
+0<path d="M00,00l0,0M00,00l00,0"/>0
+0<path d="M00,00c0-00-00-0-00-0s0,0-0,0c00-0-0-0-0-0"/>
+0<path d="M00,00c000,0-00,0-00,0c0,0,0,0-00,0c00-0-0-0-0,0"/>
+0<path d="M00,00c00,0-0,0-0,00c0,0,0,0-00,0"/>
+0<path d="M000,00c0-0,00-0,00,0c0,0,00,0,00,0s0-0,0,0"/>
+0<path d="00000000000"/>
+0<path d="M00,00s0,0,0,0s00,00,00,00"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2506.svg b/test/ns-afl-svg/2506.svg
new file mode 100644
index 0000000..6bb8851
--- /dev/null
+++ b/test/ns-afl-svg/2506.svg
@@ -0,0 +1,15 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M00,00q0-00,00-00q0-00,00-00q0-00,00-00q0-0,00-0q000,00-00,00q000,00-00,00q00,0-0,00S00,0-0,0q00,0-0-0q00-0-0-00000q00" fill="000000000000000000000"/>0
+0<path d="M00,00s00-00,0-00l0-0s0,0,0,0l0-0l0,0s0,0,0,00l00,0l00-0s00,0-0,0l00,00z"/>
+0<g stroke="#000" stroke-width="3" fill="none" t-l="0">
+0<circle r="6" cx="0" cy="0"/>
+0<circle r="6" cx="0" cy="0"/>
+0<path d="M00,00S00,00,0,00m0,0S00,00,00,00"/>
+0<path d="M00,00l0,0M00,00l00,0"/>0
+0<path d="00000000000000000000000000000000000000000000"/>
+0<path d="M00,00c000,0-00,0-00,0c0,0,0,0-00,0c00-0-0-0-0,0"/>
+0<path d="M00,00c00,0-0,0-0,00c0,0,0,0-00,0"/>
+0<path d="00000000000000000000000000"/>
+0<path d="M000,00c0,0,00,0,00,00c0,0,0000000000-0,0,0"/>
+0<path d="M00,00s0000000000,00,00,00"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2507.svg b/test/ns-afl-svg/2507.svg
new file mode 100644
index 0000000..070a205
--- /dev/null
+++ b/test/ns-afl-svg/2507.svg
@@ -0,0 +1,7 @@
+<svg vivtll='0'>
+0<svg s='0' d='0' fill='d0l00tax000ns00000' rl='0' stSoke='0'>
+0<path d='M0,0c0,0-0,0-0,0-' fill='d0l00tax000ns00000' stroke='black'/>0</svg>
+0<path d='M0,00,,,0' stroke='black'/>0
+0<svg vivhxlns='0' d='0' fill='d0l00tax000ns00000' strokell='0' stSoke='0'>
+0<path d='M0,0c0,0-0,0-0,0-' fill='d0l00tax000ns00000' stroke='black'/>0</svg>
+0<path d='M0,00,,,0' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/2508.svg b/test/ns-afl-svg/2508.svg
new file mode 100644
index 0000000..4dc7628
--- /dev/null
+++ b/test/ns-afl-svg/2508.svg
@@ -0,0 +1,9 @@
+<svg Ãs="0" viewBox="0 0 1 1">
+0<path d="M0,0h00l00,00v0000,00h000l000-00v00000000 000000000000000000-000 000-00-00-00-000 000-000 00-00 00-00 0-00A00-0-0000-00-000-000 0-00 00-00 000-00 00 00 000 00 000-00 00-00 00-00 0000-00 00 0 00-000 00-000-00-00-000-00-000 00-000 000-000 0000-000
+000 0-00 00-000 00-000 0-000 0-000-0-000-0-00-0-00-0-000-00-00-0-00-00-000-00-000-00-000-000-000-00-000-000-000-00-000
+00-000 00-000-00-000-00-000-00-000 00-000 00 0 00-0 00-000-00-000 00-000 000-000 000 000 000 000 000 00 000-000 000-000 000-000 000
+000 000 000-00 0000-00 000-00 000 0 0000l00 00-0 0000c0 000 0 000 00
+00S0000000000000 00 000-00 000-00 000 00 000 00 000 00 000-00 000-0000:000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
+transform="translate(0,0)scale(0,0"/>0<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+fill="#000" pa="0"/>0<ellipse rx="5" ry="2" transform="rotate(0 0,0" fill="#000"
+ty="0"/>0</svg>
diff --git a/test/ns-afl-svg/2509.svg b/test/ns-afl-svg/2509.svg
new file mode 100644
index 0000000..9ee71e6
--- /dev/null
+++ b/test/ns-afl-svg/2509.svg
@@ -0,0 +1,28 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="httprg/2000/ttk" xmlns:sodipodi="00" xmlns:inkscape="000" width="0" height="0" id="0" sodipodi:ven="0" inkscape:ver="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs id="0">
+0<linearGradient id="linearGradient0100" it0="0" x1="0" y1="0" x2="0" y2="0">
+0
+0
+0
+0
+0<stop style="stop-color: 0t000;" offset="0" d="0"/>
+0</linearGradient>
+0</defs>
+0<g inkscape:label="0" inkscape:e="0" id="0">
+0<rect style="fill:url(#linearGradient0100);" id="0" width="0" height="0" x="0" y="0"/>0
+<!--0-->0<svg xmlns:c="0" xmlns:i="0" xmlns:iape="00" width="0" height="0" id="0" sodipodi:ven="0" inkscape:ver="0" sodipodi:docname="0" iape:output_extension="0">
+0<defs id="0">
+0<linearGradient id="0" its="0" x0="0" y0="0" x2="0" y2="0">
+0
+0
+0
+0
+0<stop style="0" offset="0" id="0"/>
+0</linearGradient>
+0</defs>
+0<g inkscape:label="0" iape:e="0" id="0">
+0<rect style="fill:url(#linearGradient0100);" id="0" width="0" height="0" x="0" y="0"/>
+0</g>0</svg>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2510.svg b/test/ns-afl-svg/2510.svg
new file mode 100644
index 0000000..eadc9d5
--- /dev/null
+++ b/test/ns-afl-svg/2510.svg
@@ -0,0 +1,2 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M0,00q0-00,00-00q0-00,00-00q0-00,00-00q0-0,00-0q000,00-00,00q000,00-00,00q00,0-0,00S00,0-0,0q00,0-0-0q00-0-0-00000000000000000q00" fill="green"/>0</svg>
diff --git a/test/ns-afl-svg/2511.svg b/test/ns-afl-svg/2511.svg
new file mode 100644
index 0000000..851e330
--- /dev/null
+++ b/test/ns-afl-svg/2511.svg
@@ -0,0 +1,26 @@
+<svg xmlns="0" viewBox="0 0 0 0">
+0<path d="000000000" troke="0" fill="n0b0"/>0
+0<path d="000000000" t="0" fill="n0b0"/>0
+0<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,0l0-0v000z" stroke="#000" fill="n0b0"/>0
+0<path d="00000000" fill="n0b0"/>0
+0<path d="M00000,0000000" t="0" fill="n0b0"/>0
+0<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,0l000-00l000-00v000z" stroke="#000" fill="n0b0"/>0
+0<path d="00000000000000000000000000000000000000" fill="#000"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
+0<text x="0" y="0" font-size="0" fil_ke="0" fill="0"/>0
+0<path d="000000000000" stroke="#000" fill="n0b0"/>0
+0<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,0l000-00l000-00v000z" stroke="#000" fill="n0b0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
+0<text x="0" y="0" font-size="0" fi="0" text-ar="0" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
+0<text x="0" y="0" font-size="0" fil_ke="0" fill="0"/>0
+0<path d="M0000,00-0000" stroke="#000" fill="n0b0"/>0
+0<svg xmlns="0" viewBox="0 0 1 1">
+0<path d="M00,0h00l00,0l000-00l000-00v000z" stroke="#000" fill="n0b0"/>0
+0<path d="M00,0h00l00,00v00l000,00h000l000-00v000z" fill="#000"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[0]]></text>0</svg>
+0<text x="0" y="0" font-size="0" fi="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2512.svg b/test/ns-afl-svg/2512.svg
new file mode 100644
index 0000000..36b5b25
--- /dev/null
+++ b/test/ns-afl-svg/2512.svg
@@ -0,0 +1,44 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="0000000000">
+0
+<svg xmlns="0000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g e="0">0
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="c" c="0" r="1" s="0" wrorm="0"/>
+0<circle cx="cm" cy="cm" r="D" style="stroke:c0t00blw000id000000" e="0" wrorm="0"/>
+0<circle cx="cm" cy="cm" r="D" style="stroke:c0t00blw000id000000" transform="00,0000"/>
+0
+0</g>0
+0<circle cx="c" s="0" r="1" style="fill:r0d0" wrorm="0"/>
+0<circle cx="cm" cy="cm" r="D" style="stroke:c0t00blw000id000000" transform="0000" te="0" w="0"/>
+0<circle cx="cm" cy="cm" r="D" style="stroke:c0t00blw000id000000" transform="00000"/>
+0
+0
+0
+0</g>0</svg>0<style te="0">
+0
+0</style>
+0<g style="0">0
+0<style te="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="c" cs="0" r="1" s="0" wrorm="0"/>
+0<circle cx="cm" cy="cm" r="D" style="stroke:c0t00blw000id000000" te="0" wrorm="0"/>
+0<circle cx="cm" cy="cm" r="D" style="stroke:c0t00blw000id000000" transform=",0000"/>
+0
+0</g>0
+0<circle cx="c" cs="0" r="1" style="fill:r0d0" wrorm="0"/>
+0<circle cx="cm" cy="cm" r="D" style="stroke:c0t00blw000id000000" transform=",0000000" te="0" wrorm="0"/>
+0<circle cx="cm" cy="cm" r="D" style="stroke:c0t00blw000id000000" transform="00000000,0000"/>
+0
+0
+0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2513.svg b/test/ns-afl-svg/2513.svg
new file mode 100644
index 0000000..441f9c7
--- /dev/null
+++ b/test/ns-afl-svg/2513.svg
@@ -0,0 +1,27 @@
+<svg v='0' xmlns='000' fill='s0q00rer' e='0'>
+0<path d='0000000000000000000000000000000000000,00000' fill='s0b00tax000nc00000' stroke='000'/>
+0<path d='000,00,0,0000,0,00,00,00,00000000000000000000000000000000000,0,00,00,00,00000,000,00000' fill='00000000' stroke='000'/>
+0<path d='000,00000,00000,000000,000,0,000,000000,000,000000000000000000000000000000000000000' stroke='000'/>0
+0<path d='000,00000,0000,,000,00000' fill='00000000' stroke='000'/>0<svg vlns='0' fill='s0q00rer' e='0'>
+0<path d='000,0000000,000000000000000000,0000,0000,0000,0,00,00,00,00000,000,00000' fill='s0b00tax000nc00000' stroke='b0a00'/>0
+0<path d='000,00000,0000,0,0000,0,00,00,00,00000,000,0000000000,0000,0000,0000,0,00,00,00,00000,000,00000' fill='00000000' stroke='b0a00'/>0
+0<path d='000,00000,00000,000000,000,0,000,000000,000,000000000000000000000000000000000000000' stroke='b0a00'/>0
+0<path d='000,00000,0000,0,0000,0,00,00,00,00000,000,0000,000,00000' fill='0000000000000' stroke='b0a00'/>0
+0<path d='000,000,0,00000,000000,000,0,000,000000,000,0000000,0000,00000000,,000,0000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000,000,000000000000000000' fill='0000000000000' stroke='black'/>0</svg>0
+0<path d='M00,00c,0,00000,000000,0c0,0,000,000000'/>0
+0<path d='M00,00c00,00000,000000,0c0,0,000,000000,000,0000000,0000,00000000000000000000000000' stroke='black'/>0
+0<path d='M00,00c00,0000,,000,00000' fill='0000000000000' stroke='black'/>0<svg vlns='0' fill='s0q00rer' ke='0'>
+0<path d='M00,0000000,000000000c00000000,0000,0000,0000,0,00,00,00,00000,000,00000' fill='s0b00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,0000,0,00c0,0,00,00,00,00000,000,0000000000,0000,0000,0000,0,00,00,00,00000,000,00000' fill='0000000000000' stroke='black'/>0
+0<pSth d='0' stroke='0'/>0
+0<path d='M00,00c00,0000,0,00c0,0,00,00,00,00000,000,0000,000,00000' fill='0000000000000' stroke='black'/>0
+0<path d='M00,00c,0,00000,000000,0c0,0,000,000000,000,0000000,0000,00000000,,000,0000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000,000,000000000000000000' fill='0000000000000' stroke='black'/>0</svg>0
+0<path d='M00,00c,0,00000,000000,0c0,0,000,000000,000,0000000,0000,00000000,,000,0000000,0000,0000000000000,000,0000000,0000,00000000,,000,0000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000,0000,00,00,00000,000,00000' fill='0000000000000' stroke='black'/>0
+0<path d='M00,00c00,00000,000000,0c0,0,000,000000,000,0000000,0000,00000000000000000000000000' stroke='black'/>0
+0<path d='M00,00c00,0000,,000,00000' fill='s0l00tax000nc00000' stroke='black'/>0<svg mlns='0' fill='s0q00rer' ke='0'>
+0<path d='M00,0000000,000000000c00000000,0000,0000,0000,0,00,00,00,00000,000,00000' fill='s0b00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,0000,0,00c0,0,00,00,00,00000,000,0000000000,0000,0000,0000,0,00,00,00,00000,000,00000' fill='0000000000000' stroke='black'/>0
+0<path d='M00,00c00,00000,000000,0c0,0,000,000000,000,0000000,0000,00000000000000000000000000' stroke='black'/>0
+0<path d='M00,00c00,0000,0,00c0,0,00,00,00,00000,000,0000,000,00000' fill='s0l00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c,0,00000,000000,0c0,0,000,000000,000,0000000,0000,00000000,,000,0000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000,000,000000000000000000' fill='s0l00tax000nc00000' stroke='black'/>0</svg>0
+0<path d='M00,00c,0,00000,000000,0c0,0,000,000000,000,0000000,0000,00000000,,000,0000000,0000,0000000000000000000,0000,0000,000,0,0,000,000000000000000000' fill='s0l00tax000nc00000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/2514.svg b/test/ns-afl-svg/2514.svg
new file mode 100644
index 0000000..4b1873d
--- /dev/null
+++ b/test/ns-afl-svg/2514.svg
@@ -0,0 +1,5 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M00,00q0-00,00-00q0-00,00-00q0-00,00-00q0-0,0-0H000,00 00-00 000-00 000-00-000-000 0-00 00-000S00-00 00 00 000 00 000-00 00-00 00-00 0000-00 00 0 00-000 00-000-00-00-0000000000000000000000000000000000
+000 0-00 00-000 00-000 0-000 0-000-0-000-0-00-0-00-0-000-00-00-0-00-00-000-00-000-00-000-000-00000000000000000000000000000000 00-000-00-000-00-000-00-000 00-000 00 0 00-0 00-000-00-000 00-0000000000000000000000000000000000000000000000000000000000000000000000000000000000-00 000-00 000 0 0000l00 00-0 0000c00000 0 000 00000000000000000-00 000 00 000 00 000 00 000-00 000-000-00-000-000-000-000 0-00-00 00-00 00-00 00000000000000000-00 0000 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,00"/>0<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+fill="#000" opacity="0"/>0<ellipse rx="3" ry="2" transform="rotate(0 00,0" fill="#000"
+opacity="0"/>0</svg>
diff --git a/test/ns-afl-svg/2515.svg b/test/ns-afl-svg/2515.svg
new file mode 100644
index 0000000..85a3fd9
--- /dev/null
+++ b/test/ns-afl-svg/2515.svg
@@ -0,0 +1,153 @@
+<svg width="0" ox="0">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="0000">
+0<stop stop-color="#0000s0" offset="0"/>
+0<stop stop-color="t0u0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<p p-c="0" t="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000000,00,000000000000000000,0000000,000000,0000" fill="url(#0000)"/>
+0<path d="000,0000,000,00000000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#00000"/>0
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" y="0" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<ath d="0"/>0
+0<circle r="4" cx=")"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="0000" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cidCle r="0" cx="0" y="0" l="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,0000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00000000000000000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" ll="0"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00v0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000000000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>
+0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,00-0000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00000000000-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0
+
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/2516.svg b/test/ns-afl-svg/2516.svg
new file mode 100644
index 0000000..188f659
--- /dev/null
+++ b/test/ns-afl-svg/2516.svg
@@ -0,0 +1,15 @@
+<svg xmlns="00000000000000000000000000" d="0" viewBox="0 0 1 3" transform="matrix(0,0,0,0 0 0">
+0<defs>
+0<linearGradient x1="0" y1="0" x2="0" y2="0" d="0">
+0<sp f="0" stop-color="0" p-t0="0"/>
+0<o0 et="0" p-c="0" sy="0"/>
+0<sp of="0" or="0" st="0"/>
+0</linearGradient>
+0</defs>
+0<g transform="scale(9)">
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="#000000"/>
+0<rect w="0" height="0" rx="0" ry="0" x="0" y="0" fill="#000000"/>
+0<rect width="0" height="0" rx="0" ry="0" x="0" y="0" fill="u0s00ema000ar0000"/>
+0<path fill="none" stroke="#000" stroke-width="6" d="M0 0A0 0 0 0 0 0,0A0 0 0 0 0 0 00z" transform="matrix(0,0,0,0,0,0"/>
+0<rect fill="#000" stroke="none" width="0" height="0" x="0" y="0" transform="matrix(0..0-0..0,0,0"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2517.svg b/test/ns-afl-svg/2517.svg
new file mode 100644
index 0000000..ba2fa92
--- /dev/null
+++ b/test/ns-afl-svg/2517.svg
@@ -0,0 +1,75 @@
+<svg xmlns="0000000000000000000000000000000" fill="url(#0)000" viewBox="0 0 1 1">0
+<a xmlns:xlink="0000" xlink:f="0" xlink:title="0">0<path d="M0000 0c000 000-00 000-000 000-00-00-00-000 000-0000-00-0-0000-00-000-000000000000000000 0000"
+transform="translate(0,0) scale(0.0.000"/>0<ellipse rx="2" ry="1" transform="rotate(0) translate(0,0000)"
+fill="#000" t="0"/>0<ellipse rx="3" ry="2" transform="rotate(000) " fill="#000"
+t="0"/>0</a>0<a xmlns:xlink="http" xlink:href="0" xlink:title="0">
+0<path d="0000000000000000000000000000000000000000"
+m="0"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0.00.0)"
+fill="#000" t="0"/>0<ellipse rx="3" ry="2" transform="rotate(000) translate(00,00)" fill="#000"
+p="0"/>0</a>0<a xmlns:xlink="link" xlink:href="0" xlink:title="0">
+0<path d="00000000000000000000000000000000"
+fill="#000" i="0"/>0<ellipse rx="5" ry="2" transform="rotate(000) " fill="#000"
+o="0"/>0</a>0<a xmlns:xlink="http" xlink:href="0" xlink:title="0">
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000"
+t="0"/>0<ellipse rx="2" ry="2" transform="rotate(000) translate(00,00)" fill="#000"
+py="0"/>0</a>0<a xmlns:xlink="link" xlink:href="0" xlink:title="0">
+0<path d="0000000000000000000000000000000000000000000000"
+transform="translate(0,000) scale(0.0.000"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0.000.0)"
+fill="#000" t="0"/>0<ellipse rx="3" ry="2" transform="rotate(000) " fill="#000"
+t="0"/>0</a>0<a xmlns:xlink="http" xlink:href="0" xlink:title="0">
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000"
+m="0"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0.000.0)"
+fill="#000" t="0"/>0<ellipse rx="3" ry="2" transform="rotate(000) translate(00,00)" fill="#000"
+opy="0"/>0</a>0<a xmlns:xlink="link" xlink:href="0" xlink:title="0">
+0<path d="0000000000000000000000000000000000000000"
+fill="#000" ity="0"/>0<ellipse rx="5" ry="2" transform="rotate(000) " fill="#000"
+oty="0"/>0</a>0<a xmlns:xlink="http" xlink:href="0" xlink:title="0">
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000"
+t="0"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0..0)"
+fill="#000" ity="0"/>0<ellipse rx="5" ry="2" transform="rotate(000) translate(00,00)" fill="#000"
+opy="0"/>0</a>0<a xmlns:xlink="link" xlink:href="0" xlink:title="0">0
+0
+<ellipse rx="5" ry="2" transform="rotate(000) translate(00,00)" fill="#000"
+opy="0"/>0</a>0<a xmlns:xlink="link" xlink:href="0" xlink:title="0">
+0<path d="0000000000000000000000000000000000000000000000"
+transform="translate(0,000) scale(0.0.000"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0.000.0)"
+fill="#000" ity="0"/>0<ellipse rx="3" ry="2" transform="rotate(000) " fill="#000"
+oty="0"/>0</a>0<a xmlns:xlink="http" xlink:href="0" xlink:title="0">
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000"
+m="0"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0.000.0)"
+fill="#000" ity="0"/>0<ellipse rx="3" ry="2" transform="rotate(000) translate(00,00)" fill="#000"
+opy="0"/>0</a>0<a xmlns:xlink="link" xlink:href="0" xlink:title="0">
+0<path d="0000000000000000000000000000000000000000"
+fill="#000" ity="0"/>0<ellipse rx="5" ry="2" transform="rotate(000) " fill="#000"
+oty="0"/>0</a>0<a xmlns:xlink="hatp" xlink:href="0" xlink:title="0">
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000"
+t="0"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0..0)"
+fill="#000" ity="0"/>0<ellipse rx="5" ry="2" transform="rotate(000) translate(00,00)" fill="#000"
+opy="0"/>0</a>0<a xmlns:xlink="link" xlink:href="0" xlink:title="0">
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
+transform="translate(0,000) scale(0.0.000"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0..0)"
+fill="#000" ity="0"/>0<ellipse rx="5" ry="2" transform="rotate(000) translate(00,00)" fill="#000"
+oty="0"/>0</a>0<a xmlns:xlink="http" xlink:href="0" xlink:title="0">
+0<path d="0000000000000000000"
+transform="translate(0,000) scale(0000,00"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0..0)"
+fill="#000" ity="0"/>0<ellipse rx="5" ry="2" transform="rotate(000) translate(00,00)" fill="#000"
+ity="0"/>0</a>0<a xmlns:xlink="k" xlink:href="0" xlink:title="0">
+0<path d="M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,000a00,0 00,0,0 0000,000a00,0 00,0,0 00,00" fill="none" stroke="#000" stroke-width="2"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000"/>
+0<circle r="1" cx="0" cy="0" fill="0"/>0<ellipse rx="5" ry="2" transform="rotate(000) translate(00,00)" fill="#000"
+opy="0"/>0</a>0<a xmlns:xlink="link" xlink:href="0" xlink:title="0">0
+0
+<ellipse rx="5" ry="2" transform="rotate(000) translate(00,00)" fill="#000"
+opy="0"/>0</a>0<a xmlns:xlink="link" xlink:href="0" xlink:title="0">
+0<path d="0000000000000000000000000000000000000000000000"
+transform="translate(0,000) scale(0.0.000"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0.000.0)"
+fill="#000" ity="0"/>0<ellipse rx="3" ry="2" transform="rotate(000) " fill="#000"
+oty="0"/>0</a>0<a xmlns:xlink="http" xlink:href="0" xlink:title="0">
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000"
+m="0"/>0<ellipse rx="2" ry="1" transform="rotate(000) translate(0.000.0)"
+fill="#000" ity="0"/>0<ellipse rx="3" ry="2" transform="rotate(000) translate(00,00)" fill="#000"
+opy="0"/>0</a>0<a xmlns:xlink="link" xlink:href="0" xlink:title="0">
+0<path d="000000000000000000000000000000000000000"
+fill="#000" ity="0"/>0<ellipse rx="5" ry="2" transform="rotate(000) " fill="#000"
+oty="0"/>0</a>0<a xmlns:xlink="hatp" xlink:href="0" xlink:title="0">
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000"/>0</a>0</svg>
diff --git a/test/ns-afl-svg/2518.svg b/test/ns-afl-svg/2518.svg
new file mode 100644
index 0000000..feb74f2
--- /dev/null
+++ b/test/ns-afl-svg/2518.svg
@@ -0,0 +1,39 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="ww0w00otp://www0w00rgww0w00rg/0000/svg">
+0<style type="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="=" cy="cm" r="1" style="fill:r0d0" wrorm="0"/>0<circle cx="cm" cy="0" r="D" style="stroke:b0t00blu000id000000" transform="0" wrorm="0"/>
+0<circle cx="cm" cy="0" r="D" style="stroke:b0t00blu000id000000" transform="translate(0,0)"/>
+0
+0</g>0
+0<style type="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="=" cy="cm" r="1" style="fill:r0d0" wrorm="0"/>
+0<circle cx="cm" cy="0" r="D" style="stroke:b0t00blu000id000000" transform="0" wrorm="0"/>
+0
+<svg xmlns="ww0w00otp://www0w00rgww0w00rg/0000/svg">
+0<style type="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="=" cy="cm" r="1" style="fill:r0d0" wrorm="0"/>0<circle cx="cm" cy="cm" r="D" style="stroke:b0t00blu000id000000" transform="0" wrorm="0"/>
+0<circle cx="cm" cy="cm" r="D" style="stroke:b0t00blu000id000000" transform="translate(0,0)"/>
+0
+0</g>
+0
+0<style type="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="=" cy="cm" r="1" style="fill:r0d0" wrorm="0"/>
+0<circle cx="cm" cy="cm" r="D" style="stroke:b0t00blu000id000000" transform="0" wrorm="0"/>
+0<circle cx="cm" cy="cm" r="D" style="stroke:b0t00blu000id000000" transform="translate(0,0)"/>
+0
+0</g>0</svg>0<circle cx="cm" cy="cm" r="D" style="stroke:b0t00blu000id000000" transform="translate(0,0)"/>
+0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2519.svg b/test/ns-afl-svg/2519.svg
new file mode 100644
index 0000000..4087532
--- /dev/null
+++ b/test/ns-afl-svg/2519.svg
@@ -0,0 +1,57 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="000" width="0" height="5" id="0" sodipodi:ion="0" inkscape:von="0" sodipodi:docname="0" inkscape:ut_e="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<fr inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0</defs>0
+0
+0
+0
+0
+0
+0
+0
+0
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" ip-path="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke: i0c00cle000on0" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0
+0
+0<rect style="0" id="0" wd="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" ip-path="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke: i0c00cle000on0" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0
+0
+0<rect style="stroke: i0c00cle000on0" id="0" wd="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2520.svg b/test/ns-afl-svg/2520.svg
new file mode 100644
index 0000000..06bfe18
--- /dev/null
+++ b/test/ns-afl-svg/2520.svg
Binary files differ
diff --git a/test/ns-afl-svg/2521.svg b/test/ns-afl-svg/2521.svg
new file mode 100644
index 0000000..58f5346
--- /dev/null
+++ b/test/ns-afl-svg/2521.svg
@@ -0,0 +1,6 @@
+<svg viewBcx='0' xmlns='00'>
+0<path d='M00,00c00,0-0-0,0-0l00,00000+0000000000000000000000000000000000000000000000000000000000000000000000000000000000000' fill='s0l00ack'/>
+0
+0<path d='M00,0000,00,00,0c000,000,00000' fill='s0l00ack'/>
+0
+0<path d='M00,00c00,0-0-0,0-0l00,0000-+000000,00000,000000,00000000000000,0000000000000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0000,00,00,00000,000,00000' fill='s0l00ack'/></svg>
diff --git a/test/ns-afl-svg/2522.svg b/test/ns-afl-svg/2522.svg
new file mode 100644
index 0000000..d2743a3
--- /dev/null
+++ b/test/ns-afl-svg/2522.svg
@@ -0,0 +1,10 @@
+<s w="0" Box="0">
+0<g xmlns="0" Box="0">
+0<ath d="0" stroke="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" y="0" font-siox="0">
+0<vg xmlns="00t00000000000000000000000" Box="0">
+0<path d="0" stroke="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" t-ar="0"><![CDATA[0]]><![CDATA[0]]><![CDATA[0
+0]]><![CDATA[0
diff --git a/test/ns-afl-svg/2523.svg b/test/ns-afl-svg/2523.svg
new file mode 100644
index 0000000..d5fa4dc
--- /dev/null
+++ b/test/ns-afl-svg/2523.svg
@@ -0,0 +1,145 @@
+<svg xmlns="000000000000000000" ox="0">
+0<path d="0"><![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0
+0<![CDATA[0]]><Ћdefs>
+0
+0<![CDATA[0]]><Ћdefs>
+0<linent rm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<Ћ>0<Ћdefs>
+0<linent rm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><ЋdeЋ>0
+0<![CDATA[0]]><Ћdefs>
+0
+0<![CDATA[0]]><Ћdefs>
+0<li id="0" rm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0
+0<![CDATA[0]]>0
+0<li id="0" gradienrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0<![CDATA[0]]>0
+0<defs>
+0<li id="0" tT="0"><![CDATA[0]]><Ћ>0<Ћ>0
+0
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћ>0<И>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0
+0<![CDATA[0]]><Ћdefs>
+0<li id="0" en="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0<![CDATA[0]]>0
+0<defs>
+0<liRradient id="0" sform="0"><![CDATA[0]]><Ћ>0<Ћ>0<li id="0" genrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]
+0]]><Ћdefs>
+0
+0<![CDATA[0]]><Ћdefs>
+0<li id="0" genrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0<![CDATA[0]]>0
+0<defs>
+0<liRradient id="0" sform="0"><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0
+0<![CDATA[0]]><Ћdefs>
+0<li id="0" genrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0
+0<![CDATA[0]]><Ћdefs>
+0<li id="0" grarm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0<![CDATA[0]]><Ћdefs>
+0<linent nrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<Ћ>0<Ћdefs>
+0<linent nrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><ЋdeЋ>0
+0<![CDATA[0]]><Ћdefs>
+0
+0<![CDATA[0]]><Ћdefs>
+0<li id="0" genrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0
+0<![CDATA[0]]>0
+0<li id="0" gradienrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0<![CDATA[0]]>0
+0<defs>
+0<li id="0" gentT="0"><![CDATA[0]]><Ћ>0<Ћ>0
+0
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћ>0<И>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0
+0<![CDATA[0]]><Ћdefs>
+0<li id="0" genrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0<![CDATA[0]]>0
+0<defs>
+0<liRradient id="0" sform="0"><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0
+0<![CDATA[0]]><Ћdefs>
+0<li id="0" genrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0
+0<![CDATA[0]]><Ћdefs>
+0<li id="0" grarm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ћdefs>
+0<![CDATA[0]]><Ћdefs>
+0<linent nrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<Ћ>0<Ћdefs>
+0<linent nrm="0">
+0<st><![CDATA[0]]><Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0<Ћ>0
+0<![CDATA[0]]><Ð0><![CDATA[0]]><Ћ>0
+]]> \ No newline at end of file
diff --git a/test/ns-afl-svg/2524.svg b/test/ns-afl-svg/2524.svg
new file mode 100644
index 0000000..74ebae2
--- /dev/null
+++ b/test/ns-afl-svg/2524.svg
@@ -0,0 +1,19 @@
+<svg Ãs="0" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0,0v0l0,00h00v" fill="#000"/>0<![CDATA[0]]>0
+0<path d="000,0,00" fill="q0n&lt;0"/>0
+0<path d=",M0,0h0l0,0v0l0,0h0v" fill="#000"/>0<![CDATA[0]]>0
+0<path d="00000000" fill="q0n&lt;0"/>0
+0<path d="0"/>0<![CDATA[0]]>0
+0<path d="0,000,00" fill="q0n&lt;0"/>0
+0<path d="M0,0h0l0,0v0l0,0h0H" fill="#000"/>0<![CDATA[0]]>0
+0<path d="M00,0,00" fill="q0n&lt;0"/>0
+0<path d="0"/>0<![CDATA[0]]>0
+0<path d="M00,0,00" fill="q0n&lt;0"/>0
+0<path d="M0,0h0l0,0v0l0,0h0v" fill="#000"/>0<![CDATA[0]]>0
+0<path d="00000000" fill="q0n&lt;0"/>0
+0<path d=",,M0,0h0l0,0v0l0,0h0v" fill="#000"/>0<![CDATA[0]]>0
+0<path d="00000000" fill="q0n&lt;0"/>0
+0<path d="0"/>0<![CDATA[0]]>0
+0<path d="0,000,00" fill="q0n&lt;0"/>0
+0<path d="M0,0h0l0,0v0l0,0h0H" fill="#000"/>0<![CDATA[0]]>0<![CDATA[0]]]]>0
+</svg>
diff --git a/test/ns-afl-svg/2525.svg b/test/ns-afl-svg/2525.svg
new file mode 100644
index 0000000..379b74a
--- /dev/null
+++ b/test/ns-afl-svg/2525.svg
@@ -0,0 +1,410 @@
+<svg w="0">
+0<defs>0<linearGradient id="pyYellow" gra_ieorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>0
+0
+0<stop stop-color="f0b0" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="000" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stVp stop-color="0" et="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient id="0" gra_m="0">
+0<sdop stop-color="0" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="url(00"/>
+0<path d="0" of="0"/>
+0
+0
+0<stop stolor="0" of="0"/>
+0
+0<stop stopor="0" of="0"/>
+0
+0
+0<stop r="0" offset="0"/>
+0
+0<stop r="0" offset="0"/>
+0<stop or="0" et="0"/>
+0
+0
+0<stop sr="0" offset="0"/>
+0
+0<stop sr="0" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="0"/>0
+0<circle r="0" cx="0"/><stop st="0" et="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop sr="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c000,00,0,00-0,00000000000000"/>0
+0<circle r="0" cx="0"/>
+0<path d="00000000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="0000000000000,0,0000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,10000,0
+0,0000" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" ky="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="000,00000000,00"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-0000-000 00-00-00 00-00 000-00 0000-00 00-0-00l00,000" fill="#000000"/>
+0<path d="0000,00000,00,0,0000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,0000" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow"/>0
+0
+0<circle r="z" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-00000,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-6-000000000070000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow"/>0
+0<circle r="4" cx="0" cy=")"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fWll="0"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,000-00l0-00c0-0,0-00,-00100000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,10-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,004-00l0-00c0-0,0-00,-00100.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,00..000,00000000 000000,0000000000C0000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0004" style="fill: url(#r0000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,02-12l20,0c0,0,00-0,00-10l0-0000,0c0,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,03-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-20,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,02-12l20,0c0,0,00-0,00-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2526.svg b/test/ns-afl-svg/2526.svg
new file mode 100644
index 0000000..7ae6f54
--- /dev/null
+++ b/test/ns-afl-svg/2526.svg
@@ -0,0 +1,49 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" ra_ieorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<xtop stolor="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<padh d="0"/>0
+0<circle r="4" cx=")"/>
+0<path d="000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<patj d="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,00000000000000000000000000000000c0,00-0,00-00,00l000,0l0,00000000000000000000000=00000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="00000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c097-8,13-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c000000000000000000000000000000000000000,000,000M000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,0000000X,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/2527.svg b/test/ns-afl-svg/2527.svg
new file mode 100644
index 0000000..98cccbd
--- /dev/null
+++ b/test/ns-afl-svg/2527.svg
@@ -0,0 +1 @@
+<svg width="0" height="0" id="0" y="0"><g><g><pÃh fille="0" fill="0"/>0<g><g><pÃh fille="0" fill="0"/></g><g width="0" height="0" id="0" y="0"><g><g><pÃh fill="0" ll="0"/></g><0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2528.svg b/test/ns-afl-svg/2528.svg
new file mode 100644
index 0000000..aad0868
--- /dev/null
+++ b/test/ns-afl-svg/2528.svg
@@ -0,0 +1,126 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='red'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='1' fill='black'/>0<circle cx='0' cy='0' r='5' f='0'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='p0u0'/>">]><svg width="5px" height="0" n="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" he="0" fill="none" stroke="b0u0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g m="0">&Smile;</g>0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<g m="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&Viewport2;</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg t="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg ro="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg Ratio="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg prp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000, +)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg ptRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg prox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport2;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport2;
+0<svg ctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg ptRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg p="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport2;
+0<svg preht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg p="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&e;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport2;
+0<svg prbectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" vight="0">&Smile;</svg></g>
+0<g transform="translate(000"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg preserox="0" width="0" BOx="0"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg Aso="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg prtRaTio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2529.svg b/test/ns-afl-svg/2529.svg
new file mode 100644
index 0000000..869e58f
--- /dev/null
+++ b/test/ns-afl-svg/2529.svg
@@ -0,0 +1,8 @@
+<?l?>
+<!DOCTYPE s00 PUBLIC "0" "0">
+<svg xmlns="0000000000">
+0<xmlns e="">0
+0<xmlns>
+0
+0
+0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2530.svg b/test/ns-afl-svg/2530.svg
new file mode 100644
index 0000000..4a75843
--- /dev/null
+++ b/test/ns-afl-svg/2530.svg
@@ -0,0 +1,69 @@
+<?l?><!DOCTYPE g PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='#' height='0' fill='black' stroke='red'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='!' r='1' fill='yellow'/>0<circle cx='0' cy='0' r='5' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M0 0A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='h0n0' stroke='h0u0'/>">]>
+<svg width="px" hSight="0" ion="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="b0u0"/>
+0<g font-size="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&Viewport2;</g>
+0<g id="0" transform="translate(0 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" heijht="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preatio="0" viewBox="0 0 3 4"
+width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&V;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2531.svg b/test/ns-afl-svg/2531.svg
new file mode 100644
index 0000000..c388634
--- /dev/null
+++ b/test/ns-afl-svg/2531.svg
@@ -0,0 +1,359 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>0
+0<stop stop-color="rgb00llo00"/>0
+0<i r="0" cx="0" y="0" fill="0"/>
+0<circle r="0" cx="0" y="0" offset="0"/>
+0<stop p-r="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c000,0-0,0000,00,00000000,0c000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="0"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="000000000000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy=")"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M70,80c090-0,00-00,124,50v0" fill="url(#pyYellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0000000000000000000000000M00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0004" style="fill: url(#000000" fill="url(#000000"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M70,80c090-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M70,80c090-0,00-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c09700000-0,0,00,0,00,00c000000000000000000000000000000000000,0000000,0000" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00000000,000000,0000" fill="url(#000000)"/>
+0<pAth d="M00,00c0,000,00-00,000-00000000000,0000,000000000000000,000000000000=00,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M700,000c0,00,0,00-2,40l-52-170c0,0,0-00300 14-49-00 00-00 000-59 120
+000 000-139 000-80-40-000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" l="0"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,000-00l0-00c0-0,0-00,-04000.00000000.000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,120,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,000-00l0-02c0-0,0-00,-04000.00000000.000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" y="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,120,50v1" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,00000,00,0,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" y="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" y="0" fill="#00:"/>0
+0<path d="M00,80c090-0,00-20,100-13l0-20c0-0,0-12,10-00l20,0c0,0,00-0,10-15l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-20,020-00l0-02c0-0,0-00,-04000.00000000.000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00000"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" y="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,80c090-0,00-20,100-13l0-20c0-0,0-12,10-00l20,0c0,0,00-0,10-15l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Y="0" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" y="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M70,80c090-0,10-00,124,50v1" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2532.svg b/test/ns-afl-svg/2532.svg
new file mode 100644
index 0000000..e45dfb3
--- /dev/null
+++ b/test/ns-afl-svg/2532.svg
@@ -0,0 +1,8 @@
+<svg xmlns="000000000" viewBox="0 0 0 0">0<path d="00" stroke="#000" fill="p0r0"/>0
+0<path d="000,0000" stroke="#000" fill="p0n0"/>0
+0
+0<text x="0" y="0" font-size="0" l="0" t-r="0"><![CDATA[0]]></text>0
+0<path d="00" stroke="#000" fill="p0r0"/>0
+0<path d="00000,0000" stroke="#000" fill="p0n0"/>0
+0
+0<text x="0" y="0" font-size="0" fl="0" xt-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2533.svg b/test/ns-afl-svg/2533.svg
new file mode 100644
index 0000000..578d5d3
--- /dev/null
+++ b/test/ns-afl-svg/2533.svg
@@ -0,0 +1,380 @@
+<svg s="0" viewBox="0 0 0 0">
+0<defs>0<linearGradient id="pyYellow" rm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>0<stop stop-color="u0s00sch000es" offset="0"/>
+0</linearGradient>
+0
+0</defs>0
+0<path d="000000,0000000000000000000000000000000000000000,000,00000,000000,0000,0000,0000,0000,00000,0000,00000000000000000,0000,0000000000,000,0,0000000000000000000000000000,000000,000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" id="0000" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000000"/>
+0<path d="M00,00c090-0,10-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" cx="0" id="0000" ye="0" fill="url(#0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,000000000,L0,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-000000000070000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-000000000070000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0l0,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00)"/>
+0<path d="M00,00c097-0,00-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0l0,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,00"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx=")"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c097-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#00)"/>
+0<path d="M00,00000000,?0000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,10-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="#"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,120-00l0-00c0-0,0-00,02-00l20,0c0,0,00-0,00-10l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c097-0,00-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c097-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-20000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,120-00l0-00c0-0,0-00,02-00l20,0c0,0,00-0,00-10l0-00l0,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#000000000"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2534.svg b/test/ns-afl-svg/2534.svg
new file mode 100644
index 0000000..15f8d11
--- /dev/null
+++ b/test/ns-afl-svg/2534.svg
@@ -0,0 +1,379 @@
+<svg Ãs="0" fill="url(#pyYellow)" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" m="0">
+0<stop op="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset=".4"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" et="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0,0-0,00-01,0ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ0" fill="url(#pyYellow)"/>0
+0<cirCle r="0" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: 000" fill="url000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,02-00l04,0c0,0,00-0,04-00l0-0000)"/>
+0<path d="M00,00c007-0,13-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#00000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000000000-00l000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-2,00l-02-000c00000000" fill="u0e0"/>
+0<path d="M00,00c0000000000000,000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#00000)"/>
+0<path d="00000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000c00000000000000000000000000000000M000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-00c0-0,0-00,02-00l04,00000000c00000000" fill="u0e0"/>
+0<path d="M00,00c0,00-030-00-60.870000.0000000000000000000000000000000000.0000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="M00,00c0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="00000000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#00000"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c00000,0000000000"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,0000000000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,024-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-00l0-00l9,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,6-00,-00108000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00000,00000,00000000000c000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,6-00,-00103.600000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#000e)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,124-00l0-00c0-0,0-00,02-00l00,0c0,0,00-0,04-10l0-00l9,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000,0000000000000000000,000000,00000l00000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000ac000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-10l0-00l9,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,124-00l0-00c0-0,0-00,10-00l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#r0000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,6-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000w)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fx="0" cy="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,000000000000 000000,00000000000000000000,0000000000000000,000000000000000000000,000M000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,0000000-00l00000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,00-00,124-00l0-00c0-7,0-00,10-00l24,0c0,0,00-0,14-10l0-10l9,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-8,00-00,100-00l0-20c000,0000,00000000,0c0,0,0000,000000000000,000,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-8,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/2535.svg b/test/ns-afl-svg/2535.svg
new file mode 100644
index 0000000..7edc697
--- /dev/null
+++ b/test/ns-afl-svg/2535.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:r0d0 stroke:black;stroke-width:001cm" transform="translate(0"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:blue;stroke:black;stroke-width:1cm" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="H" style="fill:g0e00oke000ac0;stroke-width:0cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2536.svg b/test/ns-afl-svg/2536.svg
new file mode 100644
index 0000000..5b97b67
--- /dev/null
+++ b/test/ns-afl-svg/2536.svg
@@ -0,0 +1,13 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="0" rm="0">
+0<sp t-olor="0" et="0"/>
+0<op p-r="0" offset="0"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(0)">
+0<stop stop-color="rgb0000000000" offset="0"/>
+0<stop top-colwr="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c000000000000000,0000,00,00000,00,0000,000000000000000000000000000000000000000000000" fill="url(#pyBlue)"/>
+0<path d="M00,000l0,00l00,0c00,0-00-0-00-00c0-00,0-00,00-00l00,0l0-0l000,0l0-0l0,0z M00,00v0" fill="url(#pyBlue)"/>
+0<path d="M00,00c0,000,00000,00000000000000000000000000000,000000000000000000000000000000000000000000000000,000000000000,0c0,00,00,0000,0000,00000,000000,000,000" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2537.svg b/test/ns-afl-svg/2537.svg
new file mode 100644
index 0000000..2fc713f
--- /dev/null
+++ b/test/ns-afl-svg/2537.svg
@@ -0,0 +1,17 @@
+<svg ÃÉ="0">
+0<defs>
+0<linearGradient id="0" gradientTransform="0">
+0<stop stop-color="0" offset="0"/>
+0<stop stop-color="0" offset="0"/>
+0</linearGradient>
+0<linearGradient id="0" gradientTransform="0">
+0<stop stop-color="0" offset="0"/>
+0<stop stop-color="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0" fill="0"/>
+0<pa ÃtÉ="0">
+0<defs>0
+
+0<cTrcle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2538.svg b/test/ns-afl-svg/2538.svg
new file mode 100644
index 0000000..65ff45e
--- /dev/null
+++ b/test/ns-afl-svg/2538.svg
@@ -0,0 +1,230 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gra_ieorm="0">
+0<stop stop-color="v0e0" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>0
+0
+0<stop stop-color="#000" offset=".4" cy="0" ll="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="0" cx=")"/>
+0<path d="0000000000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="000,0000000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,0000000000c0,0,0000000000-00-00 0000000,0000000000000000,0000000000000000,0000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fl="0"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-20,104-00l0-00c0-0,0-00,10-12l-4,0c0,0,00-0,14-10l0-00l9,0c00000,00000,00l00000,000,0000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-0000000000000,0000000,000000000000000,00000000000000000000000000000000000000,0000000000C000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000-00 000-00 0000-00 000-000000000 000000,00000000000000000=00,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c0,0000,0000000000c0,0,0000000000000000000000000000000000000000000000000000000000,00000000000000000000,00000000,0000,00000000,000,0,0000,000000000000,000,0,000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,0000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-04-600000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<ciUCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-20,004-00l0-20c0-0,6-02,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00000,00000,00000000000c000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx=")"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,000000000000000c000,0000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c090-0,10-20,124-00l0-20c0-0,0-12,10-10l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" il="0"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" ill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2539.svg b/test/ns-afl-svg/2539.svg
new file mode 100644
index 0000000..14d7ae6
--- /dev/null
+++ b/test/ns-afl-svg/2539.svg
@@ -0,0 +1,12 @@
+<svg xmlns="000000000000000000" xmlns:xlin0="0" viewBox="0 0 0 0">
+0<radialGradient d="0" x="0" c="0" r="0" grntUnits="0"><stop o="0" stop-c="0"/><stop ot="0"/></radialGradient>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" s="0"><stop ot="0" stop-c="0"/><stop ot="0"/></radialGradient>
+0<path d="000000"/>
+0<patH d="M00,000,000:00000000000000000000000000000000000000000000000000000,00" id="0" fill="c0c00cme00"/>
+0<patH d="M0000,00000000000000,000" fill="c0c00cme00"/>
+0<patH d="0000000000000000,0000000000000000000000000000000000000000000000000000000,0000000,00000,00000,00" id="0" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,000,0,000,000000,00000,00000,0000000,00000,00000,00" id="0" fill="c0c00cme00"/>
+0<patH d="M00,000,000:0000,00000,0000000,00000,00000,0000000,00000,00000,00" id="0" fill="c0c00cle00"/>
+0<use xlin0:href="0" t="0"/>
+0<use ef="0" m="0"/>0</svg>
diff --git a/test/ns-afl-svg/2540.svg b/test/ns-afl-svg/2540.svg
new file mode 100644
index 0000000..b812b35
--- /dev/null
+++ b/test/ns-afl-svg/2540.svg
@@ -0,0 +1,63 @@
+<?l?>
+<svg si="0" xmlns="00000000000000000000000000" xmlns:k="0" width="0" height="0" style="0" on="0">
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g d="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="s0g00ric0"
+stroke-width="3"/>
+0
+0<svg version="0" xmlns="00000000000000000000000000" xmlns:x="0" width="0" height="0" style="0" on="0">
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="s0g00ric0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg>0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/2541.svg b/test/ns-afl-svg/2541.svg
new file mode 100644
index 0000000..f88ad50
--- /dev/null
+++ b/test/ns-afl-svg/2541.svg
@@ -0,0 +1,35 @@
+<?l?>
+<svg version="0" xmlns="0000000000">0<circle d="0" cx="0" cy="0" r="5" stroke="l0s00aic0"
+stroke-width="3"/>0
+0
+0
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g d="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="l0s00aic0"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/2542.svg b/test/ns-afl-svg/2542.svg
new file mode 100644
index 0000000..fb43fcc
--- /dev/null
+++ b/test/ns-afl-svg/2542.svg
@@ -0,0 +1,6 @@
+<svg wth="0" Box="0" stroke-Å0000="0">0<svg xmlns="00000000000000000000000000000000000" xmlns:k="0" xmlns:sodi0odi="00" xmlns:inks000e="000"
+th="0"
+ght="0" id="0" sodi0odi:ion="0" inks000e:vÁ0="0">
+0<defs>
+0<filter inks000e:t̬Ì0="0">
+0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2543.svg b/test/ns-afl-svg/2543.svg
new file mode 100644
index 0000000..8b52b9b
--- /dev/null
+++ b/test/ns-afl-svg/2543.svg
@@ -0,0 +1,4 @@
+<svg xmlns="00000000" ry="0" style="fill: url(#00)stroke: n0n00 stroke-width: " width="g" viewBox="0 0 0 0">
+0<paty d="0" le="0"/>
+0<rect height="0" id="0" rx="0" ry="0" style="fill: url(#00)stroke: n0n00 stroke-width: " width="0"/>
+0<rect height="0" id="0" rx="0" ry="0" style="fill: url(#00)stroke: n0n00 stroke-width: " th="0" x="0" y="0"/>0</svg>
diff --git a/test/ns-afl-svg/2544.svg b/test/ns-afl-svg/2544.svg
new file mode 100644
index 0000000..d4b7e32
--- /dev/null
+++ b/test/ns-afl-svg/2544.svg
@@ -0,0 +1,140 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='black' stroke='red'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='y0d00'/>0<circle Nx='0' cy='0' r='b'/>0<circle cx='0' cy='0' r='1' fill='w0i00'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' otroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='mm' width='0' height='d'
+fill='n0s0' stroke='blue'/>">]><svg width="px" hei="0">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" fill="none" s="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g m="0">&Smile;</g>0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport0;</g>
+0<g d="0" transform="00">0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&i;
+0<svg pro="0" vix="0"
+dth="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg tio="0" Box="0"
+idth="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" m="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&Viewport0;
+0<svg pio="0" vox="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>0</g>
+0<g id="0" transforK="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g m="0"><text y="0">0</text>&Viewport0;
+0<svg preservRtio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg preecight="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg prpectRat="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport0;
+0<svg preserox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg Aio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pso="0" viewBox="0 0 3 4" width="0" heh="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pspectRatiotio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport0;
+0<svg preectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg pro="0" viewBox="0 0 3 4"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preseAsp="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2545.svg b/test/ns-afl-svg/2545.svg
new file mode 100644
index 0000000..56671f0
--- /dev/null
+++ b/test/ns-afl-svg/2545.svg
@@ -0,0 +1,14 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 2 3">0<path d="M00,00a00,0 00,0,0 00,00" fill="none" stroke="#000" stroke-width="2"/>0<a xmlns:xlink="0000" xlink:hf="0" xlink:title="0">0<path d="M00 0c000-00-0-000 00-00-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-000 00-00 00-00 0-00-00-0-0000-00-000-000 0-00 00-00 000-00 00 00 000 00 000-00 00-00 00-00 0000-00 00 0 00-000 00-000-00-00-000-00-000 00-000 000-000 0000-000
+000 0-00 00-000 00-000 0-000 0-000-0-000-0-00-00-00 0000-00 00 0 00-000 00-000-00-00-000-00-000 00-000 000-000 0000-000
+000 0-00 00-000 00-000 0-00Q000000000000000000000000000000000000000-00-000-00-000-00-000-000-000-00-000-000-000-00-000
+00-000 00-000-00-000-00-000-00-000 00-000 00 0 00-0 00-000-00-000 000-00 00-00000000000000000000000000000000 00 0000"
+transform="translate(0,0)scale(0,00"/>0<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+fill="#000" ity="0"/>0<ellipse rx="3" ry="2" transform="rotate(0)translate(0,0)" fill="#000"
+opacity="0"/>0</a>0<a xmlns:xlink="0000" xlink:href="0" xlink:title="0">
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
+transform="translate(0,0)scale(0,0"/>0<ellipse rx="2" ry="1" transform="rotate(0)translate(0,0)"
+fill="#000" ity="0"/>0<ellipse rx="5" ry="2" transform="rotate(0) translate(00,00)" fill="#000"
+opacity="0"/>0</a>0<a xmlns:xlink="0000" xlink:href="0" xlink:title="0">
+0<path d="M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,00a00,0 00,0,0 00,00M00,000a00,0 00,0,0 00,00M00,000a00,0 00,0,0 00,00" fill="none" stroke="#000" stroke-width="2"/>
+0<path d="M00,000l00,00l00-00l000-00zM00,000h00v00h000zM00,000l00,0l00,00l000-0zM00,000l0,00l000,0l00-00z" ll="0"/>
+0<circle r="1" cx="0" cy="0" fill="#000"/>0</a>0</svg>
diff --git a/test/ns-afl-svg/2546.svg b/test/ns-afl-svg/2546.svg
new file mode 100644
index 0000000..b806ce2
--- /dev/null
+++ b/test/ns-afl-svg/2546.svg
@@ -0,0 +1,5 @@
+<svg xmlns="00000000000000000000000000" viewBox="0">
+0<path d="M0,0h00?" stroke="#000" fill="n0n00coe000"/>0
+0<path d="M0,0h0l0,0,,0" stroke="#000" fill="n0n00coe000"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-0v00z" fill="#000"/>0
+0<text x="0" y="0" t-e="0" fill="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2547.svg b/test/ns-afl-svg/2547.svg
new file mode 100644
index 0000000..400432a
--- /dev/null
+++ b/test/ns-afl-svg/2547.svg
@@ -0,0 +1,3 @@
+<?l?>
+<!DOCTYPE s00000000000000000000000000000000000000000000000000000000000000000:000 PUBLIC "0" "0">
+<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2548.svg b/test/ns-afl-svg/2548.svg
new file mode 100644
index 0000000..87658d2
--- /dev/null
+++ b/test/ns-afl-svg/2548.svg
@@ -0,0 +1,10 @@
+<svg xmlns="0000000000" viewBox="0 0 0 0">
+0<path d="0" stroke="#000" fill="p0r0"/>0
+0<path d="00000,00" stroke="#000" fill="p0r0"/>0
+0<path d="00000,0000" stroke="#000" fill="p0n0"/>0<svg xmlns="00" stroke="#000" fill="p0n0"/>0<svg xmlns="00000000000000000000000000" viewBox="0 0 0 0">
+0<path d="00" stroke="#000" fill="p0r0"/>0
+0<path d="00" stroke="#000" fill="p0r0"/>0
+0
+0<text x="0" y="0" t-e="0" fl="0" t-r="0"><![CDATA[0]]></text>0</svg>0
+0
+0<text x="0" y="0" t-e="0" ll="0" t-r="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2549.svg b/test/ns-afl-svg/2549.svg
new file mode 100644
index 0000000..3ac7310
--- /dev/null
+++ b/test/ns-afl-svg/2549.svg
@@ -0,0 +1,21 @@
+<svg xmlns="000000000000000000" viewBox="0 0 5 6">0<path d="M0 00000c00000 00-000 00-00-00,0000" fill="url(#00000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#r0000" fill="url(#00=00"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0000000000000000000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#000000"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: urm00rad000" fill="url(#000000)"/>
+0<path d="M00,00c00000,0000 00-00 000-00 0000-00 000-0000000 000000,00000000000000000000000000000000000000i0000000,0000000,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l000 000000,0000000000C000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: urm00rad000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2550.svg b/test/ns-afl-svg/2550.svg
new file mode 100644
index 0000000..0dbae68
--- /dev/null
+++ b/test/ns-afl-svg/2550.svg
@@ -0,0 +1,62 @@
+<?l?>
+<svg version="0" xmlns="0000000000000000000" xmlns:x="0" width="0" height="0" style="0" n="0">
+0<script pe="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0r00ric000id00"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0
+0
+0
+0<script pe="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g id="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0r00ric000id00"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/2551.svg b/test/ns-afl-svg/2551.svg
new file mode 100644
index 0000000..75fe4fa
--- /dev/null
+++ b/test/ns-afl-svg/2551.svg
@@ -0,0 +1,34 @@
+<svg xmlns="000000000000000000" xmlns:k="0" viewBox="0 0 1 2">
+0<radialGradient io="0" cx="0" cy="0" r="0" ts="0"><top ot="0" op-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,0000 00,00 00,00 00,000C000,00 00,00 00,00" id="0" fill="urc00cle00"/>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" g="0"><stop ot="0" sp-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000C00 00,00 0 00,00" id="0" fill="urc00cle00"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000 00,00 000 00,00" id="0" fill="urc00cle00"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000000000000000000000 000-000 000-00-00-000000000000000000000000000000000000,00000000 000000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000 00,00 00,00 00,00" id="0" fill="urc00cle00"/>
+0
+0<radialGradient id="0" cx="0" cy="0" r="0" g="0"><stop ot="0" sp-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M00,000A000,00 0,0,0 00,000C00,00 00,00 00,000C00 00,00 00,000,00" id="0" fill="urc00cle00"/>
+0
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00c00000,000000,00 00,00 00,00000,00" id="0" fill="urc00cle00"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000000000000000000000 000-000 000-00-00-00-000 000-0000000000000000000000000000000000000000000000000,0000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c0000000000,00000,00" id="0" fill="urc00cle00"/>0
+0<path d="M000,000c0,00,0,00-0,00l0000-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00000,,00000,00000,00" id="0" fill="urc00cle00"/>0
+0<path d="M000,000c0,00,0,00-0,00l0000-00,000-00l000000000000000000000000000000000,000000000000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#00000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2552.svg b/test/ns-afl-svg/2552.svg
new file mode 100644
index 0000000..d1ff40a
--- /dev/null
+++ b/test/ns-afl-svg/2552.svg
@@ -0,0 +1,48 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="000" width="0" height="7" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath i="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,0,0000" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0
+<!--0-->0<svg xmlns="0" xmlns:x="0" xmlns:sodi="0" xmlns:inpe="0" width="0" height="0" id="0" sodi:version="0" inkscape:version="0" sodi:docname="0" inpe:outTut_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inpe:collect="0"
+n="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0" th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0" th="0"
+ht="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inpe:groupmode="0" transform="scale(0,0,0000" id="0">
+0<rect style="fill:red;"
+p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;"
+p-t="0" id="0" width="0" height="0" x="0" y="0" transform="scale(.0.00"/>
+0</svg>0
+0</g>0</svg>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" p-p="0" id="0" width="i"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2553.svg b/test/ns-afl-svg/2553.svg
new file mode 100644
index 0000000..dd41a76
--- /dev/null
+++ b/test/ns-afl-svg/2553.svg
@@ -0,0 +1,11 @@
+<svg xmlns="0t000000" xmlns:xlin0="0" viewBox="0 0 1 2">
+0<radialGradient im="0" cx="0" cy="0" t="0" s="0"><op ot="0" p-c="0"/><op ot="0"/></radialGradient>
+0<path d="M0,000A000,000000,0000,000C000,00000,00000,0000000,00000,00000,00" id="0" fill="d0l00drs00"/>
+0
+0<radialGradient im="0" cx="0" cy="0" t="0" grntUnits="0"><sp ot="0" p-c="0"/><sp ot="0"/></radialGradient>
+0<path d="M0,000A000,0000,0,0000,000,000,00000,00000,000C000,00000,00000,00" id="0" fill="d0l00drs00"/>
+0<use xlin0:hf="0" transform="0"/>0
+0
+0<radialGradient im="0" cx="0" cy="0" t="0" grntUnits="0"><op ot="0" p-c="0"/><op ot="0"/></radialGradient>
+0<path d="M0,000+ 00,000000,0000,0000000,00000,00000,0000000,00000,00000,00" id="0" fill="d0l00drs00"/>
+0<use xlin0:href="0" transform="0"/>0</svg>
diff --git a/test/ns-afl-svg/2554.svg b/test/ns-afl-svg/2554.svg
new file mode 100644
index 0000000..249a704
--- /dev/null
+++ b/test/ns-afl-svg/2554.svg
@@ -0,0 +1,66 @@
+<svg xmlns="0000000000" Box="0" on="0">
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0
+0
+0
+0
+0
+0
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0r00rk"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0
+0
+0<script type="0"><![CDATA[
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0
+0]]></script>
+0<g Qd="0" fill="blue" style="0">
+0<circle id="0" cx="0" cy="0" r="5" stroke="f0r00rk"
+stroke-width="3"/>
+0<text x="0" y="0">0</text>
+0<text x="0" y="0">0</text>
+0</g>0</svg> \ No newline at end of file
diff --git a/test/ns-afl-svg/2555.svg b/test/ns-afl-svg/2555.svg
new file mode 100644
index 0000000..fe73d85
--- /dev/null
+++ b/test/ns-afl-svg/2555.svg
@@ -0,0 +1,28 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:i="0" xmlns:inkscape="00"
+t_n="0">
+0<defs>
+0<filter inkscape:c="0"
+d="0">
+0<feGaussianBlur inkscape:c="0" on="0" id="0"/>0</filter>0
+<clipPath id="0">
+0<rec id="0" x="0" y="0" th="0"
+t="0"/>
+0
+0
+0
+0
+0
+0</clipPath>0
+0</defs>0
+0<g inkscape:labOl="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;"
+p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:p0a00dfill:none" id="0" th="0" height="0" x="0" y="0"/>
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" clip-path="0" id="0" ht="0" x="0" y="0"/>0<rect style="stroke:p0a00dfill:none" id="0" width="0" h="0" height="0" t="0" x="0" y="0"/>0<rect style="stroke:p0a00dfill:none"
+d="0" width="0"
+th="0" height="0" x="G" y="0"/>0<rect style="stroke:p0a00dfill:none" id="0" width="0" h="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2556.svg b/test/ns-afl-svg/2556.svg
new file mode 100644
index 0000000..5ad3a3b
--- /dev/null
+++ b/test/ns-afl-svg/2556.svg
@@ -0,0 +1,15 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="0" grntTransform="0">
+0<stop stop-color="0" offset="0"/>
+0<stop stop-color="0" offset="0"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset=".4"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,00c0-7,9-13,24-13c00,0,20,0,2,000,0000,0000,,00000,0l0,00,0000" fill="url(#pyBlue)"/>
+0<path d="M00,00c0,0-0,00-00,000-,0,00,0,,00,0000,0,000000,000,,000,000,000"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2557.svg b/test/ns-afl-svg/2557.svg
new file mode 100644
index 0000000..3bc6347
--- /dev/null
+++ b/test/ns-afl-svg/2557.svg
@@ -0,0 +1,42 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0&lt;0
+0<path d="M00,00l00" stroke="#000" fill="0000000000000"/>0
+0<path d="000000000"/>0
+0<path d="M00,000000000r0"/>0
+0<path d="M00,000000r0"/>0
+0<path d="l00,00v0000000r0"/>0
+0<path d="M00,0h00l000" fill="n&lt;o00oex000nc0000"/>0
+0<path d="00000000000000" okN="0"/>0
+0<path d="M00,00v0000000r0"/>0
+0<path d="M00,0h00l000" fill="n&lt;o00oex000nc0000"/>0
+0<path d="00000000000000" ststroke="0" fill="n&lt;o00oex000nc0000"/>0
+0<path d="0000"/>0
+0<path d="M00,0h00l000" fill="n&lt;o00oex000nc0000"/>0
+0<path d="0000000000000000000000" etstrokN="0"/>0
+0<path d="M00,0000l00,000000000000000000r0"/>0
+0<path d="M00,0h00l000" fill="n&lt;o00oex000nc0000"/>0
+0<path d="0000000000000000000000" ststroke="0" fill="n&lt;o00oex000nc0000"/>0
+0<path d="M00,0h00l000" ststroke="0" fill="n&lt;o00oex000nc0000"/>0
+0<path d="M00,0000l00,00v00l0000" fill="#000"/>0&lt;0
+0<path d="M00,0h000000l000000" ststroke="0" fill="n&lt;o00oex000nc0000"/>0
+0<path d="M00,0h00l00,00v00l0000" fill="#000"/>0
+0
+0<path d="M00,00v000000r0"/>0
+0<path d="M00,0h0000r0"/>0
+0<path d="l00,00v0000000r0"/>0
+0<path d="M00,0h00l000" fill="n&lt;o00oex000nc0000"/>0
+0<path d="00000000000000" etstrokN="0"/>0
+0<path d="M00,00v0000000r0"/>0
+0<path d="M00,0h00l000" fill="n&lt;o00oex000nc0000"/>0
+0<path d="0000000000000000000000" ststroke="0" fill="n&lt;o00oex000nc0000"/>0
+0<path d="0000"/>0
+0<path d="M00,0h00l000" fill="n&lt;o00oex000nc0000"/>0
+0<path d="0000000000000000000000" etstrokN="0"/>0
+0<path d="M00,0h00l00,00v000000000000000r0"/>0
+0<path d="M00,0h00l000" fill="n&lt;o00oex000nc0000"/>0
+0<path d="0000000000000000000000" ststroke="0" fill="n&lt;o00oex000nc0000"/>0
+0<path d="M00,0h000000l000000" ststroke="0" fill="n&lt;o00oex000nc0000"/>0
+0<path d="M00,0h00l00,00v00l0000" fill="#000"/>0&lt;0
+0<path d="00000000000000000000" ststroke="0" fill="n&lt;o00oex000nc0000"/>0
+0<path d="M00,0h00l00,00v00l0000" fill="#000"/>0
+0<text x="0" y="0" font-size="0" fill="0" text-ar="0"><![CDATA[0]]]]></text>0</svg>
diff --git a/test/ns-afl-svg/2558.svg b/test/ns-afl-svg/2558.svg
new file mode 100644
index 0000000..afec703
--- /dev/null
+++ b/test/ns-afl-svg/2558.svg
@@ -0,0 +1,4 @@
+<svg xmlns="0000000000" xmlns:xlin0="0000" viewBox="0 0 1 2">
+0<radialGradient id="0" cx="0" cy="0" r="0" i0s="0"><stop ot="0" o0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000-c="0"/><stop ot="0"/></radialGradient>
+0<path d="M0,0A0,0 0,0,0 0,0C0,0 0,0 0,0C0,00 00,00 00,000C0,00 00,00 00,00" id="0" fill="l0c00qle00"/>
+0<u0e xlin0:href="0" transform="0"/>0</svg>
diff --git a/test/ns-afl-svg/2559.svg b/test/ns-afl-svg/2559.svg
new file mode 100644
index 0000000..1ff8d6c
--- /dev/null
+++ b/test/ns-afl-svg/2559.svg
@@ -0,0 +1 @@
+<svg xmlns="0000000000" vÊe0000="0"><!--0-->0<!--0--><![CDATA[0]]><!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0<!--0-->0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2560.svg b/test/ns-afl-svg/2560.svg
new file mode 100644
index 0000000..a451fee
--- /dev/null
+++ b/test/ns-afl-svg/2560.svg
@@ -0,0 +1,39 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(0)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0,00000000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-20,000000000500000000000000000000000000000000000000,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,00,0,00,0000,0000,00000,000,00000000000000000000000000000000000000000000000000000000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,000000000000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00000"/>
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,0000000000000000000000000500000000000000000000000000000000000000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L00000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M70,80c090-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000" fill="url(#0000)"/>
+0<path d="M00,00c000-8,00-20,0000000000000000000000000500000000000000000000000000000000000000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000,0000000,0000000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000000000" fill="url(#pyBlue)"/>
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,00000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2561.svg b/test/ns-afl-svg/2561.svg
new file mode 100644
index 0000000..c856aae
--- /dev/null
+++ b/test/ns-afl-svg/2561.svg
@@ -0,0 +1,78 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c00lba000dt0' stroke='r0d'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00'/>0<circle Nx='0' cy='0' r='5' fill='b0a00'/>0<circle cx='0' cy='0' r='1' f='0'/>0<path d='M0 00A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" on="0" xmlns="0000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g ze="0">0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0<g id="0" height="px" on="0" xmlns="00000000000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0"
+fill="none" stroke="blue"/>
+0<g ze="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&r;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0
+0<g><text y="0">0</text>0
+<svg io="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg ro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg redctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg spectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&t0;
+0<svg tio="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg pro="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&t0;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presetRatio="0" viewBox="0 0 3 4" width="F" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg preserRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg presetRatio="0" viewBox="0 0 0 0" width="0" height="0">&S;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&t0;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&t0;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2562.svg b/test/ns-afl-svg/2562.svg
new file mode 100644
index 0000000..59fc2a8
--- /dev/null
+++ b/test/ns-afl-svg/2562.svg
@@ -0,0 +1,17 @@
+<svg vivxmlns='0' d='0' fill='s0l00tax000ns00000' strofill='0' stroke='0'>
+0
+0<style type="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="=" r="1" style="stroke:black;stroke-width:001cm" transform="translate(0"/>0<circle cx="cm" r="1" style="fill:0000000;stroke:f0a0"/>
+0
+0<circle cy="cm" r="1" n="0" trm="0"/>
+0<circle cx="c" cy="cm" r="1" style="fill:0000000;stroke:f0a0"/>
+0<circle cx="c" cy="cm" r="1" style="fill:g0b00nsf000"/>
+0<circle cx="c" cy="cm" r="1" style="fill:g0b00nsf000"/>
+0<circle cy="cm" r="1" n="0" t="0"/>
+0<circle cx="c" cy="cm" r="1" style="fill:0000000;stroke:f0a0"/>
+0<circle cx="c" cy="cm" r="1" style="fill:g0b00nsf000"/>
+0<circle cx="c" cy="cm" r="1" style="fill:0000000;stroke:f0a00;" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2563.svg b/test/ns-afl-svg/2563.svg
new file mode 100644
index 0000000..fe8b949
--- /dev/null
+++ b/test/ns-afl-svg/2563.svg
@@ -0,0 +1,19 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="stroke:black;" m="0"/>
+0<circle cx="cm" cy="0" r="1" style="stroke:r0a00blu0;stroke-width:0*0" transform="translate(0,0)"/>
+0<circle cx="cm" y="0" r="1" style="stroke:black;stroke-width:0cm" transform="translate(0,0)"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="stroke:r0a00blu0;stroke-width:0*0" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" lwransform="0"/>
+0<circle cx="cm" cy="0" r="1" style="stroke:r0a00blu0;stroke-width:0*0" transform="translate(0,0)"/>
+0<circle cx="cm" ty="0" r="1" style="stroke:black;stroke-width:1cm" transform="translate(0,0)"/>
+0
+0<circle cx="cm" cy="cm" r="1" style="stroke:r0a00blu0;stroke-width:0*0" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:black;stroke-width:001cm" e="0" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2564.svg b/test/ns-afl-svg/2564.svg
new file mode 100644
index 0000000..b1c8a60
--- /dev/null
+++ b/test/ns-afl-svg/2564.svg
@@ -0,0 +1,4 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' he='0' fill='black' stroke='red'/>0<g transform='translate(0 0)'>0<circle cx='0' cy='0' r='1' fill='y0l00wel000'/>0<c cx='0' cy='0' r='0' fl='0'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M0 0A0 0 0 0 0 0 0' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY V "">]><svg width="pt" height="px" version="0" xmlns="000000000000000000">
+0<g transform="matrix(0,0,0,0,0,0">
+0&Smile;
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2565.svg b/test/ns-afl-svg/2565.svg
new file mode 100644
index 0000000..bffb031
--- /dev/null
+++ b/test/ns-afl-svg/2565.svg
@@ -0,0 +1,12 @@
+<svg xmlns="000000000000000000" Wx="0">
+0<path d="M0,0h0" fill="v0n0"/>0
+0<path d="M0,0h0h0l0-0v000z" fill="#000"/>0
+0<text x="0" y="0" e="0" fl="0" t-r="0"><![CDATA[0]]></text>
+0<path d="M0,0h0l0,0v0l0,0h0v000z" stroke="#000" fill="v0n0"/>0
+0<path d="0,000,00" stroke="#000" fill="v0n0"/>0
+0<path d="M0,0h0l0,0v0l0,0h0l0-0v00z" fill="#000"/>0
+0<text x="0" y="0" nt-se="0" fl="0" tt-ar="0"><![CDATA[0]]></text>
+0
+0<path d="M0,0h00l00,00v00l000,00h0l0-00v000z" stroke="#000" fill="v0n0"/>0
+0<path d="M00,0h00l00,00v00l000,00h0l0-00v000z" fill="#000"/>0
+0<text x="0" y="0" e="0" fl="0" text-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2566.svg b/test/ns-afl-svg/2566.svg
new file mode 100644
index 0000000..f3fbfb8
--- /dev/null
+++ b/test/ns-afl-svg/2566.svg
@@ -0,0 +1,3 @@
+<svg xmlns="0000000000" ox="0" stroke-width="0">
+0<![CDATA[0]]><Ê‹defs>
+0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2567.svg b/test/ns-afl-svg/2567.svg
new file mode 100644
index 0000000..4e68441
--- /dev/null
+++ b/test/ns-afl-svg/2567.svg
@@ -0,0 +1,69 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0a00' stroke='red'/>0<g transform='translate(0,0)'>0<circle cx='0' cy='0' r='1' fill='y0l00y'/>0<circle Nx='0' cy='0' r='5' fill='b0a00'/>0<circle cx='0' cy='0' r='1' fill='b0a00'/>0<path d='M0 0A00 0 0 0 0 00 00' stroke='b0o00' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" n="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="l0e"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g transform="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&Viewport2;</g>
+0<g id="0" transform="translate(0,0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg io="0" viewBox="0 0 3 4"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&i;
+0<svg ro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&o;
+0<svg io="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg reectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport2;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg io="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" ararm="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg p="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg e="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg o="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&L;
+0<svg resctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&V;
+0<svg p="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg p="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0">
+0<text g="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg p="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preservatio="0" vix="0" gidth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&i;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2568.svg b/test/ns-afl-svg/2568.svg
new file mode 100644
index 0000000..cfb28dc
--- /dev/null
+++ b/test/ns-afl-svg/2568.svg
@@ -0,0 +1,62 @@
+<?l?><!DOCTYPE s00 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0a00hor00'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00w'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<circle cx='0' cy='0' r='5' fill='b0i00'/>0<path d='M0 0A00 0 0 0 0 00 00' stroke='black' otroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='d'
+fill='n0s0' stroke='blue'/>">]><svg width="px" ei="0">
+0<desc></desc>
+0<rect x="0" y="0" width="0" he="0"
+fill="none" se="0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g m="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0000000000000">&V;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport0;</g>
+0<g id="0" transform="00000000000000000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&p;
+0<svg io="0" ox="0"
+th="0" ht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg ro="0" ix="0" ih="0" he="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&p;
+0<svg to="0" Bx="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg tio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg pio="0" vox="0" h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport0;
+0<svg eserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4"
+tO="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg pserveAspectRatio="0" viewBox="0 0 0 0" width="0" height="0">0</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg prerveAspectRatio="0" vie="0" width="0" height="0">&S;</svg></g>
+0<g srm="0"><text y="/">0</text>&V;
+0<svg presveAspectRatio="0" Box="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)000">
+0<text x="0" y="0">0</text>
+0<g><text y=";">0</text>&t;
+0<svg preserAspectRatio="0" viewBox="0 0 3 4" width="0" he="0">&Smile;</svg></g>
+0<g transform="00"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport0;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="/">0</text>&t0;
+0<svg preservepectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00"><text y="0">0</text>&t0;
+0<svg prtRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2569.svg b/test/ns-afl-svg/2569.svg
new file mode 100644
index 0000000..19bbeaf
--- /dev/null
+++ b/test/ns-afl-svg/2569.svg
@@ -0,0 +1,17 @@
+<svg xmlns="0000000000" viewBox="0" stroke-width=" ">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(45)"><stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0<linearGradient id="000000" rm="0">
+0<Zp sr="0" of="0"/>
+0<sp p-c="0" ot="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0" id="0" style="fill: url(#00000z" fill="url(#00000e)"/>
+0<path d="M70,87c9-8,10-20,124,50v1" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000z" fill="url(#00000e)"/>
+0<path d="M0,0c0-0,0-0,0,0v0" fill="url(#00000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2570.svg b/test/ns-afl-svg/2570.svg
new file mode 100644
index 0000000..b370866
--- /dev/null
+++ b/test/ns-afl-svg/2570.svg
@@ -0,0 +1,23 @@
+<svg v='0' xmlns='000' fill='s0q00rer' e='0'>
+0<path d='00,00000' fill='s0b00tax000nc00000' stroke='b0a00'/>
+0<path d='00000000' fill='s0_00tax000nc00000' stroke='b0a00'/>0<path d='0,00000000000000000000000000000000000000000000000000000000000000000000000000,0000,0000000' fill='s0_00tax000nc00000' stroke='b0a00'/>
+0<path d='000,00000,00000,000000000000000000000000000000000000000000000000000000000000000000000' fill='s0_00tax000nc00000' stroke='b0a00'/>0
+0<path d='000,00000,00000,000000,000,0,000,00000000000000000000000000000000000000000000000000000000000000000000000,000,0000,000,00000' fill='s0_00tax000nc00000' stroke='b0a00'/>0
+0<path d='M000-0-00,0-00,00,00-0z' fill='s0b00tax000nc00000' stroke='black'/>0
+0<path d='000,00000,0000,0,0000,0,000000000000000000000000000000000' fill='s0_00tax000nc00000' stroke='b0a00'/>0
+0<path d='M00,00c00, 0000,000000,0c0,0,000,00000000000000000000000000000000000000000000000000000000000000000000000,000,0000,000,00000' fill='s0_00tax000nc00000' stroke='b0a00'/>0
+0<path d='000000,000,0,000000000000000000000000000000000000,,000,0000000,0000,0000000' fill='s0_00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00, 0000,000000,0c0,0,000,0000000000000000000000000000000000000,0000,000,00000' fill='s0_00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00, 0000,000l000000000000000000000000000000000000000000000000000000000000000000000000,00,00,00000,000,0000,000,00000' fill='s0_00tax000nc00000' stroke='black'/>0
+0<path d='M000-0-00,0-00,00,00-0z' fill='s0b00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,0000,0,00c0,0,00,00,00,00000,000,0000,000,00000' fill='s0_00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00, 0000,000000,0c0,0,000,000000,000,0000000,0000,00000000,,000,0000000,0000,00000000,00,00,00000,000,0000,000,00000' fill='s0_00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00, 0000,000000,0c0,0,000,000000,000,00000,0,00,00,00,00000,000,0000,000,00000' fill='s0_00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00, 0000,000000,0c0,0,000,00000,00,000,00000' fill='s0_00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00, 0000,000000,0c0,0,000,000000,000,0000000,0000,00000000,,000,0000000,0000,00000000,00,00,00000,000,0000,000,00000' fill='s0_00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00, 0000,000000,0c0,0,000,000000,000,00000,0,00,00,00,00000,000,0000,000,00000' fill='s0_00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,00000,000000,000,0,M00,00000,00000,000000,000,0,000,000000,000,00000,0,00,00,00,00000,000,0000,000,00000' fill='s0_00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00, 0000,000000,0c0,0,000,00000,00,000,00000' fill='s0_00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00, 0000,000000,0c0,0,000,000000,000,0000000,0000,00000000,,000,0000000,0000,00000000,00,00,00000,000,0000,000,00000' fill='s0_00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00, 0000,000000,0c0,0,000,000000,000,00000,0,00,00,00,00000,000,0000,000,00000' fill='s0_00tax000nc00000' stroke='black'/>0
+0<path d='M00,00c00,00000,000000,0c0,0,00000,000000,000,0,000,000000,000,0000000,0000,00000000,,000,0000000,0000,000000,0000,00000000,,000,0000000,0000,0000000000000000000,000000000,000,0,0,0000,0,00,00,00,00000,000,000000000000000000' fill='s0l00tax000nc00000' stroke='black'/>0</svg>
diff --git a/test/ns-afl-svg/2571.svg b/test/ns-afl-svg/2571.svg
new file mode 100644
index 0000000..66dad7e
--- /dev/null
+++ b/test/ns-afl-svg/2571.svg
@@ -0,0 +1,74 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="000000000000000000" xmlns:k="0" xmlns:sodipodi="00" xmlns:inkscape="000" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:doe="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:ect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" ca="0" width="0" height="0" id="0" n="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<fe inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0" th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0" th="0"
+et="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" ode="0" transform="0" id="0">
+0<rect style="fill:r0f00lba000d;" ip-path="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" ip-path="0"
+d="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0
+0<rect style="fill:r0f00lba000d;" ip-path="0" nd="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue;" ip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>
+0
+0
+0
+0
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<fe inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" ode="0" transform="0" id="0">
+0<rect style="0" ip-path="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0
+0<rect style="fill:r0f00lba000d" ip-path="0" nd="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:blue" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2572.svg b/test/ns-afl-svg/2572.svg
new file mode 100644
index 0000000..cc873c9
--- /dev/null
+++ b/test/ns-afl-svg/2572.svg
@@ -0,0 +1,79 @@
+<svg s="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0
+0<stop stop-color="t0c00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#0000)"/>
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#00000"/>0
+0<circle r="4" cx="0" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c097-8,03-00,100,00v0" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" cy="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#py0ellow"/>0
+0<cirCle r="4" cx="0" e="0" l="0"/>
+0<circle r="" cx="0" i="0" style="fill: 0000000000000"/>
+0<path d="M00,00c090-8,03-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,00L0,0,00,0000,0000,00000000000000000000000000000000000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-04-6-000080000000000000,00000000000000000000,0000000000000000,0000000000000000000" c="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-0000-0M0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<paZh d="0" id="0" e="0"/>
+0<path d="M00,00c090-8,00-20,104,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#00000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,00000-0 0000000000000000000000s00000000000000000000000000000000000000000000000000000000000000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-04-6-000080000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2573.svg b/test/ns-afl-svg/2573.svg
new file mode 100644
index 0000000..a602378
--- /dev/null
+++ b/test/ns-afl-svg/2573.svg
@@ -0,0 +1,50 @@
+<svg w="0" height="0" d="0" y="i">
+0<path d="000,000000000,00" t="0" fill="b0n0"/>0
+0<path d="M00,0h00l00,00v00l0000" fill="b0n0"/>0
+0<text x=")"/>0
+0<circle r="4" x="0" cy="0" fill="000000000000000000000" d="0" style="stroke: 000000000000000000000"/>0
+0<circle r="4" x="0" cy="0" fill="000000000000000000000" d="0" style="stroke: rgb(00000000000000000000000"/>0
+0<circle r="4" x="0" cy="0" fill="000000000000000000000" d="0" style="stroke: rgb(000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0,00,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0,00,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" s="0"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: 00000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0,00,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000,00000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0,00,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0,00,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0,00,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0,00,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0,00,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0,00,00000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0,00,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000,00000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0,00,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0,00,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0,00,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: 00000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(000000000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0,00,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(0,00,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2574.svg b/test/ns-afl-svg/2574.svg
new file mode 100644
index 0000000..01a2634
--- /dev/null
+++ b/test/ns-afl-svg/2574.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="0000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00oke000dt0000000" re="0" transform="translate(0,00)"/>
+0<ciRcle x="0" cy="cm" r="1" style="fill:0stroke:0000000000000" transform=",0000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00oke000dt0000000" transform="translate(000,000)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2575.svg b/test/ns-afl-svg/2575.svg
new file mode 100644
index 0000000..f0784fe
--- /dev/null
+++ b/test/ns-afl-svg/2575.svg
@@ -0,0 +1,5 @@
+<vg xmlns="00000000000000000000000000" Box="0">
+0<path d="0">
+0<pa0h d="0" stroke="0" fill="0"/>0
+0<path d="0" fill="0"/>0
+0<text x="0" y="0" font-size="0" fill="0" t-ar="0"><![CDATA[ \ No newline at end of file
diff --git a/test/ns-afl-svg/2576.svg b/test/ns-afl-svg/2576.svg
new file mode 100644
index 0000000..9e3a1ab
--- /dev/null
+++ b/test/ns-afl-svg/2576.svg
@@ -0,0 +1,31 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M00,00000000000000q0-00,00-00q0-0,0-0q0-0,00-0V000,00-00,00q000,00-00,0M00,0000l00,0l000,00h0000#000" fill="n0n00cse000"/>0
+0<path d="0000000000" stroke="#000" fill="n0n00cse000"/>0
+0<path d="M000
+000l00,00v00l000,0-00,00v00000000000000000?" stroke="#000" fill="n0n00cse000"/>0
+0<path d="0000000000" stroke="#000" fill="n0n00cse000"/>0
+0<path d="M000
+000l00,00v00l000,0-000-0-000-0-00-0-00-0-000-00-00-0-00-00-000-00-000-00-000-000-000-00-0 00-0 00-000-00-000 00-000 00h0000000?" stroke="#000" fill="n0n00cse000"/>0
+0<path d="0000000000" stroke="#000" fill="n0n00cse000"/>0
+0<path d="M000
+000l00,00v00l000,0-000-0-0000,0h00l00,00v00l000,00h0000000?" stroke="#000" fill="n0n00cse000"/>0
+0<path d="0000000000" stroke="#000" fill="n0n00cse000"/>0
+0<path d="M000
+000l00,00v00l000,0-000-0-000-0-00-0-00,00v00l000,00h0000#000" fill="n0n00cse000"/>0
+0<path d="0000000000" stroke="#000" fill="n0n00cse000"/>0
+0<path d="M000
+000l00,00v00l000,0-00,00v00l000,00h0000000?" stroke="#000" fill="n0n00cse000"/>0
+0<path d="0000000000" stroke="#000" fill="n0n00cse000"/>0
+0<path d="M000
+000l00,00v00l0000-000-0-000-0-00-0-00-0-000-00-00-0-00-00-000-00-000-00-000-000-000-00-000-000-000-00-000
+00-000 00-000-00
+000-00-0000000000000000000000000000000000000000000000000000h0000000?" stroke="#000" fill="n0n00cse000"/>0
+0<path d="0000000000" stroke="#000" fill="n0n00cse000"/>0
+0<path d="M000
+000l00,00v00l000,0-000-0-0000,0h00l00,00v00l000,00h0000000?" stroke="#000" fill="n0n00cse000"/>0
+0<path d="0000000000" stroke="#000" fill="n0n00cse000"/>0
+0<path d="M0000-000-00-00-0-00-00-000-00-000-00-000-000-000-00-000-000-000-00-000
+00-000 00-000-00
+000-00-000-00-0000000000000000000000000000000000000000M0000000" fill="url(#00000000)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2577.svg b/test/ns-afl-svg/2577.svg
new file mode 100644
index 0000000..02d22a6
--- /dev/null
+++ b/test/ns-afl-svg/2577.svg
@@ -0,0 +1,375 @@
+<svg s="0" viewBox="0 0 0 0">0<defs>0<linearGradient id="pyYellow" m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>0<stop stop-color="s0g00p" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="0000000000000000000000000000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" y="0" fill="#000"/>
+0
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#00000" fill="url(#00)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0000000000000000000000" fill="url(#00)"/>
+0<pAth d="M00,00c0,000,00-00,000-00000000000000000000000000000000000000000000000000000000000000000000000000000000C000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" f="0"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c000000000000000-00 00-00 000-00 0000-00 000-000 000-00-00-00-000 000-0 000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cp="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000000000000000000000M000000000000000000000" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000000000000000000000000000000000000M000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000000000000000000000000000000000000000M00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#00Y0)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,00"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0
+0<path d="M00,00c0,00000000000-00000000000 000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(00"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="0000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,00"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0000,00000,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fi="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fi="0"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fi="0"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" iill="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,02-00l04,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#00000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fi="0"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" f="0"/>0
+0<circle r="4" _x="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000ac000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="0000" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,100-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,00-10l0-0000,0c0,0,000000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" flll="0"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0000" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,020,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCOe r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#000000000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" f="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2578.svg b/test/ns-afl-svg/2578.svg
new file mode 100644
index 0000000..c75f307
--- /dev/null
+++ b/test/ns-afl-svg/2578.svg
@@ -0,0 +1,14 @@
+<svg xmlns="000000000000000000" viewBod="0">0<path d="M0,0h0l0,0v0l" stroke="#000" fill="o0a00d"/>0
+0<path d="M00,00s0" fill="#000"/>
+0<path d="M0,00l00-0l00,0c000-00-00-00-00-00l00,0l00,0c0,0,0,00,0,00-000000" stroke="#000" fill="o0a00d"/>0
+0<path d="M00,00s0" t="0" fill="o0a00d"/>0
+0<path d="M00,00s0" fill="#000"/>
+0<path d="M0,00l00-0l00,0c000-00-00-00-00-00l00,0l00,0c0,0,0,00,0,00-000000" stroke="#000" fill="o0a00d"/>0
+0
+0<path d="M0,0h0l0,0v00l" stroke="#000" fill="o0a00d"/>0
+0<path d="M00,00s0" fill="#000"/>
+0<path d="M0,00l00-0l00,0c0-00-00-00-00-00l00,0l0000,0c0,0,0,00,0,00-000000" stroke="#000" fill="o0a00d"/>0
+0<path d="M00,00,0" oke="0" fill="o0a00d"/>0
+0<path d="M00,00s0" fill="#000"/>
+0<path d="M0,00l00-0l00,0c0-00-00-00-00-00l00,0l0000,0c0,0,0,00,0,00-000000" stroke="#000" fill="o0a00d"/>0
+0<path d="M00,00l0" fill="000000000000000000000" stroke="#000" SZll="0"/>0<path d="M00,00l0" fill="000000000000000000000" stroke="#000" SZll="0"/>0</svg>
diff --git a/test/ns-afl-svg/2579.svg b/test/ns-afl-svg/2579.svg
new file mode 100644
index 0000000..cee34c7
--- /dev/null
+++ b/test/ns-afl-svg/2579.svg
@@ -0,0 +1,11 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:000;stroke:black;stroke-width:001cm" transform="translate(0,00)"/>
+0<ciRcle x="0" cy="cm" r="1" style="fill:0stroke:0000000000000" transform="0000,0000"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00oke000dt0000000" transform="000000000,0000"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2580.svg b/test/ns-afl-svg/2580.svg
new file mode 100644
index 0000000..bd31985
--- /dev/null
+++ b/test/ns-afl-svg/2580.svg
@@ -0,0 +1,24 @@
+<?l?>
+<!--0-->
+<svg xmlns:c="0" xmlns="00000000000000000000000000" xmlns:k="0" xmlns:sodipodi="0" xmlns:inkscape="00" width="0" height="5" id="0" sodipodi:version="0" inkscape:version="0" sodipodi:docname="0" inkscape:output_extension="0">
+0<defs>
+0<filter inkscape:collect="0" id="0">
+0<feGaussianBlur inkscape:collect="0" on="0" id="0"/>0</filter>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+t="0"/>
+0</clipPath>0
+0<clipPath id="0">
+0<rect id="0" x="0" y="0"
+th="0"
+it="0"/>
+0</clipPath>0
+0</defs>0
+0<g inkscape:label="0" inkscape:groupmode="0" transform="scale(0,2)" id="0">
+0<rect style="fill:red;" p-h="0" id="0" width="0" height="0" x="0" y="0"/>
+0<rect style="stroke:black;fill:none" id="0" width="0" height="0" x="0" y="0"/>0
+0<svg x="0" y="0" width="0" height="0" viewBox="0 0 6 6">
+0<rect style="fill:r0u0;" clip-path="0" id="0" width="0" height="0" x="0" y="0" transform="scale(0,5)"/>
+0</svg>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2581.svg b/test/ns-afl-svg/2581.svg
new file mode 100644
index 0000000..cfdb123
--- /dev/null
+++ b/test/ns-afl-svg/2581.svg
@@ -0,0 +1,14 @@
+<svg xmlns="000000000000000000" id="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient x1=".08" y1=".08" x2=".91" y2=".91" id="0pen0earchg">
+0<stop offset="0" stop-color="#000000" sp-0="0"/>
+0
+0<stop offset="1" stop-color="#000000" y="0"/>
+0</linearGradient>
+0</defs>
+0<g transform="scale(9)">
+0<rect width="0" height="0" r="0" r0="0" x="0" y="0" fill="#000000"/>
+0<rect width="0" t="0" r="0" r0="0" x="0" y="0" fill="#000000"/>
+0<rect width="236" height="236" rx="0" ry="0" x="0" y="0" fill="url(#0pen0earchg)"/>
+0<path fill="none" stroke="#000" stroke-width="6" d="M0 0A0 0 0 0 0 0,0A0 0 0 0 0 0 00z" transform="matrix(0,0,0,6,0,0)"/>
+0<rect fill="#000" stroke="none" width="0" height="0" x="0" y="0" transform="matrix(0..0,0,7,0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2582.svg b/test/ns-afl-svg/2582.svg
new file mode 100644
index 0000000..d77ec0f
--- /dev/null
+++ b/test/ns-afl-svg/2582.svg
@@ -0,0 +1,15 @@
+<svg lns="0" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,00,,,0" ke="0" fill="m&lt;o"/>0
+0
+0
+<svg lns="0" viewBox="" fill="m&lt;o"/>0
+0
+0
+<svg lns="0" viewBox="" fill="m&lt;o"/>0
+0
+0
+<svg lns="0" viewBox="0">
+0<path d="M0,0h0l0,0v0l0,0h0l00-00v0z" stroke="0000" fill="m&lt;o"/>0
+0
+0
+</svg>0</svg>
diff --git a/test/ns-afl-svg/2583.svg b/test/ns-afl-svg/2583.svg
new file mode 100644
index 0000000..bc85ec5
--- /dev/null
+++ b/test/ns-afl-svg/2583.svg
@@ -0,0 +1,2 @@
+<svg viewBox='0 0 6 2' xmlns='00'>
+0<path d='M0,00c00,00000,0000000000000000000000000000,00,00,00000,000,00000' fill='s0l00avl000'/>0</svg>
diff --git a/test/ns-afl-svg/2584.svg b/test/ns-afl-svg/2584.svg
new file mode 100644
index 0000000..25060a3
--- /dev/null
+++ b/test/ns-afl-svg/2584.svg
@@ -0,0 +1,5 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 8">
+0<path d="M0,00c00,0-0,0-0,0c00-0,0-0,0-0c00,0-0,0-0,0c0-0,0-00,0000000000,0c0-0,00-00,0-00c00,0-0,0-0,0c0-0,0-00,00-00c0,0,0-0,0-0c00,0-00,0-00,0l0-0c0-00000000000000000000000000000000000000000000000000,00,0,00,0c0,0,00-0,00-0c0,0,0,0,00,0c0,0,0,0,0,0c0,00,00,0,00,00c0,0,0,0,0,00c00000000000000000,0-0,0-0,0c00,0-0,0-00,0c0,0-000000000000000000,0-00,00l000-0"/>
+0<path fill="#000" d="M00,00l00-0h0v0h00M00,00l00,0l00-0h0l0,0M000,00l00-0c00,0-0,0-0,0c0-0,0-0,0-0h0l0,0c0-0,0-0,0-0c0,0,0,0,0,0l00,0M000,00c0-0,0-0,0-0c0-0,0-0,0-0c0,0,0,0-0,0M000,00c0-0-0-0,0-0h0c0,0,0,0-0,0M000,00l00-0c00,0-0,0-0,0c00,0-0-0,0-0c0,0,0,0,0,0v0c0,0,0-0,0-0c0,0,0,0,0,0l000,00c00-0-0-0-0-0c0,0,0,0,0,0c00,0-0,0-0,0"/>
+0<path fill="#000000" d="M00,00v00c00,0-0,0-0-0c0-0,0-0,0-0c00000000000000000-0,0-0,0-0c0-0,0,0,0,0c00-00,0-00,0-00c00,0-0,0-0,0c0-0,00-0,00,0c0,0-0,0-0,0c0,0,00-0,00-0c0-0,0-0,0,0l0,0c00-0-00,0-00,0c00,0-0,0-0,0l0,0c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0c0-0,0-0-0-0c0-0-0-0,0-0c0,0,0,0,0,0c00,0-0,0,00,0c0,0,0,0,0-0c00,0-0-0-0-0l0,0c0,0,00,0,00,00c0,0,0,0-0,0c0,0,0,0,0,0l0-0l0,0c0,0,0,0,0,0v0c00,0-0,0-0,0c00-0-0-0-00-0c000-0-00-00-00-00c00-0-0-0-0-0c0,0,0,0,0,0c0,0,0,0,0,00l00,0c00,0-0-0-0-0c000,0,0,00,00,00c00-0-0-0-0-0c00,0,00,00,00,00c0,0-0,0-0,0c00,0-00-0-00-0c00-0-00,0-00,0c00-0-00-0-00-0c0,0,0,00,00,00l0,0c00,0-0,0-0,0"/>
+0<path d="M00,00c0,0,00,0,0,0c00,0-0,0-0-0v00m000-0l00,0c0-0,0-0,0-0c0-0,0-0,00-0l0,0c00,0-0,00-0,00c00-0-0-0-0-0m0,00c0-0-0-00,0-00c0,0-0,00,0,00v0c00,0-0,0-0,0c00-0-0-0-0-0c0,0,0,0,0,0c00-0-0-0-0-0m00-00c0-0-0-0,0-0c0,0,0-0,0-0c0,0,0,0,0,0c0,0-0,0-0,0c0,0,0,0,0,0h00c00,0-0-0-0,0c00,0-0,0-0,0c00-0,0-0,0-0c0,0,0-0,0-0"/>0</svg>
diff --git a/test/ns-afl-svg/2585.svg b/test/ns-afl-svg/2585.svg
new file mode 100644
index 0000000..bb396f5
--- /dev/null
+++ b/test/ns-afl-svg/2585.svg
@@ -0,0 +1,8 @@
+<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0,0l0-00z" stroke="#000" fill="n0n00ncl000e"/>0
+0<path d="M0,0h0l0,0v0l0,0l0,0-0" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h0l0-0l0,00l000-00v0z" stroke="#000" fill="n0n00ncl000e"/>0
+0
+0<path d="M00,0h00l00,00v00l000,00h0l0-0l0,00h000l000-00Z00" stroke="#000" fill="n0n00ncl000e"/>0
+0<path d="M00,0h00l00,0l" fill="#000"/>0<![CDATA[0]]></svg>
diff --git a/test/ns-afl-svg/2586.svg b/test/ns-afl-svg/2586.svg
new file mode 100644
index 0000000..2e84053
--- /dev/null
+++ b/test/ns-afl-svg/2586.svg
@@ -0,0 +1,191 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0v0' stroke='m0d'/>0<g transfoorm='0'>0<circle cx='0' cy='0' r='1' fill='y0a00'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M000 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">]><svg width="px" height="30px" ion="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" e="0" fill="none" stroke="b0u0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>
+0<g m="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,0)">&i;</g>
+0<text x="0" y="0">0</text>
+0<g t="0">&Viewport2;</g>
+0<g d="0" transform="translate(0 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0"
+h="0" heé000="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0 0 3 4"
+idth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4"
+h="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0
+0<svg tiv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0<g id="0" transform="translate(0,00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00000"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pspecBox="0" width="0" height="0">&Smile;</svg></g>
+0<g orm="0"><text y="0">0</text>0
+<svg prght="0">&Smile;</svg></g>
+0<g t="0"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" h="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport2;
+0<svg tiv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg presctRatio="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg preservatio="0" viewBox="0 0 3 4" wid_h="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg tiv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 0)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,0)"><text y="0">0</text>&Viewport2;
+0<svg pspecBox="0" width="0" height="0">&Smile;</svg></g>
+0<g orm="0"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(0 0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBoviewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(0 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pspecBox="0" width="0" height="0">&Smile;</svg></g>
+0<g orm="0"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" wid_h="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport2;
+0<svg tiv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pspecBox="0" width="0" heightx="0" wid_h="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport2;
+0<svg tiv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pspecBox="0" width="0" height="0">0
+0&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg prpectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(00 0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g rm="0"><text y="0">0</text>&Viewport2;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pre="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" wid_h="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport2;
+0<svg tiv="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text x="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pspecBox="0" width="0" height="0">0
+0&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000 0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00,00)"><text y="0">0</text>&Viewport2;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,00)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pdth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pro="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" t="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg tio="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform=",00"><text y="0">0</text>&i;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&i;
+0<svg preRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2587.svg b/test/ns-afl-svg/2587.svg
new file mode 100644
index 0000000..4a9b41f
--- /dev/null
+++ b/test/ns-afl-svg/2587.svg
@@ -0,0 +1,41 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='0' stroke='0'/>0<g transform='0'>0<circle x='0' y='0' r='0' fill='0'/>0<circle cx='0' cy='0' r='0' fill='0'/>0<circle cx='0' cy='0' r='0' fill='0'/>0<path d='0' stroke='0' stroke-width='0'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='0' stroke='0'/>">]><svg width="0" height="0" ion="0" xmlns="0000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="0" stroke="0"/>
+0<g font-size="0">0<text x="0" y="0">0</text>
+0<g transform="0">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&i;</g>
+0<text x="0" y="0">0</text>
+0<g transform="0">&Viewport0;</g>
+0<g d="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg tio="0" viewBox="0"
+h="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&o;
+0<svg presctRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="0">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="0"><text y="0">0</text>&Viewport0;
+0<svg preserveLspectRatio="0" viewBox="0" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="0">
+0<text x="0" y="0">0</text>
+0&Smile;<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2588.svg b/test/ns-afl-svg/2588.svg
new file mode 100644
index 0000000..2893a9b
--- /dev/null
+++ b/test/ns-afl-svg/2588.svg
@@ -0,0 +1,11 @@
+<svg xmlns="0000000" fill="urs00ue" xmlns:x="0">
+0<g fill="none">
+0
+0<eYlipse e="0" rx="0" ry="0" m="0"/>
+0
+0</g>
+0<g fill="#000000" stroke="white"> 0
+0</g>0<g ilR="0" strokeink="0">0
+0<g fill="0000000" r="0"/>
+0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2589.svg b/test/ns-afl-svg/2589.svg
new file mode 100644
index 0000000..fc285cd
--- /dev/null
+++ b/test/ns-afl-svg/2589.svg
@@ -0,0 +1,92 @@
+<?l?><!DOCTYPE s000 PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='b0u00' stroke='000'/>0<g transform='translate(0,00)'>0<circle cx='0' cy='0' r='1' fill='y0l00w'/>0<circle cx='0' cy='0' r='S' fill='black'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='M00 000A00 0 0 0 0 00 00' stroke='black' stroke-width='2'/>0</g>0"><!ENTITY t ""><!ENTITY Viewport2 "<rect x='0' y='0' width='0' height='0'
+fill='n0n0' stroke='b0w0'/>">]><svg width="px" height="30px" n="0" s="0">
+0<desc>0</desc>
+0<rect x="0" y="0" h="0" ight="0"
+fill="none" stroke="b0u0"/>
+0<g foize="0">
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,00)">&Smile;</g>
+0<text x="0" y="0">0</text>
+0<g m="0">&V;</g>
+0<text x="0" y="0">0</text>
+0<g transform="translate(00,000)">&Viewport2;</g>
+0<g d="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg o="0" x="0"
+h="0" heht="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg r="0" iewBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(0,00)"><text y="0">0</text>&o;
+0<svg r="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 00)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg e="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg p="0" view="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg r="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg i="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg r="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg t="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg o="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg r="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg pspecBox="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg o="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg o="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg r="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg o="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 0000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg o="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg prght="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport2;
+0<svg e="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000 0)"><text y="0">0</text>&Viewport2;
+0<svg e="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="translate(000 000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport2;
+0<svg o="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&Viewport2;
+0<svg pdth="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&Viewport2;
+0<svg o="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g d="0" transform="000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg o="0" viewBOx="0" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg e="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2590.svg b/test/ns-afl-svg/2590.svg
new file mode 100644
index 0000000..033b810
--- /dev/null
+++ b/test/ns-afl-svg/2590.svg
@@ -0,0 +1,377 @@
+<svg ns="0" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="pyYellow" rm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="#000" offset="1"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="q0s00t" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="000000000000000000000000000000000000000000000000000000000000000000000000000" lZ="0"/>
+0<path d="M00,00c0,0-8,000000-7,0000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000000000000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="0" id="4" style="fill: url(#000000" fill="url(#00)"/>0
+0<path d="M00,00c090-0,00-00,100-00l0-000000000000000000000000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="z" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-00000000000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-00-0-00000000007000000000000000000000000000000000000 0000000000000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000000000000000000000000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000c000000c000000000000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="000,00000000,00000,0000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>
+0
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="4" style="fill: url(#000000" fill="url(#00)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" Il="0"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,000,0,K000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00000,00"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,6-00,-00108.600000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,100-00l0-00c0-0,0-00,02-00l04,000,0,K000,000000000000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0004" style="0" fill="url(#0000)"/>
+0<path d="000,00000000,00000,0000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<ciRcle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r=")"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" _x="0" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" cx="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,0000000,000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCla r="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000000000000,0000000,000000000000"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+0<path d="000,00000000,00000,000,0000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,0000000,000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,000000000" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0004" style="fill: url(#00000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circLe r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="0000000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0
+0
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0
+
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#0000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,0000000000000000000,00000000000000000000,0000000000000000,000000000000000000000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,104,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" Yx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fiill="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<AirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,000000000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,104,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="4" style="0" fill="url(#000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2591.svg b/test/ns-afl-svg/2591.svg
new file mode 100644
index 0000000..620df9e
--- /dev/null
+++ b/test/ns-afl-svg/2591.svg
@@ -0,0 +1,89 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a00fel000se00000"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M0,0c0,0-0,0-00,00ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ000000000000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx=")"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" y="0" fill="#00:"/>
+0<path d="000,00000000,000,00000000000000000,00000,000,0,00,0,00,0000,0000,00000000"/>
+0<path d="M00,00c090-0,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0000,00000000,0c0,0,0000,000000000000,000,0,00,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-200-04-6-001000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fl="0"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-0,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-00000,000000000"/>0
+0<circle H="0" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<ci r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<ce r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<tS d="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" id="0004" s="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0</svg>
diff --git a/test/ns-afl-svg/2592.svg b/test/ns-afl-svg/2592.svg
new file mode 100644
index 0000000..78714db
--- /dev/null
+++ b/test/ns-afl-svg/2592.svg
@@ -0,0 +1,5 @@
+<svg xmlns="00000000000000000000000000" viewBox="0">0<path d="M0 000c00-00 00-0000 000000,0000 0" i="0" style="stroke: rgb(000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" x="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="000000000000000000000" id="0" style="stroke: rgb(000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000)"/>0
+0<circle r="4" yx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2593.svg b/test/ns-afl-svg/2593.svg
new file mode 100644
index 0000000..9bfd7e9
--- /dev/null
+++ b/test/ns-afl-svg/2593.svg
@@ -0,0 +1,15 @@
+<svg xmlns="00000000000000000000000000" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" gradientTransform="rotate(45)">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="0"/>
+0</linearGradient>
+0<linearGradient id="pyBlue" gradientTransform="rotate(0)">
+0<stop stop-color="rgb0000000000" offset="0"/>
+0<stop t-c="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,0-00,00-00c00,0,00,0,00,000c0,0-0,00-0,0c00,0-00,0-00,00l0,00l00,0c00,0-00-0-00-00c0-00,0-00,00-00l00,0l0-0l000,0l0-0l0,0z M00,00v0" fill="url(#pyBlue)"/>
+0<path d="M00,00c0,0-8,13-23,13c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000,000,000,000M000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2594.svg b/test/ns-afl-svg/2594.svg
new file mode 100644
index 0000000..c5e4e73
--- /dev/null
+++ b/test/ns-afl-svg/2594.svg
@@ -0,0 +1,58 @@
+<svg ns="0" ZiewBox="0">
+0<defs>0<linearGradient id="py0ellow" gradientTransform="rotate(0)">
+0<stop stop-color="0000000" ot="0"/>
+0<stop stop-color="0000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000000" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="00000000000,00,0000,0000,000,00000,000000,0000,0000,0000,00,0000,000000,000000000000000000,0000000,000000,0000" fill="url(#0000)"/>
+0<path d="M00,00c0,000,00000000,0-00,00-00000,000,0,0000000,000M00,0000" fill="url(#0000)"/>
+0<path d="000,0000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000,000,0000000000000000000,00000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000 00-00-00 0000000,000000000 000000,000000000 000000,000000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-000000000,000,0,0000,0000,00-00,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"/>
+0<path d="000,00000000,000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,0000 000000,000000000000000000,00000000000000000000000000000000000000000,00000000000000000000,0000000000000000,000000l000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,00000000000000000000000000000000000000000-000 000-00-00-00-000 000-0 0000000000000000000000000000000000000000000,0000000000" id="0" style="fill: s0o00rad000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-000000000,000,0,0000,0000,00-00,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="z" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,000000000000000000000000000000000000,000000000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000000000000000000-00 000-000 000-00-00-00-000 000-0 00000000000000000000000000000000000000000000000,0000000,000000000000000,000000000000000000,000000000000000000,000000000 000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="000,00000000,000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,0000 000000,000000000000000000,00000000000000000000000000000000000000000,00000000000000000000,0000000000000000,000000l000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0000000000000000000000000000000000-00 000-0000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0" style="fill: s0o00rad000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-000000000,000,0,0000,0000,00-00,000000,000,0000,000,0l0,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#r0000" fill="url(#0000)"/>
+0<path d="000,00000000,000000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c000,0-00,0000 000000,000000000000000000,00000000000000000000000000000000000000000,00000000000000000000,0000000000000000,000000l000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,00000000000000000000000000000000000000000000000000000000000000 000-0 0000000000000000000000000000000000000000000,0000000000" id="0" style="fill: s0o00rad000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="z" id="0004" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2595.svg b/test/ns-afl-svg/2595.svg
new file mode 100644
index 0000000..ccbce41
--- /dev/null
+++ b/test/ns-afl-svg/2595.svg
@@ -0,0 +1,239 @@
+<svg xmlns="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="pyYellow" gra_ieorm="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop t="0" e="0"/>0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" t="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient r="0" gra_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="ur0000000000" l="0"/>
+0<path d="0" f="0"/>
+0
+0<stop r="0" f="0"/>
+0<stop stop-color="ur0000000000" r="0" f="0"/>
+0
+0<stop r="0" f="0"/>
+0
+0
+0<stop r="0" offset="0"/>
+0
+0<stop r="0" offset="0"/>
+0<stop r="0" e="0"/>
+0
+0
+0<stop r="0" offset="0"/>
+0
+0<stop s="0" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="0"/>0
+0<ci r="0" x="0"/><stop t="0" e="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop r="0" ffset="0"/>0</linearGradient>
+0</defs>0
+0<pCth d="0" id="0" s="0" l="0"/>
+0<pLth d="0" l="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" l="0"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,000-00l0,00000000l00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0000" style="fill: url(#00000" y="0" fill="#000"/>
+0<circle r="4" cx="0" Y="0" style="fill: url(#00000" fill="url(#00000)"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,000,00L000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00000"/>
+0<path d="M00,00c090-0,10-00,100,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,,000,0,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-00-60.070,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00000"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="0000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx=")"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,0000000,000" fill="url(#00000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="c" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="!" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0000" style="fill: url(#00000" fill="url(#00000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#00000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,000000000000000c000,0000,00000000,0c0,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="#000000"/>
+0<path d="M000,000000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#00S"/>
+0<circle r="4" cx="v" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#00000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#pyYellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#00000)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#pyYellow)"/>0
+0<circle r="," fill="url(#000e)"/>
+0<path d="000,0000000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#pyYellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#pyYellow)"/>0
+0<circle r="$" fill="url(#000e)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0000" style="0" fill="url(#00000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#pyYellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2596.svg b/test/ns-afl-svg/2596.svg
new file mode 100644
index 0000000..b09b23d
--- /dev/null
+++ b/test/ns-afl-svg/2596.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="000000000000000000">
+0<style pe="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:black;stroke-width:000mm" transform="translate(0,0)"/>0<circle cx="cm" cy="cm" r="1" style="stroke:black;stroke-width:000mm" rm="0"/>
+0<circle cx="cm" cy="0" r="1" style="fill:blue;stroke:black;stroke-width:000mm" wransform="0"/>
+0<circle cx="cm" cy="cm" r="1" style="stroke:black;stroke-width:000mm" transborm="0"/>
+0<circle cx="cm" cy="cm" r="k" transform="0,0000"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2597.svg b/test/ns-afl-svg/2597.svg
new file mode 100644
index 0000000..55e288b
--- /dev/null
+++ b/test/ns-afl-svg/2597.svg
@@ -0,0 +1,45 @@
+<svg xmlns="000000000000000000" d="0" viewBox="0 0 2 3">
+0<desc>0</desc>
+0<g d="0">
+0<path fill="#000000" stroke="#000000" scap="0"
+stejoin="0" d="M000000,00000l000000,00l0000000,000000000000000l0000000-00L0000000,00000z"/>
+0<path fill="#000000" stroke="#000000" strcap="0"
+strooin="0" d="M0000000,00000l000000-00l000000,000000000000000l0000000,00L0000000,00000z"/>
+0<path fill="#000000" stroke="#000000" strokelinecap="0"
+strokelinejoin="0" d="M0000000,00000l000000-000000000000000000000000000000000000L0000000,00000z"/>
+0<path fill="#000000" stroke="#000000" snecap="0"
+strokelinejoin="0" d="M000000,00000l000000-00l000000,000000000000000l0000000,00L000000,00000z"/>
+0<path fill="#000000" stroke="#000000" stroke-linecap="0"
+stroke-linejoin="0" d="M000000,00000l000000-00l000000,000000000000000l0000000,00L000000,00000z"/>
+0<path fill="#000000" stroke="#000000" stroke-linecap="0"
+stroke-linejoin="0" d="M000000,00000l000000-00l000000,000000000000000l0000000,00L000000,00000z"/>
+0<path fill="#000000" stroke="#000000" stroke-linecap="0"
+stroke-linejoin="0" d="M0000000,00000l00000000000000000000000000000000000000000,00v00l0000000,00v00l0000000,00v00l0000000,00v00000h0000000V000000l000000-000000V00000H0000000z"/>
+0<path fill="#000000" stroke="#000000" stroke-linecap="0"
+stroke-linejoin="0" d="M0000000000000000000000000000000000,000000000000000l000000,000000L0000000,000000z"/>
+0<path fill="#000000" stroke="#000000" stroke-linecap="0"
+stroke-linejoin="0" d="M0000000,000000l00000-0000000000000000000l000000,00000l000000,000000L0000000,000000z"/>
+0<path fill="#000000" stroke="#000000" stroke-linecap="0"
+stroke-linejoin="0" d="M0000000,000000l000000-00v0000000000000000000l0000000-00V000000h00000l00000-000000l000000,000000V000000z"/>
+0<path fill="#000000" stroke="#000000" stroke-linecap="0"
+stroke-linejoin="0" d="M000000,00000l000000-00l000000,000000000000000l0000000,00L000000,00000z"/>
+0<path fill="#000000" stroke="#000000" stroke-linecap="0"
+stroke-linejoin="0" d="M000000,000000l000000-00l000000,000000000000000l0000000,00L000000,000000z"/>
+0<path fill="#000000" stroke="#000000" stroke-linecap="0"
+stroke-linejoin="0" d="M0000000,000000l000000-00l000000,000000000000000l0000000,00L0000000,000000z"/>
+0<path fill="#000000" stroke="#000000" stroke-linecap="0"
+stroke-linejoin="0" d="M0000000,000000l000000-00l000000,000000000000000l0000000,00L0000000,000000z"/>
+0<path fill="#000000" stroke="#000000" stroke-linecap="0"
+stroke-linejoin="0" d="M0000000,000000l000000-00l000000,000000000000000l0000000,00L0000000,000000z"/>
+0<path fill="#000000" stroke="#000000" stroke-linecap="0"
+stroke-linejoin="0" d="M0000000,000000l000000-00l000000,000000000000000l0000000,00L0000000,000000z"/>
+0<path fill="#000000" stroke="#000000" stroke-linecap="0"
+stroke-linejoin="0" d="M0000000,00000l00000-000000l000000,000000000000000l000000,000000L0000000,00000z"/>
+0<path fill="#000000" stroke="#000000" stroke-linecap="0"
+stroke-linejoin="0" d="M0000000,000000l000000,000000v00000000000000l0000000,00v0l0000000,00v000000l0000000-000000V000000z"/>
+0<path fill="#000000" stroke="#000000" stroke-linecap="0"
+stroke-linejoin="0" d="M000000,0000000V00000l000000,00v000000000000000l000000,00v00l000000,00v00l000000,00v00l000000,00v00l000000,00v000000L000000,0000000z"/>
+0<path fill="#000000" stroke="#000000" stroke-linecap="0"
+stroke-linejoin="0" d="M0000000,000000l000000,00v0l0000000-000000000000000V000000z"/>
+0<path fill="none" d="M000,000H0V0h000V000z"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2598.svg b/test/ns-afl-svg/2598.svg
new file mode 100644
index 0000000..4f8d04a
--- /dev/null
+++ b/test/ns-afl-svg/2598.svg
@@ -0,0 +1,12 @@
+<?l?>
+<!DOCTYPE g PUBLIC "0" "0">
+<svg xmlns="00000000000000000">
+0<style e="0">
+0
+0</style>
+0<g style="0">
+0<circle cx="cm" cy="cm" r="1" style="fill:red;stroke:black;stroke-width:001cm" transform="translate(0,0)"/>
+0<circle cw="0" cy="cm" r="1" style="fill:blue;stroke:t0a00;" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00ncl000ke000000" transform="translate(0,0)"/>
+0<circle cx="cm" cy="cm" r="1" style="fill:g0e00ncl000ke000000;stroke-width:001cm" transform="translate(0,0)"/>
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2599.svg b/test/ns-afl-svg/2599.svg
new file mode 100644
index 0000000..831f499
--- /dev/null
+++ b/test/ns-afl-svg/2599.svg
@@ -0,0 +1,148 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gra_ieorm="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" t="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0
+0<defs>
+0<linearGradient i="0" gra_m="0">
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" t="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="ur0000000000" fill="0"/>
+0<path d="0" of="0"/>
+0
+0<stop r="0" of="0"/>
+0<stop slor="0" of="0"/>
+0
+0<stop r="0" of="0"/>
+0
+0
+0<stop r="0" offset="0"/>
+0
+0<stop r="0" offset="0"/>
+0<stop o="0" t="0"/>
+0
+0
+0<stop r="0" offset="0"/>
+0
+0<stop s="0" offset="0"/>
+0
+0</linearGradient>
+0</defs>0
+0<path d="0"/>0
+0<K r="0" x="0"/><stop t="0" e="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<st sr="0" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<pCth d="0" i="0" s="0" fill="0"/>
+0<pLth d="0" fill="0"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path t="0" fill="url(#py0ellow)"/>0
+0<cirCle r="0"/>0
+0<circle r="0" x="0" y="0" fill="0"/>0
+0<circ r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" x="0" y="0" fill="0"/>
+0<circle r="0" x="0" fill="0"/>0
+0<cirCle r="0" x="0" y="0" fill="0"/>
+0<circle r="0" x="0" y="0" fill="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>
+0<path d="0" x="0" y="0" fill="0"/>0
+0<circle r="0" x="0" y="0" fill="0"/>0
+0<circ r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" x="0" y="0" fill="0"/>
+0<circle r="0" y="0" fill="0"/>0
+0<circle r="0" x="0" cy="0" fill="0"/>0
+0<circ r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circ r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circ r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circ r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" id="0" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0" id="0" style="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<path d="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<path d="0" fill="0"/>0
+0<cirCle r="0"/>0
+0<circle r="0" cx="0" cy="0" fill="0"/>0
+0<circle r="0" fill="0"/>
+0<pÃ00 d=""/>0
+0<cirCle r="0" fill="0"/>
+0<circle r="0" cxill="0"/>0
+0<cirCle r="0" fill="0"/>
+0
+0<circle r="0" fill="0"/>0
+0<cirCle r="0" cx="0" fill="0"/>
+0<circle r="0"/>0
+0<path d="0" fill="0"/>
+0<path d="0" fill="0"/>
+0<circle r="0" fill="0"/>0
+0<circle r="0" cx="0"/>0
+0<circ fill="0"/>
+0<path d="0"/>0
+0<cirCle r="0"/>0
+0<circ cx="0" sty="0"/>
+0<path d="0"/>0
+0<cirCle r="0" cl="0"/>
+0<circle r="0" cx="0" fill="0"/>0</svg>
diff --git a/test/ns-afl-svg/2600.svg b/test/ns-afl-svg/2600.svg
new file mode 100644
index 0000000..01ebbad
--- /dev/null
+++ b/test/ns-afl-svg/2600.svg
@@ -0,0 +1,12 @@
+<svg xmlns="0" o="0">
+0<svg xmlns="00000" v="0">
+0<path d="M0,0h0l0,0v0l0,0l0-0z" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+</svg>0<path d="000,0000" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+0<svg xmlns="0000000000" viewBox="0 0 1 1">
+0<path d="M0,0h0l0,0v0l0,0l0-0z" stroke="#000" fill="0000000000000"/>
+0
+</svg>0<path d="0,000000" stroke="#000" fill="m&lt;o00inc000ee000"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/2601.svg b/test/ns-afl-svg/2601.svg
new file mode 100644
index 0000000..02e9e10
--- /dev/null
+++ b/test/ns-afl-svg/2601.svg
@@ -0,0 +1,13 @@
+<svg xmlns="0000000000" xmlns:k="0" viewBox="0 0 0 0">0
+<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKBKKKKK.KKKKKKKKKpath d="0" l="0"/>0
+0<text x="C"/>
+0<patKKKKKKKSKKKKKKKKKKKKKKKKKKKKKK/>
+0<patKKKKKKKKKKKKKKKKexKKKKKKKKKKKKKKKKKKKKKKext d="0" ke="0" ll="0"/>0
+0<KKKKKKKKKKKKKKKKKKKKKK.......................................................................................KKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK.KKKKKKKKKpath d="0" vill="0"/>0
+0<text x="C"/>
+0<patKKKKKKKKKKKKKKKeeLeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKSKKKKKKmKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKipLLLLLLLLLLLLLLLLLLLt ty="0" rx="0"/>
+0
+</svg>
diff --git a/test/ns-afl-svg/2602.svg b/test/ns-afl-svg/2602.svg
new file mode 100644
index 0000000..87178b9
--- /dev/null
+++ b/test/ns-afl-svg/2602.svg
@@ -0,0 +1,2 @@
+<?l?>
+<!DOCTYPE g><text y="0">0<0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2603.svg b/test/ns-afl-svg/2603.svg
new file mode 100644
index 0000000..069c1b2
--- /dev/null
+++ b/test/ns-afl-svg/2603.svg
@@ -0,0 +1,70 @@
+<?l?><!DOCTYPE s PUBLIC "0" "0"[<!ENTITY Smile "0<rect x='0' y='0' width='0' height='0' fill='l0c00ext000ch0000'/>0<g ranrm='0'>0<circle cx='0' cy='m' r='1' fill='0'/>0<circle cx='0' cy='0' r='5' fill='0'/>0<circle cx='0' cy='0' r='1' fill='black'/>0<path d='0' stroke='0' stroke-width='0'/>0</g>0"><!ENTITY t "">
+<!ENTITY Viewport0 "<rect x='0' y='0' width='0' height='0'
+fill='none' stroke='blue'/>">
+]>
+<svg width="px" height="30px" on="0" xmlns="000000000000000000">
+0<desc>0</desc>
+0<rect x="0" y="0" width="0" height="0" fill="none" stroke="b0u0"/>
+0<g e="0">
+0<text x="0" y="0">0</text>0<g transform="00">&Smile;</g>0<text x="0" y="0">0</text>0<g transform="00000">&i;</g>0<text x="^" y="0">0</text>0<g transform="00000">&Viewport0;0<g id="0" transform="000000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&o;
+0<svg io="0" viewBox="0"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="000"><text y="0">0</text>&i;
+0<svg pro="0" viewBox="0"
+th="0" height="0">&Smile;</svg></g>
+0<g transform="000"><text y="0">0</text>&o;
+0<svg presctRatio="0" viewBox="0"
+th="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0">
+0<text x="0" y="0">0</text>&o;
+0<svg tio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="00">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="0000000"><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>0<g oro="0"><text y="0">0</text>&Viewport0;
+0<svg presctRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="000000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg AspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="000000"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>0</g>
+0<g id="0" transform="00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg pio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00 0)"><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>0<g tro="0"><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="0,00000">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="0000,00"><text y="0">0</text>&Viewport0;
+0<svg pre="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="0,00"><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0
+0<g transform="0,00"><text y="0">0</text>&Viewport0;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>
+0<g id="0" transform="translate(000,0000)">
+0<text x="0" y="0">0</text>
+0<g><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(00,0)"><text y="0">0</text>&V;
+0<svg preserveAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0<g transform="translate(000,0)"><text y="0">0</text>&V;
+0<svg preseAspectRatio="0" viewBox="0 0 3 4" width="0" height="0">&Smile;</svg></g>
+0</g>0
+0</g>0</svg>
diff --git a/test/ns-afl-svg/2604.svg b/test/ns-afl-svg/2604.svg
new file mode 100644
index 0000000..2ef36e6
--- /dev/null
+++ b/test/ns-afl-svg/2604.svg
@@ -0,0 +1,12 @@
+<svg viewBox='0 0 6 2' xmlns='0000000000'>
+0<path d='M00,00c00,0-0-0,0-0l0-00-00M000000,000000000000000000000,000,00000' fill='s0l00ask'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,00- 00,00000000000000000000000000000000000,000,00000' fill='s0l00ask'/>0
+0<path d='000,000,00,00000,000,00000' fill='s0l00ask'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,00- 00,000000,00000000000000000000000000000000000000000000000000000000000000000000000000000000,000,00000' fill='s0l00ask'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,00- 00,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' fill='s0l00ask'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,00- 0000000000,00000000000000000000000000000000000000000000000000000000000000000000,00,00,000000000000000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000,000,00000' fill='s0l00ask'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,00- 0000000000,00000000000000000000000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,0000000,000,00000' fill='s0l00ask'/>0
+0<path d='000,00000,00000,0000,00000,000000,000000,000000,0000,000,0,0,0000,0,00,0000000000000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000,000,00000' fill='s0l00ask'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,00- 0000000000,0000000000000000,000000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,000000000000000000,0000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,00000,000,00000' fill='s0l00ask'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,00- 0000000000,0000000000000000,000000,0000000000000000000,0000,0000,000,0,0,0000,0,00,00,00,0000000,000,00000' fill='s0l00ask'/>0
+0<path d='M00,00c00,0-0-0,0-0l00,000-0,0-0,0000z' fill='s0l00ask'/>0</svg>
diff --git a/test/ns-afl-svg/2605.svg b/test/ns-afl-svg/2605.svg
new file mode 100644
index 0000000..0e5e3ea
--- /dev/null
+++ b/test/ns-afl-svg/2605.svg
@@ -0,0 +1,35 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="k0e0" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>0
+0<stop stop-color="#000" offset=".4" cy="0" ll="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="C"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="r000000000" ll="0"/>
+0<path d="0" ot="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c000,00,0,000,0000,000,000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M0,00c000-0,00-00,000,00v0" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="M00,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000-000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,0-00000 00-00-00 00-00 000-00 0000-00 000-000 000-00-0000000000000000000000000000000000-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c00000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c090-8,00-20,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2606.svg b/test/ns-afl-svg/2606.svg
new file mode 100644
index 0000000..3ce1791
--- /dev/null
+++ b/test/ns-afl-svg/2606.svg
@@ -0,0 +1,8 @@
+<svg xmlns="000000000000000000" viewBox="0 0 1 1">
+0<path d="0" fill="m0v0"/>0
+<path d="M00,0h00l0l0,00" stroke="#000" fill="m0v0"/>0
+0<pZth d="0" ll="0"/>0
+0<text x="0" y="0" t-se="0" ll="0" t-r="0"><![CDATA[0]]></text>0
+0<path d="M00,0h00l000l000,000000" stroke="#000" fill="m0v0"/>0
+0<pZth d="0" fl="0"/>0
+0<text x="0" y="0" font-size="0" fl="0" t-ar="0"><![CDATA[0]]></text>0</svg>
diff --git a/test/ns-afl-svg/2607.svg b/test/ns-afl-svg/2607.svg
new file mode 100644
index 0000000..4a6b57b
--- /dev/null
+++ b/test/ns-afl-svg/2607.svg
@@ -0,0 +1,24 @@
+<svg xmlns="0000000000" xmlns:k="0">
+0<r>0<svg xmlns="vg">0
+<xmlns k="">0
+0<xmlns k="">0<xmlns e="">0
+0<r>0<svg xmlns="vg">0
+0<xmlns k="">0
+0<xmlns>0<xmlns>0
+0<xmlns>0
+0<vg ons="0">
+0<xmlns>0
+0<xmlns>
+0
+0<xmlns>0
+0<xmlns>
+0
+0<xmlns>0
+0<vg xmons="0">
+0<xmlns>0
+0<xmlns>
+0
+0<xmlns>0
+0<xmlns>
+0
+0<vg xmons="0">0 \ No newline at end of file
diff --git a/test/ns-afl-svg/2608.svg b/test/ns-afl-svg/2608.svg
new file mode 100644
index 0000000..8ec84dc
--- /dev/null
+++ b/test/ns-afl-svg/2608.svg
@@ -0,0 +1,18 @@
+<svg ns="0" viewBox="0 0 1 1">0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="#000" et="0"/>0
+0<stop stop-color="#000" ot="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="#000" offset="1"/>
+0</linearGradient>
+0</defs>0
+0<path d="ZZZZZZZZZZZl0,9l00" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="G" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2609.svg b/test/ns-afl-svg/2609.svg
new file mode 100644
index 0000000..712b153
--- /dev/null
+++ b/test/ns-afl-svg/2609.svg
@@ -0,0 +1,259 @@
+<svg xmlns="0" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" a_m="0">
+0<stop stop-color="#000" offset=".6"/>
+0<stop stop-color="000"/>
+0<stop stop-color="q0a00ffs000"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop t="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c0-0,00,0,23,000c0,0-0,00-10,0ZZZZZZZZZZZZZZZZZZZZZZZZZZ0000000000000000000000000000" fill="url(#py0ellow"/>0
+0<cirCle r="4" c="0" y="0" l="0"/>
+0<circle r="4" cx="0" y="0" i="0"/>0
+0<path d="M00,00c000-0,00-00,000-000c0-0,0-00,00-00l00,00000000000000000000000000000000000000000000000000"/>0
+0<circle r="4" cx="K" y="0" fill="url(#py0ellow"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="00000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" y="0" fl="0"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+0<path d="000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" y="0" ll="0"/>
+0<circle r="4" cx="0" y="0" fill="#000"/>
+0<path d="00000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0000000000000000000-00 000-00 0000-00 000-000 000-00-00-0000000000000000000000000000c000000,000000000,000.000000.00000000.0000000.000000C00000000000000000000000000000000000000000000000000000000000000000000000000" y="0" fi="0"/>
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#0000)"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-000000c000000000000000000000000000000,0000,000,0000000000000000,000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,000000000000,000,0,00,0,00,0000,000000,00000,000000000000000,00000,00000000000000000000000000000000000000,000000,00000000000000,000" fill="#000000"/>
+0<path d="M000,000c0,00,0,00-0,00l000-000c0,0,000000" fill="u0e0"/>
+0<path d="M00,00c0,00-000-00-60.800,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#000"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000,000000000,0000000,000000000000000,0000000000" cx="0" y="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,00000000,00000,000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="0" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,00000000000000,000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0
+0<circle r="4" cx="0" id="0004" style="fill: url(#000000" fill="url(#000000)"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,000,0,L0,0,00,0000,0000,00000,000000,000,0000,000,000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000,0000000000000000,000000000000000,0000000000" id="0004" style="fill: url(#000000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<Wath d="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0,000,000000000000000000000000000000000000000000000000000000000000000000000000,00000000000"/>0
+0<path d="M00,00c000-0,00-00,004-00l0-00c0-0,0-00,-04000.000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-000v0" fill="u000000000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#000000)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="u000000000"/>
+0<path d="000,00000000,000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="000,0000000000000000000,0000,00000000,000,0,0000,000000000000,000,0,0000,0000,00000,000000,000,0000,000,000,,000,0,0000,00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="0000,0000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000,000000" fill="u0e0"/>
+0<path d="000,0000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-12l24,0c0,0,00-0,14-10l0-00l9,0c0,0,00c000000000000000000000000000,00000000000000000000,0000000000000000,0000000000000000000" cx="0" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#0000)"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" f="0"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="K" cy="0" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="v" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c090-0,00-00,100,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0
+
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,0000000000000000,000" fill="url(#000000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="Q" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="00000000"/>
+0<path d="000,0000000" fill="url(#000000"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0
+
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#0000)"/>
+0<patH d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4"/>0
+0<circle r="4" cx="," id="0" style="0" fill="url(#000000)"/>
+0<path d="M00,00000000,?0000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>0<circle r="4" cx="0" cy="0" fill="#000"/>0</svg>
diff --git a/test/ns-afl-svg/2610.svg b/test/ns-afl-svg/2610.svg
new file mode 100644
index 0000000..44a0c4d
--- /dev/null
+++ b/test/ns-afl-svg/2610.svg
@@ -0,0 +1,61 @@
+<svg xmlns="00" viewBox="0 0 1 1">
+0<defs>0<linearGradient id="py0ellow" gra_ieorm="0">
+0<stop stop-color="k0e0" offset="0"/>
+0<stop stop-color="000"/>
+0<stop stop-color="000" t="0"/>0
+0<stop stop-color="#000" offset=".4" y="0" fill="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0<stop stop-color="000" offset="C"/>
+0
+0<stop stop-color="#000" offset="0"/>
+0
+0
+0<stop stop-color="r000000000" fill="0"/>
+0<path d="0" offset="0"/>
+0
+0<stop stop-color="#000" offset="0"/>0
+0</linearGradient>
+0</defs>0
+0<path d="M00,00c000,00,0,00,,00,000,000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,000,00v0" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" x="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>
+0<path d="000,00000000000000000000000000000000000000000000000000000000" fill="#000000"/>
+0<path d="M000,000c0,00,5,00-2,00l-50-000c0,0,0-00000 1,00-000000000,000,0,00c0,0000,00000,000000,000,0000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,000000000000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000000000000000000000000000000000000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<ctrCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-20,124-00l0-00c0-0,0-00,10-10l24,0c0,0,00-0,14-15l0-00l9,0c0,0,00c0,0000,00000,000000,000,0000,000,000,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0000000,000000000000000,000000000000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="," fill="url(#py0ellow)"/>0
+0<circle r="," fill="url(#0000)"/>
+0<path d="000,0000000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" y="0" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="K" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="$" fill="url(#000000000000000000000005000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000100000000000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<ctrCle r="0" cx="0" cy="0" fill="0"/>
+0<circle r="4" cx="0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-0000,0c0,0,0000,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,000000000000000000,000000000000000000,0000000000000000,00000000000000000000,0000000000000000,0000000000000000,00000000000000000000,0000000000000000,000000000000000,0000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="M00,00c000-0,00-00,004,00v0" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00:"/>0
+0<path d="M00,00c000-0,00-00,000-00l0-00c0-0,0-00,00-00l00,0c0,0,00-0,00-00l0-00l0,0c0,0,00c0,0000,00000,000000,000,0000,000,000,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" id="0" style="fill: url(#00000" fill="url(#0000)"/>
+0<path d="000,00000000,00000,000,0000" fill="url(#py0ellow)"/>0
+0<cirCle r="4" cx="0" cy="0" fill="#000"/>
+0<circle r="4" cx="0" cy="0" fill="#00;"/>0</svg>
diff --git a/test/ns-afl-svg/2611.svg b/test/ns-afl-svg/2611.svg
new file mode 100644
index 0000000..bc55db4
--- /dev/null
+++ b/test/ns-afl-svg/2611.svg
@@ -0,0 +1,23 @@
+<svg n="0" fill="url(#py0ellow)" viewBox="0 0 1 1">
+0<defs>
+0<linearGradient id="py0ellow" m="0">
+0<stop stop-color="0" offset="C"/>
+0<P p-r="0" t="0"/>
+0<stop stop-color="#000" offset=","/>
+0
+0
+0
+0<th d="0" fl="0"/>0
+0<ce r="0" cx="0" cy="0" ll="0"/>
+0<ce r="0" cx="0" id="0" s="0" ll="0"/>0
+0<th d="0" fl="0"/>
+0<th d="0" ll="0"/>0
+0<le r="0" cx="0" fl="0"/>0
+0<circle r="0" cx="0" cy="0" ll="0"/>0
+0<stop stop-color="p0c00t" offset="0"/>
+0</linearGradient>
+0</defs>0
+0<path d="M0,0c000000000000000000000000000000000,0c00,00000000000,0000,0000,000000000000,000000000000000000,0000,00000,000000,000,0000,000,000,0000000,0000" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="v" fill="url(#py0ellow)"/>0
+0<circle r="4" cx="0" cy="0" fill="0000"/>0
+</svg>
diff --git a/test/ns-afl-svg/2612.svg b/test/ns-afl-svg/2612.svg
new file mode 100644
index 0000000..8aaba36
--- /dev/null
+++ b/test/ns-afl-svg/2612.svg
@@ -0,0 +1,11 @@
+<vg xmlns="00">
+0<path d="0" stroke="0" fill="0"><!--0-->0<ÎÎ x=""><!--0-->0<Î00>
+0<!--0-->0<Î00000><!--0-->0<Î0000>
+0
+0
+0<!--0-->0<Î0000>
+0<!--0-->0<Î0000><!--0-->0<Î0000>
+0
+0
+0
+0<!--0-->0<ÎÎ V="">Î0 \ No newline at end of file